(function from pyomo.contrib.pyros.util)
pyomo.contrib.pyros.util
Validate deterministic model passed to PyROS solver.
model (ConcreteModel) – Deterministic model. Should have only one active Objective.
config (ConfigDict) – PyROS solver options.
The variables participating in the active Objective and Constraint expressions of model.
ComponentSet
TypeError – If model is not of type ConcreteModel.
ValueError – If model does not have exactly one active Objective component.