The process of modifying the ratio of carbohydrates, proteins, and fats in a diet to better suit an individual's needs or goals.