Learn R Programming

DLMtool (version 4.4.1)

CalcInput: Apply input control recommendations and calculate population dynamics

Description

Internal function

Usage

CalcInput(y, nyears, proyears, InputRecs, nsim, nareas, LR5_P, LFR_P, Rmaxlen_P,
  maxage, retA_P, retL_P, V_P, V2, pSLarray, SLarray2, DR, maxlen, Len_age,
  CAL_binsmid, Fdisc, nCALbins, E_f, SizeLim_f, VBiomass_P, Biomass_P,
  Spat_targ, FinF, qvar, qs, qinc, CB_P, CB_Pret, FM_P, FM_retain, Z_P,
  M_ageArray, LastEffort, LastSpatial, LastAllocat)

Arguments

y

Simulation year

nyears

Number of historical

proyears

Number of projection years

InputRecs

Input control recommendations

nsim

Number of simulations

nareas

Number of areas

LR5_P

Length at 5 percent retention

LFR_P

Length at full retention

Rmaxlen_P

Retention of maximum length

maxage

Maximum age

retA_P

Retention at age

retL_P

Retention at length

V_P

Realized vulnerability at age

V2

Gear vulnerability at age

pSLarray

Realized vulnerability at length

SLarray2

Gear vulnerability at length

DR

Discard ratio

maxlen

maximum length

Len_age

Length-at-age

CAL_binsmid

Length-bin mid-points

Fdisc

Fraction of discarded fish that die

nCALbins

Number of length bins

E_f

Implementation error on effort recommendation

SizeLim_f

Implementation error on size limit

VBiomass_P

Vulnerable biomass-at-age

Biomass_P

Biomass-at-age

Spat_targ

Spatial targetting

FinF

Final fishing effort

qvar

Annual ariability in catchability

qs

Catchability

qinc

Numeric vector (nsim) increased

CB_P

Numeric array (nsim, maxage, proyears, nareas) Catch biomass at age

CB_Pret

Numeric array (nsim, maxage, proyears, nareas) Retained catch biomass at age

FM_P

Numeric array (nsim, maxage, proyears, nareas) Fishing mortality at age

FM_retain

Numeric array (nsim, maxage, proyears, nareas) Retained fishing mortality at age

Z_P

Numeric array (nsim, maxage, proyears, nareas) Total mortality at age

M_ageArray

Numeric array (nsim, maxage, nyears+proyears) Natural mortality at age

LastEffort

Numeric vector (nsim) with fishing effort from last year

LastSpatial

Numeric matrix (nsim, nareas) with spatial closures from last year

LastAllocat

Numeric vector (nsim) with allocation from last year