Skip to content

This project show cases how to use Object Oriented Programming in MATLAB to do dynamic population models in a scalable and flexible framework

License

Notifications You must be signed in to change notification settings

mathworks/oop-population-dynamics

Repository files navigation

Dynamic Population Models with MATLAB Object Oriented Code

This code is what was presented for the Australian AgTech Webinar on 16th March 2021. It showcases how to stack together objects to create a world in which plants grow, herbivores eat and are eaten by carnivores. The key is that this object approach and the world framework is flexible and extensible. For example, the system can be adapted to model fishing fleets and fish populations, or harvest strategies for logging operations.

Screen shot of simulation

Setup

Open in MATLAB Online View oop-population-dynamics on File Exchange

To Run:

  1. Open the MATLAB® Project prj file and use the project shorcuts:
  2. "Grass Lives Forever" for a simple development version where the grass lives forever
  3. "Grass is Finite but Regrows" for the final version where the grass is consumed and takes time to regrow

MathWorks Products (https://www.mathworks.com)

This demonstration was developed in R2021a but should be quite backward compatible. The following are recommended products as simulations such as this are often placed into a much larger Monte Carlo framework.

License

The license for this population modelling code is available in the LICENSE.TXT file in this repository.

Community Support

MATLAB Central

Copyright © 2021 - 2023 The MathWorks, Inc.

About

This project show cases how to use Object Oriented Programming in MATLAB to do dynamic population models in a scalable and flexible framework

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages