Questions tagged [netlogo]

NetLogo is an agent-based programming language and integrated modeling environment. NetLogo is free and open source software, under a GPL license. Commercial licenses are also available. It is written in Scala and Java and runs on the Java Virtual Machine.

NetLogo is a multi-agent programmable modeling environment. It is used by tens of thousands of students, teachers and researchers worldwide. It also powers HubNet participatory simulations. It is authored by Uri Wilensky and developed at the CCL. It is free and open source.

3639 questions
21
votes
1 answer

R extension breaks connection to extensions directory in NetLogo

I am trying to get R and NetLogo to talk to each other using the r extension. I am passing graph objects rather than simply variables. This means I need to export a file from NetLogo and import a file in R, which means they need to point to the same…
JenB
  • 16,759
  • 2
  • 13
  • 42
12
votes
4 answers

agent-based simulation: performance issue: Python vs NetLogo & Repast

I'm replicating a small piece of Sugarscape agent simulation model in Python 3. I found the performance of my code is ~3 times slower than that of NetLogo. Is it likely the problem with my code, or can it be the inherent limitation of…
max
  • 40,904
  • 40
  • 170
  • 328
12
votes
7 answers

NetLogo vs. Repast Simphony?

I would like to simulate some scenarios using the multiagent paradigm, and it seems NetLogo and Repast are the most popular tools for that. I'd like to know if anyone has had any experience with either one and could tell me more about them? For…
zxcvbnm
  • 1,775
  • 2
  • 26
  • 35
11
votes
3 answers

NetLogo turtles leaving a trail that fades with time

I have turtles moving across the view, and I'd like to be able to follow where they go by making them leave a trail behind them, as though they were emitting smoke as they went. Of course, I could use the turtle pen (pen-down), but since there are…
Nigel
  • 335
  • 4
  • 16
10
votes
1 answer

Importing raster data into NetLogo results in a column with all patch variables = 0

When I use this code to import a raster layer into NetLogo and resize the world, all patch variables of the last column is zero when it should contain data. This happens only for a few rasters from the same landscape. set rasterLayer…
9
votes
1 answer

NetLogo two agentsets operations

I have two agentsets. Are there functions for finding: An agentset of agents that are present in both (intersection) An agentset of agents that are present in one and not the other I'm finding it very difficult to implement this by hand,…
Mikhail
  • 8,071
  • 6
  • 45
  • 78
9
votes
2 answers

NetLogo Experiment Setup

I'm working on a model in Netlogo and I'm having a problem understanding how to set up an "experiment". In my model, I have a matrix that has all of the values that I'm interested in (6 in total) and the matrix is updated whenever a condition is met…
Diesel
  • 512
  • 1
  • 6
  • 21
9
votes
1 answer

NetLogo: the meaning of TO-REPORT explained for dummies?

I have a problem to understand the role of to-report and report in NetLogo, even it seems pretty useful and I can't really find a help written in "human style" language. In NetLogo dictionnary…
maycca
  • 2,960
  • 2
  • 22
  • 47
9
votes
5 answers

Python or JavaScript scripting for NetLogo?

NetLogo is excellent for agent-based modeling...except for the language. I always find myself contorting my brain trying to figure out how to do something that should be simple to code (such as implementing a simple case statement) in NetLogo's…
theoden
  • 193
  • 1
  • 8
8
votes
1 answer

Is NetLogo too slow for big simulations? How can I speed up a NetLogo model?

Is NetLogo a good platform for big models (>10,000s of patches, turtles)? How can I speed up a model that runs very slowly?
Steve Railsback
  • 765
  • 3
  • 6
8
votes
1 answer

Netlogo nested loops

Basically, my question is how nested loops work in netlogo. I've tried nesting two while loops within each other, but the inner one doesn't seem to behave properly (properly being the way they work in other languages). If I use two different loops…
dragmosh
  • 393
  • 3
  • 11
7
votes
2 answers

Including a Netlogo source file into another

How can I include the procedures from one Netlogo file into another? Basically, I want to separate the code of a genetic algorithm from my (quite complicated) fitness function, but, obviously, I want the fitness reporter, which will reside in…
CamilB
  • 1,247
  • 1
  • 11
  • 26
7
votes
1 answer

SBT: compile & package -- "working tree not clean"

I am working on a Scala extension for NetLogo (repo). I am following both the Extension API example and NetLogos Sample-Scala-Extension. I am seeing: [info] Done packaging. To compare two paths outside a working tree: usage: git diff [--no-index]…
bcr
  • 890
  • 6
  • 28
7
votes
1 answer

Using Lists vs Agentsets

Lists of agents and agentsets are two different data types in NetLogo (and can be converted with turtle-set and sort). The documentation states that you use lists for an ordered collection of agents and sets for an unordered collection. It appears…
Qualmy
  • 105
  • 4
7
votes
2 answers

Netlogo: Assign variable using probabilities

How to assign a string or integer variable to turtle, using probabilities of the variables in a group/list? For example it is 0.4 probability that one specific variable is used from specific group/list. The function selects randomly the variable…
Nety
  • 129
  • 1
  • 8
1
2 3
99 100