ABM showing behavior when people align with others

ABM showing behavior when people align with others preview image

1 collaborator

Default-person Muaz Niazi (Author)

Tags

agent-based model 

Tagged by Muaz Niazi over 2 years ago

group decision forecasting 

Tagged by Muaz Niazi over 2 years ago

ideal 

Tagged by Muaz Niazi over 2 years ago

positive feedback 

Tagged by Muaz Niazi over 2 years ago

social norms 

Tagged by Muaz Niazi over 2 years ago

social science 

Tagged by Muaz Niazi over 2 years ago

Visible to everyone | Changeable by everyone
Model was written in NetLogo 6.2.2 • Viewed 364 times • Downloaded 14 times • Run 0 times
Download the 'ABM showing behavior when people align with others' modelDownload this modelEmbed this model

Do you have questions or comments about this model? Ask them here! (You'll first need to log in.)


Comments and Questions

Please start the discussion about this model! (You'll first need to log in.)

Click to Run Model

to setup
  setworld
  maketurtles
end 

to setworld
  ca
  ask patches
  [
    set pcolor white
  ]
end 

to maketurtles
  create-turtles num
  [
    setxy random-pxcor random-pycor
    set shape "bug"
  ]
end 

to go
  ask turtles
  [
    rt random 30
    lt random 30
    fd speed
    let temp turtles in-radius 3
    if any? temp
    [
      let r random 100
      if r < align
      [
        ifelse not heading-or-facing?
        [
          face one-of temp
        ]
        [
          let h [heading] of one-of temp
          set heading h
        ]
      ]
    ]
  ]
  ;ask turtles in-radius 3
  ;[
   ; face self
  ;]
end 

There is only one version of this model, created over 2 years ago by Muaz Niazi.

Attached files

File Type Description Last updated
ABM showing behavior when people align with others.png preview Preview for 'ABM showing behavior when people align with others' over 2 years ago, by Muaz Niazi Download

This model does not have any ancestors.

This model does not have any descendants.