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