question

Tiara avatar image
0 Likes"
Tiara asked Jason Lightfoot commented

How to create output separator divided into two queues with percentages?

Screenshot (789).pngScreenshot (788).pngHello Expert,

So in working on my task, I was asked to create logic for a separator with split mode with a quantity of 1000, after which, once completed, the output generated by the separator must be divided into two queues with percentages allocated as follows: 81.87% for Queue4 and 18.13% for Queue18.

FlexSim 24.0.2
sendtoportsend to port by percentage
screenshot-789.png (539.5 KiB)
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

Sri_vikas K avatar image
0 Likes"
Sri_vikas K answered Jason Lightfoot commented

Hi @Tiara

Please find the attached model. I had split the single box in to 1000 pieces at Seperator region and sending the port by percentage at output region in separator properties.

1712056975246.png


Port By percentage.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.

Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·

To try and maintain the ratio (not random) you can put this on the sendtoport:

if (current.outObjects[1].stats.input.value/current.stats.output.value<81.87/100)
    return 1;
return 2;
1 Like 1 ·