How to Link Empirical Distribution in Input Global Table?

How to Link Empirical Distribution in Input Global Table?

rajankur6494
Advocate Advocate
7 Views
3 Replies
Message 1 of 4

How to Link Empirical Distribution in Input Global Table?

rajankur6494
Advocate
Advocate

[ FlexSim 21.0.10 ]

Hi Team,

I am trying to link process time with empirical distribution defined in input global table. But it is not working for me.

What is the right way to do it?

LinkEmpiricalDistributionWithGlobalTable.fsm

Thank you!

0 Likes
Accepted solutions (1)
8 Views
3 Replies
Replies (3)
Message 2 of 4

moehlmann_fe
Observer
Observer
Accepted solution

Currently you are only creating a reference to the distributions node. To generate a value you have to use 'Empirical.get()'. Either you add this to the end of your current code line. Or you can also reference the distribution by name directly.

In any case, you also have to return the value the distribution generates as the value of the table cell when it gets read.

return Model.find("Tools/EmpiricalDistributions/EmpiricalDistribution1").as(Empirical).get();

or

return Empirical("EmpiricalDistribution1").get();
Message 3 of 4

rajankur6494
Advocate
Advocate

Hi @Felix Möhlmann,

I have 1 question here. Suppose I want to give only distribution name in Input table. Can I attach .get() in process time?

1653488645306.png

I am not able to fetch value in this case.

Thank you!

0 Likes
Message 4 of 4

moehlmann_fe
Observer
Observer

Type just the name in the table and call 'Empirical().get()' with the table cell as argument.

1653498893329.png

0 Likes