dietBreadthOptimalSet: Diet breadth model

Description Usage Arguments Details Value References

View source: R/diet_breadth.R

Description

Usage

1
dietBreadthOptimalSet(u, h, lambda, c_s = 0)

Arguments

u

Vector of resource utilities

h

Vector of resource handling times

lambda

Vector of encounter rates

c_s

Loss of utility per unit time while searching (default 0)

Details

A forager searches the landscape for resources to procure. Each resource is encountered randomly as a Poisson process with encounter rate lambda_i. On encountering a resource, the forager chooses whether or not to procure it. If not, the forager continues searching. If so, the forager pursues and processes it with handling time h_i, receiving a benefit from the resource of u_i. Usually the utility is the food energy provided by the item. Optionally, search is costly to the forager at the rate c_s. That is, c_s is the rate of loss of utility (usually energy / time).

The overall return rate of foraging is (using R syntax):

returnRate = (-c_s + sum(lambda * u)) / (1 + sum(lambda * h))

The optimal diet is the set of items that maximizes this returnRate. Define

rank_i = u_i / h_i

as the rank (or on encounter return rate) of resource i. To determine the optimal set, order resources by rank from best to worst. Add resources to the diet in this rank order until the return rate no longer increases from adding additional items. This occurs when the on encounter return rate of a new item in the diet is lower than the overall return rate from procuring all the items that are more highly ranked.

Value

A boolean vector indicating whether each resource is in the optimal set

References

MacArthur and Pianka 1966 – On Optimal Use of a Patchy Environment. American Naturalist. 100:603-609.


MichaelHoltonPrice/forageR documentation built on May 28, 2019, 7:31 p.m.