This code was created to run a bioenergetics-based model of movement for Galapagos tortoises. It calculates energetic surplus or deficit at a daily time scale based on inputted temperature (6 times a day) and NDVI value (a single value per days), as well as the mass of an individual. It then uses dynamic programming to determine the optimal timing of movement between two foraging habitats.