pywr.parameters.LogisticParameter

class pywr.parameters.LogisticParameter(model, value=0.0, lower_bounds=-6.0, upper_bounds=6.0, max_output=1.0, growth_rate=1.0, **kwargs)

An activation function that follows a logistic function using its interval value.

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 logistic function is at its upper bounds (default = 1.0).

growth_ratefloat

The growth rate (or steepness) of the logistic function (default = 1.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'

growth_rate

growth_rate: 'double'

integer_size

integer_size: 'int'

is_constant

is_variable

is_variable: 'bool'

max_output

max_output: 'double'

model

name

parents

size

tags

tags: dict