We develop software that uses machine learning to optimize the nutrition of farm animals. The solution improves milk yield, improves the welfare of animals, and reduces emissions.