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.

Jennifer B avatar image Jennifer B commented ·

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 0 ·
Jennifer B avatar image Jennifer B commented ·

Processor2 waits to run until Processor1 ends.

The two processors cannot work at the same time

0 Likes 0 ·
Braydn T avatar image Braydn T Jennifer B commented ·

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

Here is an example:

jennifer.fsm

0 Likes 0 ·
jennifer.fsm (32.7 KiB)

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.