behaviorspace

Keeping maps between BehaviorSpace runs

你离开我真会死。 提交于 2020-01-25 00:07:19
问题 I have a *.shp file that I've upload and i'm using as part of my model (calculating shortest paths). This is quite a big shape file with thousands of road links and intersections and bridges represented by nodes. I was hoping to speed up the running of behavior space by not loading this map every time, and so created a separate procedure for loading the map and defining link weights etc. In this procedure I have clear-all - reset ticks so everything is effectively wiped if i load a new map.

How can I collect the “ids” of directed links using the NetLogo Behavior Space?

一笑奈何 提交于 2020-01-15 09:07:46
问题 We have stored a lot of data as attributes of links in our NetLogo model. When I use the Behavior Space to design experiments and to direct data collection, I specify the "[attribute] of link" to be extracted. However, in the csv file I cannot see the id of the link, which is a essential to understand the data. How can I collect the ids of links in my results? From what I understand there is no primitive to enable this command. 回答1: Whenever you want to extract information from individual

How can I collect the “ids” of directed links using the NetLogo Behavior Space?

白昼怎懂夜的黑 提交于 2020-01-15 09:06:09
问题 We have stored a lot of data as attributes of links in our NetLogo model. When I use the Behavior Space to design experiments and to direct data collection, I specify the "[attribute] of link" to be extracted. However, in the csv file I cannot see the id of the link, which is a essential to understand the data. How can I collect the ids of links in my results? From what I understand there is no primitive to enable this command. 回答1: Whenever you want to extract information from individual

No stop when running Netlogo Behaviorspace headless on Linux when using r extension

做~自己de王妃 提交于 2020-01-06 08:04:49
问题 I am running a simple netlogo behaviorspace experiment on a Linux cluster with calling R extension. Here is the sample code: extensions [r] to setup clear-all setup-patches setup-turtles reset-ticks end to setup-patches ask patches [ set pcolor green ] end to setup-turtles create-turtles number ;; uses the value of the number slider to create turtles ask turtles [ setxy random-xcor random-ycor ] end to go if ticks >= 5 [ stop ] ;; stop after 5 ticks move-turtles tick ;; increase the tick

How do I create a column of means of specific columns in a data.frame?

北城以北 提交于 2019-12-24 12:31:14
问题 Thanks all for your responses and answers. I can see I've unintentionally left out some important details that may help you understand my problem better. I was trying to keep it simple and generic, but that didn't actually help. Here's an updated version with more information. I have a data.frame with many columns that came from a NetLogo model generated by BehaviorSpace . Each column is a time series that represents a reported value under different experimental conditions with repetitions

NetLogo BehaviorSpace - Measure runs using reporters

放肆的年华 提交于 2019-12-23 15:43:13
问题 In my NetLogo model my turtles are called inhabitants. each inhabitant has their own start opinion (initial_opinion) an a final opinion (final_opinion). Their opinion are calculated using random numbers so i want to run the model atleast 20 times when i change some parameters. Therefore i'm using the BehaviorSpace. However, i have no idea how i get my values of these two variables in a spreadsheet. What code do i need to add in the box 'Measure runs using these reporters:'. I do not want to

NetLogo BehaviorSpace memory size constraint

前提是你 提交于 2019-12-20 03:15:25
问题 In my model I'm using behaviour space to carry out a number of runs, with variables changing for each run and the output being stored in a *.csv for later analysis. The model runs fine for the first few iterations, but quickly slows as the data grows. My questions is will file-flush when used in behaviour space help this? Or is there a way around it? Cheers Simon 回答1: Make sure you are using table format output and spreadsheet format is disabled. At http://ccl.northwestern.edu/netlogo/docs

NetLogo BehaviorSpace crashing when using R extension

南楼画角 提交于 2019-12-02 16:31:50
问题 I'm running a model of animal home ranges on my machine. I've added the R-extension to my NetLogo code to calculate minimum convex polygons for each home range. When I run the model in BehaviorSpace on multiple cores, NetLogo will simply disappear (i.e., stop running) after several time steps. I've tried it in 5.04 and 5.1 and the same happens. The model does run properly in BehaviorSpace if I choose 1 core instead of the 4 available on my machine. It also runs properly if I turn off the R

NetLogo BehaviorSpace crashing when using R extension

最后都变了- 提交于 2019-12-02 10:21:02
I'm running a model of animal home ranges on my machine. I've added the R-extension to my NetLogo code to calculate minimum convex polygons for each home range. When I run the model in BehaviorSpace on multiple cores, NetLogo will simply disappear (i.e., stop running) after several time steps. I've tried it in 5.04 and 5.1 and the same happens. The model does run properly in BehaviorSpace if I choose 1 core instead of the 4 available on my machine. It also runs properly if I turn off the R-extension. Is there something I should be doing? I'd like to run it on a virtual machine with multiple