为什么每次尝试使用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发布于 2016-10-29 00:57:30
线程here建议您应该使用:
option solver cplexamp;而不是:
option solver cplex;它还说:
看起来像是在运行CPLEX的命令行版本,而不是CPLEX for AMPL。"cplexamp“是IBM分发的CPLEX-for-AMPL可执行文件的名称。
我没有亲自尝试过,但它是有意义的。
发布于 2017-01-26 10:08:28
你应该写"cplex“而不是"Cplex",因为AMPL区分大小写
https://stackoverflow.com/questions/40309613
复制相似问题