PyomoRootSolver

(class from pyomo.contrib.pynumero.algorithms.solvers.scipy_solvers)

class pyomo.contrib.pynumero.algorithms.solvers.scipy_solvers.PyomoRootSolver(options=None)[source]

Bases: PyomoScipySolver

__init__(options=None)

Methods

__init__([options])

available([exception_flag])

create_nlp_solver(**kwds)

get_nlp()

get_pyomo_results(model, scipy_results)

license_is_valid()

set_options(options)

solve(model[, timer, tee])

version()

Member Documentation

solve(model, timer=None, tee=False)
Parameters:
  • model (BlockData) – The model that will be solved

  • timer (HierarchicalTimer) – A HierarchicalTimer that “sub-timers” created by this object will be attached to. If not provided, a new timer is created.

  • tee (Bool) – A dummy flag indicating whether solver output should be displayed. The current SciPy solvers supported have no output, so setting this flag does not do anything.

Returns:

Contains the results of the solve

Return type:

SolverResults