question

Kon Kon D avatar image
1 Like"
Kon Kon D asked Kon Kon D commented

Sending different percentages to fixed ports  according to different batches

Here, First batch of 100quantities tokens needs to send 80% to port 1 and 20% to port 2. Second batch needs to send 60% to port1 and 40% to port2. Similarly, third batch is 55% and 45%. Different percentages of different batches are difficult to develop in process flow. Have anyone any suggestion please?

Percentage problem 1.fsm

FlexSim 20.2.3
flexsim 20.2.3percentages
· 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 ·

I assume you don’t need a statistical distribution. It is more a fixed distribution, but the items are released if receiving objects get available. I would set different label values to indicate the output port, when batch collecting ends. I put the different distributed type ratios in a table. A label will define the row of the table to assign the type. I increment this value on batch collecting finish. And I close the input of the queue, if it is a batching activity I wait for the event that tells me the batching activity gets empty again. The distribution is achieved by pulling of the down stream objects, which are pulling only matching label values. If it is a process flow, I use a list with partitions of type label value. The down stream process will pull tokens from the list partition then.

1 Like 1 ·
Kon Kon D avatar image Kon Kon D Joerg Vogel commented ·

Thanks @Jörg Vogel

0 Likes 0 ·

1 Answer

Jason Lightfoot avatar image
2 Likes"
Jason Lightfoot answered Kon Kon D commented

Put the port1 percentage as a label and refer to that the decision activity where you send by percentages.

So in the source table:

And then in the decide:

percentage-problem-1_jl.fsm




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

Kon Kon D avatar image Kon Kon D commented ·

Thanks a lot @jason.lightfoot

0 Likes 0 ·