pywr.parameters.control_curves.ControlCurveIndexParameter

class pywr.parameters.control_curves.ControlCurveIndexParameter(model, storage_node, control_curves, **kwargs)

Multiple control curve holder which returns an index not a value

Parameters
storage_nodeStorage
control_curvesiterable of Parameter instances or floats
__init__(*args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(*args, **kwargs)

Initialize self.

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, …)

Returns the index of the first control curve the storage is above

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

children

comment

comment: unicode

control_curves

double_size

double_size: ‘int’

integer_size

integer_size: ‘int’

is_variable

is_variable: ‘bool’

model

name

parents

size

storage_node

storage_node: pywr._core.AbstractStorage