Extra Credit task
Do you have questions or comments about this model? Ask them here! (You'll first need to log in.)
ODD of this Model
Purpose
The purpose of this model is to write my name and to create breeds of turtles i.e. the breed name is anjums and the number of turtles is equal to my registration number i.e 5. Where the turtles move randomly and when they see my name letter they move toward it. They move randomly in the letter and can not move out of the name letter.
State variables and scales
The agents used in this model are turtles that walk randomly. And patches that is showing my name.
Process Overview and scheduling
First write a letters of my name i.e A N J U M on patches with the red color. Then create the fixed number of turtles i.e. 5 equal to my registration number and they move random move when they see the red color they move toward the red color. When they come in the letter then they only move on the letter and can not move out of the name letter.
Design Concepts
Emergence
The name model formed an emergent behavior when the turtles see the letters of red color and move toward them. When they come in the letter then they only move on the letter and cannot move out of the name letter that form a complex behavior as a whole.
Adaptation
The turtles improve their fitness from the number of trapped turtles and un trapped turtles.
Fitness
The aim of the agents is to write name on patches and create turtles that move randomly when they see letters of name they move toward it.. When they come in the letters then they only move on the letter randomly and cannot move out of the name letter.
Prediction
The turtles predict the values of their decision they see letters of red color. We predict that how many are trapped and how many are un trapped.
Sense When we make decision we need to know number of turtles and the number of trapped and un trapped turtles. Interaction The turtles interact with the letters. When they see letters of name they move toward it.. When they come in the letter i.e. red color then they only move on the letter randomly and cannot move out of the name letter.
Stochasticity Successfully write name through patches and creating turtles that move randomly. And successfully perform the operation of seeing letters of name they move toward it.. When they come in the letters then they only move on the letter randomly and cannot move out of the name letter.
Collectives The fixed number of turtles i.e 5 of name anjum that are used in this model where they come to the letters patches i.e. red color.
Observation
The data is collected for analysis by running the model for a specified number of times. From the behavior space the experiment is performed for specified number of times and save the data in the spreadsheet. The collection of data includes number of trapped and un trapped turtles in the letters.
Initialization
The simulation starts with writing my name i.e. A N J U M through patches and create fixed number of turtles that move randomly. The name is created on fixed patches and not allowed to change for different experiments.
Input Data
The model does not get input data from external sources. The turtles and name letters are created automatically when clicking on the setup button. Every turtle move randomly and moving towards the name letters when clicking on go button.
Sub models
Writing Name: writing A N J U M through patches.
Creating turtles: creating fixed number of turtles.
Comments and Questions
breed [anjums anjum] globals [trapped? ] to setup ca ;as my registratsion number is 01-241171-005 ; name isi anjum iqbal create-anjums 5 [ setxy random-xcor random-ycor set color green set size 10 ] ask patches [ set pcolor white ] reset-ticks setup-name go end to setup-name ;code for writing A ask patches with [pxcor >= -183 and pxcor < -180 and pycor > 12 and pycor < 50 ][set pcolor red] ask patches with [pxcor >= -183 and pxcor < -180 and pycor > 51 and pycor < 89 ][set pcolor red] ask patches with [pxcor > -182 and pxcor < -150 and pycor >= 89 and pycor < 92 ][set pcolor red] ask patches with [pxcor > -181 and pxcor < -150 and pycor >= 50 and pycor < 53 ][set pcolor red] ask patches with [pxcor >= -150 and pxcor < -147 and pycor >= 12 and pycor < 50 ][set pcolor red] ask patches with [pxcor >= -150 and pxcor < -147 and pycor > 51 and pycor < 89 ][set pcolor red] ;code for writing N ask patches with [pxcor >= -138 and pxcor < -135 and pycor >= 12 and pycor < 50 ][set pcolor red] ask patches with [pxcor >= -138 and pxcor < -135 and pycor >= 52 and pycor < 89 ][set pcolor red] ask patches with [pxcor >= -90 and pxcor < -87 and pycor >= 14 and pycor < 50 ][set pcolor red] ask patches with [pxcor >= -90 and pxcor < -87 and pycor >= 52 and pycor < 92 ][set pcolor red] ask patches with [pxcor >= -135 and pxcor < -113 and pycor >= 89 and pycor < 92 ][set pcolor red] ask patches with [pxcor >= -113 and pxcor < -110 and pycor >= 14 and pycor < 50 ][set pcolor red] ask patches with [pxcor >= -113 and pxcor < -110 and pycor >= 52 and pycor < 89 ][set pcolor red] ask patches with [pxcor >= -110 and pxcor < -90 and pycor >= 12 and pycor < 15 ][set pcolor red] ;code write for J ask patches with [pxcor >= -50 and pxcor < -47 and pycor >= 15 and pycor < 50 ][set pcolor red] ask patches with [pxcor >= -50 and pxcor < -47 and pycor >= 52 and pycor < 92 ][set pcolor red] ask patches with [pxcor >= -74 and pxcor < -50 and pycor >= 12 and pycor < 15 ][set pcolor red] ask patches with [pxcor >= -77 and pxcor < -74 and pycor >= 15 and pycor < 33 ][set pcolor red] ;code for writing U ask patches with [pxcor >= -38 and pxcor < -35 and pycor >= 15 and pycor < 50 ][set pcolor red] ask patches with [pxcor >= -38 and pxcor < -35 and pycor >= 52 and pycor < 90 ][set pcolor red] ask patches with [pxcor >= 1 and pxcor < 4 and pycor >= 15 and pycor < 50 ][set pcolor red] ask patches with [pxcor >= 1 and pxcor < 4 and pycor >= 52 and pycor < 90 ][set pcolor red] ask patches with [pxcor >= -35 and pxcor < 2 and pycor >= 12 and pycor < 15 ][set pcolor red] ;code writing for M ask patches with [pxcor >= 12 and pxcor < 15 and pycor >= 12 and pycor < 50 ][set pcolor red] ask patches with [pxcor >= 12 and pxcor < 15 and pycor >= 52 and pycor < 87 ][set pcolor red] ask patches with [pxcor >= 62 and pxcor < 65 and pycor >= 12 and pycor < 50 ][set pcolor red] ask patches with [pxcor >= 62 and pxcor < 65 and pycor >= 52 and pycor < 87 ][set pcolor red] ask patches with [pxcor >= 14 and pxcor < 35 and pycor >= 87 and pycor < 90 ][set pcolor red] ask patches with [pxcor >= 35 and pxcor < 38 and pycor >= 44 and pycor < 88 ][set pcolor red] ask patches with [pxcor >= 38 and pxcor < 44 and pycor >= 42 and pycor < 45 ][set pcolor red] ask patches with [pxcor >= 43 and pxcor < 46 and pycor >= 44 and pycor < 88][set pcolor red] ask patches with [pxcor >= 45 and pxcor < 62 and pycor >= 87 and pycor < 90 ][set pcolor red] end to go ask patches [ if pcolor = black [set pcolor white ] ] ask anjums [ rt random 20 lt random 20 fd 1 ask patches in-cone 20 5 [ if pcolor = white [ set pcolor black] ] ] ask anjums [ ; face one-of patches with [pcolor = red] ; fd 1 let targ one-of patches with[pcolor = red] if targ != nobody [set heading towards targ fd 1] ] tick ask anjums [ask patches in-cone 20 5 [ if pcolor = red [set trapped? true ] ] ] ; if one-of patches with [ pcolor = white ] ; ask anjums with [pcolor = white] [set trapped? false ] end
There is only one version of this model, created about 7 years ago by anjum iqbal.
Attached files
File | Type | Description | Last updated | |
---|---|---|---|---|
Extra Credit task.png | preview | Preview for 'Extra Credit task' | about 7 years ago, by anjum iqbal | Download |
ODD.docx | word | ODD | about 7 years ago, by anjum iqbal | Download |
This model does not have any ancestors.
This model does not have any descendants.