pywr.parameters.MaxParameter

class pywr.parameters.MaxParameter(model, parameter, threshold=0.0, *args, **kwargs) Parameter that takes maximum of another `Parameter` and constant value (threshold)

Parameter that takes maximum of another Parameter and constant value (threshold)

This class is a more efficient version of AggregatedParameter where a single Parameter is compared to constant value.

Parameters:
parameterParameter

The parameter to to compare with the float.

thresholdfloat (default=0.0)

The threshold value to compare with the given parameter.

__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)

after(self)

before(self)

finish(self)

get_all_values(self)

get_constant_value(self)

Return a constant value.

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'

model

name

parameter

parameter: pywr.parameters._parameters.Parameter

parents

size

tags

tags: dict

threshold

threshold: 'double'