为什么每次我尝试使用 CPLEX 求解模型时都会收到以下消息:
ampl: option solver Cplex;
ampl: model Anchor_QP.mod;
ampl: solve;
Incorrect usage. Correct command syntax is:
Cplex
or
Cplex -f <commandfile>
or
Cplex -c "<command1>" "<command2>" ...
Exiting
Error executing "solve" command:
can't open C:\Users\ozgutr\AppData\Local\Temp\at16996.sol
最佳答案
线程here建议您应该使用:
option solver cplexamp;
而不是:
option solver cplex;
它还说:
Looks like you are running a command-line version of CPLEX rather than CPLEX for AMPL. "cplexamp" is the name of the CPLEX-for-AMPL executable distributed by IBM.
我个人没有尝试过,但这是有道理的。
关于cplex - Ampl Cplex 解决错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40309613/