Function LogNormal(Shape, Lowerbound, Scale)

LogNormal

The function LogNormal draws a random value from a lognormal distribution.

LogNormal(
    Shape,        ! (input) numerical expression
    Lowerbound,   ! (optional) numerical expression
    Scale         ! (optional) numerical expression
    )

Arguments

Shape

A scalar numerical expression \(> 0\).

Lowerbound

A scalar numerical expression.

Scale

A scalar numerical expression \(> 0\).

Return Value

The function LogNormal returns a random value drawn from a lognormal distribution with shape Shape, lower bound Lowerbound and scale Scale.

Note

The prototype of this function has changed with the introduction of AIMMS 3.4. In order to run models that still use the original prototype, the option Distribution_compatibility should be set to Aimms_3_0. The original function LogNormal(m, sd) returns a random value drawn from a lognormal distribution with mean \(m>0\) and standard deviation \(sd>0\). The same result should now be obtained by setting \(Shape = sd/m\), \(Lowerbound=0\) and \(Scale = m\).

See also

The LogNormal distribution is discussed in full detail in Discrete Distributions of the Language Reference.