Optimal foraging when regulating intake of multiple nutrients