replay several times the same simulation setup

35 views
Skip to first unread message

lyuba mancheva

unread,
Jan 12, 2019, 1:46:30 PM1/12/19
to GAMA
Hello everybody,

For my simulation I need to compare 2 different strategies for one type of agents
and I need that the rest of the simulation setup is the same for avoiding any other bias.
I need to reload and replay the same simulation setup ( e. g. the location of different agents in the beginning of the simulation, their attribute values).
Is there a easy way to save the initial state of the simulation and then reload it for the next simulations?


Thank you very much,
Best
Lyuba

Srirama Bhamidipati

unread,
Jan 13, 2019, 5:35:27 AM1/13/19
to GAMA
Hi

You can read in the manual about creating multiple simulations. Basically, you create a new simulation in the experiment block and this new simulation can have different parameter values (indicating different strategies) that you want to explore.

Srirama
Message has been deleted

lyuba mancheva

unread,
Jan 14, 2019, 9:22:37 AM1/14/19
to GAMA
Hello,
I have found in Gama examples the model called CreateSimuGraph2 in Create Simulation from File.gaml which resolves my question.
Here is the snippet :

reflex store when: cycle = 5 {
write "================ START SAVE + self " + " - " + cycle ;
save saved_simulation_file('saveSimu.gsim', [simulation]);
write "================ END SAVE + self " + " - " + cycle ;
}


and then :

....

action _init_ {
create simulation from: saved_simulation_file("saveSimu.gsim");
}

....

Regards,
Lyuba


On Saturday, January 12, 2019 at 7:46:30 PM UTC+1, lyuba mancheva wrote:

lyuba mancheva

unread,
Jan 14, 2019, 9:22:37 AM1/14/19
to GAMA
Hello Srirama ,
thank you for your answer but it does not reply to my question.
Regards,
Lyuba
Reply all
Reply to author
Forward
0 new messages