Creates an ColumnArray object suitable for adding new
variables to an ILPMatrix as columns.
Namespace: ILOG.Concert
Assembly: ILOG.CPLEX (in ILOG.CPLEX.dll) Version: 22.1.1.0
Syntax
| C# |
|---|
ColumnArray ColumnArray( ILPMatrix lp, int num, int[][] ind, double[][] val ) |
| Visual Basic |
|---|
Function ColumnArray ( _ lp As ILPMatrix, _ num As Integer, _ ind As Integer()(), _ val As Double()() _ ) As ColumnArray |
Parameters
- lp
- Type: ILOG.Concert..::..ILPMatrix
The ILPMatrix object for which to create the new column array term.
- num
- Type: System..::..Int32
The size of the column array term to create or, equivalently, the number of consecutive elements in ind and val to use.
- ind
- Type: array<array<System..::..Int32>[]()[][]>[]()[][]
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
- Type: array<array<System..::..Double>[]()[][]>[]()[][]
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.