The first thing is to create
the entities. We use the Create
module. For editing it: double click (mouse)
As name: Llegada de trabajos (arrival jobs)
Don't use accents, otherwise you will have problems.
The arrival time was Exponential, with mean 8. Then we press OK.
We use a new module: Assign module.
This module will allows us to assign
new values to variables or attributes. In ths case,
we will use an attribute: Tiempo de llegada (arrival time), which
saves the time when an entity arrives,
using the variable: tnow, from time now.
Afterwards, we can calculate the total time the entity is in the system,
subtracting the arrival time from the time when the entity departs (leaves the system).
We press OK, and we connect them.
We create the process: the assembly operation, and connect them. We'll edit it.
I call it: Montaje (assembly). The action, as before, Seize Delay Release. We add the resource.
I call it: montadora (assembly machine). There is only one resource.
The processing time was Uniform, from 2 to 6 hours, then OK.
The queue has been created (-----|), here we can see it also.
We use a new module: Decide. This module will decide if the entity passes or not the test.
I call it: Control de calidad (quality control). We keep the type, because there are only 2 options in this problem.
The entity passes the test control with probability = 0.85. Press OK.
We connect the modules. If the entity passes the control,
it will go to a new process: painting. I call it: Pintura (painting).
The action is again Seize, Delay, Release. We add the resource, that I call it
Maquina de pintura (painting machine). If you make a mistake, you can delete the erroneous one with Delete.
The processing time in painting was constant, deterministic: 3 hours. We press OK.
We join "passing quality control" to painting.
However, if it does not pass the quality control, goes from the control (False) to assembly.
We need the Record module, for saving the total (elapsed) time in the system.
We edit it. I call it: Tiempo paso (elapsed time). And the type is
time interval. The attribute was Tiempo de llegada (arrival time). As tally name, I keep this (elapsed time = total time in the system).
I connect them. I will create in Advanced Process, in Statistics (with double click)
a statistic called TP, with Tally type, which is Tiempo de paso (elapsed time).
We use Dispose, for removing the entities. We modify the Set up for running it.
The replication is 100000 hours, and OK. And fast-forward for running faster (without entity representation).
It checks that everything is correct, and runs it, as we can see here.
We can see the results. We see the default results in queues, resources.
Finally, the user specified: tiempo de paso (elapsed time): the average, the minimum, and the maximum.
In the file .out we see this information and more.
With right button of the mouse, we can select Open with an editor text,
for example, Word Pad.
We see Tiempo de paso (elapsed time). We see now the half width of the confidence interval for the mean, and the observations.
If we want to run again the model, we must press before End or Start over.
With End, we can run it again. We stop it, and we'll continue with another example.