XPRSfixglobal

FIXGLOBAL


Purpose
Fixes all the global entities to the values of the last found MIP solution. This is useful for finding the reduced costs for the continuous variables after the global variables have been fixed to their optimal values.
Synopsis
int XPRS_CC XPRSfixglobal(XPRSprob prob);
FIXGLOBAL
Argument
prob 
The current problem.
Example 1 (Library)
This example performs a global search on problem myprob and then uses XPRSfixglobal before solving the remaining linear problem:
XPRSreadprob(prob,"myprob","");
XPRSminim(prob,"g");
XPRSfixglobal(prob);
XPRSminim(prob,"l");
XPRSwriteprtsol(prob);
Example 2 (Console)
A similar set of commands at the console would be as follows:
READPROB 
MINIM -g
FIXGLOBAL
MINIM -l
PRINTSOL
Further information
This command is useful for inspecting the reduced costs of the continuous variables in a matrix after the global entities have been fixed. Sensitivity analysis can also be performed on the continuous variables in a MIP problem using XPRSrange (RANGE) after calling XPRSfixglobal (FIXGLOBAL).
Related topics
XPRSglobal (GLOBAL), XPRSrange (RANGE).


If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.