Optimizing Pasture Management for Sustainable Agriculture