ILOG CPLEX .NET Reference Manual

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

Adds a new column to an LP matrix.

int AddColumn(
   INumVar var,
   int[] ind,
   double[] val
);

Parameters

var
The variable to be linked with the added column.
ind
An array of row indices of the nonzeros of the new column. An index must appear at most one time and must be in the range 0 through getNrows()-1.
val
An array of the corresponding values of the nonzeros of the column to be added.

Return Value

The column index of the added column.

Remarks

The column being added is represented in sparse matrix notation. The nonzero coefficients of the new column are given as an array ind of row indices, and an array of corresponding values val. These arrays must match in length.

The added column is linked to the variable provided as parameter var. This variable must not originally be linked to a column of the invoking LP matrix.

See Also

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