A senior collected data concerning the amount of time students had to wait when
ID: 3260019 • Letter: A
Question
A senior collected data concerning the amount of time students had to wait when adding or dropping courses at the beginning of the semester. The student then built a model of the behavior and experimented different strategies that at some cost would reduce the amount of waiting time. The data collected is given below:
Students are greeted by a receptionist who collects copies of their academic schedules. They then wait to be served by one of five "Academic Counselors". The counselors perform the following services:
Hour Changes
Hour Conflict Resolution
Add a Course
Replace a Course
Overload a Course
Change Field of Study
After accomplishing the necessary operation, students are logged out by a "receptionist" who collects the "Add-Drop" slips. However, approximately 5% of students must go to "Departmental Counselors" to gain approvals.
Requirement 1: Modeling the Current System
Identify any statistics that you would want to generate from your computer simulation. Why would the statistics be useful to the decision maker?
Using the "Harbor Simulation Algorithm" of the text as an example, construct an algorithm to simulate the scenario described above. (DO NOT CODE)
Describe in detail any data that you would like collected that would allow you to construct (and code) the various submodels of your algorithm.
Waiting time (Min) Number Occurrences 0-15 146 16-30 94 31-46 82 46-60 79 61-75 74 76-90 78 91-105 51 106-120 49 121-135 40 136-150 25 151-165 28 166-180 8 181-195 4 Total: 758Explanation / Answer
School SYSTEM ALGORITHM
The following algorithm is for simulation of students waiting for selecting academic courses where waiting time is 0-195 min
Terms used in the algorithm:
between i= Time between successive selection of courses. (a random integer
varying between 0 and 195 min)
arrive i= Time from start of clock at t=0 when student i arrives at the School for
unloading.
unloadi= time required to unload student i (a random integer varying between 45
and 90 min).
starti= Time from start of clock at which student i commences its unloading.
idlei= time for which dock facilities are idle immediately before commencement of
unloading student.
waiti= time student i waits in the School after arrival before unloading commences.
finishi= time from start of clock at which service for student i is completed at the
unloading facilities.
Schooli= total time student i spends in the School.
HARTIME: Average time per student in the School.
MAXHAR: maximum time of a student in the School.
WAITTIME: average waiting time per student before unloading.
MAX WAIT: maximum waiting time of a student.
IDLETIME: Percentage of total simulation time unloading facilities are idle.
Simulation Modeling and its Application
Institute of Lifelong Learning, University of Delhi 20
n =Input["Enter the total number of students for the simulation. "];
Array[table,{5,7}];
table[1,1]="Average time of a student in the School. ";
table[2,1]="Maximum time of a student in the School. ";
table[3,1]="Average waiting time of a student. ";
table[4,1]="Maximum waiting time of a student. ";
table[5,1]="Percentage of time dock facilities are idle. ";
For[j=1,j<= 6,j++,
between1=RandomInteger[{0,195}];
unload1=RandomInteger[{106,195}];
arrive1=between1;
HARTIME=unload1;
MAXHAR=unload1;
WAITTIME=0;
MAXWAIT=0;
IDLETIME=arrive1;
finish1=arrive1+unload1;
For[i=2,i<= n,i++,
betweeni=RandomInteger[{0,195}];
unloadi=RandomInteger[{106,195}];
arrivei=arrivei-1+betweeni;
timediff=arrivei-finishi-1;
If[timediff>0,idlei=timediff; waiti=0,waiti=-timediff;idlei=0];
starti=arrivei+waiti;
finishi=starti+unloadi;
Schooli=waiti+unloadi;
HARTIME+=Schooli;
If[Schooli>MAXHAR,MAXHAR=Schooli];
Simulation Modeling and its Application
Institute of Lifelong Learning, University of Delhi 21
WAITTIME+=waiti;
IDLETIME+=idlei;
If[waiti>MAXWAIT,MAXWAIT=waiti];];
HARTIME/=n;
WAITTIME/=n;
IDLETIME/=finishn;
table[1,j+1]=Round[HARTIME];
table[2,j+1]=MAXHAR;
table[3,j+1]=Round[WAITTIME];
table[4,j+1]=MAXWAIT;
table[5,j+1]=N[IDLETIME];];
TableForm[Array[table,{5,7}]]
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.