[Ipopt-tickets] [Ipopt] #302: Pyomo or Ipopt issue ?
Ipopt
coin-trac at coin-or.org
Tue Mar 20 09:54:58 EDT 2018
#302: Pyomo or Ipopt issue ?
-------------------+------------------------
Reporter: maajdl | Owner: ipopt-team
Type: defect | Status: new
Priority: normal | Component: Ipopt
Version: 3.11 | Severity: normal
Keywords: |
-------------------+------------------------
Attached is a pickle file of a Pyomo concrete model .
The Pyomo snippet below will load and solve the model without problem.
Removing the "option 2" line will lead to an exception.
Then removing the "option 1" line will remove this exception.
Maybe that's an ipopt problem?
{{{
import sys
import pickle
from pyomo.environ import *
print(sys.getrecursionlimit())
sys.setrecursionlimit(10000)
print(sys.getrecursionlimit())
pickle_in = open("model.pickle","rb")
mdl = pickle.load(pickle_in)
solver = SolverFactory("ipopt")
solver.options["halt_on_ampl_error"] = "yes" # option 1
solver.options["print_level"] = 1 # option 2
solver.solve(mdl)
}}}
--
Ticket URL: <https://projects.coin-or.org/Ipopt/ticket/302>
Ipopt <http://projects.coin-or.org/Ipopt>
Interior-point optimizer for nonlinear programs.
More information about the Ipopt-tickets
mailing list