The Gaussian (or normal) distribution represents a bell-shaped curve, where the most likely values are near a central value and extremes are less likely. It is ideal for modeling natural phenomena such as service times, measurement errors, or process durations, where most cases cluster around a mean.
Parameters:
- a: Curve height (visualization only; it does not affect the calculation).
- b: Central value or expected mean of the process.
- sigma1: Spread (standard deviation) to the left of the center.
- sigma2: Spread to the right of the center. It can differ from sigma1 to create asymmetry.
- intervals: Number of segments used to divide the curve. The higher the number, the more precise.
By construction, the distribution will take values approximately between b - sigma1 * 3 and b + sigma2 * 3.
This example shows how three service windows with different Gaussian functions produce different distributions of service times:
ADVANCE FN$gfun1 ; symmetric ADVANCE FN$gfun2 ; right spread ADVANCE FN$gfun3 ; left spread
Example
/*
Gauss
*/
SYSTEM {TYPE:OPTIONS,Speed:5}
Facility {NAME:VENTANILLA1,X:165,Y:184,E_BIN_start:5,E_BIN_SIZE:1,E_BIN_COUNT:80,capacity:10}
Facility {NAME:VENTANILLA2,X:343,Y:185,E_BIN_start:5,E_BIN_SIZE:1,E_BIN_COUNT:80,capacity:10}
Facility {NAME:VENTANILLA3,X:535,Y:183,E_BIN_start:5,E_BIN_SIZE:1,E_BIN_COUNT:80,capacity:10}
POSITION {NAME:POS1,X:250,Y:381}
POSITION {NAME:POS2,X:423,Y:383}
POSITION {NAME:POS3,X:566,Y:384}
Function {name:gfun1, TYPE:GAUSS, a:1, b:50, sigma1:3.3, sigma2:3.3,intervals:100 }
Function {name:gfun2, TYPE:GAUSS, a:1, b:50, sigma1:1.0, sigma2:10.0,intervals:100 }
Function {name:gfun3, TYPE:GAUSS, a:1, b:50, sigma1:10.0, sigma2:1.0,intervals:100 }
START 500
;*****************************************************
GENERATE 10,0,0,0 {NAME:GEN1,X:91,Y:383}
ADVANCE 20,4 {TO:VENTANILLA1}
SEIZE VENTANILLA1
ADVANCE FN$gfun1
RELEASE VENTANILLA1
ADVANCE 20,0 {TO:POS1}
ADVANCE 20,0 {TO:VENTANILLA2}
SEIZE VENTANILLA2
ADVANCE FN$gfun2
RELEASE VENTANILLA2
ADVANCE 20,0 {TO:POS2}
ADVANCE 20,0 {TO:VENTANILLA3}
SEIZE VENTANILLA3
ADVANCE FN$gfun3
RELEASE VENTANILLA3
ADVANCE 20,0 {TO:POS3}
ENDGENERATE 1