netlogo

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.

java.lang.NoSuchMethodError when loading model with RNetLogo

孤者浪人 提交于 2020-01-24 01:00:07
问题 I want to start NetLogo from R and load a model. When I start like so ( gui = TRUE ): NLStart(nl.path = "C:/Program Files/NetLogo 6.1.0/app", nl.jarname = "netlogo-6.1.0.jar", gui = TRUE) and load the model I get model:java.lang.reflect.InvocationTargetException When I start like so ( gui = FALSE ): NLStart(nl.path = "C:/Program Files/NetLogo 6.1.0/app", nl.jarname = "netlogo-6.1.0.jar", gui = FALSE) and load the model I get Java-Object{java.lang.NoSuchMethodError: org.nlogo.workspace

Distance-based mortality model in netlogo

China☆狼群 提交于 2020-01-17 07:47:08
问题 I am calculating cumulative turtle mortality in netlogo as a function of distance moved by turtles (100 of them) from the origin ( start-patch ) in the netlogo interface world. In the code below the ' Pass-Away ' procedure is linked to a global interface switch called "space-death" which when switched on yields said distance-based mortality undertaken by the procedure called " Pass-Away-Space ", otherwise maintains regular per-time-step ( tick ) mortality undertaken by the procedure called "

Can NetLogo Read an Excel File Format?

匆匆过客 提交于 2020-01-16 04:21:11
问题 I've been using individual lists of data to update variables in my ABM. Unfortunately due to the size of data I am using now, it is becoming time consuming to build the lists and then tables. The data for these tables changes frequently, so it is not just a one time thing. I am hoping to gain some ideas for a method to create a table that can be read directly from an excel spreadsheet, without going through the time to build the table explicitly by inputing the individual lists? My table

DISTANCE expected input to be an agent in Netlogo

怎甘沉沦 提交于 2020-01-16 01:16:50
问题 After a short while I get a typical error message when running my netlogo model: DISTANCE expected input to be an agent but got NOBODY instead. error while human 18 running DISTANCE So far, I was not able to fix the mistake. Netlogo shows me the location in the source code where the mistake occurs: let dist-nearest-resource distance nearest-resource I believe to know that the message means that there are no green patches available to go to. I do know what else to code other than to say that

Increment value increasing exponentially

江枫思渺然 提交于 2020-01-16 00:44:07
问题 I am currently trying to increase the value of an attribute belonging to every agent of the same breed. Every frame the attribute should increase by a pre-determined value, in this case 1. ask breed [if attribute < max-value [set attribute attribute + 1]] I have two agents of this breed in the model and they both change the attribute at the same pace i.e tick0: 100 (100 is the starting value) tick1: 100 tick2: 101 tick3: 103 tick4: 106 tick5: 110 tick6: 121 tick7: 128 There seems to be a

making turtles move to gis points

久未见 提交于 2020-01-15 10:23:22
问题 so im making a netlogo project using GIS shape files. i have a big point layer that represent places in a city like restaurants and gas stations. i need my turtles to go in the direction of the points for example: turtle pops at the housing area go to a random restaurant, heads to the nearst gas station and comes back home. i found "foreach (gis:property-value ?)" that runs on the table and made the points scale by color and objectID to ensure it works. so now i can run on the column and the

making turtles move to gis points

江枫思渺然 提交于 2020-01-15 10:22:50
问题 so im making a netlogo project using GIS shape files. i have a big point layer that represent places in a city like restaurants and gas stations. i need my turtles to go in the direction of the points for example: turtle pops at the housing area go to a random restaurant, heads to the nearst gas station and comes back home. i found "foreach (gis:property-value ?)" that runs on the table and made the points scale by color and objectID to ensure it works. so now i can run on the column and the

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