This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.
The NonlinearInteraction can be used by itself or in
combination with the →LinearInteraction
flow to model more complex interactions. The netflows to the
connected stocks A (portA) and
B (portB) are given by the following
equations:
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_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.
A nonlinear component is typically found in predator-prey models or models of infectious diseases, where the exponential growth rate for a population depends upon the size of another population (e.g., prey or susceptible population).
Amount [each] then it is rather straight
forward to enter a fractional rate per unit of A or B for the
parameters a_AB, b_AB and we can in fact leave
TypeA, TypeB, refA, refB at their default values.displayUnit for one of the stocks, we can use the type
selectors TypeA, TypeB to select the appropriate units
for the connected stocks and then set the references values
refA, refB using whatever displayUnit we
want.LinearInteraction, ComplexInteraction
| Name | Description |
|---|---|
|
|
Type selector for stock A |
|
|
Type selector for stock B |
|
|
Data bus for inputs |
InputConnector defined as encapsulated
expandable connector in v2.1.0.unspecified in v2.1.0.