uncertain_param_validator
(function from pyomo.contrib.pyros.config)
- pyomo.contrib.pyros.config.uncertain_param_validator(uncertain_obj)[source]
Check that a component object modeling an uncertain parameter in PyROS is appropriately constructed, initialized, and/or mutable, where applicable.
- Parameters:
uncertain_obj (Param or Var) – Object on which to perform checks.
- Raises:
ValueError – If the length of the component (data) object does not match that of its index set, or the object is a Param with attribute mutable=False.