blockAllocation_Brent
Extends from ICON (Policy block with multiple outputs).
Information
This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.
The output vector y gives an allocation of the single input u, which may be a rate or simply an available amount of entities. The allocation is done according to the priorities associated with the repicients (e.g., suppliers or buyers) and their individual capacities, so that even the most attractive recipient will never get more than the maximum amount offered or demanded.
Notes
Allocation_Brent has the same functionality as Allocation, but while the latter uses the DAE solver, the former uses Modelica.Math.Nonlinear.solveOneNonlinearEquation to find the allocated amounts. The class has not been tested thoroughly, yet, and is added [EXPERIMENTALLY] here.
See also
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Structural Parameters | |||
| Integer | nout (from BasePolicy_MO) | 2 | Number of outputs |
| PP | pp | PP.uniform | Priority distribution to be used for allocation |
| Advanced | |||
| Real | tolerance | 100*eps | Tolerance for Brent algorithm |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| RealInput | u | Available amount to be allocated | |
| RealMultiInput[nout] | u_p | Priorities for allocation (i.e., utilities) | |
| RealMultiInput[nout] | u_w | Widths for priority profiles (i.e., priority distribution functions) | |
| RealMultiInput[nout] | u_c | Constraints for allocated amounts (i.e., maximum capacity/saturation level) |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| RealMultiOutput | y (from Policy_MO) | Vector of policy output signals |
Revisions
- Introduced [EXPERIMENTALLY] in v2.0.0.