This project is part of the Final Year Project (Kaavish) at Habib University, completed by students of the Dhanani School of Science and Engineering, Spring 2025.
Rahguzar is an intelligent, web-based platform that automates the creation of Permanent Journey Plans (PJPs) for field sales teams in the FMCG sector. It uses a hybrid algorithmic pipeline combining clustering, evolutionary scheduling, and real-road route optimization to generate efficient and balanced journey plans.
Traditional PJP planning methods often result in:
- High travel costs
- Unbalanced workloads
- Manual inefficiencies
Rahguzar solves these problems by:
- Automating store clustering using MST + K-Means
- Scheduling using Evolutionary Algorithms with real constraints
- Routing using OR-Tools TSP + Dockerized OSRM
- Providing a full-featured interactive map and dashboard interface
- Three-Phase Optimization: Clustering → Scheduling → Routing
- Interactive Map Interface: Dynamic cluster editing, manual overrides
- Constraint-Aware Planning: Shift limits, visit frequency, travel time
- Dashboard KPIs: Visual performance monitoring
- Cloud-Based Architecture: Deployed on AWS EC2 + RDS
- Secure API Access: JWT authentication
- Frontend: React + Leaflet.js
- Backend: Flask + OR-Tools + Evolutionary Algorithm
- Routing Engine: Dockerized OSRM on AWS EC2
- Database: PostgreSQL on AWS RDS
- Deployment: Gunicorn + Nginx on Ubuntu Server
cd frontend
npm install
npm run buildcd backend
pip install -r requirements.txt
gunicorn app:appdocker run -t -i -p 5002:5000 osrm/osrm-backend osrm-routed /data/map.osrmUse schema.sql to initialize database tables. The data is empty in the tables so you will need to populate it.
- Frontend: React, Leaflet.js, Axios
- Backend: Flask, Python, OR-Tools, Evolutionary Algorithms
- Database: PostgreSQL
- Routing Engine: Dockerized OSRM
- Cloud Deployment: AWS EC2, AWS RDS
- Infrastructure: JWT Authentication, Nginx, Gunicorn
- Nabila Zahra
- Muhammad Youshay
- Rabia Shahab
- Iqra Azfar
Special thanks to:
- Syeda Saleha Raza – Faculty Mentor, Habib University
- Fatima Alvi – Industry Mentor, SalesFlo Pvt Ltd
- SalesFlo Pvt Ltd – Dataset and domain guidance
/images/Startscreen.png)
/images/Map.png)
/images/Configure.png)
/images/plan.png)
/images/Clustermap.png)
/images/stores.png)
/images/dashboard.png)