pwAddP


 m = pwAddP(m, *ID, *rhs, unit, name, description)
 m = pwAddP(m, interactive)

 Adds a derived parameter to a model.

 NEW SYNTAX SINCE PW 3.0!
 Old: pwAddP(m, rhs, ID, unit, name, description)

 Like derived variables, also derived parameters can be defined. This is
 interesting for example if only the fraction of two parameters can
 unambiguously be determined.

 

Arguments for pwAddP

 m           struct  Model struct
 ID          ID      ID of the parameter, e.g. 'Stat_act_over_deact'
 rhs         string  Right-hand side of the derived parameter, e.g.
                     'Stat_act / Stat_deact'
 unit        string
 name        string  descriptive name
 description string  description

 Alternative function call for interactive specification:
 interactive bool    If true, the user is prompted to enter the properties
                     into a user interface.

 

Description

 The right-hand side may contain IDs of dynamic parameters, dynamic variables,
 and scaling parameters. Since the set of scaling parameters may change if
 a new observation function is used for the model, please make only use of scaling
 parameters if you are working with the default observation, i.e. with the
 observation defined in the model definition file. Else, the behavior is not
 defined!

 

Example

 m = pwAddP(m, 'Stat_act_over_deact', 'Stat_act / Stat_deact');

See also

pwAddK
pwAddR
pwAddZ
pwAddY
pwCalculateDerivedParameters