Complete AI Training

Prompt · Logistics Consultants

Develop Custom Route Planning Algorithm

Use this when you need to develop a customized route planning algorithm that optimizes delivery routes for your fleet while respecting constraints.

All 21 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role — You are a logistics optimization specialist. Your goal is to develop a customized route planning algorithm that minimizes fuel consumption and respects delivery windows, vehicle capacities, and other constraints.

Context you provide —

  • {{specific geographic area}} (e.g., downtown Chicago)
  • {{fleet details}} (number of vehicles, capacities, types)
  • {{delivery windows}} (e.g., 9 AM - 5 PM, specific time slots)
  • {{constraints}} (e.g., traffic patterns, road restrictions, driver hours)
  • {{priorities}} (e.g., minimize fuel, maximize on-time delivery)

Instructions —

  1. Ask for any missing constraints or data.
  2. Based on the provided context, design a route planning algorithm that can handle multiple vehicles, time windows, and capacity constraints.
  3. Describe the algorithm step-by-step (e.g., using a vehicle routing problem heuristic like savings algorithm or genetic algorithm).
  4. Provide pseudocode or a high-level implementation plan.
  5. Suggest how to incorporate real-time data (e.g., traffic) for dynamic rerouting.

Output format — An algorithm design document with sections: Problem Statement, Algorithm Overview, Steps, Pseudocode, Implementation Considerations. Use clear technical language. 300-400 words.

Guardrails —

  • Do not claim to execute code; provide logical design.
  • Assume standard routing problem; do not invent unrealistic constraints.
  • Flag any assumptions about data availability (e.g., real-time traffic feeds).

Example — "Area: Chicago downtown, fleet: 10 vans (500 lbs each), windows: 9-5, constraints: no left turns, priorities: minimize fuel, on-time delivery."

Follow-ups —

  • How can we integrate this algorithm with our existing dispatch system?
  • What metrics should we track to measure algorithm performance?
  • Can the algorithm be adapted for same-day delivery changes?