Sortia ← All templates
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.

FoodsOats, Chicken, Rice, Eggs
Minimizetotal cost
Subject tocalories ≥ 2000
andprotein ≥ 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

  1. Open Sortia in Google Sheets and choose Start from a template.
  2. Pick Cheapest Meal Plan (Optimization) — the model loads with the inputs filled in.
  3. Change the assumptions to fit your situation and press Run.
Get Sortia for Google Sheets →