Simulates,
via Monte Carlo, the filling of a packet ("bag") of items,
in a tube-style, FIFO (first in, first out) strategy (as in a doubly open tube).
The objective is a final filling with weight (mass) in (L, U).
An example might be to fill a bag of 2 kg of oranges, namely
(as in the base data), weighing between
L = 2000 and U = 2080 g.
The weight of each item is considered truncated Gaussian.
(Tolerance is for the inversion of the Gaussian distribution.)
Terminology for fractions (costs incurred):
'frTr', fr. truncated from the original product;
'frWa' (waste), fr. wasted as giveaway (weight above L);
'frRe' (rejected), fr. of unused items, possibly recyclable.
Several other, better strategies (worthy of research)
would be convenient to try to reach the final sum within the limits.
|