Linear Programming Solver

Meals that are
mathematically correct.

NutriPlan generates daily meal plans using constraint optimization, not guesswork. Hard limits on fructose and omega-3:6 ratios. Soft targets for macros. Every plan is feasible, balanced, and cookable.

O3
Omega-3:6 ratio locked to 1:2 – 1:3
Fr
Fructose hard-capped at 25g/day
LP
Two-stage constraint solver
How it works

Two-stage optimization engine

Stage A runs a linear programming solver to scale ingredient portions within realistic bounds. If the LP is infeasible, Stage B activates greedy swaps and targeted injections.

Stage A — LP Solver

Portion Optimization

Scales 340 USDA ingredients within category-specific bounds (proteins 50-300g, vegetables 30-250g, oils 5-15g) to simultaneously satisfy fructose, omega, and macro constraints.

Stage B — Greedy Fallback

Intelligent Swaps

When the LP is infeasible, targeted ingredient injections kick in. Omega-3 deficit? Salmon gets added. Fat budget blown? High-fat items get penalized up to -50 points.

Validation

Hard Constraint Enforcement

Plans that violate fructose limits or omega ratios are rejected and retried up to 3 times. Violating plans are never shown. Period.

Output

Cookable Meals

Auto-generated step-by-step cooking instructions with pan consolidation, prep intelligence, and realistic gram weights. Not just numbers on a screen.

Built Different

What the others skip

Every feature exists because a generic meal planner would get it wrong.

Fructose

Hard daily and per-meal caps

Standard: 25g/day, 8.3g/meal. Chronic health status: 15g/day, 5g/meal. Fruit scoring only grants bonuses when there's a significant macro gap, preventing unnecessary fructose loading.

Omega Ratio

Enforced 1:2 to 1:3 omega-3:6 balance

Proactive omega-3 booster injection into main meals before the solver runs. Vegan plans get capped booster dosage to prevent overshooting 0.5 maximum. Auto-pass when omega-6 total is under 1g.

Glycemic

Per-meal glycemic load management

For chronic health status, per-meal GL is capped. High-GI ingredients are penalized, low-GI get bonuses. If a meal exceeds GL 10, the highest-GI contributor's portion is automatically reduced.

Coherence

Meals that make sense on a plate

Berries and oats for breakfast, vegetables for lunch and dinner. No olives in your morning bowl. Snack appropriateness scoring. 50g minimum vegetable floor on lunch and dinner.

Compatibility

9 diet types. Freely combinable.

Keto + Dairy-Free? Vegan + FODMAP-Friendly + Gluten-Free? The solver handles multi-constraint combinations that would take a human nutritionist hours.

Keto
Paleo
Vegan
Vegetarian
Pescatarian
Carnivore
Gluten-Free
Dairy-Free
FODMAP-Friendly
340

Curated USDA Foundation Foods

Every ingredient mapped to exact FDC IDs from the USDA Foundation Foods database. Real nutritional data per 100g, not crowd-sourced estimates. Fructose, omega-3, omega-6, glycemic index, and 20+ micronutrients per item.

Stop counting.
Start solving.

NutriPlan is what happens when a chiropractor who's spent decades counseling patients on nutrition decides the existing tools aren't good enough. Mathematical optimization applied to what you eat, with constraints that actually protect your health.