Highlights
For this course work you must submit three NetLogo Models (as .nlogo files) on Canvas. In Model 1 turtles pile up “chips”, in Model 2 the turtles form grouping patterns based on attraction and repulsion and Model 3 integrates the grouping patterns that emerge in Model 2 with the collecting activities of Model 1.
Make sure to put your last name and Student Registration Number in the name of the submitted NetLogo files (for example as in “patil123.nlogo”). If you do this course work in pairs, names and SRN numbers of both participants should be in the title of the nlogo file (for example “smith234brown567.nlogo”).
The Models should show and contain the following
Model 1 “Collecting”:
Pile formation of either green chips, blue chips or both. [5 marks]
The possibility for the user to put two circular patches of chosen size (radius) at chosen x, y coordinates on the canvas.
This model can be built by adapting and extending NetLogo’s “Termites” model (Models Library > Biology > Termites) or the equivalent mode set up in Practical 3 ( Agent-Based Models 1).
Model 2 “Flocking”:
Grouping patterns formed by eight predefined sets of six parameter values (vision-angle, three vision distances, search-angle and exploration-option).
The user should have the opportunity to choose any of the eight sets when the model is running. The chosen set of parameter values are immediately activated and his enables a direct inspection of the effect of parameter values on the type of grouping pattern.
This model is a simplified version of NetLogo’s “Flocking” model (Models Library > Biology > Flocking) and how it can be built is outlined in the description of Practical 4 (Agent-Based Models 2).
Model 3 “Flocking with Collecting”:
This model should combine the features of models 1 and 2. The procedure “to collect” represents Model 1 and it should be possible to run this procedure on its own as well as in combination with the procedure “to flock” (= Model 2). The combined option should show turtles that perform collective behaviour while their movements are coordinated by a chosen set of “flocking” parameters.
Likewise, the user should have the option to run the “to flock” procedure on its own.
After having set up the models you should do experiments by running them for various parameter settings and try to understand how and why the patterns that emerge come about.
Your understanding of the models will be assessed in some of the multiple choice questions that make up Course Work 3
NetLogo Models to use:
1. Model 1 Collective Behaviour: “Termites” (NetLogo Models Library > Biology > Termites) or the equivalent program set up in Practical 5 (“Agent Based Model 1”).
2. Model 2 Coordinated Behaviour: The program “Agent Based Model 2”,set up in Practical 6 (which is a simplified version of the “Flocking” model in the NetLogo Models Library). Make sure that the model is in turtles-mode, as outlined in the description of Practical 6. Also, the sets of parameter values 1 – 8 should be exactly as given in the practical description.
Changes and Extensions to the “Termites” Model.
The original “Termites” (or the equivalent “Agent Based Model 1”) model should be altered as follows:
a. The random turn angle in the procedure to wiggle should be set at 20 (instead of the original 50).
b. The “chips” should be green instead of yellow.
c. Instead of the turtles changing their colour from white to orange when they pick up a chip, they should change their shape from the default shape to “arrow”.
d. The to go procedure should be re-named as to collect. In accordance, the “go” button should become a “collect” button.
Extended by:
An option to include blue “woodchips” with its own adjustable density. The model should be extended so that it can work on both the green and the blue chips at the same time.
This requires a specific shape change when a turtle picks up a blue chip, namely from default to “triangle”; as in the case of a green chip, the turtle does not change colour when it picks up a chip. In effect, in the Collecting model the state changes of the turtles never show up as a change of colour (they are always white) but only as a change of shape.
The creation of two coloured circular objects at chosen x, y coordinates and of a chosen radius (an adjustable variable called ObjectSize).
Get this done by writing in the ask patches (in the to setup procedure) statements of the form:
if (distancexy (x) (y) < Object#Size [set pcolor sky]
where (x) and (y) are scaled x- and y-coordinates of the form:
x = object#-xcor * max-pxcor
y = object#-ycor * max-pxcor
The scaling factors for x (object#-xcor) and y (object#-ycor) should range between -1 and 1 (with increments of 0.1) and be adjustable by dedicated sliders. The symbol # indicates the object number (i.e. 1 or 2).
Consult NetLogo’s dictionary for detailed information about the distancexy reporter.
Connecting the Models
There are various ways to integrate the two models. One way of doing this is outlined below.
Note that the two models have the procedure “wiggle” (P2) in common. This suggests a “connecting” procedure, for instance with the name to move, which includes a conditional call to P2 (“wiggle”).
The connecting procedure is called in a to go. This to go furthermore contains a switch, “collect-on?”. If this switch is ON, to collect (i.e. model 1) is activated.
The connecting procedure to move is defined outside the to go and includes calling P2 (“wiggle”), but only IF a switch (that controls flocking) is OFF, ELSE to flock will be executed.
In the to collect procedure all calls to P2 (“wiggle”) should be replaced by a call which takes care of the suggested linking . Also, if “collecting?” is ON, the outward appearance of the turtles should be adjusted in order to assure that extension ii is not violated.
Suggestions for experiments
The “world settings” for all models are:
Location of origin: Center.
max-pxcor = max -pycor = 100, Patch size = 2.5 (but see the note on run times at the end of this document).
World wrapped horizontally and vertically.
For Model 1: Number of turtles should be no more than 100, but it is worthwhile to see what happens with a population as small as 10 turtles.
The density for chips should not exceed 10% and the slider should increment with steps of 0.01. Check what happens for very low percentages (e.g. 0.15, 0.25).
You could also play with some intrinsic values of the collecting model, like the “forward 20” step in the procedure “Search-for-chip” (P1). What happens if this number of steps is much lower for the blue chips (e.g. fd 1) than for the green chips (fd 20) (or the other way around)?
This IT Assignment has been solved by our IT Experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.
Be it a used or new solution, the quality of the work submitted by our assignment Experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.
© Copyright 2026 My Uni Papers – Student Hustle Made Hassle Free. All rights reserved.