question

Rui N avatar image
0 Likes"
Rui N asked Jeanette F commented

Worker aquired even when in down behavior

ModeloTeste.fsm

We're trying to simulate a bank. In this simulation we aquire both a worker and a service desk before the client moves up to the desk. However, when the workers are in their lunch break (down behavior), the client still moves up to the desk, where it stands still until the worker is back.


It's the first time we're working with this program, for a college project, and out teacher can't help us either.

FlexSim 21.0.3
flexsim 21.0.3scheduledown behavior
modeloteste.fsm (70.9 KiB)
· 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 @Rui N, was Eric M'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

Eric M avatar image
0 Likes"
Eric M answered Eric M edited

Hi @Rui N, a list is going to be much better than a resource for this purpose. Lists can be a lot more flexible / dynamic than a resource, so they're generally used much more than resources which are fairly limited. A resource isn't able to prevent a token from acquiring something if it's listed on the resource. This is why the workers are still being acquired despite being off-schedule. I've replaced the worker resource with a list in your model. The workers will be on the list and when a customer comes they will try to "pull" the worker off of the list (like acquiring a resource). Here's a screenshot of some of what I added and I'll explain how it works.

The source creates a token whenever one of the worker's states changes to "scheduled down." The worker on break then gets pulled from the list, meaning they aren't available for a customer to pull. We then wait for the worker to become available again, and when they do, we put them back on the list, meaning they are now available for customers to pull.

Let me know if you have any questions about how this is working.

modeloteste-EM.fsm


1622660036103.png (22.6 KiB)
modeloteste-em.fsm (78.2 KiB)
5 |100000

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