Supplementary material 1. Optimisation process, model evaluation, and the non-linear maternal allocation in tsetse;Supplementary material 2. Code for dynamic optimization and forward simulation;Supplementary material 3. Code for model evaluation;Supplementary material 4. Code for figures from Incorporating effects of age on energy dynamics predicts nonlinear maternal allocation patterns in iteroparous animals