However, the concept of nlrx is based on sensitivity analyses. If your model does not reset the random seed manually, the seed will always be the same for each repetition. By default, the NetLogo random-seed is set by the simdesign that is attached to your nl object. 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”). Capturing output from multiple processes in parallelized environments to one R console is not straightforward. However, both approaches only work for sequential execution. Another possibility is, to define a print reporter procedure in the experiment slot “idfinal” that is executed at the end of each simulation. Thus, 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. If silent is set to FALSE, a message with the current random seed and siminputrow is printed to the console after successful execution of each simulation run. The run_nl_all(), run_nl_one() and run_nl_dyn() functions provide a “silent” parameter that allows to capture progress of running simulations. 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(). simdesign_simple() requires at least one defined constant within the constants list.NetLogo model parameters that are not listed in any of these two lists will be set with their default value from the NetLogo model interface.It is not allowed to list the same variable in the variables and constants list.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |