Parameter Recorder

General Description

Base class for recorders that track Parameter values. API Reference

Attributes

Name
Description
Required

model

pywr.core.Model

Yes

param

The parameter to record

Yes

agg_func

Scenario aggregation function to use when aggregated_value is called

Yes

name

Name of the recorder

Yes

comment

Comment or description of the recorder

Yes

ignore_nan

Flag to ignore NaN values when calling aggregated_value

Yes

is_objective

Flag to denote the direction, if any, of optimisation undertaken with this recorder

Yes

epsilon

Epsilon distance used by some optimisation algorithms

Yes

constraint_lower_bounds, constraint_upper_bounds

The value(s) to use for lower and upper bound definitions. These values determine whether the recorder instance is marked as a constraint. Either bound can be None (the default) to disable the respective bound. If both bounds are None then the is_constraint property will return False. The lower bound must be strictly less than the upper bound. An equality constraint can be created by setting both bounds to the same value.

The constraint bounds are not used during model simulation. Instead they are intended for use by optimisation wrappers (or other external tools) to define constrained optimisation problems.

Yes

Example

coming soon...

{

}

Last updated