Initializing help system before first use

XPRSdelrows

Purpose
Delete rows from a matrix.
Topic area
Synopsis
int XPRS_CC XPRSdelrows(XPRSprob prob, int nrows, const int rowind[]);
Arguments
prob 
The current problem.
nrows 
Number of rows to delete.
rowind 
An integer array of length nrows containing the rows to delete.
Example
In this example, rows 0 and 10 are deleted from the matrix:
rowind[0] = 0; rowind[1] = 10;
XPRSdelrows(prob,2,rowind);
Further information
1. After rows have been deleted from a problem, the numbers of the remaining rows are moved down so that the rows are always numbered from 0 to ROWS-1 where ROWS is the problem attribute containing the number of non-deleted rows in the matrix.
2. If the problem has already been optimized, or an advanced basis has been loaded, and you delete a row for which the slack column is non-basic, the current basis will no longer be valid - the basis is "lost". If you go on to re-optimize the problem, a warning message is displayed ( 140) and the Optimizer automatically generates a corrected basis.
You can avoid losing the basis by only deleting basic rows (see XPRSgetbasis), bringing a non-basic row into the basis first if necessary (see XPRSgetpivots and XPRSpivot).
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.