question

Noah K avatar image
0 Likes"
Noah K asked Ben Wilson commented

Source Timing

Hi,

I want to create a source that produces 40 boxes per minute, but the boxes are randomly spaced within that timeframe.

Can anyone help? Thanks!

FlexSim 19.0.0
source
5 |100000

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

Ben Wilson avatar image
0 Likes"
Ben Wilson answered Ben Wilson commented

Hi @Noah K,

In the 3D, I would use a source to create all 40 items at once, each minute. These 40 items immediately go to a 40 capacity processor that assigns a random process time 0-60 seconds. The source+processor together accomplish your goal.

A similar concept can be built in process flow.

Here is a sample model implementing both the 3D and ProcessFlow approaches:

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

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @Noah K,

We hope we were able to help you with your question. If any of the answers here helped you solve your problem, please click the Accept link to let us know your problem was solved, and to let the rest of the community know what worked well for your question.

If you're still not sure what to do, use comments and replies to ask for further explanation or ask follow up questions.

0 Likes 0 ·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered

There is certainly a better approach than this:

You collect 40 different random values. You normalize these values, that the sum of them gets 1. You multiply each value with 2/3 seconds. You set the delay time of the Process Flow to create a new item to the next value of your collection. If the 40th item is released you start to create a new collection of 40 values.

You can use this approach in 3D source, too. You build OnReset the first set of 40 values and add the first value to a label at the source. This label value is the Inter-Arrivaltime. The OnCreation trigger changes the label value.

This model (Version 18 .2.2) uses a static label array in the 3D Source triggers. interarrivaltime-by-static-array-values.fsm


5 |100000

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

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.