Eating 1.7 Eggs and 0.37 Bananas? MIGP Fixes Unfeasible Diet Recommendations
A review of: Mixed Integer Goal Programming for Personalized Meal Optimization with User-Defined Serving Granularity — Francisco Aguilera Moreno (arXiv:2605.13849, cs.AI, March 12, 2026)
| Item | Details | |------|---------| | Paper | Mixed Integer Goal Programming for Personalized Meal Optimization with User-Defined Serving Granularity | | Author | Francisco Aguilera Moreno (single author) | | arXiv | 2605.13849 (cs.AI) | | Core contribution | Integer programming + goal programming to fix fractional servings and infeasible hard constraints; 810 test instances, beats rounding in 66% of cases | | Link | https://arxiv.org/abs/2605.13849 |
Your diet app tells you to eat 1.7 eggs and 0.37 bananas. Do you slice 0.37 of a banana? Beat 0.7 of an egg? Most people would just give up.
1. Two Flaws of Classical Nutritional Optimization
Nutritional optimization is old news — it shows up in gyms, hospitals, and military canteens. The task: pick a combination of foods so that protein, carbs, fats, vitamins, etc. all fall within target ranges. But classical mathematical methods have two inherent flaws:
Flaw one: fractional servings. Variables are continuous, so the "optimal" plan is 1.7 eggs plus 0.37 bananas. Mathematically perfect, practically nonsense. The usual patch is rounding after the fact — but rounding 0.37 bananas to 0 leaves a protein gap, and rounding 1.7 eggs to 2 overshoots cholesterol.
Flaw two: infeasible hard constraints. Set "protein ≥ 60g," "fat ≤ 60g," "carbs ≤ 250g," "vitamin C ≥ 100mg" — foods meeting the protein target are often high in fat. When hard constraints conflict, the optimizer reports: no feasible solution. Your needs probably aren't impossible — your constraints are just too rigid.
2. MIGP: Turning "Must" into "Try"
The paper's move: convert hard constraints into soft goals while keeping integer servings.
- Integer Programming: variables must be whole numbers. Eggs are 0, 1, 2... never 1.7.
- Goal Programming: constraints become "get as close as possible," with deviation penalties in the objective function.
- MIGP: 100% feasibility; better than GP + rounding in 66% of cases (never worse)
- Hard-constraint IP: feasible in only 48% of cases — more than half the time you get no plan at all
The key insight is deviation absorption: the deviation variables already present in goal programming naturally absorb the nutritional cost of integer rounding — no extra penalties or corrections needed. MIGP doesn't patch a continuous optimum; it searches directly in integer space while goal programming absorbs the discretization cost.
Remarkably, when a meal includes 15+ foods, the integer solution matches the continuous optimum exactly on all benchmark instances. When your food variety is rich enough, an integer combination naturally achieves the continuous-optimal nutrition profile. Diversity is good for optimization, not just health.
3. Results
810 instances, 30 USDA-standard foods, 9 configurations, 3 methods:
4. Honest Caveats
Nutritional accuracy is beyond the math. Same calories and protein — fried chicken and chicken breast affect the body differently. Fiber types, fatty-acid ratios, micronutrient interactions: how much of this can mathematical optimization cover? Unclear.
The 15-food condition. For a single meal, 15 foods is a lot. Could the condition encourage "eating more for the optimizer's sake"?
Preference modeling. User-defined serving granularity (eggs by unit, oil by tablespoon) is one thing, but modeling taste, allergies, and dislikes is a discipline of its own. The paper doesn't go deep here.
5. Verdict
A systematic review of 56 papers found that not one simultaneously addressed fractional servings and hard-constraint infeasibility. This is the classic "you assume a solution exists, but it doesn't" situation.
The post recalls a WWII anecdote: optimization algorithms assigned soldiers rations heavy in liver — because liver is rich in nearly every nutrient. Theoretically perfect; no soldier wanted to eat liver daily. Math finds the optimal solution; reality needs a feasible one. The gap between them is what this paper sets out to fill.
Whether MIGP ends up in real diet apps is unknown — but next time your phone says "eat 1.7 eggs," you can say: "No, I'll eat 2. Recompute."
References
1. Aguilera Moreno, F. (2026). Mixed Integer Goal Programming for Personalized Meal Optimization. arXiv:2605.13849. 2. Charnes, A., et al. (1955). Optimal Estimation of Executive Compensation by Linear Programming. Management Science. 3. Romero, C. (1991). Handbook of Critical Issues in Goal Programming. Pergamon Press. 4. USDA FoodData Central. https://fdc.nal.usda.gov/