Vehicle routing (VRP, TSP, PDP) with cuOpt — Python API only. Use when the user is building or solving routing in Python.
Automate repetitive workflows and reduce manual effort
Example: Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example: Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example: Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
Time estimate: 15-45 minutes depending on use case complexity
Prerequisites
Submit your Claude Code skill and start earning
epx add nvidia/skills/cuopt-routing-api-pythonCompatible with
Supported agents
| name | cuopt-routing-api-python |
| version | "26.08.00" |
| description | Vehicle routing (VRP, TSP, PDP) with cuOpt — Python API only. Use when the user is building or solving routing in Python. |
| license | Apache-2.0 |
| metadata | author: NVIDIA cuOpt Team tags: - cuopt - routing - vrp - tsp - python |
Confirm problem type (TSP, VRP, PDP) and data (locations, orders, fleet, constraints) before coding.
This skill is Python only. Routing has no C API in cuOpt.
import cudf
from cuopt import routing
cost_matrix = cudf.DataFrame([...], dtype="float32")
dm = routing.DataModel(n_locations=4, n_fleet=2, n_orders=3)
dm.add_cost_matrix(cost_matrix)
dm.set_order_locations(cudf.Series([1, 2, 3], dtype="int32"))
solution = routing.Solve(dm, routing.SolverSettings())
if solution.get_status() == 0:
solution.display_routes()
# Time windows
dm.add_transit_time_matrix(transit_time_matrix)
dm.set_order_time_windows(earliest_series, latest_series)
# Capacities
dm.add_capacity_dimension("weight", demand_series, capacity_series)
dm.set_order_service_times(service_times)
dm.set_vehicle_locations(start_locations, end_locations)
dm.set_vehicle_time_windows(earliest_start, latest_return)
# Pickup-delivery pairs
dm.set_pickup_delivery_pairs(pickup_indices, delivery_indices)
# Precedence
dm.add_order_precedence(node_id=2, preceding_nodes=np.array([0, 1]))
status = solution.get_status() # 0=SUCCESS, 1=FAIL, 2=TIMEOUT, 3=EMPTY
if status == 0:
route_df = solution.get_route()
total_cost = solution.get_total_objective()
else:
print(solution.get_error_message())
print(solution.get_infeasible_orders().to_list())
cost_matrix = cost_matrix.astype("float32")
order_locations = cudf.Series([...], dtype="int32")
demand = cudf.Series([...], dtype="int32")
ss = routing.SolverSettings()
ss.set_time_limit(30)
ss.set_verbose_mode(True)
ss.set_error_logging_mode(True)
| Problem | Fix |
|---|---|
| Empty solution | Widen time windows or check travel times |
| Infeasible orders | Increase fleet or capacity |
| Status != 0 with time windows | Add add_transit_time_matrix() |
| Wrong cost | Check cost_matrix is symmetric |
compute_waypoint_sequence alters route_df | It replaces the location column with waypoint ids in place — pass route_df.copy() if you still need cost-matrix indices (e.g. when iterating per truck) |
When status != 0: print(solution.get_error_message()) and print(solution.get_infeasible_orders().to_list()) to see which orders are infeasible.
Data types: Use explicit dtypes (float32, int32) for matrices and series to avoid silent errors.
assets/ — vrp_basic, pdp_basic. See assets/README.md.For contribution or build-from-source, see the developer skill.
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versioncuopt-routing-api-pythonExecute the skills CLI command in your project's root directory to begin installation:
epx add nvidia/skills/cuopt-routing-api-pythonFetches cuopt-routing-api-python from nvidia/skills and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
.cursor/skills/cuopt-routing-api-python
Restart Cursor to activate cuopt-routing-api-python. Access via /cuopt-routing-api-python in your agent's command palette.
Learn more:View source on GitHubSkills CLI docsAbout CursorWhat are agent skills?
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
earth2studio-discover
nvidia/skills · earth2studio · same repo
earth2studio-deterministic-forecast
nvidia/skills · earth2studio · same repo
nemo-rl-auto-research
nvidia/skills · nemo · same repo
vss-generate-video-calibration
nvidia/skills · vss-generation · same repo
cupynumeric-migration-readiness
nvidia/skills · cupynumeric · same repo
nemoclaw-user-deploy-remote
nvidia/skills · nemoclaw · same repo
cuopt-routing-api-python has been reliable in day-to-day use. Documentation quality is above average for community skills.
cuopt-routing-api-python reduced setup friction for our internal harness; good balance of opinion and flexibility.
cuopt-routing-api-python reduced setup friction for our internal harness; good balance of opinion and flexibility.
I recommend cuopt-routing-api-python for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
cuopt-routing-api-python fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
I recommend cuopt-routing-api-python for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
Keeps context tight: cuopt-routing-api-python is the kind of skill you can hand to a new teammate without a long onboarding doc.
Useful defaults in cuopt-routing-api-python — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
We added cuopt-routing-api-python from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
Useful defaults in cuopt-routing-api-python — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
showing 1-10 of 26