(function from pyomo.contrib.pyros.uncertainty_sets)
pyomo.contrib.pyros.uncertainty_sets
Validate dimension of an array-like object.
arr_name (str) – Name of the array to validate.
arr (array_like) – Array to validate.
dim (int) – Required dimension of the array.
display_value (bool, optional) – True to include the array string representation in exception messages, False otherwise.
ValueError – If arr is ragged or not of the required dimension dim.