pywr.parameters.DiscountFactorParameter
- class pywr.parameters.DiscountFactorParameter(model, rate, base_year, **kwargs)
Parameter that returns the current discount factor based on discount rate and a base year.
- Parameters:
- discount_ratefloat
Discount rate (expressed as 0 - 1) used calculate discount factor for each year.
- base_yearint
Discounting base year (i.e. the year with a discount factor equal to 1.0).
- __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_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
base_yearbase_year: 'int'
childrencommentcomment: str
double_sizedouble_size: 'int'
integer_sizeinteger_size: 'int'
is_constantis_variableis_variable: 'bool'
modelnameparentsraterate: 'double'
sizetagstags: dict