validate_uncertainty_specification

(function from pyomo.contrib.pyros.util)

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

Validate specification of uncertain parameters and uncertainty set.

Parameters:
Raises:

ValueError – If at least one of the following holds: - there are entries of config.uncertain_params that are also in config.first_stage_variables or config.second_stage_variables - dimension of uncertainty set does not equal number of uncertain parameters - uncertainty set is_valid() method does not return true. - nominal parameter realization is not in the uncertainty set.