SolverResolvable
(class from pyomo.contrib.pyros.config
)
- class pyomo.contrib.pyros.config.SolverResolvable(require_available=True, solver_desc='solver')[source]
Bases:
object
Callable for casting an object (such as a str) to a Pyomo solver.
- Parameters:
require_available (bool, optional) – True if available() method of a standardized solver object obtained through self must return True, False otherwise.
solver_desc (str, optional) – Descriptor for the solver obtained through self, such as ‘local solver’ or ‘global solver’. This argument is used for constructing error/exception messages.
- require_available
- solver_desc
- __init__(require_available=True, solver_desc='solver')[source]
Initialize self (see class docstring).
Methods
__init__
([require_available, solver_desc])Initialize self (see class docstring).
Return str briefly describing domain encompassed by self.
is_solver_type
(obj)Return True if object is considered a Pyomo solver, False otherwise.
Member Documentation