IloNumExpr
Using an IloNumExpr object
implicitly provides access to its solutionValue property.
The postprocessing expression
x*100is equivalent to
x.solutionValue * 100where
x has been declared as
dvar float x0; dexpr float x = x0+1;in the modeling part.
dvar float x0 in 0..20;
dexpr float x = x0+1;
maximize x;
subject to {
}
execute {
writeln(x.name);
writeln(x.solutionValue);
}x 21
| Field Attributes | Field Name and Description |
|---|---|
| all (read only) preprocessing (write) |
The name of the decision expression.
|
| postprocessing |
Values of the decision expression in the current solution.
|
IloNumExpr object
implicitly provides access to its solutionValue property.