pywr.parameters.RectifierParameter

class pywr.parameters.RectifierParameter(model, value=0.0, lower_bounds=-1.0, upper_bounds=1.0, min_output=0.0, max_output=1.0, **kwargs)

An activation function that follows a ramp function if its internal variable is positive.

Parameters:
valuefloat

The current value of the internal variable (default = 0.0)

lower_bounds, upper_boundsfloat

The valid ranges of the internal variable for optimisation (default = [-1.0, 1.0]).

max_outputfloat

The maximum value to return when the internal variable is at its upper bounds (default = 1.0).

min_outputfloat

The value to return when the internal variable is at 0.0.

__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)

after(self)

before(self)

finish(self)

get_all_values(self)

get_constant_value(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'

max_output

max_output: 'double'

min_output

min_output: 'double'

model

name

parents

size

tags

tags: dict