Keeping cows on the curve when changing diets