.BusinessSimulation.Functions.allocateNormal

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 x, the attractiveness a (e.g., utility), and the width w = 6σ of a normal distribution function that describes the priority profile for the recipient.


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

Syntax


Functions.allocateNormal(x, a, w);

Examples


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

See also

allocateUniform, allocateTriangular, allocateExtremeValue

Interface

encapsulated function allocateNormal
  import ICON = BusinessSimulation.Icons.Function;
  import Modelica.Math.Special.erf;
  extends ICON;
  input Real x "Clearing attractiveness";
  input Real a "Attractiveness of recipient";
  input Real w "Width of distribution (i.e., six times the standard deviation)";
  output Real y "Fraction of total capacity or demand allocated to the recipient";
end allocateNormal;

Revisions


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