ILOG CPLEX .NET Reference Manual

IMPModeler.ColumnArray Method (ILPMatrix, Int32, Int32[][], Double[][])

Creates an ColumnArray object suitable for adding new variables to an ILPMatrix as columns.

ColumnArray ColumnArray(
   ILPMatrix lp,
   int num,
   int[][] ind,
   double[][] val
);

Parameters

lp
The ILPMatrix object for which to create the new column array term.
num
The size of the column array term to create or, equivalently, the number of consecutive elements in ind and val to use.
ind
An array of arrays of row indices of the nonzeros for each of the new columns. Indices may not occur multiple times within one column, and they must be in the range 0 through lp.GetNcols()-1.
val
An array of arrays of values of the nonzeros for each of the new columns.

Return Value

An ColumnArray object suitable for creating new columns in the LP matrix lp as specified by arguments ind and val.

Remarks

The procedure is as follows: You create an ColumnArray from an ILPMatrix by calling columnArray() with the list of nonzeros for each new column given in arrays ind and val. You optionally combine this column array with ColumnArray objects created for other modeling objects. Then you create an array of variables by passing the so constructed ColumnArray object to the appropriate method of the IMPModeler you use.

See Also

IMPModeler Interface | ILOG.Concert Namespace | IMPModeler.ColumnArray Overload List