fixglobal
fixglobal |
Purpose
Synopsis
procedure fixglobal
procedure fixglobal(ifrnd:boolean)
Argument
ifrnd
|
if
true, integer solution values are rounded
|
Example
Solve the MIP problem, reload the problem after solving, fix global entities to their solution values, and finally solve the LP for the continous variables in order to be able to use
getrange.
minimize(obj) fixglobal minimize(XPRS_LIN, obj) writeln(getrange(XPRS_UPACT,x))
Further information
1. This procedure fixes the non-continuous variables to their value of the current solution. A call to this function is required when performing sensitivity analysis on MIP problems using
getrange.
2. The first form of the procedure corresponds to
fixglobal(false).
Related topics
Module