problem.presolveRow
Purpose
Presolves a row formulated in terms of the original variables such that it can be added to a presolved matrix.
Topic areas
Misc, Presolve, Optimizer
Synopsis
colind, rowcoef, rhs, status = problem.presolveRow(rowtype, origcolind, origrowcoef, origrhs)
Arguments
|
rowtype
|
The type of the row:
|
||||||
|
origcolind
|
Integer array containing the column indices of the row to presolve.
|
||||||
|
origrowcoef
|
Double array containing the non-zero coefficients of the row to presolve.
|
||||||
|
origrhs
|
The right-hand side constant of the row to presolve.
|
Related controls
Integer
|
Turns presolve on or off.
|
|
|
Selects the presolve operations.
|
Return value
|
colind
|
|||||||||||||||
|
rowcoef
|
|||||||||||||||
|
rhs
|
The presolved right-hand side.
|
||||||||||||||
|
status
|
Status of the presolved row:
|
Further information
1. There are certain presolve operations that can prevent a row from being presolved exactly. If the row contains a coefficient for a column that was eliminated due to duplicate column reductions or singleton column reductions, the row might have to be relaxed to remain valid for the presolved problem. The relaxation will be done automatically by the problem.presolveRow function, but a return status of
+1 will be returned. If it is not possible to relax the row, a status of
-2 will be returned instead. Likewise, it is possible that certain dual reductions prevents the row from being presolved. In such a case a status of -3 will be returned instead. Also transforming a convex quadratic objective transfer row to a convex quadratic objective and nonlinear eliminations will lead to a row not being presolved and return a status of -5 instead.
2. If
problem.presolveRow will be used for presolving hard constraints, such as e.g. branching bounds or delayed constraints, then dual reductions should be disabled, by setting
MIPDUALREDUCTIONS to 0.
3. If the user knows in advance which columns will have non-zero coefficients in rows that will be presolved, it is possible to protect these individual columns through the
problem.loadSecureVecs function. This way the Optimizer is left free to apply all possible reductions to the remaining columns.
Related topics
© 2001-2026 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.
