validate_variable_partitioning
(function from pyomo.contrib.pyros.util
)
- pyomo.contrib.pyros.util.validate_variable_partitioning(model, config)[source]
Check that partitioning of the first-stage variables, second-stage variables, and uncertain parameters is valid.
- Parameters:
model (ConcreteModel) – Input deterministic model.
config (ConfigDict) – PyROS solver options.
- Returns:
State variables of the model.
- Return type:
- Raises:
ValueError – If first-stage variables and second-stage variables overlap, or there are no first-stage variables and no second-stage variables.