ILOG CPLEX .NET Reference Manual

ILPMatrix.AddCols Method (INumVar[], Int32, Int32)

Adds new empty columns to the LP matrix.

int AddCols(
   INumVar[] var,
   int start,
   int num
);

Parameters

var
An array containing the variables to be added as columns.
start
The first variable in var to be added.
num
The number of variables in var to be added.

Return Value

The column index of the first added column.

Remarks

Empty columns have no nonzeros. The added columns will be linked to the variables provided in parameter var. These variables must not currently be linked to a column of the invoking LP matrix, nor may a variable be listed more than once in var[start], ... var[start+num-1].

See Also

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