mutable_param_validator
(function from pyomo.contrib.pyros.config
)
- pyomo.contrib.pyros.config.mutable_param_validator(param_obj)[source]
Check that Param-like object has attribute mutable=True.
- Parameters:
param_obj (Param or ParamData) – Param-like object of interest.
- Raises:
ValueError – If lengths of the param object and the accompanying index set do not match. This may occur if some entry of the Param is not initialized.
ValueError – If attribute mutable is of value False.