question

Jie J L avatar image
0 Likes"
Jie J L asked Jie J L commented

How do I set Dispatcher to make each operator to load 4 items?

There three operators.Each operator load 4 items. But when I use Dispatcher,each operator just load one item.How do I set Dispatcher to make each operator to load 4 items?

FlexSim 17.2.5
diapatcher
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

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Jie J L commented

I use the dispatchers' On Receive Tasksequence trigger to push the ongoing tasksequence to a global list in a source code.

List("TSList1").push(ts);

A process flow watches this list. Each time an entry occurs a token is created. A batch activity collects 4 tokens and releases one token. This token pulls 4 tasksequences from the list as an array called pulled and aquires an operator as a resource. Then a Call Sub Flow activity dispatches the 4 taskseqeunces to the resource. After the resource gets available again, the transports have been finished, the resource is released.

load-4-items.fsm


load-4-items.fsm (28.6 KiB)
· 2
5 |100000

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

Joerg Vogel avatar image Joerg Vogel commented ·

The attached model dispatches 4 transport tasksequences in a cluster of 4 intermediate dispatcher for one operator.

I use source code loops to open and close the input and output of the dispatcher in the cluster. You can replace the cluster by one dispatcher, if you count the incoming tasksequences. You close the input, if such a dispatcher received 4 tasksequences.

transport4items.fsm

0 Likes 0 ·
Jie J L avatar image Jie J L commented ·

Thanks, Jörg Vogel.It's useful and provide a new idea of modeling.Thanks

0 Likes 0 ·