Activity: Airport Rush Hour

Advanced Modeling Activities

Author

Manuel D. Rossetti, PhD P.E.

We change this model together: the instructor types the code, and you type along. Before each run, write down a prediction; then run and check it.

The situation. The airport security checkpoint of the earlier activities has one officer, who inspects each passenger’s identification in a triangular time with minimum 0.75, mode 1.5, and maximum 3 minutes (stream 2). Passengers no longer arrive at a constant rate: the checkpoint opens with a morning rush. Over the 10 hours of a day, the passengers arrive as a non-stationary Poisson process (stream 1) with these rates:

Hour 1 2 3 4 5 6 7 8 9 10
Passengers per hour 20 40 50 40 25 15 15 20 25 20

Each day starts empty. Simulate 30 days. Does one officer suffice, and if a second officer can work for 3 hours, which 3 hours should they be?

Setup. Get the starter file AirportRushHour.kt from the code/ folder beside this activity. Put it in src/main/kotlin/student/activities in your KSL project, the package the file declares; create the folder if you do not have it. Run its main. It compiles and runs, but no passengers arrive yet: the three parts marked TODO are what we write.

1. Predict

  1. What is the average arrival rate over the day, and the officer’s utilization over the day? Does one officer look like enough?

  2. Compute the officer’s utilization hour by hour, \(\rho = \lambda E[ST]\), with \(\lambda\) in passengers per minute. In which hours is \(\rho \geq 1\)?

  3. In which hour do you expect the longest waits? Why might it not be the hour with the most arrivals?

2. Arrivals that change by the hour

We write TODO 1 together: a PiecewiseConstantRateFunction and an NHPPPiecewiseRateFunctionEventGenerator.

  1. The table gives rates per hour, and the model runs in minutes. What must the rate function’s durations and rates be?

  2. Run. Compare the officer’s utilization with your prediction in 1a. What do the average wait and the probability of waiting 5 minutes or more say about the day?

3. Statistics by the hour

We write TODO 2 together: a ResponseSchedule of ten 60-minute intervals.

  1. Run. In which hour is the average wait longest? Compare with your prediction in 1c, and explain why the line keeps growing after the hour with the most arrivals.

  2. The officer’s utilization in hour 4 is 1.000. What does that say about the line in that hour?

4. A second officer

We write TODO 3 together: a CapacitySchedule for the officer.

  1. From 1b, which 3 hours should the second officer work? Predict the average wait with that schedule.

  2. Run the schedule that starts the second officer in hour 2, then the ones that start in hour 1 and in hour 3. Complete the table:

    Second officer Average wait P(wait ≥ 5 minutes) Longest hourly wait
    None
    Hours 1 to 3
    Hours 2 to 4
    Hours 3 to 5
  3. With the schedule for hours 2 to 4, the report gives the officer’s NumBusyUnits, InstantaneousUtil, and ScheduledUtil. Explain each number. Why is NumBusyUnits the same as with one officer?