Cycle 1_Exercise
Cycle 1_Exercise
V Semester
Simulation Lab
Cycle - I
I. Generate a random Variate for a triangular distribution with range (1, 10) and mode at x=4. Test the
goodness of fit and plot the relevant graphs.
II. The weekly demand has been found to have a Poisson distribution with mean 2.5 items per week.
Generate 100 values of X, the demand per week, using random numbers. Test the goodness of fit
and plot the relevant graphs.
III. Lead times have been found to be exponentially distributed with mean of 3.7 days. Generate 100
random lead times from this distribution. Test the goodness of fit and plot the relevant graphs.
IV. Regular maintenance of a production routine has been found to vary and has been modeled as
normally distributed random variable with mean 33 minutes and variance 4 minutes. Generate 100
random maintenance times, with the given distribution. Test the goodness of fit and plot the
relevant graphs.
V. A machine is taken out of production after every 5 hours if it fails. By running similar machines
until failure, it has been found that time to failure, X, has the Weibull distribution with scale
parameter = 8, shape parameter = 0.75 and location parameter = 0. Test the goodness of fit and plot
the relevant graphs.
Model 1:
This model demonstrates how to change the value of the ProcessTime variable prior to the
beginning of a run via automation. The VariableArray property of the SIMAN Object is used
to change the value of the variable. The ProcessTime variable can be set initially when you begin
the model run or you can opt to change the variable value during the model run by pressing the
Pause button.
Simulation with ARENA
Model 2
The Batch module allows the user to group a number of entities. The grouping may be
permanent, as shown above, or temporary, as shown below. In the case of a permanent batch, the
specified number of entities are combined into a singular entity. This entity retains the properties
of the last entity to be added to the batch, and cannot be separated back to its original members.
A temporary batch, on the other hand, may be separated back to its original members. This is
done by using a Separate module. The Separate module may also be used to duplicate an entity.
This functions as specified in the Type box within the Separate module.
The Separate module has 3 options for how to treat entities when they are split :
1) Retain Original Values -The original entities will keep their Cost values, plus will get a split
of the grouped enitity's cost / times since the grouping.
2) Take All Representative Values - The original entities will NOT keep their Cost values, but
will get the split of the grouped entity.
3) Take Specific Representative Values - Pick and choose which values should be taken from
the representative entity.
Model 3:
In this example, the Assign module is used to set the type of an incoming call to either Call
Type A or Call Type B.
The Assign module can also be used to assign the value of a named variable, an attribute, an
entity picture or other system variable. New values can be set by any valid expression.
Simulation with ARENA
Model 4
In this example, entities arrive to the system and are duplicated. The entities proceed to a
processing station. In the upper stream, the entity seizes a resource with a capacity of one. In the
lower stream, the entity seizes a resource with a capacity of four. Notice how the resource with a
capacity of four is able to keep up with demand, while the other resource rapidly falls behind.
Altering the resource capacity is useful when a resource has the ability to service more than one
entity at a time, or in a situation where more than one identical resource is available to the
entity when it arrives for processing. If the resources have attributes such
as costs that differ, then separate resources should be used.
This system represents the final operations of the production of two different sealed electronic
units. The arriving parts are cast metal cases for the units that have already been machined to
accept the electronic parts.
The first Unit, named Part A are produced in an adjacent department, outside the bounds of this
model, with inter arrival times to our model being exponentially distributed with a mean of 5
minutes. Upon arrival they are transferred to the Part A Prep area with a transit time of 2
minutes. At the Part A Prep area, the mating faces of the cases are machined to assure a good
seal.
And the part is then deburred and cleaned; the process time for the combined operation follows a
triangular (1,4,8 ) distribution, The part is then transferred to the sealer, with a transit time of 2
minutes.
The Second units named part B, are Produced in a different building outside this Model’s bounds
where they are held until a batch of 4 units is available; the batch is then sent to the final
production area we are modeling. The time between the arrivals of successive batches of part B
to our model is exponential with a mean of 30 minutes. Upon arrival at the part B Prep area, the
batch is separated into the four units, which are produced individually. The processing at the Part
Simulation with ARENA
B Prep area has the same three steps as at the Part A prep area except that the process time for
the combined operation followed a triangular (3,5,10). Distribution. The part is then sent to the
sealer, with a transit time of 2 minutes.
At the sealer operation, the electronic components are inserted, the case is assembled and sealed,
and the sealed unit is tested. The total process time for this operation depends on the Part type;
Triangular (1,3,4) for Part A and weibull (2.5,5.3) for Part B (2.5, is the mean and 5.3 is the
standard deviation) Ninety one Percent of the parts pass the inspection and are transferred
directly to the shipping department. The remaining parts are transferred to the rework area where
the parts are disassembled, repaired, cleaned, assembled and re-tested. Eighty percent of the parts
here are salvaged and transferred to the shipping department as rework parts, The remaining part
are transferred to the Scrap area. The time to rework a part follows an exponential distribution
with a mean of 45 minutes and is independent of part type or part status, salvaged or scarped.
Assume all transfer times are 2 minutes.
We want to collect the statistics in each area on resource utilization, number in queue, time in
queue, the cycle time (or Flow time 0 by shipped parts, salvaged parts, or scraped parts. We will
initially run the simulation for 2000 minutes.