pywr.parameters.IndexedArrayParameter¶
-
class
pywr.parameters.IndexedArrayParameter¶ Parameter which uses an IndexParameter to index an array of Parameters
An example use of this parameter is to return a demand saving factor (as a float) based on the current demand saving level (calculated by an IndexParameter).
Parameters: - index_parameter : IndexParameter
- params : iterable of Parameters or floats
Notes
Float arguments params are converted to ConstantParameter
-
__init__($self, /, *args, **kwargs)¶ Initialize self. See help(type(self)) for accurate signature.
Methods
afterbeforefinishget_all_valuesget_double_lower_boundsget_double_upper_boundsget_double_variablesget_integer_lower_boundsget_integer_upper_boundsget_integer_variablesget_valueloadlower_boundsregisterresetset_double_variablesset_integer_variablessetupunregisterupdateupper_boundsvalueReturns the value of the Parameter at the current index Attributes
childrencommentdouble_sizeindex_parameterinteger_sizeis_variablemodelnameparamsparentssize