Health
What is the cheapest meal plan that hits your targets?
This is the classic "diet problem" — pick servings of each food to hit your nutrition targets for the least money. There are infinitely many combinations; a linear program finds the single cheapest one exactly, in one solve.
Get this in Google Sheets →The model
Choose servings of each food to minimize total cost, while meeting minimum calories and protein. Simplex solves it exactly.
| Foods | Oats, Chicken, Rice, Eggs |
| Minimize | total cost |
| Subject to | calories ≥ 2000 |
| and | protein ≥ 100g |
| Servings | → solved |
What Sortia tells you
The optimizer returns the exact cheapest combination:
Cheapest cost$5.48 / day
Calories2000 met
Protein100g met
Solveexact (LP)
The linear program guarantees the mathematically cheapest mix that still clears your targets — no trial and error. Swap in your own foods, prices, and calorie/protein goals; add an "integer" constraint if you want whole servings only. Same engine that plans diets, refinery blends, and feed mixes.
Try it in your own sheet
- Open Sortia in Google Sheets and choose Start from a template.
- Pick Cheapest Meal Plan (Optimization) — the model loads with the inputs filled in.
- Change the assumptions to fit your situation and press Run.