Skip to content

trap for duplicate index observations #186

@iantaylor-NOAA

Description

@iantaylor-NOAA

As discussed in pfmc-assessments/lingcod#59 (comment), the SS model files in lingcod_model_with_error.zip
from the still-in-process-with-lots-left-to-do lingcod assessment produced the following error.

Initial statistics: 1 variables; iteration 0; function evaluation 0; phase 1
Function value   1.3995186e+05; maximum gradient component mag  -3.9184e+04
Var   Value    Gradient   |Var   Value    Gradient   |Var   Value    Gradient
  1 -0.05710  -3.9184e+04 |
1 2 -log(L): 141340  Spbio: 63999.6 47363.9
1 3 -log(L): 143445  Spbio: 63999.4 47363.7
1 4 -log(L): 146155  Spbio: 63999.4 47363.7

Function minimizer: Step size  too small -- ialph=11 5 -log(L): 149373  Spbio: 63999.6 47363.9
1 5 -log(L): 149373  between
2 6 -log(L): 153012  Spbio: 63999.6 47363.9

Dave Fournier said (on ADMB Users email list in 2010)

It means that the function minimizer can not find a step size which decreases the function.

Indeed the -log(L) just rises steadily.

I tracked it down to duplicate index observations added by accident. The fleet 4 index with comments like "#_index_recORCPFV" (starting on line 584 of ling_data.ss) should have had negative year associated with them.

I don't know if this is a general property of any model with duplicate index observations for the same fleet/year, but stopping or warning when duplicates occur would help track down the error.

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions