XPRBfixglobals
XPRBfixglobals |
Purpose
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