This morning I received an email from a friend who's having a problem changing a turtle's breed. I wasn't sure if I my sug...
Read More
Loading GIS and CSV Data to the Model
This is my second post on the NetLogo GIS extension. The GIS map below shows the villages along with the turtle agents that belong to each ...
Read More
Getting a value from a specific field in a .CSV file
The code below can be used to retrieve a specific field in a .csv file. In my previous example, each row has 10 values(e.g. 1,1,1,1,4,2,2,2...
Read More
Using Profiler Extension For Improving Models
TIL about the profiler extension and it's just what I need to improve my models! It includes primitives that measure how many time...
Read More
Controlling Flow Using if, ifelse, and ifelse-Value
When commands are to be executed conditionally, that is depending on the outcome of an evaluation, a selection control structure must b...
Read More
Embedding NetLogo Models in Moodle 2.9 Environment
Two years ago, I was able to embed Netlogo models in Moodle using an available plugin uploaded to Moodle's website. But I couldn...
Read More
Writing Data to a Text File
Sometimes, I want to load the same set of turtles and data to my model. To keep it handy for me, I created the writeData procedure wh...
Read More
Assigning Meaningful Colors to Turtles
By default, NetLogo creates turtles with random colors, and to get rid of it, I normally assign a single color upon calling the create-turtl...
Read More
Subscribe to:
Posts
(
Atom
)