Overview | Group | Tree | Graph | Index | Concepts |
The values in this enumeration determine the format in which constrained
floating-point variables are displayed. For example, the member function
IloSolver::setFloatDisplay
uses values from
this enumeration to determine how to display constrained floating-point
variables.
IlcStandardDisplay
is the default value. When a constrained
floating-point variable is displayed in this format, its minimal and maximal
values are rounded to the nearest value, and the variable is displayed as an
interval defined by these values, like this: [min max]
.
IlcIntScientific
displays a constrained floating-point
variable as an interval defined by its minimum and maximum values, like
this: [min max]
. The minimal value is rounded toward negative
infinity (-?); the maximal value is rounded toward positive infinity (+?).
The values min
and max
are displayed in scientific
notation d.ddde+dd
where d
represents a digit
and e
the base for exponentiation.
IlcIntFixed
displays a constrained floating-point variable
as an interval defined by its minimum and maximum values, like this:
[min max]
. The minimal value is rounded toward negative
infinity (-?); the maximal value is rounded toward positive infinity (+?).
The values min
and max
are displayed in
fixed-precision notation ddddd.dd
where d
represents a digit.
IlcBasScientific
displays a constrained floating-point
variable as an interval defined by a base and two other values: [base
+ [delta1 delta2]]
representing the interval [(base + delta1)
(base + delta2)]
. Two cases may arise: the interval contains an
integer; the interval does not contain an integer.
base
is this integer,
delta1
is negative, and
delta2
is positive.
base
represents the common part. For example, in
IlcBasScientific
, a constrained floating-point variable between
1.23456789
and
1.23456890
will be displayed like this:
[1.23456 + [0.78899999998900e-5..0.88999999999700e-5]]
If the minimal and maximal values are too far apart and consequently to
display a base makes no sense, then a constrained floating-point variable in
IlcBasScientific
format is displayed like this: [min
max]
.
IlcBasFixed
displays a constrained floating-point variable
as an interval defined by a base and two other values: [base + [delta1
delta2]]
. Two cases may arise: the interval contains an integer; the
interval does not contain an integer.
base
is this integer,
delta1
is negative, and
delta2
is positive. For example, in
IlcBasFixed
, a constrained floating-point variable between
0.99
and
1.01
will be displayed like this:
[1.0 + [-0.100000000000000089e-1..+0.10000000000000009e-1]]
base
represents the common part.If the minimal and maximal values are too far apart and consequently to
display a base makes no sense, then a constrained floating-point variable in
IlcBasFixed
format is displayed like this: [min
max]
.
See Also:
Fields |
---|
IlcStandardDisplay = 0 | |
IlcIntScientific = 1 | |
IlcIntFixed = 2 | |
IlcBasScientific = 3 | |
IlcBasFixed = 4 |