Complete problem 2 from Chapter 9 in Kelton.
#create reproducability
set.seed(123)
Modify Model 9-1 to support preemption of the Doctor resource for Urgent patients. In particular, if all doctors are busy when an Urgent patient arrives, the Urgent patient should preempt a doctor from one of the other non-Urgent patients. Compare the results of the models. Would you advise that the emergency department make the corresponding change in the real system?
Leveraging from Model 9-1, to create the priortization I changed the AddOn Processes for Seizing on TraumaRooms_Processing and TreatmentRooms_Processing for Doctor’s to LargestValueFirst. Since Urgent patients are assigned a 4 value, I believe this would cause 4’s to jump ahead of 3’s in these two particular servers (Trauma Rooms and Treatment Rooms). The models were run for 10 days.
Set-up of Model 9-1, Modified
TraumaRooms_Processing Adjusted
TreatmentRooms_Processing Adjusted
Results for this new model are displayed below, showing that Doctor utilization was 99.41%, Nurses were 99.47% utilized, and that Urgent Patients spent an average time of 5.08 in the system.
Modified Model - Entity Stats
Modified Model - Resource Stats
Comparing the results to the original model (below), there was absolutely no change in the results. This makes me question my understanding of the AddOn Processes.
Original Model - Entity Stats
Original Model - Resource Stats
The second attempt included creation of a new AddOn Process called DoctorAllocated_Preempt, in which a decision would be made where the ModelEntity==4, then seize doctor, the release the doctor, and assign the ModelEntity to the TimeNow (as done on other previously created AddOn Processes). This process is triggered when the Doctor is Allocated.
Modified Model 2
Modified Model 2 - Add On Process
No luck and the results are unchanged.