Ranging report output to the cplex.opt

Solver related questions
Post Reply
pengyang70
User
User
Posts: 1
Joined: 1 week ago

Ranging report output to the cplex.opt

Post by pengyang70 » 1 week ago

Hi, Any guru has the solution to output ranging files for the MAC? I can not get my ranging report output to the cplex.opt. Here is the code I used:

model Invest /all/;
$onecho > cplex.opt
objrng all
rhsrng all
$offecho
Invest.OptFile=1;
solve Invest using lp maximizing z;

The cplex.opt only has two lines:

objrng all
rhsrng all

Here follows the log, it seems all right.
Reading parameter(s) from "/Users/cplex.opt"
>> objrng all
>> rhsrng all

Finished reading from "/Users/ypeng/Downloads/SMU/EMIS8378/Homework3/cplex.opt"

Reading data...

Starting Cplex...

Space for names approximately 0.00 Mb

Use option 'names no' to turn use of names off

CPXPARAM_Advance 0

CPXPARAM_Simplex_Display 2

CPXPARAM_Simplex_Limits_Iterations 2000000000

CPXPARAM_TimeLimit 1000

CPXPARAM_Threads 1

CPXPARAM_Parallel 1

CPXPARAM_Tune_TimeLimit 200

Tried aggregator 1 time.

LP Presolve eliminated 6 rows and 1 columns.

Reduced LP has 3 rows, 8 columns, and 14 nonzeros.

Presolve time = 0.00 sec. (0.00 ticks)

Initializing dual steep norms . . .




Iteration Dual Objective In Variable Out Variable

1 I 0.000000 y(1978) cf77 artif

2 1797600.000000 x(E) y(1978)

LP status(1): optimal

Cplex Time: 0.00sec (det. 0.01 ticks)

Optimal solution found.

Objective : 1797600.000000

RHS ranging...

Objective ranging...

--- Restarting execution

--- Mitchell.gms(66) 2 Mb

--- Reading solution for model Invest

*** Status: Normal completion

--- Job Mitchell.gms Stop 09/13/18 15:53:43 elapsed 0:00:00.108

User avatar
bussieck
Moderator
Moderator
Posts: 151
Joined: 2 years ago

Re: Ranging report output to the cplex.opt

Post by bussieck » 1 week ago

From the GAMS/Cplex docs (https://www.gams.com/latest/docs/S_CPLE ... PLEXobjrng): Range information will be printed to the beginning of the solution listing in the GAMS listing file unless option RngRestart is specified. Check your Mitchell.lst file. This should have a section after the solution report that ought to look similar to this:

Code: Select all

EQUATION NAME                                 LOWER      CURRENT        UPPER
-------------                                 -----      -------        -----
cost                                           -INF            0         +INF
supply(seattle)                                 300          350          625
supply(san-diego)                               550          600         +INF
demand(new-york)                                 50          325          375
demand(chicago)                                  25          300          350
demand(topeka)                                    0          275          325
  
 
VARIABLE NAME                                 LOWER      CURRENT        UPPER
-------------                                 -----      -------        -----
x(seattle, new-york)                          0.216        0.225        0.225
x(seattle, chicago)                               0        0.153        0.162
x(seattle, topeka)                            0.126        0.162         +INF
x(san-diego, new-york)                        0.225        0.225        0.234
x(san-diego, chicago)                         0.153        0.162         +INF
x(san-diego, topeka)                              0        0.126        0.162
z                                              -INF            1         +INF
-Michael

Post Reply