Find your next open-source project

Search by name, purpose, or keyword — or paste a GitHub repository URL
All skills

cuopt-routing-api-python

Build and solve vehicle routing problems in Python with cuOpt, including time windows, capacities, and pickup-delivery pairs.

When to use it

You already have a cost matrix and fleet details but need working cuOpt Python code to model VRP, TSP, or PDP constraints and read the solution status.

For example

You say

Use cuopt-routing-api-python to write a Python script for a 3-vehicle delivery VRP with a cost matrix, per-stop demands, vehicle capacities, and time windows, then print routes and total cost.

You get
  • Python VRP script
  • Route and cost output
  • Infeasible order check

How it works

  • Shows how to add capacity dimensions, service times, and vehicle start/end locations.
  • Includes status-code handling and debugging steps for infeasible or empty solutions.

Before installing

Requires the cuOpt Python package and cuDF, since routing has no C API and all examples use cudf and cuopt.routing.

This skill includes 2 scripts your assistant may run on your computer.