Professional Documents
Culture Documents
1.3 Kelas 16.12.2021
1.3 Kelas 16.12.2021
1) Trace-driven simulation
2) Random sampling from an empirical
distribution
3) Random sampling from a theoretical 2) Save it in computer/desktop
distribution
Trace-driven simulation
3) Renamed a worksheet
1) Random input data is represented with
actual (recorded) data
i) We go and record one by one
because the data will not 4) Created the variable at witness for
constant export the data from the excel
2) Need sufficient data from the real i) Variable is to calculate the
system certain value or store the data in
3) Save data in a machine-readable form 5) Defined a variable (real variable) dekat
i) Save data in databased fail for witness lepastu kene isi bende ni
example the excel or other
ii) import the data to the
simulation data for example
import the excel databased file
to the witness
4) Model reads input data, one record at a
time as event are encountered
6) Nanti jadi mmacam ni
Advantages and disadvantages of trace
driven simulation
1) Advantages
i) Conceptually simple
ii) Useful for validating model
7) Pastu dekat wash tu tukar dekat cycle
time dia ikut nama variable dia, lepastu
dia kat action pastu click initial action
(dekat sini kita import data from excel to
witness)
i) Kalau nak import or export data
i) P = probability
ii) How to calculated the probability is
ii) Read untuk import data 3/120 = 0.25
iii) Write untuk export data iii) Cumulative probability (sum up the
iv) But now just click this button probability)
Example calculation
vi) Tukar dekat cycle time (letak nama
di akene letak pseudo random name
value)
The equation for empirical distribution Some cases dia difficult sebab some case kit
akene tahu dia punya exact theoretical
exponential
1) Advantages
i) Concise, computationally
efficient the full range of data
including extreme values are
available
Advantages and disadvantages 2) Limitations
i) The method is involved and
1) Advantaged requires a preparedness on the
i) Any value within the range part of the modeler to do some
(histogram) can be obtained at statistics! It is not always
random (rather than only possible to fit a theoretical
observed) distribution
4. Calculate