question

Isidro G2 avatar image
0 Likes"
Isidro G2 asked tannerp commented

How can I generate in a Source 100 different articles with different dimensions?

I want to use only one Source and that same one generates 100 different products with different dimensions each, and with different and independent Inter-Arrival Times.

I used the "Arrival Schedule" option to generate 10 Arrivals but the arrivals of the products are made as Arrival1, Arrival2, Arrival3, ... Arrival10 are located, and the Inter-Arrival Time between them are not independent.

Can you please tell me how I can solve my problem?

FlexSim 19.0.2
source code
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 Isidro G2 commented

You need the standard of the source: inter arrival time set by a statistical distribution for example the default function exponential. You can limit 100 generated items by stopping the source after the exit of 100 items through an OnExit trigger of the source.

The setting of an object size is a picklist option of the triggers: Visual > Set Rotation, Size or Location.

You add another picklist option in a trigger by the green cross icon.

Each coordinate value can be a discrete number or the result of mathematical term like a statistical distribution:

2 + (duniform(1,5,1)/10)  

This term creates numbers in the Range [2.1 ... 2.5] with a step of 0.1

The items have a randomly size, but there might be some of them having the same size. If you need unique random sizes you must create randomly value triplets that you don't used before. You put used combinations on a list, and if you don't find the new triplet in the list you use it to set the size of item exiting the source. Otherwise you build another triplet.


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

Isidro G2 avatar image Isidro G2 commented ·

thank you so much

0 Likes 0 ·