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: 44.01.04
Syntax
public void addMIPSol(
XPRBsol sol
)
Public Sub addMIPSol (
sol As XPRBsol
)
Parameters
-
sol
-
Type:
BCL.XPRBsol
Solution object holding the solution values
Examples
XPRBprob expl2; XPRBvar x1 = expl2.newVar("abc3", BCLconstant.XPRB_UI, 1, 100 ); XPRBsol sol1 = expl2.newSol(); sol1.addVar( x1, 1.0 ); expl2.addMIPSol( sol1 );
See Also
© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the
property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not
convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except
solely for internal evaluation purposes to determine whether to purchase a license to the software
described in this documentation, or as otherwise set forth in a written software license agreement
between you and FICO (or a FICO affiliate). Use of this documentation and the software described in
it must conform strictly to the foregoing permitted uses, and no other use is permitted.