ILOG CPLEX .NET Reference Manual

ILPMatrix.AddRows Method (IRange[], Int32, Int32)

Adds a set of range constraints as new rows to an LP matrix.

int AddRows(
   IRange[] rng,
   int start,
   int num
);

Parameters

rng
An array containing the range constraints to be added as new rows.
start
The index of the first range in rng to be added as a new row.
num
The number of consecutive ranges in rng to be added as new rows.

Return Value

The row index of the first added row.

Remarks

The ranges to be added must all have linear expressions. The added rows of the LP matrix will contain the linear terms of the range expression as nonzeros. If the expression of a ranged constraint being added contains variables that do not correspond to columns of the invoking ILPMatrix, new columns are automatically added as needed.

See Also

ILPMatrix Interface | ILOG.Concert Namespace | ILPMatrix.AddRows Overload List