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

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

Syntax

C#
INumVar[] NumVarArray(
	int n,
	double lb,
	double ub,
	string[] name
)
Visual Basic
Function NumVarArray ( _
	n As Integer, _
	lb As Double, _
	ub As Double, _
	name As String() _
) As INumVar()

Parameters

n
Type: System..::..Int32
lb
Type: System..::..Double
The lower bound of the new modeling variable.
ub
Type: System..::..Double
The upper bound of the new modeling variable.
name
Type: array<System..::..String>[]()[][]
The names of the new modeling variables. Variable i is assigned the name name[i].

Return Value

The array of new modeling variables.

Remarks

This method creates n new modeling variables of type NumVarType.Float, each with the same specified bounds, and returns them in an array. Each new variable is assigned a name, where variable i is assigned the name name[i].

See Also