Sam+Munoz's+CS699+work

=Homework=

Week 2
3. Attempt at an ODD protocol: __Purpose__: What is the spatial extent and pattern of deforestation around a settlement in a heterogeneous environment? __Entities, state variables, and scales__: Agents as agricultural humans who are devoted to wood collection. Agents must return to their settlement with wood. Settlements may be re-located by the agents. Environment is patches of forest and non-forest; forests gradually re-emerge following harvest. Time step is one day, but agents may travel more than one grid-cell per day. __Process overview and scheduling__: At each time-step, human agent assesses need for wood. If needed, travels to nearest forest patch (one time-step), removes trees (one time-step), travels back (one time-step). Patches of non-forest on former forest re-grow at each time-step.
 * Chapter 3**

Translating ODD to NetLogo code: (a) Entities, State variables, and scales --> global [], turtles-own [], patches-own []. Settings in Interface tab. (b) Process overview and scheduling --> go procedure (c) Initialization --> setup procedure
 * Chapter 4**

1. Increase butterfly number to 50 (crt 50) and play with q parameter. If q is 0.0, then ifelse statement in to move will always go to [move-to one-of neighbors] so the butterflies will move randomly. If q is 1.0, then ifelse statement will always go to [uphill elevation].

2. Modify model so initial butterfly locations are random. Change code to: crt 50 [set size 2 setxy random-float 149 random-float 149 pen-down ] 3. I can't figure out how to incorporate the 3d...sorry! Yes, the butterfly movement looks artificial, but they are doing exactly what we've asked them to do; move directly uphill some of the time, and move randomly otherwise (proportion of uphill movement depends on parameter q). The smoothness of the two hills adds to the artificiality of their movement; topography does not typically look like perfect cones.

4. Adding more randomness to the topography reduces the artificiality of butterfly movement, because now uphill movement does not travel perfectly towards the top of the hill.

Week 4
Predator-prey model of chupacabras and cows, based on a similar model in the library of sheep and wolves. The cows eat grass and the chupacabras eat cows, and will reproduce given enough energy. This model adds an additional trophic-level -- the farmer -- who shoots chupacabras that approach the farm (where grass is more plentiful). The movement of cows and chupacabras is similar to the mushroom hunt, where they will search further afield if their energy is low. If their energy is high (e.g. they have found a patch of grass/prey) they will move in a more circular manner.