View source: R/BioeconomicSim-class.R
BioeconomicSim | R Documentation |
BioeconomicSim
classA constructor for the BioeconomicSim
class. This need not be called directly, as this class is generated automatically via the project()
function.
BioeconomicSim( params, R, t_start, t_end, R_init = NULL, CLim_func = NULL, CLim_alloc = NULL )
params |
An object of class |
R |
The recruitment across the simulation. This is either a |
t_start |
An |
t_end |
An |
R_init |
A |
CLim_func |
The catch limit function. This should be a |
CLim_alloc |
The catch allocation across both fleets. This should be a |
An object of type BioeconomicSim
data("seabass") recruitment_fun <- function(stock){ return( 1.492*stock/(7.2e-4 + 1.87e-07*stock)*exp(rnorm(1,mean=0,sd=0.9)) ) } sim <- BioeconomicSim(params, recruitment_fun, t_start = 1980, t_end = 2020, R_init = 1e5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.