modelComplexInteraction

Interaction with linear and nonlinear terms

Extends from Interfaces.PartialCLD.Interaction (Partial interaction for causal loop diagramming).

Information

This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.

Using →ComplexInteraction this component allows to logically connect two flows influencing two stocks A (connected to portA) and B (connected to portB). The formula for the resulting flows (using Newton's dot notation) has linear and nonlinear terms:

Formula.svg

The coefficients are given by parameters, which are multiplied either with 1 (hasFactor = false) or an exogenous factor u (hasFactor = true). Upon setting hasRateOutput = true the component will report the current rate of flows via output connectors (y_A, y_B).

Notes

  • Using a_0 = -1, b_0 = 1 (other coefficients set to zero), and hasFactor = true a bidirectional flow can be modeled, whose rate is given by the input u (positive inputs indicate a flow from A to B).

  • Using a_0 = -1, b_0 = f (other coefficients set to zero), and hasFactor = true a broken transition can be modeled, with the proportionality factor f indicating units of B per unit of A.

  • The parameters polA and polB allow to give visual cues with regard to polarity in the diagram.

See also

UnidirectionalFlow

Parameters

TypeNameDefaultDescription
StringpolA (from Interaction)"±"Polarity portA
StringpolB (from Interaction)"±"Polarity portB
Structural Parameters
BooleanhasFactor (from Interaction)false= true, if coefficients are to be multiplied with input u
BooleanhasRateOutput (from Interaction)false= true, if the rate is reported via real output connectors
Parameters for net flow to A
Ratea_0Growth rate for A (independent)
Ratea_AFractional rate of growth for A (self-coupling A)
Ratea_BRate of growth for A per unit of B (coupling of B to A)
Ratea_ABFractional rate of growth for A per unit of B (nonlinear coupling)
Parameters for net flow to B
Rateb_0Growth rate for B (independent)
Rateb_BFractional growth rate for B (self-coupling)
Rateb_ARate of growth for B per unit of A (coupling of A to B)
Rateb_ABFractional growth rate for B per unit of A (nonlinear coupling)

Connectors

TypeNameDefaultDescription
Connectors.FlowPortportA (from Interaction)
Connectors.FlowPortportB (from Interaction)
Connectors.RealInputu (from Interaction)Factor input

Components

TypeNameDefaultDescription
ATypeConnectors.RealOutputy_A (from Interaction)Output of current rate of flow for port A
BTypeConnectors.RealOutputy_B (from Interaction)Output of current rate of flow for port B

Revisions

  • Introduced in v2.0.0.