The uniform distribution represents maximum uncertainty: all values within a range have exactly the same probability.
"It’s like rolling a perfect die: no number is more likely than another."
This type of distribution is useful when there is no reason to believe some values are more likely than others.
Parameters
Function {Name:ufun1, TYPE:UNIFORM, Min:20, Max:40}
-
Min: minimum value the function can take. -
Max: maximum value the function can take.
All values between Min and Max have the same probability.
In the report chart, the curve has the shape of a flat rectangle. The wider the range, the more spread out the distribution will be.
This example compares three uniform distributions with different ranges. All have a rectangular shape, but differ in width and position:
Function {Name:ufun1, TYPE:UNIFORM, Min:20, Max:40} ; Small range
Function {Name:ufun2, TYPE:UNIFORM, Min:20, Max:60} ; Wide range
Function {Name:ufun3, TYPE:UNIFORM, Min:30, Max:50} ; Shifted range
Example
/*
Uniforme
*/
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:ufun1, TYPE:UNIFORM, Min:20, Max:40}
Function {Name:ufun2, TYPE:UNIFORM, Min:20, Max:60}
Function {Name:ufun3, TYPE:UNIFORM, Min:30, Max:50}
START 500
GENERATE 10,0,0,0 {NAME:GEN1, X:91, Y:383}
; WINDOW 1 – Uniform from 20 to 40
ADVANCE 20,4 {TO:VENTANILLA1}
SEIZE VENTANILLA1
ADVANCE FN$ufun1
RELEASE VENTANILLA1
ADVANCE 20,0 {TO:POS1}
; WINDOW 2 – Uniform from 20 to 60
ADVANCE 20,0 {TO:VENTANILLA2}
SEIZE VENTANILLA2
ADVANCE FN$ufun2
RELEASE VENTANILLA2
ADVANCE 20,0 {TO:POS2}
; WINDOW 3 – Uniform from 30 to 50
ADVANCE 20,0 {TO:VENTANILLA3}
SEIZE VENTANILLA3
ADVANCE FN$ufun3
RELEASE VENTANILLA3
ADVANCE 20,0 {TO:POS3}
TERMINATE 1