Vary variables from behaviorSpace when there is already a procedure in the model to record results

StackOverflow https://stackoverflow.com/questions/22941839

  •  29-06-2023
  •  | 
  •  

Вопрос

I'm trying to use behaviorSpace in order to run 99 simulations. In my netlogo interface, I defined a slider "ID-simulation" (from 1 to 99) and I created a code which allows to save locations X, Y of each turtle and "ID-simulation" in a file .txt. As I have already a procedure in my model to record results, I don't need to record results for each run from "Measure runs at every step" option in behaviorSpace (by using Table Spreadsheet formats). So, How can I vary "ID-simulation" in my file. txt from behaviorSpace ?

Should I define:

["ID-simulation" [1 1 99]] 

in "Vary variables as follows" in behaviorSpace and run 1 repetition instead of running 99 repetitions from behaviorSpace ?

Thanks in advance for your help.

Это было полезно?

Решение

What you have looks right. Also, when you run the experiment, you can uncheck both output types to prevent it from doing its normal data recording.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top