can't open C:\Users\PC\AppData\Local\Temp\at11232.sol

382 views
Skip to first unread message

Shrinivas Petale

unread,
Dec 2, 2019, 10:59:50 AM12/2/19
to AMPL Modeling Language
Hi,

I was able to run the attached files before. However, after installing IBM ILOG Cplex and Microsoft Visual Studios, I am getting the error message as "can't open C:\Users\srpet\AppData\Local\Temp\at11232.sol". What should I do?

Thanks in advance.
example1.mod
example1.run

AMPL Google Group

unread,
Dec 3, 2019, 5:32:55 AM12/3/19
to AMPL Modeling Language
Are you seeing a message like this?

Incorrect usage. Correct command syntax is:
cplex [-i] [-f <commandfile> | -c "<command1>" "<command2>" ...]

When you specify "option solver cplex;" under Windows, AMPL looks for a program named "cplex.exe" -- first in the same folder as the AMPL program ampl.exe, and then in your system search path. When you get the above message, it means that AMPL did not find our "CPLEX for AMPL" program but instead found the CPLEX Interactive Optimizer, which is a program also named cplex.exe that is part of IBM's CPLEX distribution.

You can fix this problem as follows:
  • If you downloaded cplex.exe from us, then use the Windows search feature to look for other cplex.exe files and rename or delete them.
  • If you are trying to use the "CPLEX for AMPL" that is distributed by IBM, specify "option solver cplexamp;" instead of "option solver cplex;".
If you see some other error message or continue to have problems, you can get more help by posting the entire transcript of your AMPL session, including all of the lines you typed and all of the messages that were displayed. You can copy the session and paste it into your email, or provide a screenshot.


--
Robert Fourer
am...@googlegroups.com
{#HS:1021334809-61817#}

Shrinivas Petale

unread,
Dec 3, 2019, 10:53:30 AM12/3/19
to am...@googlegroups.com
Hi,

I used the solution given in second bullet and it worked. Thanks a lot.

Regards,

Shrinivas

--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ampl+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ampl/reply-77152-1021334809-2885078194-1575369170-1512948390%40helpscout.net.


--
Thanks and Regards,

Shrinivas Petale
Graduate Research Assistant
School of Engineering and Applied Sciences (SEAS)
The George Washington University
Washington, DC, USA
Personal Website: Click Here
Reply all
Reply to author
Forward
0 new messages