首页
网站开发
桌面应用
管理软件
微信开发
App开发
嵌入式软件
工具软件
数据采集与分析
其他
首页
>
> 详细
辅导data编程、讲解Python,CS,c++程序设计 调试Matlab程序|解析Java程序
项目预算:
开发周期:
发布时间:
要求地区:
Project 1
Discrete Event Simulation of a Mass Vaccination Site
In this project, your group will implement some of the basic elements of an eventdriven
simulation of a system with two dependent queues. You will implement
queues, servers, event routines, and periodically print statistics. You will also
design and implement data structures and the routines to maintain them, and a
main routine to coordinate all parts of the simulation.The details of the system are
described below.
Background:
You are asked by the provincial government to design a mass vaccination site for
COVID-19 vaccinations. Vaccinations are organized at a large event venue that
has a maximum occupancy of B visitors (to accommodate physical distancing
guidelines). Vaccinations are administered from 9 AM to 5 PM daily. Vaccine
doses are given to visitors on a first-come, first-serve basis. Each visitor entering
the site needs to wait in line to get checked in (for ID verification). Check-in is
done by m1 check-in volunteers. After check-in, visitors wait in another line to
receive their vaccine dose by m2 nurses. After a vaccine dose is administered, each
visitor needs to wait for t minutes (to make sure they don’t have any obvious side
effects) before departing the vaccination site.
System to Simulate:
The system consists of two queues, one after the other. Once visitors enter the site,
they stay in either the check-in queue, the vaccination queue, or the waiting
area. The first “check-in” queue has m1 servers. The second “vaccination” queue
has m2 servers. The total number of visitors in the whole system should not
exceed system capacity B. This maximum capacity includes visitors in both queues,
visitors being served and visitors in the waiting area. Visitors arrive and enter the
check-in queue if the system is not full. The visitor at the head of each queue
receives service when any of the servers becomes available. Each visitor has to pass
both queues and the waiting area before departing the system. Simulation will
start at the beginning of the day (9 AM) end when the last visitor that entered
before or at 5 PM leaves the site.
Queues:
You will implement two M/M/m queues. You can assume that visitors come from
an infinite population, and that vaccine supply is sufficient to vaccinate all visitors
who enter the site. Assume that the queueing discipline for each queue is FCFS
(First-come, First-served). Arriving visitors leave immediately if the site is at full
capacity and do not return the same day.
Random Variate Generation:
Visitor interarrival time and both queues’ service time distributions are
exponential. Arrivals are generated based on the mean interarrival time 1/
λ minutes. Service time of the check-in queue is based on a service time
distribution with mean service time 1/µ1 minutes. Service time of the vaccination
queue is based on a service time distribution with mean service time 1/µ2 minutes.
Time in the waiting area is deterministic at t minutes. You will need to write a
separate function for each distribution to generate values for arrival times and
service times per server based on the exponential distribution. You should use C’s
uniformly-distributed random number generator as the basis for your random
variate generation (similar to HW3).
Event Routines:
You need to write a separate function for each of the event routines: Arrival, start
service of check-in queue, depart from check-in queue and arrive at vaccination
queue, start service at vaccination queue, depart from vaccination queue and enter
waiting area, depart waiting area and system.
End of Simulation:
Simulation starts at 9 AM. Simulation ends when the last visitor who arrived
before or at 5 PM leaves the system. No visitors are allowed to enter the system
after 5 PM.
Performance Metrics:
You need to keep track of the following performance metrics for the duration of
the simulation:
• Current number of visitors in system
• Response time for each departing visitor (time between when a visitor
enters and leaves the whole system)
• Waiting time in check-in queue for each visitor that starts service with
a check-in volunteer
• Waiting time in vaccination queue for each visitor that starts service
with a vaccination nurse
• Number of visitors who leave the system because it’s at full capacity
when they arrive
Report Generation:
Using the above statistics (and others you might want to track), you need to
generate a report with these performance metrics:
• Total number of departures, or the total number of vaccinated visitors
leaving the site
• Average number in system
• Average response time
• Average waiting time in check-in queue
• Average waiting time in vaccination queue
• Number of visitors who leave the system because it's at full capacity
when they arrive.
This report should be generated periodically after each hour of simulated time
(i.e., at 10 AM, 11 AM, 12 PM, ..., 5 PM), as well as at the end of simulation. You
need to compute these statistics during runtime.
Your simulation should correctly handle any correct choice of input
parameters λ, µ1, µ2, t, B, m1 and m2. All these parameters should be
arguments to call the program, in addition to the random seed S.
Submission instructions:
Submit a single file “proj1.c” containing the source code of your simulation
program (including all the data structure definitions and appropriate comments).
The first line in the file should be a comment that includes the command line you
use to compile the program. Your executable should run using the following
command line parameter format:
./proj1 λ µ1 µ2 t B m1 m2 S
The arrival and service rates as well as wait time t can be real numbers, but the
remaining parameters are all integers.
For example: ./proj1 10 0.5 0.25 15 500 30 50 821
Should simulate a system with arrival rate of 10 visitors per minute, service rate
per check-in server of 0.5 visitors per minute, service rate per vaccination server
of 0.25 visitors per minute, a wait time of 15 minutes, site capacity of 500, 30
check-in servers, 50 vaccination servers, and a random seed of 821.
Important Note: Your code should be readable. It should use easy to understand
variable and function names. It should include a lot of comments to enable others
to understand it. Please err on the side of more comments and more explanation.
The quality of your code and ease of understanding it will be part of your grade.
Choosing efficient data structures that speed up simulation time is a plus.
软件开发、广告设计客服
QQ:99515681
邮箱:99515681@qq.com
工作时间:8:00-23:00
微信:codinghelp
热点项目
更多
代做ceng0013 design of a pro...
2024-11-13
代做mech4880 refrigeration a...
2024-11-13
代做mcd1350: media studies a...
2024-11-13
代写fint b338f (autumn 2024)...
2024-11-13
代做engd3000 design of tunab...
2024-11-13
代做n1611 financial economet...
2024-11-13
代做econ 2331: economic and ...
2024-11-13
代做cs770/870 assignment 8代...
2024-11-13
代写amath 481/581 autumn qua...
2024-11-13
代做ccc8013 the process of s...
2024-11-13
代写csit040 – modern comput...
2024-11-13
代写econ 2070: introduc2on t...
2024-11-13
代写cct260, project 2 person...
2024-11-13
热点标签
mktg2509
csci 2600
38170
lng302
csse3010
phas3226
77938
arch1162
engn4536/engn6536
acx5903
comp151101
phl245
cse12
comp9312
stat3016/6016
phas0038
comp2140
6qqmb312
xjco3011
rest0005
ematm0051
5qqmn219
lubs5062m
eee8155
cege0100
eap033
artd1109
mat246
etc3430
ecmm462
mis102
inft6800
ddes9903
comp6521
comp9517
comp3331/9331
comp4337
comp6008
comp9414
bu.231.790.81
man00150m
csb352h
math1041
eengm4100
isys1002
08
6057cem
mktg3504
mthm036
mtrx1701
mth3241
eeee3086
cmp-7038b
cmp-7000a
ints4010
econ2151
infs5710
fins5516
fin3309
fins5510
gsoe9340
math2007
math2036
soee5010
mark3088
infs3605
elec9714
comp2271
ma214
comp2211
infs3604
600426
sit254
acct3091
bbt405
msin0116
com107/com113
mark5826
sit120
comp9021
eco2101
eeen40700
cs253
ece3114
ecmm447
chns3000
math377
itd102
comp9444
comp(2041|9044)
econ0060
econ7230
mgt001371
ecs-323
cs6250
mgdi60012
mdia2012
comm221001
comm5000
ma1008
engl642
econ241
com333
math367
mis201
nbs-7041x
meek16104
econ2003
comm1190
mbas902
comp-1027
dpst1091
comp7315
eppd1033
m06
ee3025
msci231
bb113/bbs1063
fc709
comp3425
comp9417
econ42915
cb9101
math1102e
chme0017
fc307
mkt60104
5522usst
litr1-uc6201.200
ee1102
cosc2803
math39512
omp9727
int2067/int5051
bsb151
mgt253
fc021
babs2202
mis2002s
phya21
18-213
cege0012
mdia1002
math38032
mech5125
07
cisc102
mgx3110
cs240
11175
fin3020s
eco3420
ictten622
comp9727
cpt111
de114102d
mgm320h5s
bafi1019
math21112
efim20036
mn-3503
fins5568
110.807
bcpm000028
info6030
bma0092
bcpm0054
math20212
ce335
cs365
cenv6141
ftec5580
math2010
ec3450
comm1170
ecmt1010
csci-ua.0480-003
econ12-200
ib3960
ectb60h3f
cs247—assignment
tk3163
ics3u
ib3j80
comp20008
comp9334
eppd1063
acct2343
cct109
isys1055/3412
math350-real
math2014
eec180
stat141b
econ2101
msinm014/msing014/msing014b
fit2004
comp643
bu1002
cm2030
联系我们
- QQ: 9951568
© 2021
www.rj363.com
软件定制开发网!