Internal optimization function
LBSPR_NLLgtg(
starts,
LMids,
LBins,
LDat,
gtgLinfs,
MKMat,
MK,
Linf,
ngtg,
recP,
usePen
)
a vector of starting parameters, relative SL50 (SL50/Linf), deltaSL (SL95-SL50)/Linf, and F/M (in log space)
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
a vector of Linfs for the growth-type-groups
a matrix of M/K for each GTG and length-class
the M/K value
the Linf value for the population as a hole
the number of growth-type-groups
a vector of recruitment by GTG
logical to use penalty for extreme estimates of selectivity
negative log-likelihood value