创建n 个新的数值变量对象,并以数组形式返回。
命名空间: ILOG.Concert
集合: ILOG.Concert(在ILOG.Concert.dll 中) 版本:22.1.0.0
语法
| C# |
|---|
INumVar[] NumVarArray( int n、 double[]lb、 double[]ub、 NumVarType[]类型、 string[]name ) |
| Visual Basic |
|---|
函数 NumVarArray( _ _ _ ) n 作为 整数, _ lb 为 双倍(), _ ub 为 双倍(), _ type 作为 NumVarType(), _ name 作为 字符串() _ )作为 INumVar() |
参数
- n
- 类型: 系统..::..Int32'
- lb
- 类型: array<系统..::..双'>[]()[][]'
新数值变量的下限。 变量i用下界lb[i] 构建。
- ub
- 类型: array<系统..::..双'>[]()[][]'
新数值变量的上限。 变量i用上界 ub[i] 构建。
- Type
- Type: array<ILOG.Concert..::..NumVarType>[]()[][]
The types of the new numeric variables. 变量i是用 type[i] 类型构造的。
- Name
- Type: array<系统..::..字符串>[]()[][]
The names of the new numeric variables. 变量i的名称为name[i]。