![]() [set female_total_seen count males in-radius female_vision + count females in-radius female_vision 4 * (max (list(min (list (random-normal female_economic_class. [set female_attitude (female_pride-shame - 2 * gratification-remorse) ]Īsk females female procedure is identical to males above Set just-exercised 1] people at or below BMI of 20 will fluctuate around their current weight [set newmale_weight (male_weight + random-float. Set just-exercised 1] people above BMI of 20 will continue to lose weight when engaging in healthy behavior [set newmale_weight (male_weight - random-float. Recolor-turtles recalculate BMI and assign new categoriesĮnd to move-turtles this allows turtles to move in a random direction Update-turtles give them their new weight all at once set global variables to appropriate valuesĪsk patches set patches to color pink end to goĮxercise-turtles exercise is used to mean "engage in healthy behavior (i.e. Newfemale_weight calculation of new female weight after each tick Newmale_weight calculation of new male weight after each tick Male_intention indicates a males total likelihood to engage in healthy behaviorįemale_intention indicates a females total likelihood to engage in healthy behavior Male_subjective_norm indicates a males SN valueįemale_subjective_norm indicates a females SN value Male_healthy_seen indicates if a healthy male is seenįemale_healthy_seen indicates if a healthy female is seen Male_total_seen total number of males seen in turtle's visionįemale_total_seen total number of females seen in turtle's vision Male_pbc male perceived behavioral controlįemale_pbc female perceived behavioral control Male_attitude individual attitude towards health(exercise)įemale_attitude individual attitude towards health(exercise) Male_economic_class males are placed in an intial economic classįemale_economic_class females are placed in an intial economic class Male_weight the weight of a male person in kgįemale_weight the weight of a female person in kgīMI_male the body mass index of a male to indicate underweight, healthy, overweight or obeseīMI_female the body mass index of a female to indicate underweight, healthy, overweight or obese Male_height_squared how tall a male person is in metres squared for calculation of BMIįemale_height_squared how tall a female person is in metres squared for calculation of BMI ) Quiz - No Answers (.doc) (Available upon request. Quiz - With Answers (.doc) (Available upon request. Patterns of Change and Mathematical Models.Penny Growth NetLogo Activity (.pdf) (.nlogo).Blown to Bits: Chapter 2 (Reading Assignment pp.Please have the students watch the rest of the video (from 19:04 on).Optional : Biology and Computation: An Agent Based Model of Ant Foraging - Melanie Moses (.mp4) (transcript).Creating Turtles in NetLogo (.mp4) (.ppt) (transcript).Creating Breeds and Shapes in NetLogo (.mp4) (.ppt) (transcript).Population Dynamics and Birth and Death (.mp4) (.ppt) (transcript).Designing and Running Experiments in NetLogo (.mp4) (.ppt) (transcript).Other Sample Programs (Available upon request.Sample Program 2 (Available upon request. ![]() Sample Program 1 (Available upon request.Programming Assignment - Saving Nemo (.doc).Do Now Questions - With Explanations (Available upon request.Do Now Questions - No Explanation (.doc).Designing and running experiments with population dynamics will also be covered. Learning Objectives: This week the student learns about breeds, shapes and creating turtles in NetLogo. Week 7: Running Experiments with Computer Models
0 Comments
Leave a Reply. |