Energy allocation; Phenotypic plasticity; Reproductive investment; Stochastic environment