pywr.parameters.ConstantScenarioIndexParameter¶
-
class
pywr.parameters.ConstantScenarioIndexParameter(model, Scenario scenario, values, *args, **kwargs)¶ A Scenario varying IndexParameter
The values in this parameter are constant in time, but vary within a single Scenario.
-
__init__()¶ values should be an iterable that is the same length as scenario.size
Methods
values should be an iterable that is the same length as scenario.size
after(self)before(self)finish(self)get_all_indices(self)get_all_values(self)get_double_lower_bounds(self)get_double_upper_bounds(self)get_double_variables(self)get_index(self, ScenarioIndex scenario_index)get_integer_lower_bounds(self)get_integer_upper_bounds(self)get_integer_variables(self)get_value(self, ScenarioIndex scenario_index)index(self, Timestep timestep, …)load(type cls, model, data)register(type cls)reset(self)set_double_variables(self, double[)set_integer_variables(self, int[)setup(self)unregister(type cls)value(self, Timestep timestep, …)Returns the current index as a float
Attributes
childrencommentcomment: unicode
double_sizedouble_size: ‘int’
integer_sizeinteger_size: ‘int’
is_variableis_variable: ‘bool’
modelnameparentssize-