question

Rocio A avatar image
0 Likes"
Rocio A asked Rocio A commented

How to give the max value of an exponential to the value of a label?

Hello,

I have a model in which there are 4 queues. Each of them has a label (TpConsumo) with the consumption time of the piece that is going to be consumed in it.

When the part enters the queue it acquires the TpConsumo label of the queue.

In the flow process, in the delay I needed the maximum value of the exponential statistical distribution to take the value of the TpoConsumo label of the piece that is on the queue. I have put token.TpoConsumo at the maximum of the exponential distribution. It works, but the time that passes is not the same as the time each piece has on the label.

1737023973389.png

1737024046712.png

Could you tell me if the data is correctly placed at the maximum of the exponential or on the contrary it is incorrect and if so, how I should proceed.

Thanks in advance

Delay.fsm

FlexSim 24.1.1
labeltokensdelaystatistical distribution
1737023973389.png (83.6 KiB)
1737024046712.png (39.6 KiB)
delay.fsm (32.0 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

Sebastián Cañas avatar image
0 Likes"
Sebastián Cañas answered Rocio A commented

@Rocio A ,

The time each item has in its label wouldn't be the same as the time that the token stays in the Delay activity. You're using the label as a parameter of the distribution, but the distribution will return a different value.

For example, using a TpoConsumo = 10 as scale of the exponential returns 5.3 in this case

1737032409795.png

If you expect that the tokens stay the same value as the item's label, just write the value of the label as parameter of that activity.


1737032409795.png (90.5 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.