ILOG CPLEX .NET Reference Manual

ILPMatrix.AddRow Method (IRange)

Adds a range constraint as a new row to an LP matrix.

int AddRow(
   IRange rng
);

Parameters

rng
The range constraint that is to become the new row.

Return Value

The row index of the added row.

Remarks

The range to be added must have a linear expression. The added row of the LP matrix will contain the linear terms of the range expression as nonzeros. If the expression of the 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.AddRow Overload List