Closed wenlong-liu closed 1 year ago
Hi there,
thanks for your detailed report and sorry for the late response. Due to time restrictions I was not really able to dig into nlrx related issues earlier.
There can be many reasons for such behaviour. From your output I see that you are running 21000 simulations in total. With that large number of simulations, it can just happen randomly that some hickup in R/NetLogo/Java lead to a stalled session. Another possibility which happens quite often in my experience is a parameterization that leads to a never-ending simulation in NetLogo or triggers an out-of-memory state. Often, large parameter spaces are tested for the first time when running such simulations. Thus, it is not completely unexpected that some edge cases will come up which blow up the model.
The best strategy here in my opinion is to split up the job into many smaller chunks.
For example, you could splice up the parameter matrix (nl@simdesign@siminput
) into chunks of 100 rows, store the intermediate results as rds and combine everything together in the end.
Feel free to re-open if you need more pointers on debugging stalled nlrx/NetLogo simulations.
To whom it may concern,
Thanks for the awesome package. Would you please help me with an issue of hanging runs?
1 problem description
I developed a NetLogo model to describe water and chemical flow in a river network. When I was using nlrx for global sensitivity analysis, I came up with an issue, the run_nl_all() was working fine at first; but after random iterations, the run was hanging and freezing. The screenshots for JAVA and R processes were shown below.
2 what I have tried
3 my suspensions
After all the digging and debugging, I suspect the issue might cause by the communications among R, JAVA, and Netlogo.
4 Inquires
It is too difficult for me to solve this "hanging" issue. So any thought, ideas, or comments will be appreciated. Thank you in advance.
Best, Wenlong
appendix a: my nrlx script:
Appendix B: print(nl)
Appendix C: system information
NetLogo 6.2.0
Windows 10 and MacOS 10.14.6