pywr.parameters.control_curves.BaseControlCurveParameter

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

Base class for all Parameters that rely on a the attached Node containing a control_curve Parameter

__init__()
Parameters
storage_nodeStorage

An optional Storage node that can be used to query the current percentage volume.

control_curvesiterable of Parameter objects or single Parameter

The Parameter objects to use as a control curve(s).

Methods

__init__

Parameters

after(self)

before(self)

finish(self)

get_all_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(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 ts, …)

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