Implementation of the model in Thygesen et al: Optimal seasonal routines across animals and latitudes.
Code on github.