XPRSloadmodelcuts
XPRSloadmodelcuts |
Purpose
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); XPRSmipoptimize(prob,"");
Further information
1. During presolve the model cuts are removed from the matrix and added to an internal cut pool. During the global search, the Optimizer will regularly check this cut pool for any violated model cuts and add those that cuts off a node LP solution.
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