question

CSN avatar image
0 Likes"
CSN asked Jeanette F edited

Creates a specified number of tokens

Creates a specified number of tokens over a period of time using the distribution:

For example, during 14 days, each hour arrives different numbers of tokens in an exponential distribution.

How can I implement this logic ?

I have tried to use the Date Time Source ,but the tokens arrived in the first 7 minutes among an hour.

qq截图20210716185842.png


FlexSim 21.0.6
sourcecreate
· 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 ·
Don’t you think that is an exclusion for a statistical distribution! A distinct number in an hour and randomly distributed. For example a exponential distribution creates 7 items in about 4 Minutes. Then you say that no other items are allowed to be created in the rest 56 Minutes. There is a possibility that a exponential distribution returns such a sample. But there is probably a higher chance that after 7 items after 4 minutes that more items are created in the next 56 Minutes.
0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @CSN, was Jordan's answer helpful? If so, please click the red "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Jordan Johnson avatar image
1 Like"
Jordan Johnson answered

You can always build a source from other process flow activities. See this model:

TableSourceDemo.fsm

1628114217207.png

This process flow creates one token for each row in a global table, one at a time. In this example, each row in the table determines the average number of arrivals in that hour. The process flow uses that information to generate tokens using an exponential distribution. Those tokens end up on the activity called "Source Target".

I don't know if this model will do exactly what you want. However, it may give you some ideas on how to build a source that does do exactly what you want.


tablesourcedemo.fsm (37.7 KiB)
1628114217207.png (57.2 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.

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.