total_daily_cost {optistock} | R Documentation |
Compute the total daily cost of raising hatchery fish
Description
This function takes the definite integral from time t = 0 until the
given time
of the daily_cost_fun
.
This integral is then the total cost of raising x number of fish until
time
given the other cost function parameters.
Usage
total_daily_cost(
time,
recruits,
daily_cost,
init_cost = 0,
time_slope = 0,
time_exp = 1,
rec_slope = 1,
rec_exp = 1,
type = "multiplicative"
)
Arguments
time |
The time at which fish are raised in hatchery |
recruits |
The number of recruits raised |
daily_cost |
Baseline daily cost to raise a single fish |
init_cost |
An intercept on the total cost function |
time_slope |
The slope term on the amount of time (see details) |
time_exp |
The exponent on the amount of time |
rec_slope |
The slope term on the number of recruits |
rec_exp |
The exponent on the number of recruits |
type |
Either multiply the number of recruits times the cost-at-time or add to it (see Details). |
Value
The total cost across time to raise the number of recruits
.
This is simply the integral from time t = 0 until time
of the
daily_cost_fun
function.
Examples
# total cost of raising 1000 fish for 100 days at given parameters
total_daily_cost(time = 100, recruits = 100,
daily_cost = 0.05,
time_slope = 0.01, time_exp = 1.2,
rec_slope = 0.05, rec_exp = 1)