|
Modular Megafauna Model 1.1.5
A physiological, dynamic herbivore simulator in C++.
|
Equal forage distribution algorithm. More...
#include <forage_distribution_algorithms.h>
Public Member Functions | |
| virtual void | operator() (const HabitatForage &available, ForageDistribution &forage_distribution) const |
| Distribute forage equally among herbivores. More... | |
Public Member Functions inherited from Fauna::DistributeForage | |
| virtual void | operator() (const HabitatForage &available, ForageDistribution &forage_distribution) const =0 |
| Distribute forage equally among herbivores. More... | |
| virtual | ~DistributeForage () |
| Virtual destructor. More... | |
Equal forage distribution algorithm.
No direct competition. Under forage scarcity, each herbivore gets its share in proportion to its demanded forage.
Under food scarcity, the following equation holds:
![\[
\frac{P_{ind}}{A} = \frac{D_{ind}}{D_{total}}
\]](form_13.png)



|
virtual |
Distribute forage equally among herbivores.
No direct competition. Under forage scarcity, each herbivore gets its share in proportion to its demanded forage.
| [in] | available | Available forage in the habitat. |
| [in,out] | forage_distribution | As input: Demanded forage of each herbivore (see HerbivoreInterface::get_forage_demands()). As output: Forage portion for each herbivore. Unit is kgDM/km². The sum of all portions must not exceed the available forage! |
Implements Fauna::DistributeForage.