Allocation_BrentAllocate an available amount according to priorities and capacity restrictions |
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.
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.
nout |
Value: 2 Type: Integer Description: Number of outputs |
---|---|
pp |
Value: PP.uniform Type: PriorityProfiles Description: Priority distribution to be used for allocation |
tolerance |
Value: 100 * eps Type: Real Description: Tolerance for Brent algorithm |
y |
Type: RealMultiOutput[nout] Description: Vector of policy output signals |
|
---|---|---|
u |
Type: RealInput Description: Available amount to be allocated |
|
u_p |
Type: RealMultiInput[nout] Description: Priorities for allocation (i.e., utilities) |
|
u_w |
Type: RealMultiInput[nout] Description: Widths for priority profiles (i.e., priority distribution functions) |
|
u_c |
Type: RealMultiInput[nout] Description: Constraints for allocated amounts (i.e., maximum capacity/saturation level) |