Unable to run CPLEX on Pulp in Python

半世苍凉 提交于 2020-06-17 09:18:46

问题


I am trying to use Pulp to setup my LP model and solve it using CPLEX solver. I have CPLEX installed with license on my laptop but getting the below error :

PulpSolverError: PuLP: cannot execute cplex.exe

回答1:


Make sure that cplex.exe is in your PATH (see Adding directory to PATH Environment Variable in Windows).

Alternately, you can set the path argument to the location of cplex.exe in the CPLEX_CMD constructor (see the source code).



来源:https://stackoverflow.com/questions/51275018/unable-to-run-cplex-on-pulp-in-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!