mac-theobio / McMasterPandemic

SEIR+ model
GNU General Public License v3.0
20 stars 5 forks source link

Ability to turn off objective function computation when forecasting #188

Closed stevencarlislewalker closed 2 years ago

stevencarlislewalker commented 2 years ago

There are two possible approaches:

I like the second one better because it will reduce the complexity of the C++ code and I have found that generating AD functions is quite cheap computationally.

stevencarlislewalker commented 2 years ago

Any thoughts @bbolker?

bbolker commented 2 years ago

not off the top of my head. Can you do what you want with appropriate use of SIMULATE or analogous macros? (I don't know if !(SIMULATE) works but suspect it would, i.e. wrap objective function computations in if (!SIMULATE) ?

stevencarlislewalker commented 2 years ago

Implemented different flexmodel classes for different purposes, each of which makes the appropriate links with c++/tmb.