Optimize q for a single simulation
optQ(logQ, depc, SSB0c, nareas, maxage, Ncurr, pyears, M_age, Asize_c, MatAge,
WtAge, Vuln, Retc, Prec, movc, SRrelc, Effind, Spat_targc, hc, R0c, SSBpRc,
aRc, bRc, maxF, MPA, useCPP)
log q
Depletion value
Unfished spawning biomass
Number of areas
Maximum age
Current N-at-age
Number of years to project population dynamics
M-at-age
Numeric vector (length nareas) with size of each area
Maturity-at-age
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
A matrix of spatial closures by year
Logical. Use the CPP code?