Mohamed Thasleem, Kalikul Zaman
07/19/2020
Elevator Simulation - Simulate the average time passenger waiting in queue and time used to reach the destination floor based on waiting time will be simualted in this program
Setting the parameters for the simulation environment as below
Total Elevator - 3
Number of Floors - 7
Time in seconds to pass floor - 4
Door will open in seconds - 6
Max Passenger Limit - 12
Used 50 iterations of simulation and compare the results
The key part of the process is Elevator and Passenger, Please find the details of functions used
Elevator - It has all the main features of elevator to work on like Press_Button, Sleep Time when no passenger, expecting passengers, door status, alternative direction movement
Elevator Status - We can categorize the status of elevator by 5 states, Sleep, Move, Door Open, Passenger waiting and doors closed, each of the status was given with unique value
Passenger - Random Passengers were introduced by simulation
Direction - It can be up, down and not moving
Time for passenger entry and exit was also randomly populated to support the model simulation
Each time the average simulation time in queue and avg time to reach the final destination floor has been captured and printed
Sample simpy execution