Initializing help system before first use

PresolveRow Method (Char, Int32, Int32[], Double[], Double, Int32, Int32, Int32[], Double[], Double, Int32)

Presolves a row formulated in terms of the original variables such that it can be added to a presolved matrix.

Namespace:   Optimizer
Assembly:  xprsdn (in xprsdn.dll) Version: 44.01.04
Syntax
C#
public void PresolveRow(
	char rowtype,
	int norigcoefs,
	int[] origcolind,
	double[] origrowcoef,
	double origrhs,
	int maxcoefs,
	out int p_ncoefs,
	int[] colind,
	double[] rowcoef,
	out double p_rhs,
	out int p_status
)

Parameters

rowtype
Type:  System.Char
The type of the row:
  • L: indicates a <= row;
  • G: indicates a >= row.
norigcoefs
Type:  System.Int32
Number of elements in the origcolind and origrowcoef arrays.
origcolind
Type:  System.Int32
Integer array of length norigcoefs containing the column indices of the row to presolve.
origrowcoef
Type:  System.Double
Double array of length norigcoefs containing the non-zero coefficients of the row to presolve.
origrhs
Type:  System.Double
The right-hand side constant of the row to presolve.
maxcoefs
Type:  System.Int32
Maximum number of elements to return in the colind and rowcoef arrays.
p_ncoefs
Type:  System.Int32
Pointer to the integer where the number of elements in the colind and rowcoef arrays will be returned.
colind
Type:  System.Int32
Integer array which will be filled with the column indices of the presolved row. It must be allocated to hold at least COLS elements.
rowcoef
Type:  System.Double
Double array which will be filled with the coefficients of the presolved row. It must be allocated to hold at least COLS elements.
p_rhs
Type:  System.Double
Pointer to the double where the presolved right-hand side will be returned.
p_status
Type:  System.Int32
Status of the presolved row:
  • -3: Failed to presolve the row due to presolve dual reductions;
  • -2: Failed to presolve the row due to presolve duplicate column reductions;
  • -1: Failed to presolve the row due to an error. Check the Optimizer error code for the cause;
  • 0: The row was successfully presolved;
  • 1: The row was presolved, but may be relaxed.
Remarks
This function is used in the following examples:
  • TSP
See Also

© 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.