Simulates via Monte Carlo
the filling of bags or packets of weight W, such that it is
L ≤ W ≤ U,
with discrete items (such as bags of oranges),
each item following a Truncated Gaussian,
with given μ and σ, in (a, b).
Makes a graph of fW
for the variable
W = Σ(i=1..n)wi.
Note that n too is a (dependent) random variable.
If truncation is not desired, supply any a = b
(such as both 0). Then, half width, h, is used, permitting
to determine the range of items, n, to fill in each bag, i.e., in
(nLB, nUB) =
(ceiling(L ⁄ (μ + h σ)), floor(U ⁄ (μ − h σ))) .
Other suggested values for μ: small increases;
20. |