Вопрос

I am having problems with exporting the data from one of the models that I have built. My intention was to export the values for each of the variables, or atleast the key ones for each iteration (as these will be updated each go procedure). I have tried using export-world but my problem is that it will not store the values for each of the variables for each iteration but rather just one value and overwrite the .csv sheet. Is there anyway to create a .csv sheet where the variable values for each iteration will stack up in columns? Thanks

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

Решение

I believe that BehaviorSpace is exactly what you're looking for. It allows you to run your model, possibly many times with different parameters, and will record the results in a csv file. It's built into NetLogo.

Другие советы

File Output Example, in the Code Examples section of the NetLogo Models Library, has sample code for this. It doesn't use commas to separate the values, but you can tweak it to do that.

It would be easier to use BehaviorSpace, though, as Bryan suggests.

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