modelSwitching

An exchange of matter between two stocks at an exogenous rate

Extends from Interfaces.PartialFlows.BidirectionalFlow (Generic bi-directional flow between two stocks).

Information

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

This is the classical example for an exchange of "matter" (conserved quantities either matter, energy, or information) between two stocks, where the flow may go in either direction.

Notes

  • A positive rate indicates a flow from stock A to stock B.

  • A negative rate indicates the reverse flow from stock B to stock A.

See also

TransitionProportionalSwitching

Connectors

TypeNameDefaultDescription
Connectors.FlowPortportA (from GenericFlow)Flow from/to Stock A
Connectors.FlowPortportB (from GenericFlow)Flow to/from Stock B
Interfaces.Connectors.RealInputuRate input

Components

TypeNameDefaultDescription
RealOutputy (from ThreeSO_rate)Rate information
RealOutputy1 (from ThreeSO_rate)Rate information
RealOutputy2 (from ThreeSO_rate)Rate information