logistic growth

No preview image

1 collaborator

Default-person William Driscoll (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.0.4 • Viewed 255 times • Downloaded 27 times • Run 0 times
Download the 'logistic growth' 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?

(a general understanding of what the model is trying to show or explain)

HOW IT WORKS

(what rules the agents use to create the overall behavior of the model)

HOW TO USE IT

(how to use the model, including a description of each of the items in the Interface tab)

THINGS TO NOTICE

(suggested things for the user to notice while running the model)

THINGS TO TRY

(suggested things for the user to try to do (move sliders, switches, etc.) with the model)

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 [open_space Nt-1 Nt]
patches-own [open?]
;patches-own [binding_0 binding_1 aff_0 aff_1 open? ideal_type]
;turtles-own [cell_type my_affinity]

to Setup
  clear-all
  crt N0 [set color green set shape "tree" move-to one-of patches]
  ask patches [update-patches]
  set open_space 1 set Nt-1 N0 set Nt N0
  reset-ticks
end 

to Go
  reproduce
  ask patches [update-patches]
  set open_space 1 - (count turtles / (K * count patches))
  set Nt-1 Nt
  set Nt (count turtles)
  tick
end 

to reproduce
  ask turtles [if random-float 1 < r [if any? patches with [open? = 1] [hatch 1 [migrate]]]]
end 

to migrate
  carefully [move-to one-of patches with [open? = 1] face one-of neighbors fd random-float 0.5 update-patches] [die]
  ;move-to one-of patches ifelse open? = 1 [update-patches] [die]
end 

to update-patches  ;; Patch context only
  ifelse count turtles-here > K [set open? 0 set pcolor 0 ask one-of turtles-here [die]] [set open? 1 set pcolor 0]
  ifelse count turtles-here < K [ask turtles-here [set color green]] [ask turtles-here [set color brown]]
end 

;to update-cells?
;;  ask turtles [ifelse cell_type = 0 [set color red set color lput (opacity * 250) extract-rgb color]
;    [set color blue set color lput (opacity * 250) extract-rgb color]]
;  ask turtles [set size cell_size]
;end

There are 2 versions of this model.

Uploaded by When Description Download
William Driscoll over 3 years ago Formatting & added growth rate plot Download this version
William Driscoll almost 5 years ago Initial upload Download this version

Attached files

No files

This model does not have any ancestors.

This model does not have any descendants.