question

ROBIN avatar image
0 Likes"
ROBIN asked ROBIN commented

3 types of items in a separator with different Splitting quantity

Hello guys ! I'm new to the Flexsim and I need your help with my project.
I have a source that gives three types of items (by percentage) and each of these items needs to go into a separator with different split quantity. I need to label the splitted parts according to the labels and quantities presented in the table attached.
screenshot-2025-03-14-at-025438.png
it doesn't matter if the different items go into one of different queues.

Thank you guys in advance!!

FlexSim 23.2.3
labelsseparatorsplitting
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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered ROBIN commented

I would use the OnEntry trigger of the separator to create an array of values which will be assigned to the exiting items.

Array subTypes = [];
Table splitData = Table("SplitData"); for(int col = 1; col <= splitData.numCols; col++) {     string name = splitData.getColHeader(col);     int qty = splitData[item.Type][col];     subTypes.append(Array(qty).fill(name)); } current.setProperty("SeparateQty", subTypes.length); current.SubTypes = subTypes;

In OnExit trigger the first element of the array would then be assigned to the item and removed from the array (so the array is empty once all items have exited).

· 8
5 |100000

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

ROBIN avatar image ROBIN commented ·
Hello,

Thank you for your answer.

It doesn't seem to work in my case. to be more clear, (1,2,3) are the labels of the inputs of the separator, and (F1, F2, F3, F4) are the labels of the outputs I want. for example the item 2 should be splitted to 22 parts in which 2 labeled as F1, 15 as F2 and 5 as F3.

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann ROBIN commented ·
Can you upload your model to check?
0 Likes 0 ·
ROBIN avatar image ROBIN Felix Möhlmann commented ·

I will as soon as I can, I can't access flexsim right now

0 Likes 0 ·
Show more comments
Joerg Vogel avatar image Joerg Vogel ROBIN commented ·

@ROBIN, a seperator creates items on Exit. They are not available after process finish event. So you tell your separator how many items are to exit in total. then you can assign oN Exit event what label value they get. On Entry event I would create an Array of Arrays, which consists of pair values. Value one is the name of a label and 2nd value is the value to this label name. On exit method "pop" returns and erases an array of paired values to assign them as label to the exiting item.

0 Likes 0 ·
ROBIN avatar image ROBIN Joerg Vogel commented ·

Hello,

Thank you for your answer.

I get what you're saying but as I said I'm very new to the software so I don't get how should I amplement your idea.

0 Likes 0 ·