No executable found for solver ipopt
on Ubuntu 20.04
#958
-
I'm trying to install IDAES on the following system where Python is installed via Miniconda.
Following the steps in the IDAES documentation for Linux, I ran the following commands and didn't notice any errors during the installation.
Example Python script to run. from pyomo.environ import Objective, Constraint, value, SolverFactory
from pyomo.environ import ConcreteModel, Var
model = ConcreteModel()
model.x = Var()
model.y = Var()
model.obj = Objective(expr=model.x**2 + model.y**2)
model.con = Constraint(expr=model.x + model.y == 1)
status = SolverFactory('ipopt').solve(model, tee=True) # tee=True shows the solver log
print('x =', value(model.x))
print('y =', value(model.y))
print('obj =', value(model.obj)) Errors reported from running the example are shown below.
It looks like the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
Hi @wigging, can you try using |
Beta Was this translation helpful? Give feedback.
-
@wigging The issue is that the IDAES IPOPT solver is only available through IDAES (for licensing reasons). You can also fix the issue by doing |
Beta Was this translation helpful? Give feedback.
@wigging The issue is that the IDAES IPOPT solver is only available through IDAES (for licensing reasons). You can also fix the issue by doing
import idaes
at the beginingg of your script.