pywr.parameters.AggregatedIndexParameter¶
-
class
pywr.parameters.AggregatedIndexParameter¶ A collection of IndexParameters
This class behaves like a set. Parameters can be added or removed from it. Its index is the index of it’s child parameters aggregated using a aggregating function (e.g. sum).
Parameters: - parameters : iterable of IndexParameter
The parameters to aggregate
- agg_func : callable or str
The aggregation function. Must be one of {“sum”, “min”, “max”, “any”, “all”, “product”}, or a callable function which accepts a list of values.
-
__init__($self, /, *args, **kwargs)¶ Initialize self. See help(type(self)) for accurate signature.
Methods
addafterbeforefinishget_all_indicesget_all_valuesget_double_lower_boundsget_double_upper_boundsget_double_variablesget_indexget_integer_lower_boundsget_integer_upper_boundsget_integer_variablesget_valueindexReturns the current index loadlower_boundsregisterremoveresetset_double_variablesset_integer_variablessetupunregisterupdateupper_boundsvalueReturns the current index as a float Attributes
agg_funcchildrencommentdouble_sizeinteger_sizeis_variablemodelnameparametersparentssize