kaskr / adcomp

AD computation with Template Model Builder (TMB)
Other
176 stars 80 forks source link

Loading model objects between different versions of TMB #339

Open kaskr opened 3 years ago

kaskr commented 3 years ago

Description:

It would be nice if saved model objects would remain valid when updating to new versions of TMB - see e.g. https://github.com/glmmTMB/glmmTMB/issues/651 .

Solution idea:

Currently, a TMB model object contains functions (e.g. fn and gr) that explicitly .Call underlying cpp code. This design is highly sensitive to changes in the cpp API. The TMB R code might benefit from re-factoring all the .Call into separate R functions with a fixed R API.