question

Manuel F. Silva avatar image
0 Likes"
Manuel F. Silva asked Jeanette F commented

Assigning clients to workers during lunch breaks

I am trying to model a service process that runs from 8:00 a.m. to 8:00 p.m. There are several workers servicing clients, organized in a group, and the workers have different lunch time breaks.

I would like to know how can I assure that when one worker is in his lunch time he will not be assigned no client to attend.

FlexSim 21.0.4
groupsflexsim 21.0.4breaks
· 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Manuel F. Silva, was Felix Möhlmann's answer helpful? If so, please click the red "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered

If you are using time tables to control the lunch time and are assigning the workers through an "Acquire Resource" activity in a Process Flow you could do the following:

Each worker is assigned a label that shows whether they are currently on a break or not. Then you can change the value of this label in the down and resume function of the respective time table.

Then you add a query to the acquire activity, so only workers that are not on break can be assigned.

As the acquire activity will not automatically try to acquire a resource again once the label value changes again, I added a maximum wait timer and send the tokens to a "Wait for Event" activity. There they wait for either a new worker becoming available or the time table resuming. If you are using multiple time tables they would all have to added here.


AcquireOnlyActive.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.