ipopt_solve_with_stats

(function from pyomo.contrib.parmest.utils.ipopt_solver_wrapper)

pyomo.contrib.parmest.utils.ipopt_solver_wrapper.ipopt_solve_with_stats(model, solver, max_iter=500, max_cpu_time=120)[source]

Run the solver (must be ipopt) and return the convergence statistics

Parameters:
  • model (Pyomo model) – The pyomo model to be solved

  • solver (Pyomo solver) – The pyomo solver to use - it must be ipopt, but with whichever options are preferred

  • max_iter (int) – The maximum number of iterations to allow for ipopt

  • max_cpu_time (int) – The maximum cpu time to allow for ipopt (in seconds)

Return type:

Returns a tuple with (solve status object, bool (solve successful or not), number of iters, solve time, regularization value at solution)