©
Creates trucks with bags
Creates (simulates) trucks with random bags
2024.Jul.03 13:39:25
Trucks N. of trucks to be simulated.
Loads in N. of bags: min, max.
μ, σ Parameters for the Gaussian bag weight.
Enumerate trucks   Enumerate truck and show average.
Seed RNG seed (0, for unrepeatable values).
Show values Show graph coordinates.

Simulates a given number of trucks, with loads of a random number of bags in the given (closed) interval. Each bag has a Gaussian weight, with parameters μ and σ, such as for customers' trucks leaving a factory in a certain period, say, one month.

The final results may include (or not) a column (1..trucks) to enumerate each truck and give its average bag weight. For use elsewhere, these columns my be inappropriate.

Draws a graph of averages and truck loads (number of bags).

References: Plate: CreateTrucks

• (Wikipedia) Weighing scale (strain gauge).

• Python 'random' module: integer, etc., random number generation.

• 1704-07-31: Cramer, Gabriel (†1752-01-04, 47 yrs.).

 
 
Valid HTML 4.01! IST http://web.tecnico.ulisboa.pt/~mcasquilho/compute/qc/P-createtrucks.php
Created: 2021-07-31 — Last modified: 2021-08-01