Skip to content
FreshRoute

FreshRoute

Smarter routing. Less waste. More profit.

Created on 14th October 2026

•

FreshRoute

FreshRoute

Smarter routing. Less waste. More profit.

The problem FreshRoute solves

The Problem :

In India, post-harvest losses in fruits and vegetables are a massive economic burden. The root cause is often not just poor storage, but poor decision-making at the distribution level. Produce distributors struggle to manually coordinate multiple variables at once: estimated shelf life, destination demand, transport time, market prices, and vehicle capacity.

##This manual coordination inevitably leads to :

  • Spoilage: Produce expiring before it reaches the market.
  • Unsold Inventory: Shipments arriving at destinations with no demand.
  • Lost Revenue: Avoidable logistics costs and missed sales opportunities.

How FreshRoute Solves It -

FreshRoute is an Intelligent Decision Support System that replaces manual guesswork with a transparent, algorithmic dispatch plan.

##Who uses it?
Produce distributors, wholesalers, food logistics companies, and cold-storage operators.

##Features:

  1. Intelligent Routing: Automatically matches inventory batches with the best destination based on demand, transport cost, and capacity constraints. It prioritizes dispatching the most perishable items first.
  2. Automated Discounting: Identifies batches at risk of spoiling and recommends optimal discount rates to clear inventory before it becomes waste.
  3. Explainable Decisions: Unlike "black-box" AI, every recommendation comes with a clear, auditable reason (e.g., Discount applied: 2-day shelf life remaining, 3-day transport time to destination).
  4. Baseline Comparison : Allows users to instantly compare the "Optimized Plan" against their current "Baseline Plan," showing exactly how much spoilage was reduced and how much net revenue was gained.

By turning complex supply-chain variables into a simple, explainable dispatch plan, FreshRoute reduces food waste and directly improves the distributor's bottom line.

Challenges I ran into

The Biggest Hurdle: The "Impossible Allocation" Bug

##The Problem :
When I first built the core optimization algorithm, I used a simple greedy approach that just matched inventory to the highest-demand destination. However, during testing, I ran into a critical logic bug: the algorithm was assigning batches of produce to destinations where the transport time exceeded the remaining shelf life.

For example, it would send a batch of tomatoes with 2 days of shelf life on a 3-day journey. The result? The system was mathematically "optimizing" revenue, but in reality, it was guaranteeing 100% spoilage upon arrival. The UI would then crash because it couldn't calculate a valid market price for fully spoiled goods.

##How I Fixed It :
I had to step back and implement a strict Feasibility Filter before the main optimization runs.

  1. I added a hard constraint : Transport Time + 1 day < Remaining Shelf Life
  2. If a batch could not reach any destination without spoiling, the algorithm was forced to stop trying to ship it and instead route it to a local discount recommendation (e.g., "Sell locally at 40% off immediately").
  3. I also added a demand check to ensure we never assign more produce to a destination than it can actually buy.

##The Result :
This bug was actually a blessing in disguise. Fixing it transformed the project from a basic calculator into a true "Intelligent Decision Support System." It directly improved our score on the "Allocation Feasibility" (15 pts) and "Explainability" (10 pts) rubric criteria, because now every dispatch plan comes with a clear reason routed to nearest city because remaining shelf life (2 days) only permits a 1.5-day transit.

Discussion

Builders also viewed

See more projects on Devfolio