question

Zahra Z avatar image
0 Likes"
Zahra Z asked Nathan B14 commented

How do you have longer appointments performed first?

Hi

Can you cerate me a sample model that has longer patient appointment completed by 3 pm? I am modeling a clinic with schedules completing by 6 pm. However, when I run the model, patients are not completely done by 6 and that makes a bottlenecks. In the real world, longer appointments with approximately 60 minutes of durations are performed in the morning and shorter ones (less than 30 minutes) are performed after 3 pm.

FlexSim 21.2.4
appointmentsclinic
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Nathan B14 avatar image Nathan B14 commented ·

@Zahra Z Was Felix's answer helpful to you? If so please be sure to "accept" the answer. If not, please let us know how else we can be of assistance.


If we haven't heard from you in three business days, we will auto-accept the answer. You can reopen the question at any time by commenting or replying back. Thank you.

0 Likes 0 ·

1 Answer

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

If you create all patients of the day at the same time and assign them a random appointment duration at that moment, you could simply have the tokens go through a delay activity that delays them for the inverse appointment time, effectively ordering the tokens by duration in descending order.

1636963012791.png

If the patients are created throughout the day, I would create an ordered table that holds the appointment times for the day. Each new patient would then be assigned the first row (highest time) which then gets deleted immediately afterwards. In the attached model I use a user event to fill the table with new values every 24 hours.

OrderPatientsByDuration.fsm


5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.