grid.search.catch: Function for setting catch, when zero catch gives prediction...

View source: R/captool_simulation.R

grid.search.catchR Documentation

Function for setting catch, when zero catch gives prediction above blim

Description

Function for setting catch, when zero catch gives prediction above blim

Usage

grid.search.catch(
  captool_run,
  catchgrid = seq(0, 0.1, 0.02),
  catch.distribution = c(0, 0.3, 0.7),
  optimize = TRUE,
  blim = 0.2,
  seed = 1,
  ...
)

Arguments

captool_run

output from captool function

catchgrid

grid of potential catch quotas when optimize = FALSE, else min and max of catchgrid values are used as limits for optim.

catch.distribution

vector of length 3 given ratio of catch in jan, feb and mar

optimize

boolean, if TRUE uses optim to find exact catch

blim

Blim

seed

integer, for not changing the random input

...

other arguments for the optimization to captool function. E.g. NewFallMortality

Value

captool object

Examples

## Not run: opt <- grid.search.catch(run)

IMRpelagic/bifrost documentation built on Oct. 17, 2023, 7:11 a.m.