addMIPSol Method (XPRBsol)
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: BCL
Assembly: xprbdn (in xprbdn.dll) Version: 4.8.14.0

Parameters
- sol
-
Type:
BCLXPRBsol
Solution object holding the solution values

XPRBprob expl2; XPRBvar x1 = expl2.newVar("abc3", BCLconstant.XPRB_UI, 1, 100 ); XPRBsol sol1 = expl2.newSol(); sol1.addVar( x1, 1.0 ); expl2.addMIPSol( sol1 );
