Download ILOG AMPL CPLEX System Version 8.1 User's Guide

Transcript
SENSITIVITY RANGING
Sensitivity ranging
When the sensitivity directive (described in Directives for controlling output on page 43) is
included in CPLEX's option list, classical sensitivity ranges are computed and are returned
in the following three suffixes:
.current
.down
.up
Let us illustrate the use of these suffixes using an example model from Section 4.3 of the
AMPL book:
ampl:
ampl:
ampl:
ampl:
ampl:
model steelT.mod;
data steelT.dat;
option solver cplexamp;
option cplex_options 'sensitivity';
solve;
suffix up OUT;
suffix down OUT;
suffix current OUT;
The three lines at the end show the suffix commands executed by AMPL in response to the
results from CPLEX. These commands are invoked automatically; you do not need to type
them.
For variables, suffix .current indicates the objective function coefficient in the current
problem, while .down and .up give the smallest and largest values of the objective
coefficient for which the current simplex basis remains optimal. (CPLEX returns -1e+20
for .down and 1e+20 for .up to indicate minus infinity and plus infinity, respectively.)
ampl: display Sell.down, Sell.current,
ampl? Sell.up;
:
bands
bands
bands
bands
coils
coils
coils
coils
;
1
2
3
4
1
2
3
4
Sell.down Sell.current
23.3
25
25.4
26
24.9
27
10
27
29.2857
30
33
35
35.2857
37
35.2857
39
Sell.up
1e+20
1e+20
27.5
29.1
30.8571
1e+20
1e+20
1e+20
:=
ILOG AMPL CPLEX SYSTEM 8.1 — USER’S GUIDE
67
Defined Suffixes for
CPLEX
CPLEX 8.1: sensitivity
CPLEX 8.1: optimal solution; objective 515033
18 iterations (1 in phase I)