secure base phenomenon

secure base phenomenon preview image

5 collaborators

Default-person Carlo Schuengel (Author)
Pasco Fearon (Author)
Lianne Bakkum (Author)
Sam Wass (Author)
Alastair van Heerden (Author)

Tags

(This model has yet to be categorized with any tags)
Visible to everyone | Changeable by the author
Model was written in NetLogo 6.4.0 • Viewed 339 times • Downloaded 15 times • Run 0 times
Download the 'secure base phenomenon' modelDownload this modelEmbed this model

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


WHAT IS IT?

This code simulates the interaction between an infant (blue) and a carer (red) agent.

HOW IT WORKS

The infant’s goal is to explore the environment, but when it experiences that the carer is too far away, its security goal gains activation, and it moves towards the carer. When the carer is within a safe distance, the infant’s security goal is not activated and starts to explore again. The simulation starts with two turtles, one representing the carer and the other representing the infant. The carer turtle randomly decides whether to prompt the infant to explore or to activate its security goal. The infant turtle moves forward if its goal is to explore, and moves towards the carer if its goal is to activate its security goal. At random moments, the carer moves in a randomly chosen direction.

HOW TO USE IT

The simulation ends when the user stops it by pressing the Go button.

THINGS TO NOTICE

The plot shows how distance varies over time.

THINGS TO TRY

The variable “secure-range” represents the distance threshold that determines whether the infant’s security goal is activated or not, based on the trust level. If the infant has a high trust level, the secure-range is larger, meaning the infant feels secure even when the carer is farther away. If the infant has a low trust level, the secure-range is smaller, meaning the infant feels insecure when the carer is not close enough. The secure-range can be adjusted according to the specific needs of the simulation.

EXTENDING THE MODEL

(suggested things to add or change in the Code tab to make the model more complicated, detailed, accurate, etc.)

NETLOGO FEATURES

(interesting or unusual features of NetLogo that the model uses, particularly in the Code tab; or where workarounds were needed for missing features)

RELATED MODELS

(models in the NetLogo Models Library and elsewhere which are of related interest)

CREDITS AND REFERENCES

(a reference to the model's URL on the web if it has one, as well as any other necessary credits, citations, and links)

Comments and Questions

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

Click to Run Model

globals [carer infant explore-ticks]

turtles-own [goal secure-range]

to setup
  clear-all
  set-default-shape turtles "default"
  create-turtles 2 [
    setxy random-xcor random-ycor
    set color ifelse-value who = 0 [red] [blue]
    set size 2
  ]
  ask turtle 0 [set carer self]
  ask turtle 1 [
    set infant self
    set goal "explore"
    set secure-range secure-range-slider
    set explore-ticks 0
  ]
  reset-ticks
end 

to go
  ask carer [
    ifelse random-float 1 < 0.5
    [ask infant [set goal "explore"]]
    [ask infant [set goal "security"]]
  ]
  ask carer [
    ifelse random-float 1.0 < 0.05 [ ; Adjust the probability (0.05) as needed
      random-movement ; Add this line to introduce random movement to carer
    ] [
      ; Carer stays in place
    ]
  ]

  ask infant [
    ifelse goal = "explore"
    [fd 1
         set explore-ticks explore-ticks + 1]
    [ifelse distance carer <= secure-range
      [set goal "explore"]
      [face carer fd 1]
      ]
  ]
  tick
end 

to random-movement
  ; Move the carer randomly
  rt random 360  ; Randomly turn the carer
  fd random carer-movement-slider         ; Move the carer forward (adjust the distance as needed)
end 

There is only one version of this model, created over 1 year ago by Carlo Schuengel.

Attached files

File Type Description Last updated
secure base phenomenon.png preview Preview for 'secure base phenomenon' over 1 year ago, by Carlo Schuengel Download

This model does not have any ancestors.

This model does not have any descendants.