Purpose
Specifies that a set of
rows in the
matrix will be treated as model
cuts.
Synopsis
int XPRS_CC XPRSloadmodelcuts(XPRSprob prob, int nmod, const int mrows[]);
Arguments
prob
|
The current problem.
|
nmod
|
The number of model cuts.
|
mrows
|
An array of row indices to be treated as cuts.
|
Error value
|
Cannot perform operation on presolved matrix.
|
Example
This sets the first six matrix rows as model cuts in the global problem
myprob.
int mrows[] = {0,1,2,3,4,5}
...
XPRSloadmodelcuts(prob,6,mrows);
XPRSminim(prob,"g");
Further information
1. During presolve the model cuts are removed from the matrix. Following
optimization, the violated model cuts are added back into the matrix and the matrix re-optimized.
This continues until no violated cuts remain.
2. The model cuts must be "true" model cuts, in the sense that they are redundant
at the optimal MIP solution. The Optimizer does not guarantee to add all violated model cuts, so
they must not be required to define the optimal MIP solution.
Related topics
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.