validate_model
(function from pyomo.contrib.pyros.util
)
- pyomo.contrib.pyros.util.validate_model(model, config)[source]
Validate deterministic model passed to PyROS solver.
- Parameters:
model (ConcreteModel) – Deterministic model. Should have only one active Objective.
config (ConfigDict) – PyROS solver options.
- Returns:
The variables participating in the active Objective and Constraint expressions of model.
- Return type:
- Raises:
TypeError – If model is not of type ConcreteModel.
ValueError – If model does not have exactly one active Objective component.