Assignment
Assignment
• Entities: An entity is an object of interest in the system. In other words any person or a thing which is given more priority in a
system.
• Attribute: An attribute is a property of entity.
• Activity: An activity represents time period of specified length.
• Event: An event can be defined as an instantaneous occurrence that might change the state of system.
• State variables: A state variables is one of set of variables.
SYSTEM ENTITY ATTRIBUTES ACTIVITIES EVENTS STATE VARIABLES
A Cafeteria Customer, Hungry, hurried faster, Take orders, collect Arrival and Number of occupied
cashier, waiter. reliable, responsible, payments, dispatch departure of tables, Number of orders
and skilled in- orders customer, lack of per table, Number of
mathematics and raw material, faults people that pay with cash
expert in product in the equipment. or credit card, Number of
customers waiting for
attention
A Grocery Customer, Faster, reliable, Sell products, fill Arrival and Number of people that pay
Store cashier, responsible, punctual, displays, organize departure of with cash or credit card,
distributor, and skilled in sales the supermarket customers, Number of customers
salesperson carts reception of waiting for attention and
products, lack of Number of sold products
products per day.
A Fast-Food Customers Size of order Placing the Arrival at Number of
Restaurant desired order the counter customers waiting
A) simulate 10 individuals
Probability of time b/n Calls
Time between Probability RD Assignment
calls (Minute) Between Calls Cumulative
Probability
15 0.15 0.15 0-15
20 0.20 0.35 16-35
25 0.45 0.80 36-80
30 0.15 0.95 81-95
35 0.05 1.00 96-00
Probability of Service Time
Service Time Probability of RD Assignment
(Minutes) Service Time Cumulative
Probability
5 0.15 0.15 1-15
15 0.35 0.50 16-50
25 0.40 0.90 51-90
35 0.06 0.96 91-96
45 0.04 1.00 97-00
First, simulate for one taxi for 10 days.
Then, simulate for two taxis for 10 days.
Comparison
Taxi Company would have to decide which is more important paying for about 43 hours of production time in a
Ten day period with no customers having to wait, or paying for around 4 hours of Production time in a Ten day
period, but having a probability of waiting equal to 0.59 with an average waiting time for
those who wait of around 20 minutes.
3.c.
The equation for the life time of the satellite is given by
f(x) = { 0.4e(-0.4x) for x > 0
0 otherwise
Answer
i. P(5<x<0)
=1- 0.4[e(-0.4*5) - e(-0.4*0)]/(-0.4)
=1+[e(-2) - e^(0)]
= 0.1353
ii . P(3<x<6)=
= e(-0.4*3) - e(-0.4*6)
= e(-1.2) - e(-2.4)
= 0.21044.
3d
Let X denote the failure of battery ,then the
Answer for Question 4
4A).
Use combined linear congruential generator method as recommended by L’Ecuyer
(1988) combining three multiplicative generators ) to generates a sequence of
random numbers.
Given
M1=32363 a1= 157 and seed= 100 for the first generaot
M2=31727 a1= 146 and seed= 300 for the first generaot
M3=31657 a1= 142 and seed= 500 for the first generaot
Generator period(P) = 8x1012 and c =0 in multiplicative generators. Then
X1j+1= a1 * X1j mod m1
X2j+1= a2 * X2j mod m2
X3j+1= a3 * X3j mod m3
Usig the L’Ecuyer (1988) combined multiplicative generators formula
( )
k
j−1
Xi = ∑ (−1) ❑ + x ❑ mod m1-1
j=1 i. j
Ri = Xi / m1, Xi>0
m1-1/ m1 Xi=0
and the value of k=3
using this (-1)j-1 coefficient explicitly performs the subtraction Xi,1-1, then we can
get
(-1)0 (Xi,1-1) - (-1)1 (Xi,2-1) - (-1)2 (Xi,3-1) , then
P= (m1-1) (m2-1) (m3-1)/2k-1 = 8 x 1012
Then, Using the above formula
Set Xj+1= (X1j+1 – X2j+1 + X3j+1) mod m1-1
Return
X1j+1= 157 * 100 mod 32363 =15,700
X2j+1= 146 * 300 mod 31727 = 12073
X3j+1= 142 * 500 mod 31657 = 7686
5.
6. Characteristics of Random Numbers
and that if g = h mod m, then we can write g = h-km for some integer k >=0. The
last result is
true because, by definition, g is the remainder after subtracting the largest integer
multiple of m that is <= h.
10.
Terminating Simulation
The TE is defined as the medical clinic is open from 8:30 am to 4:30 pm
There are 3 registration desk clerks are working and there are 5 doctors working
withone waiting room
If utilization is 100% for all doctors, then more doctors should be hired
Steady-state Simulation
There are 3 registration desk clerks and 5 doctors working with one waiting room
The stopping time is determined when there are 20 or more customers in the
waiting room
It will be determined that that time of day is considered peak hours and more
doctors should be hired, or present during that time