Stochastic Control of Animal Eiets: Optimal Sampling Schedule And Diet Optimization