send to processor based on queue size

send to processor based on queue size

jennifer_b
Not applicable
19 Views
4 Replies
Message 1 of 5

send to processor based on queue size

jennifer_b
Not applicable

[ FlexSim 20.1.0 ]

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

0 Likes
Accepted solutions (1)
20 Views
4 Replies
Replies (4)
Message 2 of 5

braydn_t
Not applicable
Accepted solution

@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?

0 Likes
Message 3 of 5

jennifer_b
Not applicable

Yes, I did that ... but i don't understand why there are some flaws
thanks for your help

taller-3-punto-1.fsm

0 Likes
Message 4 of 5

jennifer_b
Not applicable

Processor2 waits to run until Processor1 ends.

The two processors cannot work at the same time

0 Likes
Message 5 of 5

braydn_t
Not applicable

If you do not want them working at the same time, I would use process flow.

Here is an example:

jennifer.fsm

0 Likes