问题
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