gadget-framework / gadget3

TMB-based gadget implemtation
GNU General Public License v2.0
8 stars 5 forks source link

Random-effect spawning / simulations #168

Closed lentinj closed 1 month ago

lentinj commented 3 months ago

Make what's going on in g3_GoB the default:

https://github.com/vbartolino/g3_GoB/blob/45abba5f3d457bde81295f81edacedb253f6b818/vendace_g3/gadget3/09-SRR-RND/setup-random.R#L1-L15

In g3l_random_dnorm, or a wrapper:

Ideally we don't want a parameter per-projection year, but some way of forcing e.g. no-spawning years. Maybe work this into the formula? if (cur_year == bad_year) 0 else rnorm(...).

Maybe we should have a extra_actions attribute that g3_step() sorts out, to simplify this setup?

lentinj commented 1 month ago

Duplicate of https://github.com/gadget-framework/gadget3/issues/181