ILOG CPLEX .NET Reference Manual

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

Creates an Column object suitable for adding a new variable to an LP matrix as a new column.

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

Parameters

lp
The ILPMatrix object for which to create the new column.
ind
An array containing the indices indicating the row indices of the nonzeros in the new column. Indices may not occur multiple times in this list and must be in the range 0 through lp.GetNcols()-1.
val
An array containing values indicating the value of the nonzero entries for the column.
start
The index of the first element in arrays ind and val to use.
num
The number of consecutive elements in arrays ind and val to use.

Return Value

An Column object suitable for creating a new column in lp with nonzeros as specified in arguments ind and val.

Remarks

Note, that the column of the LP matrix is only created when creating a variable with the returned Column object but not when calling this method.

See Also

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