ILOG CPLEX .NET Reference Manual

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

Adds new columns to the LP matrix.

int AddCols(
   INumVar[] var,
   int[][] indices,
   double[][] values
);

Parameters

var
An array of variables to be linked to the new columns.
indices
An array or arrays of row indices of the nonzeros of the new columns. An index must appear at most one time in each column and must be in the range 0(zero) through getNrows()-1.
values
An array or arrays containing the corresponding values of the nonzeros of the columns to be added.

Return Value

The column index of the first added column.

Remarks

The columns being added are represented in sparse matrix notation. That is, the nonzero coefficients of the j-th new column to be added are provided by array ind[j] containing the row indices, and by array val[j] containing corresponding values. Each pair of arrays ind[j] and val[j] must match in length.

The added columns will be linked to the variables provided as 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.

See Also

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