No response when using CPLEX solver option

139 views
Skip to first unread message

omerk...@gmail.com

unread,
Apr 24, 2019, 9:11:39 AM4/24/19
to AMPL Modeling Language
I have Demo Package of AMPL 

when I enter those lines:
ampl: model diet.mod ;
ampl: data diet.dat ;
ampl: option solver cplex;
ampl: solve;

The IDE become busy and the command window becomes like that :

sdsdas.JPG

when I hit interrupt I get this break error code:

 exit value 18446744072635810106
<BREAK>

what should I do? It works well with the default solver 

AMPL Google Group

unread,
Apr 24, 2019, 10:55:37 AM4/24/19
to Ampl Modeling Language
We do not have any previous reports of this problem. To help us investigate, please try running the Gurobi solver,

option solver gurobi;
solve;

and the Xpress solver,

option solver xpress;
solve;

Report whether these solvers are successful in returning a solution. Also report which demo package (Windows 32-bit or 64-bit, Linux 32-bit or 64-bit, macOS) you downloaded.

--
Robert Fourer
am...@googlegroups.com
{#HS:835948106-42004#}

Omer Khater

unread,
Apr 24, 2019, 10:59:25 AM4/24/19
to AMPL Modeling Language
I am using windows 64-bit package. The mentioned solvers are working. 

when I entered option solver cplexamp; which I read on cplex documentation it outputs; 
cplexamp: CPLEX Error 32201: ILM Error 16: CPLEX: license file not found or unreadable.

AMPL Google Group

unread,
Apr 25, 2019, 2:41:45 PM4/25/19
to Ampl Modeling Language
The "cplexamp" program is a version of CPLEX for AMPL that comes with IBM's CPLEX distribution. The "license file not found" error that you are seeing is from an old IBM license manager, which no longer works. Also in the IBM CPLEX distribution there is a program called "cplex" which is unrelated to AMPL and will cause errors if you try to run "option solver cplex;".

You can try instead to specify our CPLEX for AMPL explicitly, for example with the following command typed in the IDE:

option solver '..\cplex';

Or you can give a full pathname, as in

option solver 'C:\Users\yourname\AMPL\cplex';

but substituting the pathname of your own AMPL folder. Once you have verified that this works, you can fix the problem permanently by removing the old CPLEX distribution (or moving it out of your system search path).

--
Robert Fourer
am...@googlegroups.com
{#HS:835948106-42004#}
On Wed, Apr 24, 2019 at 2:59 PM UTC, Ampl Modeling Language <am...@googlegroups.com> wrote:
I am using windows 64-bit package. The mentioned solvers are working.

when I entered option solver cplexamp; which I read on cplex documentation it outputs;
cplexamp: CPLEX Error 32201: ILM Error 16: CPLEX: license file not found or unreadable.


On Wed, Apr 24, 2019 at 2:55 PM UTC, AMPL Google Group <am...@googlegroups.com> wrote:
We do not have any previous reports of this problem. To help us investigate, please try running the Gurobi solver,

option solver gurobi;
solve;

and the Xpress solver,

option solver xpress;
solve;

Report whether these solvers are successful in returning a solution. Also report which demo package (Windows 32-bit or 64-bit, Linux 32-bit or 64-bit, macOS) you downloaded.

--
Robert Fourer
am...@googlegroups.com

Omer Khater

unread,
Apr 25, 2019, 8:08:15 PM4/25/19
to AMPL Modeling Language
Thank you very much for your effort. This works with me.
Reply all
Reply to author
Forward
0 new messages