question

OC avatar image
0 Likes"
OC asked Jeanette F commented

Arrival sequence

Hello,

Could someone please assist me? I am looking to produce four different products utilizing a specific arrival sequence, as outlined in the table below.

1698139965095.png

1698139994749.png

My intention is for the product arrival to be randomized.

1698140125524.png

However, I have encountered an issue where the quantities reflected in the dashboard at the end of the simulation do not match the ones I initially set in the arrival sequence.

1698140056247.png

Thank you very much for your help.

FlexSim 23.0.8
arrival sequence
1698139965095.png (62.7 KiB)
1698139994749.png (185.4 KiB)
1698140056247.png (62.9 KiB)
1698140125524.png (207.0 KiB)
· 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @OC, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

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

The Type label you set in the source table doesn't mean anything if you override it with a random number when the item is created. Naturally you are going to end up with quantities that reflect the distribution you used to assign the label values.

You can either assign the labels by percentage according to your target distribution (normalize the quantities so they total 100, then use those values in the "Set Label By Percentage" option).

Or, and I'm paraphrasing here, create a list of all type values that you want to create and when an item is created, you pick a random value from that list and assign it to the item. You of course then have to be sure to not create more items than there are values on the "list". This can be done in different ways, but it's generally the only way to end up with a pre-determined number of items of each type but in a random order.

An easy option is to do this in Process Flow, by utilizing a small random delay.

FixedQuantity-RandomOrder-fm.fsm


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

OC avatar image OC commented ·

Thanks for your reply .

I don't really understand what I need to change in the trigger. I want to put exact values of the quantity of products to be manufactured, and not percentages.

I apologize, I had to add the model

aaa.fsm

0 Likes 0 ·
aaa.fsm (28.6 KiB)
Felix Möhlmann avatar image Felix Möhlmann OC commented ·

Doing this in the trigger requires a decent bit of coding, so I suggested the Process Flow way first.

See the attached for how it could be implemented in the source's trigger.

aaa_1.fsm

0 Likes 0 ·
aaa-1.fsm (27.3 KiB)