Adds range constraints as new rows to an LP matrix.

Namespace: ILOG.Concert
Assembly: ILOG.CPLEX (in ILOG.CPLEX.dll) Version: 22.1.1.0

Syntax

C#
int AddRows(
	IRange[] rng
)
Visual Basic
Function AddRows ( _
	rng As IRange() _
) As Integer

Parameters

rng
Type: array<ILOG.Concert..::..IRange>[]()[][]
The array of range constraints 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