Seeking Strategies to Speed Up GAMA Model Execution for ABM vs EBM Comparison

22 views
Skip to first unread message

adawal urbain

unread,
Feb 23, 2025, 10:25:06 PMFeb 23
to GAMA
  Hi. Is there a way to speed up the execution of a Gama model? I am working on comparing ABM vs. EBM in epidemiology. While the EBM model takes a few hours to converge to a solution, the ABM model takes 5 days to reach the solutions.  

Cheers
ADAWAL Urbain

Kevin Chapuis

unread,
Feb 24, 2025, 4:14:38 AMFeb 24
to gama-p...@googlegroups.com
Dear Urbain,
Like any other program, Gama models do not have "a way" to speed up execution. The first cause of slow execution is due to the choices in the implementation. Hence, the answer to your question is model specific. As a consequence, you'll have to find yourself which part of your code take the most execution time; to do that, use the machine_time global variable to track execution time, from start to end of procedure : store machine_time at the beginning of a procedure (actions or reflexes) and at the end, then subtracts the latest with the first to have execution time in millisecond. Once you have done benchmarking, you can get back here with specific code part to optimize.
Best,
Kevin

--
You received this message because you are subscribed to the Google Groups "GAMA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gama-platfor...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/gama-platform/41939e94-a053-49b8-803f-5135db298ff2n%40googlegroups.com.


--
Chapuis Kevin
Fellow researcher at IRD
Computer modeling & simulation
--
Alt-Mail: kevin.chapuis@ird.fr
Reply all
Reply to author
Forward
0 new messages