INITIALIZING SYSTEM
BACK TO WORK

007 / SELECTED WORK

AgriFleet

A route-optimization system for farm fleet logistics comparing exact and heuristic approaches — Held-Karp, Nearest Neighbor, and a Genetic Algorithm with weighted farm selection.

Category
Algorithms / Optimization
Stack
Held-Karp, Nearest Neighbor, Genetic Algorithm, Python
Repository
Backend →  Frontend →

Problem

Routing a fleet between weighted farm locations is a variant of the Travelling Salesman Problem — exact solutions are only feasible at small scale.

Objective

Compare exact and heuristic TSP approaches on realistic fleet sizes and measure the accuracy/performance trade-off.

Architecture

Held-Karp gives an exact baseline for small fleets; the Genetic Algorithm scales to larger ones where exact solving becomes infeasible.

Technology

Held-KarpNearest NeighborGenetic AlgorithmPython

Implementation

Held-Karp provides an exact dynamic-programming solution for small instances. Nearest Neighbor gives a fast greedy baseline. A Genetic Algorithm — tournament selection, ordered crossover, mutation, and elitism — searches for near-optimal routes on larger fleets where Held-Karp becomes computationally infeasible.

Challenges

Tuning the Genetic Algorithm's fitness function to properly weight both distance and farm priority, and choosing mutation/crossover rates that avoid premature convergence.

Result

A working comparison across three algorithms, showing where exact solving stops being practical and heuristic search takes over.

What I Learned

Hands-on trade-offs between exact and heuristic optimization — the Genetic Algorithm's elitism setting mattered more to solution quality than expected.