question

Yesid M avatar image
0 Likes"
Yesid M asked Benjamin W2 commented

queued rejection and processor assignment

Hello. You can help me with this model. I have a model where there is a two-class client source and two processors. What I want to do is that if there is a queue in the model, the clients leave, otherwise they enter the processors. How can I simulate this rejection if there is a queue? Besides, blocking the processors according to the type of customer. That is to say, if the clients are class 1, any of the two processors can attend to them, but for class 2 clients, the two processors join together to attend to this type of clients. Translated with www.DeepL.com/Translator (free version)

queueprocessor
· 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.

Benjamin W2 avatar image Benjamin W2 commented ·

Hi @Yesid M,

Was Braydn's answer helpful for you? If so, can you please click accept? If not, how else can we help?

0 Likes 0 ·

1 Answer

Braydn T avatar image
0 Likes"
Braydn T answered

@Yesid M

Have you gone through the in software tutorials? Those will be very helpful to you. The first tutorials are about clients waiting to long, and these here: https://docs.flexsim.com/en/20.0/Tutorials/TaskLogic/Tutorial2CoordinatedTasks/CoordinatedTasksOverview/

are about synchronizing tasks.

I would do this mostly in process flow. I would do an event triggered source in the queue, and a decide. If the item type was 1, I would have it acquire a processor and continue. If it was 2, I would have it go into a different flow, and have it acquire both processors.

You can accomplish having the customers leave by checking if the queue's subnodes were longer than whatever amount you define. You can find the number of items in a queue by selecting the queue using a dropper in a code window, and then adding the command .subnodes.length to the end of the queues name. You would end up with something like this: Model.find("Queue1").subnodes.length;

Feel free to ask us if you have anymore questions

5 |100000

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