I have recently tried to use the CPLEX solver to solve one of my Pyomo models. I first installed the community version that is available:https://pypi.org/project/cplex/ using
However, I am trying to switch to the academic license of the solver and I am facing several problems.
The main issue is that when I call
SolverFactory('cplex') I get the following error:
pyomo.common.errors.ApplicationError: No executable found for solver 'cplex'
If I use "cplex_direct" the solver works as expected but the community edition is used instead. I also tried running the
setup.py script available at
/Applications/CPLEX_Studio221/cplex/python/3.9/x86-64_osx but I could not fix the problem. How do I resolve this?