A Simulation of Optimal Foraging: The Nuts and Bolts Approach.