how to turn Cplex presolve off in AMPL

806 views
Skip to first unread message

SORA

unread,
Nov 7, 2009, 6:56:34 PM11/7/09
to AMPL Modeling Language
Hello,

I am using AMPL v10 together with CPLEX 11.
I meet the following problem:
I want to use CPLEX barrier algorithm without presolve in AMPL. I used
the commands as below

option solver cplexamp;
option presolve 0; <--- turn off AMPL presolve.
option show_stats 1;
option cplex_options ' baropt presolve=0 crossover=0 prestats=1
lpdisplay=1 ';
solve;

Then, I get the following output:

5255 variables, all linear
2626 constraints, all linear; 15689 nonzeros
1 linear objective; 5 nonzeros.

ILOG CPLEX 10.000, licensed to "university-edinburgh", options: e m b
q use=5
CPLEX 10.0.0: baropt
presolve=0
crossover=0
prestats=1
lpdisplay=1
Reduced presolve eliminated 72 rows and 2697 columns.
Reduced LP has 2554 rows, 2558 columns, and 7751 nonzeros.
Presolve time = 0.01 sec.
CPLEX 10.0.0: optimal solution; objective 5.494632119
7 barrier iterations; no basis.

Hence, it seems presolve still exists in CPLEX. I wonder how to turn
off it

Thank you very much in advance.

best regards,

Naiyuan

Paul

unread,
Nov 8, 2009, 10:55:13 AM11/8/09
to AMPL Modeling Language
I'm not sure, but try adding prereduce=0 to your solver options. (You
may also want aggregate=0 in the options.)

/Paul

SORA

unread,
Nov 8, 2009, 5:50:27 PM11/8/09
to AMPL Modeling Language
umm, it doesn't work. I have tried to put crossover=0, presolve=0,
prereduce=0, aggregate=0, aggfill=0 and dependency=0 in the options.
But the output
is still the same,

Here is the output:
5255 variables, all linear
2626 constraints, all linear; 15689 nonzeros
1 linear objective; 5 nonzeros.

ILOG CPLEX 10.000, licensed to "university-edinburgh", options: e m b
q use=5
CPLEX 10.0.0: baropt
crossover=0
presolve=0
prereduce=0
aggregate=0
aggfill=0
dependency=0
prestats=1
lpdisplay=1
Presolve time = 0.00 sec.
LP Presolve eliminated 72 rows and 2697 columns.
Reduced LP has 2554 rows, 2558 columns, and 7751 nonzeros.
Presolve time = 0.01 sec.
CPLEX 10.0.0: optimal solution; objective 5.494632119
7 barrier iterations; no basis.

Thank you very much indeed.

Naiyuan

Paul

unread,
Nov 9, 2009, 5:39:05 PM11/9/09
to AMPL Modeling Language
I asked someone at CPLEX. Turns out you cannot turn off presolve
completely when using the barrier optimizer -- it will do certain
presolve reductions regardless of the settings. (Partly this has to
do with ensuring that the LP feasible region has an interior before
trying to use an interior point method.)

Bottom line: you can either turn off all presolving and use a
different algorithm, or use the barrier algorithm and live with some
presolving.

/Paul

SORA

unread,
Nov 11, 2009, 12:46:26 PM11/11/09
to AMPL Modeling Language
Thank you very much for your kind help.

Sincerely,

Naiyuan
Reply all
Reply to author
Forward
0 new messages