Initializing help system before first use

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

Adds rows to the optimizer matrix.

Namespace:   Optimizer
Assembly:  xprsdn (in xprsdn.dll) Version: 44.01.01
Syntax
C#
public void AddRows(
	int nrows,
	int ncoefs,
	char[] rowtype,
	double[] rhs,
	double[] rng,
	int[] start,
	int[] colind,
	double[] rowcoef
)

Parameters

nrows
Type:  System.Int32
Number of new rows.
ncoefs
Type:  System.Int32
Number of new nonzeros in the added rows.
rowtype
Type:  System.Char
Character array of length nrows containing the row types:
  • L: indicates a <= row;
  • G: indicates >= row;
  • E: indicates an = row.
  • R: indicates a range constraint;
  • N: indicates a nonbinding constraint.
rhs
Type:  System.Double
Double array of length nrows containing the right hand side elements.
rng
Type:  System.Double
Double array of length nrows containing the row range elements. This may be null if there are no ranged constraints. The values in the rng array will only be read for R type rows. The entries for other type rows will be ignored. The lower bound on a range row is the right hand side value minus the range value. The sign of the range value is ignored - the absolute value is used in all cases.
start
Type:  System.Int32
Integer array of length nrows containing the offsets in the colind and rowcoef arrays of the start of the elements for each row.
colind
Type:  System.Int32
Integer array of length ncoefs containing the (contiguous) column indices for the elements in each row.
rowcoef
Type:  System.Double
Double array of length ncoefs containing the (contiguous) element values.
Remarks
This function is used in the following examples:
  • GoalProg
  • LoadLP
See Also

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