question

Vns avatar image
0 Likes"
Vns asked Felix Möhlmann commented

Generating token based on probability and distribution

Hi -

im not quite sure if there is a way to generate tokens based on the following conditions:

Set a probability for token creation for each hourly slot. In the event a token where to be created set a randomize quantity distribution to be generated.

Time intervalProbabilityQty
0600 - 065920%1 - 4 (2)
0700 - 0759
50%1 - 4 (1)
0800 - 0859
10%1 - 4 (4)


Thanks in advance.




FlexSim 22.0.8
tokendistributionsprobability
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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Felix Möhlmann commented

To use different expressions for the hours of the day, it would be best to use the "Date Time Source".

One way to either create no tokens or a random number is to just multiply two distributions together. "bernoulli" can be set up to either return 1 or 0 with the given probability. So only if it returns 1 will the quantity be something other than 0. The second distribution controls the quantity if it does return 1.

1675009684625.png


1675009684625.png (29.5 KiB)
· 4
5 |100000

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