Closed SalehCheikh closed 9 months ago
It sounds like ipopt is not on your PATH. Can you try setting the path to ipopt manually with
from pyomo.common.fileutils import Executable
Executable('ipopt').set_path('../esesoft/ipopt_latest/ipopt-linux64/ipopt')
(before creating / invoking MindtPy)?
It sounds like ipopt is not on your PATH. Can you try setting the path to ipopt manually with
from pyomo.common.fileutils import Executable Executable('ipopt').set_path('../esesoft/ipopt_latest/ipopt-linux64/ipopt')
(before creating / invoking MindtPy)?
Thank you, it actually solved my issue
Summary
I am using pyomo to optimize a MINLP using Mindtpy solver
Steps to reproduce the issue
Error Message
Information on your system
Pyomo version: 6.4.0 Python version: 3.9.18 Operating system: Linux How Pyomo was installed (PyPI, conda, source): pip Solver (if applicable): Mindtpy
Additional information
I am using pyomo to optimize a MINLP model using Mindtpy. Using Mindtpy solver on Windows 64 is executed with no problem. The problem happens on Linux operation system with error message (No executable found for solver 'ipopt'). Even tried to change the path of ipopt in 'nlp_solver' to the corresponding directory, the problem still happens :
results = opt.solve(instance, mip_solver='glpk', nlp_solver= '../esesoft/ipopt_latest/ipopt-linux64/ipopt', tee=False)