I've found that AMPL IDE Version: 3.1.0.201510231950 does not work with cplex solver, here is my commands:
--
The same commands work fine in console mode as:
So I guess it could be a bug in AMPL IDE. Any suggestion? Thanks in advance! 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 [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/ampl. For more options, visit https://groups.google.com/d/optout. |
Our Windows CPLEX for AMPL is distributed as an executable file cplex.exe. But IBM's CPLEX distribution also contains a cplex.exe, which is the executable for a simple CPLEX command interface that is unrelated to AMPL; the "Incorrect usage ..." error message comes from that IBM cplex.exe. When you have two (or more) cplex.exe files on your computer, the AMPL IDE may not run the one that you intend, depending on where the files are located and how the Path environment variable is set.
You could try this quick fix. Use the Windows search feature to look for "cplex.exe" files on your computer. Identify the one that is in a subfolder of the IBM CPLEX distribution, and rename it to something else (say, cplex0.exe). Bob Fourer [hidden email] ======= From: [hidden email] [mailto:[hidden email]] On Behalf Of Kaien Nicola Sent: Friday, July 21, 2017 8:24 AM To: AMPL Modeling Language Subject: [AMPL 14511] AMPL IDE does not work with cplex I've found that AMPL IDE Version: 3.1.0.201510231950 does not work with cplex solver, 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 commands work fine in console mode as: ampl: option solver cplex; ampl: solve; CPLEX 12.7.1.0: optimal solution; objective 0 0 simplex iterations (0 in phase I) Switching to other solvers as gurobi in IDE works also fine as: ampl: option solver gurobi; ampl: solve; Gurobi 7.5.0: optimal solution; objective 0 So I guess it could be a bug in AMPL IDE. Any suggestion? Thanks in advance! -- 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 [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/ampl. For more options, visit https://groups.google.com/d/optout. |
In reply to this post by Kaien Nicola
Dear Prof. Fourer, That's really the path problem. I've fixed it. Thanks a lot for your reply. 在 2017年7月21日星期五 UTC+8下午9:24:09，niuys写道：
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 [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/ampl. For more options, visit https://groups.google.com/d/optout. |
In reply to this post by Kaien Nicola
Yes, niyus thank you for your reply too.
-- And warm thank you to Prof. Fourer. On Friday, 21 July 2017 18:54:09 UTC+5:30, niuys wrote:
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 [hidden email]. To post to this group, send email to [hidden email]. Visit this group at https://groups.google.com/group/ampl. For more options, visit https://groups.google.com/d/optout. |
Free forum by Nabble | Edit this page |