question

gilbert jerald avatar image
0 Likes"
gilbert jerald asked ana.pc2 published

How to split the flow of item based on quantity?

Hello everyone.

I have model in which 5 types of item will flow from source to processor and to shipping area ,here "n" number of item will be generate from source , The flow which i am looking for is . 20 item from item type 1, 30 item from item type 2, 15 item from item type 3 ,10 item from item type 4, 12 item from item type 5 , should only enter to shipping area remaining item that are generate from source should goes through sink how to achieve this flow please help me to solve this issue .

i have attach a sample model for your reference.

Thanks in advance for your answersplit-item-based-on-quantity.fsm

FlexSim 17.0.0
split item flow based on quantity
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

·
Jeff Nordgren avatar image
1 Like"
Jeff Nordgren answered ana.pc2 published

@gilbert jerald,

Attached is your model with the changes that I've made to it.

In Processor1, I added 10 labels, two for each itemtype. TypeXTotal is the total numberof that itemtype that you want sent to the shipping area queue. TypeXCurr is the total number of that itemtype that has come through the processor.

In the Send To Port code area, I added code that adds to the correct TypeXCurr label for each itemtype exiting Processor1. If TypeXCurr <= TypeXTotal, then I return a 1 to send the flowitem out port 1. Otherwise if the max for that itemtype has been reached, I return a 2 to send the flowitem to the sink.

Take a look at the model and see if this is what you were looking for and if that will work for your situation.

split-item-based-on-quantity-jn1.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.

gilbert jerald avatar image gilbert jerald commented ·

@Jeff Nordgren

Thank you sir for your valuable answer. The model is quite working fine what i have expect .

0 Likes 0 ·

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.