efficiency: Efficiency

Description Usage Arguments Value Examples

View source: R/efficiency.R

Description

Returns Efficiency (ratio of profits/losses) for a forager in a given cell.

Usage

1
efficiency(L, L_max, e, d, v, h, f, l, p_i, c_i, c_f, H, alphaVal, betaVal, S)

Arguments

L

Load size (μL)

L_max

Maximum load size (μL)

e

Energetic value of nectar (J/μL)

d

Distance from hive (m)

v

Unloaded flight speed from hive (m/s)

h

Handling time per flower (s)

f

Flight time between flowers (s)

l

Maximum standing crop per flower (μL)

p_i

Licking speed for nectar (μL/s)

c_i

Cost of non-flying behaviour (J/s)

c_f

Cost of flight (J/s)

H

Time spent inside hive (s)

alphaVal

Increase in metabolic rate with load (J/(s*μL))

betaVal

Reduction in flight speed with increase in load

S

Competition term (0-1)

Value

Efficiency (dimensionless). Efficiency = \frac{Gains - Foraging Loss - Travel Loss - Hive Loss}{Loading Loss + Travel Loss + Hive Loss} Called by curr_i.

Examples

1
2
3
efficiency(L=50,L_max=59.5,e=14.35,d=100,v=7.8,
 h=1.5,f=0.86,l=1,p_i=1,c_i=0.0042,c_f=0.05,H=100,S=0.5,
 alphaVal=0.013,betaVal=0.102/59.5)

samuelVJrobinson/CPForage documentation built on Jan. 20, 2021, 6:22 p.m.