Integrated modelling of foraging behaviour, energy budget and memory properties