Optimize q for a single simulation
optQ_multi(
par,
depc,
SSB0c,
nareas,
maxage,
Ncurr,
pyears,
M_age,
MatAge,
Asize_c,
WtAge,
Vuln,
Retc,
Prec,
movc,
SRrelc,
Effind,
Spat_targc,
hc,
R0c,
SSBpRc,
aRc,
bRc,
maxF,
MPAc,
CFc,
useCPP,
mode = "opt"
)
Depletion value
Unfished spawning biomass
Number of areas
Maximum age
Current N-at-age
Number of years to project population dynamics
M-at-age
Maturity-at-age
Numeric vector (length nareas) with size of each area
Weight-at-age
Vulnerability-at-age
Retention-at-age
Recruitment error by year
movement matrix
SR parameter
Historical fishing effort
Spatial targetting
Steepness
Unfished recruitment by area
Unfished spawning biomass per recruit by area
Ricker aR
Ricker bR
maximum F
Logical. Use the CPP code?
log q
A matrix of spatial closures by year
Character 'opt' is optimization and returns an objective funciton to be minimized, anything else returns fitted values