modelSplitOutflowDynamicStock
Extends from Interfaces.Basics.OutputTypeChoice_Rate (Partial model to set the output type to some kind of rate), Icons.Outflow (Icon for outflow classes).
Information
This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.
The SplitOutflowDynamicStock is 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 rate of flow and "signal" it via its →StockPort_Special.
The total outflow is split proportionally according to given weights either given as a vector of parameters or as a vector of inputs u.
Notes
The proportional split is done using fractions derived from the weights as described for the converter →ProportionalSplitFactors.
See also
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real[n] | weights | ones(n) | Vector of weights according to which the total outflow is split proportionally |
| Boolean | shiftInputs | false | = true, if all weights are to be shifted to prevent negative values, otherwise negative values are simply set to zero (fractions.shiftInputs) |
| Structural Parameters | |||
| Integer | n | 2 | Number of flows to split the outflow into |
| Boolean | hasConstantWeights | false | If true then the weights are given by the continuous input u |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Interfaces.Connectors.FlowPort_Special | portA | Special port (stock sets rate of flow) | |
| Interfaces.Connectors.FlowMultiPort[n] | portB | Flow port | |
| Interfaces.Connectors.RealMultiInput | u | Split fractions (or weights) for the outflow |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| RealMultiOutput | y | Rate information | |
| RealMultiOutput | y1 | Rate information | |
| RealMultiOutput | y2 | Rate information |