pywr.recorders.MinimumThresholdVolumeStorageRecorder

class pywr.recorders.MinimumThresholdVolumeStorageRecorder(model, node, threshold, *args, **kwargs)

Record whether a Storage node falls below a particular volume threshold during a simulation.

This recorder will return a value of 1.0 for scenarios where the volume Storage is less than or equal to the threshold at any time-step during the simulation. Otherwise it will return zero.

__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)

after(self)

aggregated_value(self)

before(self)

finish(self)

is_constraint_violated(self)

Returns true if the value from this Recorder violates its constraint bounds.

load(cls, model, data)

register(cls)

reset(self)

setup(self)

unregister(cls)

values(self)

Attributes

agg_func

children

comment

comment: unicode

constraint_lower_bounds

constraint_upper_bounds

epsilon

epsilon: 'double'

ignore_nan

ignore_nan: 'bool'

is_constraint

Returns true if either upper or lower constraint bounds is defined.

is_double_bounded_constraint

Returns true if upper and lower constraint bounds are both defined and not-equal to one another.

is_equality_constraint

Returns true if upper and lower constraint bounds are both defined and equal to one another.

is_lower_bounded_constraint

Returns true if lower constraint bounds is defined and upper constraint bounds is not.

is_objective

is_upper_bounded_constraint

Returns true if upper constraint bounds is defined and lower constraint bounds is not.

model

name

node

parents

tags

tags: dict

threshold

threshold: 'double'