Delivery-route-optimizer

MedLink IQ:Biological & Pharmaceutical Logistics Optimizer

🏥 Project Overview

MedLink IQ is a specialized logistics management system designed for the high-stakes environment of medical and pharmaceutical deliveries in Dubai. Unlike standard delivery routers, this system prioritizes life-saving assets (like organs and blood) over standard inventory (like pharmacy restocks) using a custom Priority-Weighted Greedy Algorithm.

The application provides a real-time command center interface where dispatchers can manage multiple medical destinations, assign priority levels to various medical assets, and optimize the delivery route based on urgency and live traffic density.


🚀 Key Features


🧠 Algorithmic Logic (The DSA Part)

The core of this project is a Weighted Greedy Heuristic.

The Formula:

Standard greedy algorithms choose the next stop based strictly on the shortest physical distance ($d$). Our algorithm uses a Bias Factor ($B$): \(Cost = d \times (Priority / 3)\)

This ensures that a hospital waiting for an organ transplant is prioritized, even if a pharmacy requiring a standard medicine restock is physically closer.


🛠️ Tech Stack


📈 Operational Stats

The system calculates three key metrics in real-time:

  1. Total Distance: Actual kilometers covered in the Hamiltonian cycle.
  2. Est. Transit Time: Calculated based on a 45km/h average city speed, adjusted by the traffic multiplier.
  3. Priority Operational Cost: A premium medical-grade pricing model (Base 20 AED + 8.5 AED/km).

👷 Setup Instructions

  1. Clone the repository. https://github.com/aparna-exe/Delivery-route-optimizer
  2. Install requirements: pip install -r requirements.txt
  3. Run the application: python app.py
  4. Access the command center at http://127.0.0.1:5000