OutflowDynamicStockOutflow from a dynamic stockāthe rate is set by the stock |
This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.
OutflowDynamicStock can be used to model the outflow from a stock with inherent dynamic behavior (e.g., a conveyor or a higher-order delay). In these cases, the stock will set the flow and "signal" it via its →StockPort_Special.
Since neither negative outflows (after all, this is a unidirectional flow) nor preventing an outflow by "stock control" (e.g., the receiving stock at portB
has stopInflow = true
) are compatible with this flow element, the following assert
conditions will have breaches of these conditions cause errors that will stop the simulation:
assert(portA.rate >= 0, "Rate of outflow must never be negative");
assert(not portB.stopInflow, "There must not be capacity restrictions (stopInflow) for the stock at portB");
OutflowDynamicStock
flow will not observe the stopInflow
flag of a stock connected to the B-side port. This means that the receiving stock must have sufficient capacity for the matter flowing out and capacity restrictions have to be imposed by an explicit control structure.SplitOutflowDynamicStock
should be used.SplitOutflowDynamicStock
can be used with some fraction of the outflow being directed into a →Cloud.portA |
Type: FlowPort_Special Description: Flow from/to Stock A (stock signals the rate) |
|
---|---|---|
portB |
Type: FlowPort Description: Flow to/from Stock B |
|
y |
Type: RealOutput Description: Rate information |
|
y1 |
Type: RealOutput Description: Rate information |
|
y2 |
Type: RealOutput Description: Rate information |
BusinessSimulation.Examples A first example |
|
BusinessSimulation.Examples Extending the first example to include replacement purchases |
|
BusinessSimulation.Examples Further extending the first example to explain new product diffusion |
|
BusinessSimulation.Examples Classical epidemic model by Kermack and McKendrick |
|
BusinessSimulation.Examples Human resource planning |
|
BusinessSimulation.Examples Modeling a production process |
BusinessSimulation.CausalLoop Exponential delay of input flow |
|
BusinessSimulation.CausalLoop Fixed or pure delay of input flow |
|
BusinessSimulation.Flows.Unidirectional The outflow from a dynamic stock is split into n outflows proportional to the weights given |