Initializing help system before first use

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

Adds rows to the optimizer matrix.
Namespace: Optimizer
Assembly: xprsdn (in xprsdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntax
C#

    public void AddRows(
    	int nrows,
    	int ncoefs,
    	char[] rowtype,
    	double[] rhs,
    	int[] start,
    	int[] colind,
    	double[] rowcoef
    )

#### Parameters

nrows Int32
  Number of new rows.
ncoefs Int32
  Number of new nonzeros in the added rows.
rowtype 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 Double
  Double array of length nrows containing the right hand side elements.
start Int32
  Integer array of length nrows containing the offsets in the colind and rowcoef arrays of the start of the elements for each row. May be null if none of the rows contain nonzero coefficients.
colind Int32
  Integer array of length ncoefs containing the (contiguous) column indices for the elements in each row. May be null if none of the rows contain nonzero coefficients.
rowcoef Double
  Double array of length ncoefs containing the (contiguous) element values. May be null if none of the rows contain nonzero coefficients.

Remarks
Examples using AddRows:

- GoalProg.cs
- LoadLP.cs

See Also

#### Reference

XPRSprob Class
AddRows Overload
Optimizer Namespace
Parent Topic AddRows Method

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