question

Jye S avatar image
1 Like"
Jye S asked Ryan Clark answered

Kinetic Tracked Variable - Average Above Upper Bound

Our team has been using a Kinetic Tracked Variable within our model.
We noticed that despite setting an upper bound, which the current level was sticking to, the average value kept climbing well above the Max/UpperBound.

Below is a simple model that is just setting the rate and the upper bound of the kinetic variable on run start then sitting on a delay to observe the average rising above the maximum.
capture.pngAre we misunderstanding just how the average is being calculated, or is this a bug?

Thanks in advance.

FlexSim 21.2.3
tracked variablesaveragekinetic
capture.png (39.4 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.

Joerg Vogel avatar image Joerg Vogel commented ·
Please attach model. Thanks!
0 Likes 0 ·
Jye S avatar image Jye S Joerg Vogel commented ·
Model linked here.

Thanks.

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Jye S commented ·
Would you mind to upload your model as an attachment to this answers site. I do not trust any private repositories. If your model is to large, then it is to complex to give a fast answer, then it would be nice, you attach a simplified example model. Thanks!
0 Likes 0 ·
Show more comments

1 Answer

·
Ryan Clark avatar image
1 Like"
Ryan Clark answered

Hi @Jye S,

I believe the behavior you are experiencing is a bug with the Tracked Variable. I'll make a case in the dev list for that.

In the meantime, I found a workaround that should address your concerns. I set the rate and upper bound for the Tracked Variable at the start of the model, and then have a Wait for Event activity that is listening for when the Tracked Variable reaches its upper bound. Then, I have a code that sets the Tracked Variable rate to 0, and this fixes the problem.

bugdemo-rc.fsm

I hope this helps! Let us know if you have further questions!


bugdemo-rc.fsm (34.9 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.