infinity
OPL keyword to represent the infinity symbol.
| context |
|---|
| Model files (.mod) |
Syntax
LiteralExpression: "(integer-literal)"
| "(float-literal)"
| "(boolean-literal)"
| "(string-literal)"
| "infinity"
| "maxint"
Description
OPL has a predefined float constant, infinity, to represent the IEEE infinity symbol ∞.
Example
dvar float x in 2..infinity;
CPLEX infinity value
For CPLEX, the value of "infinity" is 1e+20. When CPLEX encounters a larger value, it silently truncates the value to 1e+20.
See the note in Examining the results and the data for more information.