question

Jennifer B avatar image
0 Likes"
Jennifer B asked Braydn T commented

send to processor based on queue size

If there is only one person in the queue go to processor1 but if there are more than 2 people, go to processor2

If processor 1 is in service, processor 2 does not work and vice versa.

I attach the model

Thanks for the help

FlexSim 20.1.0
queue contentqueue sizesend to processor
5 |100000

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

1 Answer

Braydn T avatar image
0 Likes"
Braydn T answered Braydn T commented

@Jennifer B

I would get rid of your list logic, and use a conditional port for your push strategy in Queue1. The condition would be current.subnodes.length > 1, true is port 2, false is port 1. The question is if there is already someone in processor1, does processor2 wait to work until it processor1 is done?

· 3
5 |100000

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