question

Gil Cnaan avatar image
1 Like"
Gil Cnaan asked Gil Cnaan commented

How can I make sources provide multiple flow items at a time with a distribution?

I'm trying to create two different types of sources. For one source, every twenty minutes, it would create a uniform amount of flow items between 0 and 12. The other source would have an exponential distribution of arrivals, and each set of arrivals would have its own triangular distribution (i.e., it items would be produced exponentially with an interarrival time of 7 minutes, deviation of 2 minutes, and the distribution of items would be triangular from 1 to 6, with a mode of 2).

FlexSim 16.0.0
sourceschedule sourcemultiple flow items
· 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.

Joerg Vogel avatar image Joerg Vogel commented ·

The exponential distribution has only a location, a mean and a random stream as parameters. There exist no deviation. The location value adds its value as constant to the random part.

exponential(0.0,7.0,1) + 2.0 = exponential(2.0,7.0,1)

1 Like 1 ·
Gil Cnaan avatar image Gil Cnaan Joerg Vogel commented ·

Didn't know that. Thanks so much!

0 Likes 0 ·

1 Answer

mark.a avatar image
4 Likes"
mark.a Suspended answered Gil Cnaan commented

I would use the source to create one flowitem based on your distributions for time and then on the creation trigger set a label called content to the number of items you want. If the number is 0 then the flow logic would send the flowitem to a sink. If 1 then it would send to the normal model flow that you want to do. If 1+ then send that flowitem to a separator to create the additional items.

· 3
5 |100000

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

Gil Cnaan avatar image Gil Cnaan commented ·

So I use a setlabel command in the source, and then in the separator, for split/unpack quantity, I'd use a getlabel command?

0 Likes 0 ·
mark.a avatar image mark.a Gil Cnaan commented ·

Yes, here is a sample model

3 Likes 3 ·
Gil Cnaan avatar image Gil Cnaan mark.a commented ·

Got it, thanks so much!

0 Likes 0 ·