AMPL IDE does not work for cplex

9 views
Skip to first unread message

nys

unread,
Jul 21, 2017, 10:26:55 AM7/21/17
to AMPL Modeling Language
I've tried an example in using cplex via AMPL IDE Version: 3.1.0.201510231950.
Here is my commands:

ampl: model 'lp.mod';
ampl: option solver cplex;
ampl: solve;

Incorrect usage. Correct command syntax is:
   cplex [-i] [-f <commandfile> | -c "<command1>" "<command2>" ...]
Exiting
Error executing "solve" command:
can't open C:\Users\nys\AppData\Local\Temp\at2384.sol

The same command works well in ampl console as:
ampl: option solver cplex;
ampl: solve;
CPLEX 12.7.1.0: optimal solution; objective 0
0 simplex iterations (0 in phase I)

PS: it works also fine for other solvers as gurobi in IDE:
ampl: option solver gurobi;
ampl: solve;
Gurobi 7.5.0: optimal solution; objective 0

So, I guess that this could be a bug in ampl ide. Any suggestion? Thanks in advance!

ptiwari

unread,
Jul 21, 2017, 12:55:09 PM7/21/17
to AMPL Modeling Language
Can you send us the model file?

Thanks,
Paras
Reply all
Reply to author
Forward
0 new messages