我一直在尝试使用cplex和pyomo来解决一些LP,但是在运行时发现了以下错误消息[ 0.00] Setting up Pyomo environment
[ 0.00] Applying Pyomo preprocessing actions
[ 0.00] Creating model
[ 0.02] Applying solver
The license for this version of CPLEX has expired.
ERROR: "[base]/site-packages/pyomo/opt/base/solvers.py", 568, solve
Solver (cplex) returned non-zero return code (64)
ERROR: "[base]/site-packages/pyomo/opt/base/solvers.py", 571, solve
See the solver log above for diagnostic information.
[ 0.03] Pyomo Finished
ERROR: Unexpected exception while running model:
Solver (cplex) did not exit normally
此外,我意识到在终端输入“cplex”时,答案是
The license for this version of CPLEX has expired.
不过,我只是下载了Cplex的学术版IBM ILOG CPLEX优化工作室12.7
当使用oplide运行OPL模型时,以及在运行解算器附带的示例时,该解算器可以工作。在
在安装这个版本之前,我卸载了以前的cplex。
我不知道该怎么做,希望你能指导我。在