I want to use docplex to solve a MIP model locally but error.
mdl = Model('name', agent='local')
docplex.mp.utils.DOcplexException: No CPLEX DLL and no DOcplexcloud credentials: model cannot be solved!
my python version is 3.6.6, the version of docplex is 2.8.125, CPLEX is 12.8(academics) and I use Pycharm to run code.
setup.py
has been run successfully with python setup.py install
.
I also use <cosdir>/<cplexdir>/python/<python_version>/<platform>
to my PYTHONPATH
with
sys.path.append(r'C:\ProgramFiles\IBM\ILOG\CPLEX_Studio_Community128\cplex\python\3.6\x64_win64')
in Pycharm.
but they seem to be useless, is there any wrong in my operation?