Theoretical results of an optimal control policy. A. Capture rate (Eq. 1) is plotted during the harvest period as a function of lick number following various number of work trials. When the effort cost of licking is low (left plot,), the optimal work period is (red trace). When the effort cost is higher (right plot,), it is best to work longer before initiating harvest. B. The metabolic cost of licking (Eq. 2) is minimized when a lick has a specific duration. Tube distance varied from 0.1 to 0.3. Optimal duration that minimizes lick cost grows linearly with tube distance. C. Optimal number of work trials and licks as a function food tube distance. As the effort cost of harvest increases, one should respond by working longer, delaying harvest. D. Optimal lick duration as a function of food tube distance. The lick duration that maximizes the capture rate is smaller than the one that minimizes the lick metabolic cost (Fig. 2B). That is, it is worthwhile moving vigorously to acquire reward. However, grows faster than linearly as a function of tube distance. Thus, as the tube moves farther, it is best to reduce lick vigor. Hunger, modeled as increased value of reward, should promote work and increase vigor, while effort cost of harvest (tube distance) should promote work but reduce vigor. Parameter values for all simulations:,,,, (low food value, less hunger), (high food value, hungry).