Chapter 2 -- Immigration-Emigration Models

Chapter 3 -- Logistic Birth-Death Models

Chapter 4 -- Random Numbers and Visualization

Chapter 5 -- Two-Species Competition Model

Chapter 6 -- Programming Projects

Chapter 7 -- Foraging Model

Chapter 8 -- Maintenance of Gynodioecy

Chapter 9 -- Diffusion and Reactions

Chapter 10 -- Optimal Resource Allocation Schedules

Book Homepage

Will's Homepage

Simulating Ecological and Evolutionary Systems in C

Chapter 7 (Foraging Model) program files



  • rate.c produces the data for R(T) in figure 7.1 on page 156.
  • root.c is the root-finding program listed on pages 158-160 that calculates the optimal residence time that maximizes the consumer's intake rate. The results are plotted as the dark line in figure 7.4.
  • mv.c is the single-consumer simulation program listed on pages 164-167 that produces the data plotted in figure 7.6.
  • mv2.c extends mv.c to perform a time average of the consumer's intake rate, producing the data plotted as the symbols in figure 7.7.
  • sizestruc.c is the program listed on pages 174-176 that performs the numerical analysis of the size-structured model. The results are plotted as the solid lines in figure 7.10 on page 177.
  • multicon.c is the multiple-consumer extension of mv.c discussed on pages 178-179, producing the images and data in figure 7.11 on page 179.
  • /11/28/00