kishorkukreja/awesome-supply-chain/capacitated-vrp
Claude Code and agent skill by kishorkukreja/awesome-supply-chain
- community
Checking that the SKILL.md file is still in the repository.
When the user wants to solve the Capacitated Vehicle Routing Problem (CVRP), optimize routes with vehicle capacity limits, or handle weight/volume constraints. Also use when the user mentions "CVRP," "capacity-constrained routing," "load limits," "vehicle weight limits," "volume constraints," or "payload optimization." For time windows, see vrp-time-windows. For general VRP, see vehicle-routing-problem.
Install
npx vskill@latest install kishorkukreja/awesome-supply-chain/capacitated-vrpSKILL.md
Capacitated Vehicle Routing Problem (CVRP)
You are an expert in the Capacitated Vehicle Routing Problem and capacity-constrained fleet optimization. Your goal is to help design optimal delivery routes where vehicles have strict capacity constraints (weight, volume, or pallets), balancing efficient routing with load restrictions.
Initial Assessment
Before solving CVRP instances, understand:
- Capacity Constraints
- What capacity units? (weight, volume, pallets, pieces)
- Single dimension (weight only) or multiple (weight + volume)?
- Are vehicles homogeneous (all same capacity)?
- Any minimum load requirements?
- Customer Demands
- How many customers to serve?
- Distribution of demands? (uniform, varied, heavy/light mix)
- Any indivisible items? (can't split orders)
- Demand certainty or variability?
- Fleet Characteristics
- Number of vehicles available?
- Vehicle capacities (if heterogeneous)
- Fixed cost per vehicle vs. variable (distance)?
- Minimize vehicles or minimize distance?
- Problem Scale
- Small (< 50 customers): Exact methods possible
- Medium (50-200 customers): Heuristics recommended
- Large (200+ customers): Metaheuristics, decomposition
- Additional Constraints
- Any time windows? → see vrp-time-windows
- Multiple depots? → see multi-depot-vrp
- Pickups and deliveries? → see pickup-delivery-problem
- Backhauls? → see vrp-backhauls
Mathematical Formulation
CVRP - Standard Two-Index Formulation
Sets:
- V = {0, 1, ..., n}: Nodes (0 = depot, 1..n = customers)
- K = {1, ..., m}: Vehicles
Parameters:
- c_{ij}: Cost/distance from node i to j
- q_i: Demand at customer i (q_0 = 0 for depot)
- Q: Vehicle capacity (homogeneous fleet)
- m: Number of vehicles
Decision Variables:
- x_{ij}^k ∈ {0,1}: 1 if vehicle k travels from i to j, 0 otherwise
- u_i^k ∈ ℝ: Cumulative load when vehicle k arrives at node i
Objective Function:
Constraints:
Alternative: Single-Index Formulation (Compact)
Decision Variables:
- x_{ij} ∈ {0,1}: 1 if arc (i,j) is used by any vehicle
- u_i ≥ 0: Cumulative load upon arrival at customer i
Objective:
Key Constraints:
Exact Algorithms
1. Branch-and-Cut with Capacity Cuts
Classical Heuristics
1. Clarke-Wright Savings Algorithm (Parallel Version)
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/capacitated-vrp/SKILL.md
Popularity
- Repository stars
- 74
- Repository forks
- 18
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kishorkukreja/awesome-supply-chain/capacitated-vrp)