How a plan is checked

How we know a plan is right.

A plan is right when its numbers are true, every limit holds and the food is what the family would eat. This page shows how µSolve and µLayer get there, what is held, what is only aimed for, how every plan is checked again before you see it, and what our tests found on 28 October 2026, misses included.1

From your inputs to a plan

Six steps. Each one says what it holds.

Held means the plan cannot break it: if no plan fits, it is refused and the refusal names the setting that blocks it. Aimed for means it is weighed in the solve and reported when it is missed.

  1. Step 1

    Targets for this client.

    For age, sex, weight and life stage, each nutrient gets three numbers from ICMR-NIN 2020: the average requirement (EAR), the recommended allowance (RDA) and the upper limit. 26 condition protocols, 27 rules on 24 lab markers and 23 food rules for 20 medicines then adjust them. Anything you set yourself is applied last, so yours wins.

    Held

    • Upper limits that apply to food, and any maximum you set
    • Clinical caps, such as sodium at 1,500 mg in hypertension
    • A condition moves energy by 30% at most
  2. Step 2

    Dishes the family would cook.

    µLayer builds every dish in five layers (core, support, outer, fibre, helpers) and gives each ingredient a gram range. Foods the diet, an allergy or your exclusions rule out are removed here, before anything is solved, so they are never offered. Dishes from the client’s recent plans are set aside so weeks vary.

    Held

    • No excluded or allergy food on offer
    • Portion limits in every meal: 125 g dry grain, 75 g dry pulse, 20 g added fat
  3. Step 3

    One problem, solved for the whole day.

    µSolve is a mathematical optimiser, a mixed-integer linear program solved by HiGHS, with CBC as a fallback. It picks one plate for every meal and every gram inside each range, for all the day’s meals at once. Without µ Assistant, no language model picks a food or a gram.

    Held

    • Energy within 5% of the day’s target, widened only when no plan fits (below)
    • Protein at 97% of the goal or more; a prescription at 98.5% to 120% of it (to 103% for kidney disease, children and low prescriptions)
    • Upper limits and any maximum you set, wherever the foods allow, with a day that goes over flagged; added salt at 5 g a day or less in regional and pan-Indian dishes
    • Your must and never rules (below)

    Aimed for

    • Every target at its RDA; a fall below the EAR weighs three times as much
    • Protein, fibre, iron and calcium weighted more; a condition’s priority nutrients four times more
    • Sodium, added sugar, saturated fat and glycaemic load kept down
  4. Step 4

    A week, not seven separate days.

    What one day falls short on is carried into the next day’s targets, within 85% to 135% of the target, so the week balances. Dishes rotate across the week.

  5. Step 5

    Every number worked out again.

    After the solve, every meal is recomputed from its final grams, the food composition data and cooking losses, apart from the solver’s own arithmetic. The plan is refused if any meal has an unknown food, an excluded food, a food the diet does not allow, an impossible amount or an impractical portion, or if a day’s energy is more than 25% off. Each day is also read against a written rulebook of what an Andhra home serves at each meal, and drawn again, up to twice, if a meal is odd.

    Held

    • No plan released with a food the client cannot have
    • No plan released with an impractical portion
  6. Step 6

    You check it.

    You see every target met or missed, the gaps named with the reason, the rules kept or not, and the record below. You edit, and every edit is checked again before it saves.

The record on every plan.

Every plan carries “How this plan was made”: the energy formula, the plates the engine tried and these checks. This is the unchanged week from the tests below, a 1,998 kcal day for a woman of 34.2

  • Ingredient lines matched to a food record547 of 547
  • Meals with an excluded or allergy food0 of 28
  • Days within ±5% of the energy target7 of 7
  • Days with at least 95% of the protein target7 of 7
  • Upper limits exceeded0
  • Meals that pass the home-meal check (time of day, pairings, portions)28 of 28

Where the engine bends, and says so

  • Never rules are held, unless they cannot all be kept together with the day’s energy and protein. Then they are followed as closely as possible and the rule report names each meal.
  • Clinical caps are held on every attempt but the last, where going over one is weighed very heavily instead. A plan that ends over a cap says so.
  • Energy is held within 5% of the target; when no plan fits, the band widens step by step to 20%, and a plan more than 25% off is never released.
  • Each solve has 12 seconds. The best plan found in that time is used, so two runs of the same client can differ slightly.

Every preference, one at a time

107 preferences, each tested on its own.

One client and one random seed: a woman of 34, 62 kg, vegetarian, Andhra, a seven-day Premium plan. Each preference in the builder was changed on its own and the week compared with the unchanged one, which was built twice and came out identical. 99 changed the plan as they should, 7 change nothing by design, such as a name or a record-only lab value, and 1 did not take effect. 6 plans did not pass all of their own checks; each row says which.2

  1. Type 2 diabetes

    28 of 28 meals changed

    TargetsSoluble fibre 0 → 10 g · Fibre 30 → 45 g · Vitamin B₁₂ 2.2 → 3.3 µg

    Day 1 BreakfastPoha upma with peas & carrot, Peanut chutney became Wheat rava upma with peas & beans, Coconut chutney + a glass of milk and papaya

    MeasuredCarbohydrate 285 → 255 g; glycaemic control on

  2. Hypertension

    28 of 28 meals changed

    TargetsSodium 2,000 → 1,350 mg · Potassium 3,500 → 4,550 mg · Magnesium 370 → 481 mg

    Day 1 BreakfastPoha upma with peas & carrot, Peanut chutney became Poha upma with beans & carrot, Peanut chutney + a glass of milk and a guava

    MeasuredSodium 1,632 → 1,174 mg

  3. Anaemia

    26 of 28 meals changed

    TargetsVitamin C 65 → 130 mg · Folate 220 → 330 µg · Vitamin B₁₂ 2.2 → 3.3 µg

    Day 1 BreakfastPoha upma with peas & carrot, Peanut chutney became Poha upma with beans & carrot, Peanut chutney + an orange

    MeasuredIron target 29.0 → 40.5 mg; served 22.0 → 25.9 mg a day

  4. Kidney disease

    27 of 28 meals changed

    TargetsPotassium 3,500 → 1,800 mg · Protein 51.9 → 31.1 g · Sodium 2,000 → 1,350 mg

    Day 1 BreakfastPoha upma with peas & carrot, Peanut chutney became Dosa with Karam podi with oil

    MeasuredProtein target 51.9 → 31.1 g

  5. Pregnancy, 2nd trimester

    24 of 28 meals changed

    TargetsEnergy 1,998 → 2,348 kcal · Folate 220 → 570 µg · Iodine 140 → 220 µg

    Day 1 LunchRice with Mixed vegetable pulusu, Beans coconut curry, Curd & Sesame podi became Rice with Bhindi pulusu, Cluster beans coconut curry & Curd

    MeasuredEnergy 1,998 → 2,348, protein 51.9 → 61.4 g

  6. Metformin

    26 of 28 meals changed

    TargetsVitamin B₁₂ 2.2 → 3.3 µg

    Day 1 BreakfastPoha upma with peas & carrot, Peanut chutney became Poha upma with beans & carrot, Peanut chutney + a glass of milk

    MeasuredVitamin B₁₂ target 2.2 → 3.3 µg

  7. Warfarin

    21 of 28 meals changed

    Day 2 BreakfastWheat dosa with Tomato pachadi became Wheat dosa with Onion chutney

    MeasuredVitamin K kept steady day to day

  8. A medicine with no food rule

    No meal changed

    MeasuredListed in the plan as a medicine without a food rule

  9. Peanut allergy

    27 of 28 meals changed

    Day 1 BreakfastPoha upma with peas & carrot, Peanut chutney became Wheat rava upma with peas & beans, Coconut chutney

    MeasuredGroundnut 209 → 0 g

  10. Blood pressure: 150/95

    28 of 28 meals changed

    TargetsSodium 2,000 → 1,350 mg · Potassium 3,500 → 4,550 mg · Magnesium 370 → 481 mg

    Day 1 BreakfastPoha upma with peas & carrot, Peanut chutney became Poha upma with beans & carrot, Peanut chutney + a glass of milk and a guava

    MeasuredSodium 1,632 → 1,174 mg

  11. Resting heart rate: 92

    No meal changed

    MeasuredRecorded only: plan unchanged

  12. Waist: 96 cm

    24 of 28 meals changed

    TargetsFibre 30 → 36 g

    Day 1 BreakfastPoha upma with peas & carrot, Peanut chutney became Poha upma with peas & carrot, Peanut chutney + papaya

    MeasuredCentral obesity protocol on

  13. Body fat: 38%

    17 of 28 meals changed

    TargetsEnergy 1,998 → 1,860 kcal · Carbohydrate 323 → 297 g · Fat 56 → 52 g

    Day 3 LunchRice with Bhindi pulusu, Ridge gourd tomato curry, Curd & Mint pachadi became Rice with Bhindi pulusu, Cabbage coconut curry & Curd

    MeasuredEnergy 1,998 → 1,860 kcal (lean mass)

  14. HbA1c: 7.5%

    28 of 28 meals changed

    TargetsSoluble fibre 0 → 10 g · Fibre 30 → 45 g · Vitamin B₁₂ 2.2 → 3.3 µg

    Day 1 BreakfastPoha upma with peas & carrot, Peanut chutney became Wheat rava upma with peas & beans, Coconut chutney + a glass of milk and papaya

    MeasuredType 2 diabetes protocol on

  15. LDL: 170 mg/dL

    26 of 28 meals changed

    TargetsSoluble fibre 0 → 10 g · Saturated fat 22.2 → 15.5 g · Fibre 30 → 39 g

    Day 1 BreakfastPoha upma with peas & carrot, Peanut chutney became Upma with beans & carrot, Ginger chutney + papaya

    MeasuredDyslipidaemia protocol on; saturated fat 14.2 → 13.4 g

  16. Ferritin: 8 ng/mL

    26 of 28 meals changed

    TargetsVitamin C 65 → 130 mg · Folate 220 → 330 µg · Vitamin B₁₂ 2.2 → 3.3 µg

    Day 1 BreakfastPoha upma with peas & carrot, Peanut chutney became Poha upma with beans & carrot, Peanut chutney + an orange

    MeasuredIron target 29.0 → 40.5 mg

  17. Free T3 and WBC (recorded only)

    No meal changed

    MeasuredRecorded only: plan unchanged

  18. Family history: diabetes

    26 of 28 meals changed

    Day 1 BreakfastPoha upma with peas & carrot, Peanut chutney became Wheat rava upma with peas & carrot, Peanut chutney

    MeasuredGlycaemic load per meal limited

  19. Family history: cancer

    No meal changed

    MeasuredRecorded only: plan unchanged

  20. Sleeve gastrectomy

    28 of 28 meals changed

    TargetsVitamin B₁₂ 2.2 → 4.4 µg · Vitamin D 15 → 22.5 µg · Iron 29 → 40.5 mg

    Day 1 BreakfastPoha upma with peas & carrot, Peanut chutney became Wheat rava upma with peas & beans, Peanut chutney + a glass of milk

    MeasuredVitamin B₁₂ target 2.2 → 4.4 µg

  21. Notes: dislikes brinjal, constipation

    28 of 28 meals changed

    TargetsFibre 30 → 39 g

    Day 1 BreakfastPoha upma with peas & carrot, Peanut chutney became Wheat rava upma with peas & carrot, Peanut chutney + a guava

    MeasuredBrinjal 225 → 0 g; fibre target 30.0 → 39.0 g, served 64 g

  22. Breastfeeding

    27 of 28 meals changed

    TargetsEnergy 1,998 → 2,598 kcal · Iodine 140 → 280 µg · Vitamin C 65 → 115 mg

    Day 1 BreakfastPoha upma with peas & carrot, Peanut chutney became Upma with peas & carrot, Ginger chutney

    MeasuredFolate served 396 → 433 µg a day

  23. Pregnancy, 3rd trimester

    24 of 28 meals changed

    TargetsEnergy 1,998 → 2,348 kcal · Folate 220 → 570 µg · Iodine 140 → 220 µg

    Day 1 LunchRice with Mixed vegetable pulusu, Beans coconut curry, Curd & Sesame podi became Rice with Bhindi pulusu, Cluster beans coconut curry & Curd

    MeasuredFolate served 396 → 509 µg, protein 63.6 → 87.1 g a day

  24. PCOS

    28 of 28 meals changed

    TargetsVitamin D 15 → 22.5 µg · Carbohydrate 323 → 210 g · Zinc 13.2 → 17.2 mg

    Day 1 BreakfastPoha upma with peas & carrot, Peanut chutney became Wheat rava upma with beans & carrot, Peanut chutney + a glass of milk and an orange

    MeasuredGlycaemic control on; added sugar and refined flour taken out (40 → 0 g in the week)

  25. Hypothyroidism

    27 of 28 meals changed

    TargetsEnergy 1,998 → 1,748 kcal · Vitamin D 15 → 22.5 µg · Zinc 13.2 → 17.2 mg

    Day 1 BreakfastPoha upma with peas & carrot, Peanut chutney became Upma with peas & carrot, Coconut chutney + a glass of milk

    MeasuredZinc served 11.5 → 10.8 mg a day

  26. Fatty liver

    27 of 28 meals changed

    TargetsEnergy 1,998 → 1,498 kcal · Vitamin E 7.5 → 11.2 mg · Carbohydrate 323 → 169 g

    Day 1 LunchRice with Mixed vegetable pulusu, Beans coconut curry, Curd & Sesame podi became Rice with Gongura pappu, Cluster beans peanut curry & Curd

    MeasuredSaturated fat served 14.2 → 11.6 g a day; sugar and alcohol out

  27. Gout

    28 of 28 meals changed

    TargetsVitamin C 65 → 130 mg

    Day 1 BreakfastPoha upma with peas & carrot, Peanut chutney became Upma with peas & carrot, Peanut chutney + an orange

    MeasuredHigh-purine foods out; vitamin C served 226 → 347 mg a day

  28. High cholesterol

    26 of 28 meals changed

    TargetsSoluble fibre 0 → 10 g · Saturated fat 22.2 → 15.5 g · Fibre 30 → 39 g

    Day 1 BreakfastPoha upma with peas & carrot, Peanut chutney became Upma with beans & carrot, Ginger chutney + papaya

    MeasuredSaturated fat served 14.2 → 13.4 g a day; cholesterol capped at 200 mg

  29. Osteoporosis

    27 of 28 meals changed

    TargetsVitamin D 15 → 22.5 µg · Protein 51.9 → 62.3 g · Magnesium 370 → 444 mg

    Day 1 BreakfastPoha upma with peas & carrot, Peanut chutney became Upma with peas & beans, Ginger chutney + a glass of milk

    MeasuredCalcium served 927 → 1,317 mg a day

  30. Levothyroxine

    28 of 28 meals changed

    TargetsVitamin D 15 → 22.5 µg · Zinc 13.2 → 17.2 mg · Vitamin B₁₂ 2.2 → 2.9 µg

    Day 1 BreakfastPoha upma with peas & carrot, Peanut chutney became Masala dosa with Tomato pachadi + a glass of milk

    MeasuredRead as hypothyroidism: the same targets as the condition

  31. TSH: 8 mIU/L

    28 of 28 meals changed

    TargetsVitamin D 15 → 22.5 µg · Zinc 13.2 → 17.2 mg · Vitamin B₁₂ 2.2 → 2.9 µg

    Day 1 BreakfastPoha upma with peas & carrot, Peanut chutney became Masala dosa with Tomato pachadi + a glass of milk

    MeasuredRead as hypothyroidism from the lab value

  32. eGFR: 45

    27 of 28 meals changed

    TargetsPotassium 3,500 → 1,800 mg · Protein 51.9 → 31.1 g · Sodium 2,000 → 1,350 mg

    Day 1 BreakfastPoha upma with peas & carrot, Peanut chutney became Dosa with Karam podi with oil

    MeasuredKidney protocol from the lab value: potassium served 3,983 → 2,271 mg, phosphorus capped at 800 mg

    Not passedDays within ±5% of the energy target: 0 of 7

  33. Uric acid: 9 mg/dL

    28 of 28 meals changed

    TargetsVitamin C 65 → 130 mg

    Day 1 BreakfastPoha upma with peas & carrot, Peanut chutney became Upma with peas & carrot, Peanut chutney + an orange

    MeasuredRead as gout from the lab value: high-purine foods out

  34. Vitamin B₁₂: 150 pg/mL

    24 of 28 meals changed

    TargetsVitamin B₁₂ 2.2 → 4.4 µg

    Day 1 BreakfastPoha upma with peas & carrot, Peanut chutney became Poha upma with beans & carrot, Peanut chutney + a glass of milk

    MeasuredVitamin B₁₂ served 0.7 → 1.6 µg a day

  35. Vitamin D: 12 ng/mL

    24 of 28 meals changed

    TargetsVitamin D 15 → 30 µg

    Day 1 LunchRice with Mixed vegetable pulusu, Beans coconut curry, Curd & Sesame podi became Rice with Bitter gourd pulusu, Beans coconut curry, Curd & Yellow cucumber pachadi

    MeasuredVitamin D served 0.2 µg a day either way: food cannot reach the target, and the plan names the gap

  36. Serum potassium: 5.6

    28 of 28 meals changed

    TargetsPotassium 3,500 → 1,800 mg

    Day 1 BreakfastPoha upma with peas & carrot, Peanut chutney became Dosa with Karam podi with oil

    MeasuredPotassium served 3,983 → 2,176 mg a day, under the 2,000 mg cap

    Not passedDays within ±5% of the energy target: 0 of 7 · Days with at least 95% of the protein target: 5 of 7

  37. Dairy allergy

    28 of 28 meals changed

    Day 1 LunchRice with Mixed vegetable pulusu, Beans coconut curry, Curd & Sesame podi became Rice with Brinjal sambar, Amaranth leaves fry & Mint pachadi

    MeasuredDairy 1,430 → 0 g in the week

  38. Gluten allergy

    27 of 28 meals changed

    Day 1 DinnerRoti with Gongura pappu became Poha upma with beans & carrot, Peanut chutney

    MeasuredWheat 759 → 0 g in the week

Every rule kept, or named

Must, avoid and never, on every diet.

92 plans: 6 diets, each with 16 sets of rules and choices. Each plan is checked for foods the diet rules out, excluded and allergy foods, and every rule it was given.3

Diet or allergy breaches
0
Never rules kept
45 of 48
Must rules kept
43 of 54
Avoid rules kept out of every meal
33 of 60

The misses

  • 3 never rules were not kept. Jain and Satvik weeks served pachadi, chutney or podi, and curd, raita or buttermilk at dinner on days where the rules could not all be kept with the energy and protein targets. The plan says so, day by day. A never rule should hold or stop the plan, so this is a fault, and it is open.
  • 10 must rules were not possible and 7 avoid rules likewise: for example salad (no Andhra dish carries one), curd at every lunch for a vegan, or a breakfast without a tiffin. Each is reported as “Not possible” with the reason.
  • 20 avoid rules let the food in on some meals, where the day’s energy or protein could not be met without it. An avoid rule is a strong preference, not a ban, and the plan names each meal.
  • Energy stayed within 9.7% of the target on every day, and protein at 99% of the target or more.

Every target, every day

33 clients, from everyday to gym.

Nine everyday clients on seven diets, and four gym clients (a bulk, two cuts and a recomp at 1.6 to 2.0 g/kg of protein) as vegetarian, egg and non-veg, whey off.4

Most from food: days at every target

139/147

Across 21 weeks; 38 to 40 targets a day.

Gym, Most from food: days at 95% of the protein or more

84/84

No whey in any plan of the test.

Gym, usual plan: days at 95% of the protein or more

84/84

The lowest day reached 95%.

  • The usual plan is a home week that names its gaps: the 12 gym weeks met 25 to 32 of their 39 to 40 targets on the week’s average, and energy ran from -11.4% to +16% of the target on single days.
  • Results move a little from run to run, because each plan’s solve has a time limit. Two earlier runs on 28 October, on the engine as it was that morning and at midday, met every target on 147 and 140 of 147 days.

Every meal against what Andhra homes eat

1,166 plans, read meal by meal.

Every diet, cuisine setting and nutrient mode in full; every other input on its own; every pair of fourteen inputs; and random clients aged 18 to 80 of any size, diet, goal and condition. Each meal is checked against a written rulebook of what an Andhra home serves at that meal, in what portions and with what.5

The meal canon sweep
Plans built1,145 of 1,166
Days and meals7,990 days · 33,052 meals
Plans with no odd meal78%
Never-serve findings per 100 meals0
Odd findings per 100 meals3.4
Dishes at the wrong meal0
Half pieces0
Diet or exclusion breaches0
Nutrient targets met, week average67%

When the rulebook was first applied on 24 October, the same 270 plans went from 0% to 89% with no odd meal, and the week’s targets met fell from 71% to 66%. Familiar meals cost some nutrients; the Most from food mode is how a plan gets them back. 21 plans could not be built, 17 of them Jain weeks, most for a young man gaining weight; each refusal names the setting that blocks it. For some clients there are still too few Jain dishes.

Said plainly

What we still cannot say.

Cooked weights are estimated.

Katori sizes and cooked yields come from published factors. They have not yet been weighed in a test kitchen.

No laboratory test of a plan.

Nutrient totals are computed from food composition data, not measured in cooked food.

Vitamin D needs the sun.

Food alone does not reach the target. Plans name mushrooms sunned at home, or the sun itself.

Riboflavin may read low.

Indian food values for riboflavin are about half of USDA’s for the same foods, so riboflavin often shows short. Whether to revise those values is for a nutrition scientist to decide.

No food costs yet.

There are no retail prices behind the plans, so we make no claim about what a week costs to cook.

The rulebook is ours.

What Andhra homes serve at each meal is written from cited references. It has not yet been checked by a cook.

Check a plan yourself.

Every plan shows how it was made: the energy formula, the checks and the targets it met or missed.