blockAllocation_Brent

Allocate an available amount according to priorities and capacity restrictions

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

Allocation, SplitProportionally

Parameters

TypeNameDefaultDescription
Structural Parameters
Integernout (from BasePolicy_MO)2Number of outputs
PPppPP.uniformPriority distribution to be used for allocation
Advanced
Realtolerance100*epsTolerance for Brent algorithm

Connectors

TypeNameDefaultDescription
RealInputuAvailable amount to be allocated
RealMultiInput[nout]u_pPriorities for allocation (i.e., utilities)
RealMultiInput[nout]u_wWidths for priority profiles (i.e., priority distribution functions)
RealMultiInput[nout]u_cConstraints for allocated amounts (i.e., maximum capacity/saturation level)

Components

TypeNameDefaultDescription
RealMultiOutputy (from Policy_MO)Vector of policy output signals

Revisions

  • Introduced [EXPERIMENTALLY] in v2.0.0.