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.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
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 —
- Ask for any missing constraints or data.
- Based on the provided context, design a route planning algorithm that can handle multiple vehicles, time windows, and capacity constraints.
- Describe the algorithm step-by-step (e.g., using a vehicle routing problem heuristic like savings algorithm or genetic algorithm).
- Provide pseudocode or a high-level implementation plan.
- 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?