Closed fdiblen closed 4 months ago
If the XML file contains more than one experiment setup, it is necessary to use the --experiment
argument to specify the name of the setup to use.
me@achine:~/somewhere$ ./netlogo-headless.sh --model "/app/models/main.nlogo" --setup-file experiments.xml --experiment "my experiment"--table output.txt
The main script file (main.nlogo) has an embedded XML file.
See: https://github.com/mess-nlesc/mess-model/blob/9406b3fe090b6bd518c9a5d41331c02f5275f266/main.nlogo#L10569
Having a separate experiments file will be cleaner and will increase maintainability of the code.
Once we have the
experiments.xml
file, NetLogo can be run using the command below: