I am using this mesa framework which has two main files: model.py and server.py. The simulation as built runs exactly once but I would like to run it several times ex 5 times but save the values for each run. I am using the command line to run the code and after each run I can click the 'Reset' button to run the simulation again. The code currently clears everything when I click 'Reset' but I was wondering if it is possible to save the results of the simulation somewhere so I can calculate averages after multiple iterations. I thought of creating a monte carlo simulation but realized that is not possible because it requires human intervention to run and monte carlo simulations run on their own.
Now I want to simplify and be able to save all values after each iteration. This sounds easy but due to the nature of the framework, I am unsure if this possible. I need to be able to store the values before this is called again
server = ModularServer(
Schelling, [canvas_element, happy_element, happy_chart], "Schelling", model_params
Does anyone have any ideas if this can be accomplished? I spent the past few days on this and am unsure if this is possible. I checked stackoverflow for similar questions but did not find any.
Sorry for all the updates, I tried to simplify to the basic problem.
Thanks in advance for any help.