run_season_loop_om: Run the Operating model for all seasons and spaces in one...

View source: R/run_season_loop_om.R

run_season_loop_omR Documentation

Run the Operating model for all seasons and spaces in one year

Description

Run the Operating model for all seasons and spaces in one year

Usage

run_season_loop_om(
  om,
  yr,
  yr_ind,
  m_season,
  attain = c(1, 1),
  zero_catch_val = 2000,
  ages_no_move = c(0, 1),
  pope_mul = 0.5,
  hcr_apply = FALSE,
  verbose = TRUE,
  testing = FALSE,
  const_catch = FALSE,
  ...
)

Arguments

om

See run_om()

yr

The year to run the operating model for

yr_ind

The index of yr in the om$yrs vector

m_season

A vector of natural mortality-at-age

attain

The attainment vector of length 2, in the order Canada, US. These are proportions of the catch to take.

zero_catch_val

The value to use instead of zero for catch (necessary for EM to converge)

ages_no_move

Ages that don't move in the movement model

pope_mul

Multiplier used in Pope's method

hcr_apply

If TRUE, apply the Harvest control rule inside the Operating model. Set to FALSE when running MSE as the HCR is already applied

verbose

Print the loop information to the console

testing

Logical. If TRUE, write out testing files

const_catch

If TRUE make the catch constant for the projection period. catch_in still needs to be set to some value when running run_oms()

...

Absorbs additional arguments meant for other functions

Value

A modified version of om with the current data for yr populated in all it's arrays and other objects


pacific-hake/pacifichakemse documentation built on June 11, 2024, 4:07 a.m.