XPRBprobaddMIPSol(XPRBsol, String) Method |
Adds a MIP solution from an external source into the Optimizer. The solution
is given in the form of an XPRBsol object and can be feasible, infeasible or partial.
The function returns immediately after passing the solution to the Optimizer. The
solution is placed in a pool until the Optimizer is able to analyze the solution during
a MIP solve.
If the provided solution is found to be infeasible, a limited local search heuristic
will be run to attempt to find a close feasible integer solution.
If a partial solution is provided, global columns will be fixed to any provided values
and a limited local search will be run in an attempt to find integer feasible values
for the remaining unspecified columns.
Values provided for continuous columns in partial solutions are currently ignored.
Namespace: BCLAssembly: xprbdn (in xprbdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntaxpublic void addMIPSol(
XPRBsol sol,
string name
)
Public Sub addMIPSol (
sol As XPRBsol,
name As String
)
Parameters
- sol XPRBsol
- Solution object holding the solution values
- name String
- An optional name to associate with the solution (can be null)
ExampleXPRBprob expl2;
XPRBvar x1 = expl2.newVar("abc3", BCLconstant.XPRB_UI, 1, 100 );
XPRBsol sol1 = expl2.newSol();
sol1.addVar( x1, 1.0 );
expl2.addMIPSol( sol1, "mysol" );
See Also