This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.
The ComplexInteraction component combines linear and nonlinear interaction between two stocks A (portA
) and B (portB
):
Note: Capital letters were chosen to represent the stocks (state variables) connected at portA
and portB
in the formula above. Also dot notation is used for a stock's rate of flow—its first derivative with respect to time.
Coefficient | Unit | Description |
---|---|---|
a_0 |
base unit of flow to A ( |
Rate of growth for stock A |
|
base unit of flow to B ( |
Rate of growth for stock B |
|
1/s |
fractional rate of growth for stock A |
|
1/s |
fractional rate of growth for stock B |
|
base unit of flow to A ( |
Rate of growth for stock A per stock B |
|
base unit of flow to B ( |
Rate of growth for stock B per stock A |
a_AB |
1 per second per base unit of B ( TypeB ) |
Factor used to determine the net flow to A |
b_AB |
1 per second per base unit of A TypeA ) |
Factor used to determine the net flow to B |
The coefficients can be given as parameters or as variables via the expandable connector dataIn
.
The classical Lotka-Volterra-Model of predator-prey-dynamics can be derived from this model using the following parameterization:
a_0 = 0, a_A = α, a_B = 0, a_AB = -β, b_0 = 0, b_B = -γ, b_A = 0, b_AB = δ
LinearInteraction
and NonlinearInteraction
the rates passed for a_B, a_AB, b_A, b_AB
call for divison by a reference level of the connected stocks. In many cases, modelers can leave the type selectors TypeA, TypeB
at their default value of Unspecified
so that no conversion will take place.displayUnit
settings to enter convenient reference levels refA, refB
.LinearInteraction, ComplexInteraction, LotkaVolterra
Name | Description |
---|---|
TypeA | Type selector for stock A |
TypeB | Type selector for stock B |
InputConnector | Data bus for inputs |
InputConnector
defined as encapsulated expandable connector
in v2.1.0.TypeA, TypeB
and corresponding reference levels refA, refB
introduced to support unit checking and unit conversions in v2.2.