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:
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.