netlogo
Java calculating invalid results
I am trying to determine the sign of a number to use in a later calculation. I have code similar to the following:[详细]
2023-03-21 17:10 分类:问答How do I call a parent procedure's variable in netlogo
In netlogo I have a procedure that calls another procedure. How can I go about getting the value for example, I have two breeds of agents, a hub and a link. A hub has开发者_开发问答 a local variable[详细]
2023-02-10 15:03 分类:问答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 c[详细]
2023-02-08 22:28 分类:问答NetLogo scoring system for distance travelled
I have a problem with my NetLogo scoring system. When a turtle goes over three square blocks I cannot get it to show the increments on my score monitor. Could someone please help?[详细]
2023-02-01 22:39 分类:问答NetLogo wall collision - 'bounce' function
The NetLogo turtles keep going through the walls of the maze. How do I stop them from going through the walls and instead have them change direction?[详细]
2023-02-01 22:32 分类:问答How can one create a countdown timer in NetLogo?
I am tryin开发者_如何学编程g to make a Frogger-like game in NetLogo and I need to create a timer that counts down. However, I looked in Frogger and used the same procedures that create the timer but i[详细]
2023-01-27 02:12 分类:问答netlogo runtime error 'turtles on'
while running thefollowing code if any? (turtles-on patch-ahead q) [ some commands ] where q is a number variable[详细]
2023-01-14 09:28 分类:问答How to write a basic NetLogo `if` statement for patch colors
I am trying to apply the following condition: if ( the color of patch -2 -1 is red ) [ some commands ][详细]
2023-01-13 09:25 分类:问答NetLogo, accessing color of a patch
I am trying to apply the following condition: if ( the color of patch -2 -1 is red ) [ some commands ] Could someone please tell me how to开发者_运维知识库 write this in NetLogo?if ([pcolor] of pat[详细]
2023-01-13 03:13 分类:问答netlogo programing help on traffic simulation
I am trying to find if there is a turtle on patch-ahead n whose speed - acceleration is <= 0. The code I came up with is:[详细]
2023-01-12 20:59 分类:问答