validate_variable_partitioning

(function from pyomo.contrib.pyros.util)

pyomo.contrib.pyros.util.validate_variable_partitioning(model, config)[source]

Check that the partitioning of the in-scope variables of the model is valid.

Parameters:
Returns:

State variables of the model.

Return type:

list of VarData

Raises:

ValueError – If first-stage variables and second-stage variables overlap, or there are no first-stage variables and no second-stage variables.