Initializing help system before first use

XPRSloadmodelcuts

Purpose
Specifies that a set of rows in the matrix will be treated as model cuts.
Topic areas
Synopsis
int XPRS_CC XPRSloadmodelcuts(XPRSprob prob, int nrows, const int rowind[]);
Arguments
prob 
The current problem.
nrows 
The number of model cuts.
rowind 
An array of row indices to be treated as cuts.
Error value
268 
Cannot perform operation on presolved matrix.
Example
This sets the first six matrix rows as model cuts in the MIP problem myprob.
int rowind[] = {0,1,2,3,4,5}
...
XPRSloadmodelcuts(prob,6,rowind);
XPRSmipoptimize(prob,"");
Further information
1. During presolve the model cuts are removed from the matrix and added to an internal cut pool. During the tree 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.
3. This function cannot be called while the current problem is being solved or when it is in an interrupted state. Use XPRSpostsolve to restore the problem to a non-solving state.
Related topics

© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.