(function from pyomo.contrib.pyros.util)
pyomo.contrib.pyros.util
Validate specification of uncertain parameters and uncertainty set.
model (ConcreteModel) – Input deterministic model.
config (ConfigDict) – PyROS solver options.
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.