IloNumExpr | +--IloNumVar
使用 "IloNumVar对象隐含地提供了对其 "solutionValue属性的访问。 后处理表达式
x*100等效于
x.solutionValue* 100其中 "
x被声明为dvar float x;在建模部分。
dvar float x in 0...20;
maximize x;
subject to {
}
execute {
writelnx.name);
writeln(x.LB," ",x.UB," '",x.solutionValue);
writelnx.reducedCost);
}x 0 20 20 1
| 字段属性 | 字段名称和说明 |
|---|---|
| 全部(只读) 预处理(写) |
决策变量的分支方向(仅限 CPLEX 模型)。
|
| 所有 预处理(写) |
访问决策变量的下限值。
|
| 全部(只读) 预处理(写) |
访问决策变量的优先级(仅限 CPLEX 模型)。
|
| 后处理 |
决策变量的降低成本(仅限 CPLEX 模型)。
|
| 所有 预处理(写) |
访问决策变量的上限集。
|
| 名称、solutionValue |
"BranchDown", "BranchGlobal", "BranchUp".