Internal optimization function
LBSPR_NLLabsel(
starts,
x,
P,
LMids,
LBins,
LDat,
MK,
Linf,
FecB,
L50,
L95,
maxsd,
CVLinf,
Nage,
usePen
)
a vector of starting parameters, relative SL50 (SL50/Linf), deltaSL (SL95-SL50)/Linf, and F/M (in log space)
vector of relative ages
numeric value indicating proportion of cohort remaining at maximum age
a vector of the midpoints of the length classes
a vector of length classes
a vector of lenght frequencies. Must be same length as LMids
the M/K value
the Linf value for the population as a hole
exponent of the length-fecundity relationship
length at 50 per cent maturity
length at 95 per cent maturity
numeric value - maximum number of standard deviations of length-at-age dist
CV of length-at-age
number of pseudo age-classes
logical to use penalty for extreme estimates of selectivity
negative log-likelihood value