Search code examples
anylogic

Dataset Value of each iteration repeating twice in Anylogic Parameter Variation Experiment


I have this model, that I am working on where I need to run Parameter Variation experiment. I have the following dataset on the parameter experiment page, which I am updating after each simulation run (see the java action)

enter image description here

But when I run the experiment, it seems the data of each iteration is repeating twice.

enter image description here

In the above image, you will see iteration 0, has two results. One has a value greater than 0, and the other one is 0.

This is happening for all my datasets. What is wrong here?


Solution

  • You probably set the dataset properties wrong. Ensure they do not also update themselves, i.e. they only receive data when you call your code.