> NetLogo is a multi-agent programmable modeling environment. What does that even mean? That description fits nearly every commonly used programming language and runtime.
It's about the environment. Everything in NetLogo could be done in straight assembly, that doesn't mean it's accessible to a wider audience. A large chunk of the motivation for NetLogo is pedagogical: make simulations and modeling accessible to students so they can explore (dynamically, not just statically) different concepts.
NetLogo – A multi-agent programmable modeling environment
31–35 of 35 posts
Re: NetLogo – A multi-agent programmable modeling environment
#32Years ago I wrote an application which was essentially a neural circuit of a sea slug (they only eat and forage) with my now wife. https://austingwalters.com/modeling-and-building-robotic-sea... We then showed how (using netlogo) how when another neural circuit for aggressive behavior was added (but the connections of the markov chain had yet to be trained) the sea slugs. After adding the aggressive circuit and letti…
Well, the results are reproducible, and the constraints of the model are clearly defined in the code.
So you might not be able to generalize claims, but in some sense it is also better than many papers out there because you can be more precise about discussing flaws in the model than with empirical data.
Re: NetLogo – A multi-agent programmable modeling environment
#33Earlier quoted context omitted.
I am in a research group that does ecological modelling, so I've heard a fair bit about NetLogo, though I haven't used it myself. I quite like its approach - like you say, it's a very natural way to do agent-based modelling. I also think its a good beginners' language for modellers who know their field (e.g. ecology) but haven't yet learnt how to program. Lastly, I like it's GUI integration. However, I am somewhat pu…
Is there a language you would recommend as the next step for someone who has learned NetLogo? One with better syntax and performance? Maybe a Julia library?
Re: NetLogo – A multi-agent programmable modeling environment
#34Earlier quoted context omitted.
Most programming languages don't use the multi-agent paradigm. It's a different way of thinking about problems, in which you describe how each type of agent should interact with others, and then you let them run and play out the scenario. It's true that you can implement multi-agent programming in other languages, but it's very natural and clear in NetLogo. PS: I did my PhD in the group that produces NetLogo, and con…
Would you mind explaining the difference and comparing with the Actor Model paradigm?
The basic idea in agent-based modeling is that you have a bunch of different types of objects, which we'll call "agents." Each agent has its own independent state, which typically includes location and one or more other variables. So far, that sounds like regular ol' object-oriented programming.
However, there are some differences. First, you have all agents of one type act at the same time, at the tick of a clock. You can then say, "Hey! All doctors! Move in the direction of the closest sick patient." You can similarly say, "Hey! All patients! If there's a doctor next to you, then you have a 30% chance of being cured." Then you create a population of doctors and patients, randomly infect some proportion of the patients, and run the model.
The code for what I've just described is very short and very readable. And it does away with the need for loops. You basically describe the action that a class of agent will take at any given moment, and then tell the agents to perform one or more actions.
Again, it makes much of the programming simple and easy to understand. And yet, you can write pretty complex models in this way.
For example, I implemented the Autumn model ( http://ccl.northwestern.edu/netlogo/models/Autumn ) for NetLogo (because my eldest child was asking why leaves change color when we lived in Chicago). So I created a model in which each leaf has some randomly set values for each of the chemicals that affect color change. Then I let the user adjust the temperature and rainfall. The leaves changed colors as a result. It didn't take me much time to implement, and turned out to be a great learning tool.
Agent-based modeling isn't great for everything, but it's great for many things -- especially for modeling complex systems.
Re: NetLogo – A multi-agent programmable modeling environment
#35Earlier quoted context omitted.
Is there a language you would recommend as the next step for someone who has learned NetLogo? One with better syntax and performance? Maybe a Julia library?
We use Julia in our group and I really like it: the language design is pretty neat and it offers a very good performance. I don't know of any libraries targeted specifically at agent-based modelling, though. (But in the end, as an experienced programmer you don't really need that - plain object-orientation is enough.)
I've heard great things about Julia, but haven't ever used it. Yet another thing that's on my list...