question

Alexis B avatar image
0 Likes"
Alexis B asked Alexis B commented

What Type of distribution ?

Hello everyone.

Today I ask you what type of distribution is it to obtain this ?

edit : The number of token can be variable but I want the same kind of distribution

Thank you

ex15.fsm

FlexSim 18.1.1
distributions
ex15.png (32.3 KiB)
ex15.fsm (21.9 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.

Alexis B avatar image Alexis B commented ·

Ok thx for answers. It is working with @Jörg Vogel method

But, In my main model, I don't have this kind of Source so,

Is it possible to do the same later with an "Assign Labels" ?




New exemple here : ex15-002.fsm

0 Likes 0 ·
ex15-002.png (150.8 KiB)
ex15-002.fsm (24.2 KiB)
Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Alexis B commented

You can not get a statistical distribution from your data, you can try to buid an empirical statistical distribution.

If you want to distribute to the 5 output ports of the decide activity, you add a label at the source activity. The label value is set to "tokenIndex". This is a function result of a parameter in the source code of the activity. Each exiting token gets the value of the index of its current creation in the schedule table.

In the decide activity you evaluate the label to send the token matching the value and the port number.


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

Alexis B avatar image Alexis B commented ·

Thank you @Jörg Vogel

0 Likes 0 ·
Logan Gold avatar image
2 Likes"
Logan Gold answered Alexis B commented

You can use the demperical distribution to manually input the probability of a token going through any of the outputs on the Decide activity. The demperical distribution uses a Global Table with two columns and a number of rows equal to all possible values (five in this case, so five rows). The first column is the probability that the associated value will be used and the second column is the value itself. So your Global Table will look like this:

And in the Delay activity, in the Send Token To field, you can choose Statistical Distribution from the dropdown menu and choose D Emperical. It'll end up looking like this once it's set up correctly:

Or you can just put the same code that is generated into the Send Token To field directly:

dempirical("DempericalTable", getstream(activity))

Where "DempericalTable" should be replaced with the name of the Global Table you are using.


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

Alexis B avatar image Alexis B commented ·

Is it possible to make a Round Robin which begin at 0 when the distribution is finish ? In order to enable to the nexts tokens to begin with same sequence ?

0 Likes 0 ·

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.