Creates an array of length n initialized to n new modeling variables of type NumVarType.Float.

Namespace: ILOG.Concert
Assembly: oplall (in oplall.dll)

Syntax

C#
INumVar[] NumVarArray(
	int n,
	double[] lb,
	double[] ub
)

Parameters

n
Type: System..::..Int32
lb
Type: array<System..::..Double>[]()[][]
The lower bounds of the new modeling variable. Variable i will be constructed with a lower bound of lb[i].
ub
Type: array<System..::..Double>[]()[][]
The upper bounds of the new modeling variable. Variable i will be constructed with an upper bound of lb[i].

Return Value

The array of new modeling variables.

Remarks

This method creates n new modeling variables of the type NumVarType.Float, each with its own bounds, and returns them in an array. Variable i will be constructed with bounds lb[i] and ub[i].

See Also