FreshRoute
Smarter produce dispatch. Less spoilage.
The problem FreshRoute solves
Produce distributors must decide which batches to dispatch, where to send them, how much to allocate, and when to offer discounts—all before the produce expires. These decisions involve competing demand, selling prices, transport costs, travel time and limited capacity.
FreshRoute turns these inputs into a feasible, explainable distribution plan.
• Inventory management: Track batches by commodity, quantity, warehouse, remaining shelf life and handling requirements.
• Intelligent allocation: A real OR-Tools mixed-integer optimization model selects dispatch quantities and destinations while respecting inventory, demand, shelf-life, route, destination and fleet constraints.
• Discount recommendations: Evaluate market-level discounts using an explicit price-elasticity assumption.
• Transparent comparisons: Compare the optimized plan against a First-Expired-First-Out baseline using identical economic accounting.
• Disruption simulation: Recalculate plans under demand spikes, transport delays, reduced capacity and faster spoilage.
• Demand forecasting: Import historical demand CSVs, train random-forest models, compare them with a weekly baseline through chronological backtests, and explicitly apply a forecast day to planning.
• Operational visibility: Explore warehouse-to-market flows, expiry priorities, allocation explanations and exportable dispatch instructions.
In the included synthetic demonstration, estimated spoilage falls from 340 kg to 204.7 kg—a 39.79% reduction—and modeled net contribution increases by ₹2,985.09. These are computed scenario results, not claims of real-world savings.
FreshRoute helps distributors make faster, auditable decisions while clearly showing assumptions and trade-offs. The included inventory, prices and demand history are synthetic.
Challenges we ran into
The main challenge was combining perishability, shared transport capacity and discount-dependent demand without producing infeasible allocations or misleading economic results. We addressed this with an OR-Tools mixed-integer model and a shared evaluator for optimized and baseline plans.
Another challenge was evaluating forecasts without leaking future demand into training. We used chronological weekly backtests, recursive forecasting and comparison against a seasonal baseline. The baseline is selected whenever it matches or outperforms the random forest.
We also tested invalid inputs, zero-capacity scenarios, stale results and responsive layouts. The verified version passed 125 backend tests, 6 frontend data tests and 18 browser workflow checks, with successful GitHub CI.
Technologies used
