Learn R Programming

optistock (version 0.0.2)

linear_total_cost: Compute total cost as a linear function of time

Description

This function returns the total cost of raising n recruits to time. The curve across time can only be linear with parameters int and beta, but can be non-linear with respect to recruits

Usage

linear_total_cost(time, recruits, int, beta, rec_exp = 1)

Value

A vector the same length as time with the total cost to raise n recruits to time

Arguments

time

The amount of time that fish are raised in hatchery

recruits

The number of recruits raised

int

Intercept for the linear total cost curve

beta

Slope for the linear total cost curve

rec_exp

The exponent on the number of recruits

Examples

Run this code
curve(linear_total_cost(x, 0.5, 0.001, 100), 0, 1000)

Run the code above in your browser using DataLab