基于来自电子表格或 txt 文件的输入自动化 Netlogo

Automating Netlogo based on input from a spreadsheet or txt file

我在 Netlogo 中开发了一个模型,我想自动化该模型 运行。

基本上我想做的是从 excel、csv 或 .txt 文件中读取输入,然后要求 Netlogo 相应地更改模型中的输入。 运行 假设 100 个刻度的模型并将第 100 个刻度的所需输出存储到读入输入的同一文件中,或将其导出到不同的文件中。像这样

Trial   Input1  Input2  Output
1   10  20
2   20  20  
3   10  30  
.           
.           
.           
100 20  100 

变量 Input 1Input 2 在界面中作为滑块或输入按钮。

使用 Netlogo 中的行为 space 功能。它在工具下可用,下面是关于该主题的文档。

https://ccl.northwestern.edu/netlogo/docs/behaviorspace.html