question

james B5 avatar image
0 Likes"
james B5 asked Emily Hardy commented

Question about the arrival distribution

Hello,

Im trying to have 9 parts come out that each one of them have a different color and each color goes to its queue. the problem im facing is that the parts arent coming out 9 different parts

outsourcing.fsm this is the file. i have used duniform for the type and color and im not sure if that is causing the problem.

please help

distributions
capture.jpg (119.8 KiB)
outsourcing.fsm (31.8 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

Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Emily Hardy commented

You have set, that there are 9 different item types which are randomly distributed by an discrete uniform statistical distribution. Each item type gets its own color. The arrival style is batch processing with a normal statistical distribution.

The model does what you set. It is the nature of random and chaos that there isn't an order. If you need an order of 9 different types of items repeating randomly in the arrival style.

Because you use batch processing there exists already an label you can use to get the nine item types at each batch. The source code is for the item type in the template Set Item Type and Color

current.f_curbatch

Generally you would connect the statistical output value of the queue with the type the item gets. Thus you set then color by the type. The preferred operator for this kind is the modulus.

(current.stats.output.value%9)+1

source code for the template Set the Item Type and Color field Item Type

If you need 9 different item types in each batch created in randomly order, then this isn't anymore a single line of source code.

Then you have to set an interval of your 9 types as an array randomly distributed and get the n-th array value that matches with the label value of f_curbatch.

Alternatively you can choose from an ordered number array randomly a value as the type and remove it. If the array is empty, then the batch is finished and you fill the array again.

outsourcing-randomly-batch.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.

Emily Hardy avatar image Emily Hardy ♦ commented ·

@james B5 Did this answer your question?

0 Likes 0 ·