Constant
BPTK API Documentation for the Constant class
Keywords
system dynamics, bptk, bptk-py, python, business prototyping
Constant
Constant Constructor
Constant(model, name, function_string=None)
A constant in a SD DSL model
Constant.equation
property equation() Returns the equation as originally set.
Returns
The equation, either a SD DSL Element or Operator.
A constant is a converter whose value never changes during a run. Constants are what scenarios override: everything listed in a scenario’s constants block has to be a constant in the model.
Create one through the model: model.constant("advertising_budget").
advertising_budget = model.constant("advertising_budget")
advertising_budget.equation = 100.0Inherited from Element
Everything else — equation, function_string, plot() and the arrayed-element API — comes from Element, where it is documented once for all element types.