.BusinessSimulation.Functions.allocateUniform

Information

This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.

The function returns the fraction of capacity or demand that matches the allocated amount of a scarce resource given the clearing attractiveness c, the attractiveness a (e.g., utility), and the width w of a uniform distribution function that describes the priority profile for the recipient.


Graph of the allocateUniform Function (Distribution Shown Scaled for Clarity)
Graph.svg

Syntax


Functions.allocateUniform(c, a, w);

Examples


Functions.allocateUnifom(3.5, 5, 3); // 1.0
Functions.allocateUnifom(5.0, 5, 3); // 0.5
Functions.allocateUnifom(6.5, 5, 3); // 0.0

See also

allocateTriangular, allocateNormal, allocateExtremeValue

Interface

encapsulated function allocateUniform
  import ICON = BusinessSimulation.Icons.Function;
  extends ICON;
  input Real c "Clearing attractiveness";
  input Real a "Attractiveness of recipient";
  input Real w "Width of distribution (i.e., span of the uniform distribution)";
  output Real y "Fraction of total capacity or demand allocated to the recipient";
end allocateUniform;

Revisions


Generated at 2024-11-23T19:25:52Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos