pywr.parameters.WeightedAverageProfileParameter
- class pywr.parameters.WeightedAverageProfileParameter(model, storages, profiles, **kwargs)
Generates a weighted average daily profile from pairs of storage nodes and profile parameters.
The contribution on each profile is weighted using the volume of the paired storage node. For efficiency, the profile values are calculated in the reset method, though this limits the type of parameters that can be given as input profiles.
- Parameters:
- storages: iterable of storage nodes. Length should equal to the length of
profiles parameter.
- profiles: iterable of profile parameters. These can be either a
ConstantParameter, DailyProfileParameter, or MonthlyProfileParameter. Length should equal to the length of storages parameter.
- __init__(*args, **kwargs)
Methods
__init__
(*args, **kwargs)after
(self)before
(self)finish
(self)get_all_values
(self)get_constant_value
(self)Return a constant value.
get_daily_values
(self)get_double_lower_bounds
(self)get_double_upper_bounds
(self)get_double_variables
(self)get_integer_lower_bounds
(self)get_integer_upper_bounds
(self)get_integer_variables
(self)get_value
(self, ScenarioIndex scenario_index)load
(cls, model, data)register
(cls)reset
(self)set_double_variables
(self, double[)set_integer_variables
(self, int[)setup
(self)unregister
(cls)value
(self, Timestep ts, ...)Attributes
children
comment
comment: unicode
double_size
double_size: 'int'
integer_size
integer_size: 'int'
is_constant
is_variable
is_variable: 'bool'
model
name
parents
size
tags
tags: dict