Initializing help system before first use

XPRBfixglobals

XPRBfixglobals


Purpose
Fixes all the global entities to the values of the last found MIP solution.
Synopsis
int XPRBfixglobals(XPRBprob prob, int ifround);
Arguments
prob 
Reference to a problem.
ifround 
If all global entities should be rounded to the nearest discrete value in the solution before being fixed.
Return value
0 if function executed successfully, 1 otherwise.
Example
Performs a global search on problem expl2 and then uses XPRBfixglobals before solving the remaining linear problem.
XPRBprob expl2;
   ...
XPRBmipoptimize(expl2, "");
XPRBfixglobals(expl2, 1);
XPRBlpoptimize(expl2, "");
XPRBwriteprtsol(expl2);
Further information
1. This is useful e.g. for finding the reduced costs for the continuous variables after the global variables have been fixed to their optimal values. The global variables are fixed to the value of the MIP solution only in the Optimizer (not in BCL).
2. In order to eventually resync the bounds of global variables to their original values defined in BCL (i.e. unfix them), a call to XPRBsync with the flag XPRB_XPRS_PROB can be used.
Related topics

© 2001-2019 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.