AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Netlogo lists10/29/2022 ![]() ![]() This is only useful if you manually generate a new random-seed during the setup of your model. The experiment provides a slot called “repetition” which allows to run multiple simulations of one parameterization. These output files can then be monitored to capture the progress of the parallelized model executions. If such functionality is needed, we suggest to write the current progress to an output file directly from NetLogo (for example using the idrunnum functionality of nlrx, see section “Notes on self-written output”). Another possibility is, to define a print reporter procedure in the experiment slot “idfinal” that is executed at the end of each simulation.Ĭapturing output from multiple processes in parallelized environments to one R console is not straightforward. NETLOGO LISTS CODEThus, print commands can be used within the NetLogo model code to display the current progress of simulations in the R console. In addition, NetLogo print commands are redirected to the R console. The run_nl_one() does not report any progress because it only executes one simulation. However, dynamic experiments are difficult to track because it is not clear how long the complete experiment will take from the beginning. The run_nl_dyn() function might provide progress output depending on the chosen method (for example ABC offers a progress bar). ![]() ![]() Progressr :: handlers ( "progress" ) results <- progressr :: with_progress ( run_nl_all ( nl ) ) The function will report detailed warnings or error messages, if definitions of variables or constants are invalid. After attaching an experiment to an nl object, validity of defined experiment variables and constants can be checked by commiting the nl object to the function eval_variables_constants(). This function reads all GUI elements of the NetLogo model that can be set by nlrx. If your model does not have any globals (GUI and code), please create a dummy global (either create a global widget on the GUI or add a dummy variable to the globals code section) for your model and put it in the constants list with an appropriate value.Ī complete list of all valid NetLogo parameters can be loaded by commiting a nl object with a valid modelpath to the function report_model_parameters().
0 Comments
Read More
Leave a Reply. |