AMPL for Courses and CPLEX

138 views
Skip to first unread message

Michael Römer

unread,
Oct 17, 2011, 2:10:38 PM10/17/11
to AMPL Modeling Language
We have just obtained AMPL for Courses for our current optimization
course. Thank you! It works great with Gurobi, but for CPLEX, we get
the following error message:

CreateProcess("cplex") failure!

We have an Academic License for CPLEX 12.3. How can we get this
running?

Thank you very much,

Michael

Robert Fourer

unread,
Oct 17, 2011, 10:40:57 PM10/17/11
to am...@googlegroups.com
If you had already installed some other version of CPLEX 12.3 before you
received AMPL for Courses, then AMPL might be finding an executable file
called "cplex" (Linux or MacOS) or "cplex.exe" (Windows) that is intended
for some other purpose. (AMPL tries to execute the first such file found in
the system search path.) You can check for this situation by specifying the
solver using a command of this form,

option solver "/usr/ampl/cplex";

where "/usr/ampl/cplex" is replaced by the explicit path to the CPLEX
executable file that you extracted from the AMPL for Courses zipfile.

If you do this and get the same failure, let us know which platform you're
running on, and whether it is 32-bit and 64-bit, and we can try to reproduce
the problem so as to fix it.

Bob Fourer
4...@ampl.com

Michael Römer

unread,
Oct 18, 2011, 4:41:56 AM10/18/11
to am...@googlegroups.com, 4...@ampl.com
Thank you for your answer, Bob.
We have a WinXP 32 system. AMPL grabs the correct cplex.exe from the zip, but the executable seems to be corrupted. When calling it from the shell, we get a popup that the exe is not a valid win32-application. Maybe the zip contains the 64 bit-executable? If you like, I can send you the exe and/or our ampl login.

Michael

Robert Fourer

unread,
Oct 20, 2011, 4:28:28 PM10/20/11
to am...@googlegroups.com

A problem preventing a proper mswin32 download in AMPL for Courses has been fixed, and all solvers in this program should now be fully available again.

 

Bob Fourer

4...@ampl.com

Reply all
Reply to author
Forward
0 new messages