mess-nlesc / model

NetLogo code for an agent-basel model
Apache License 2.0
0 stars 0 forks source link

Use a separate experiments file #33

Closed fdiblen closed 4 months ago

fdiblen commented 8 months ago

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:

me@achine:~/somewhere$ ./netlogo-headless.sh --model "/app/models/main.nlogo" --setup-file experiments.xml --table output.txt
lyashevska commented 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