Find your next open-source project

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

cuopt-server-api-python

Start the cuOpt REST server and call it from Python or curl to submit and poll optimization jobs.

When to use it

You have a routing, LP, or MILP problem and need to reach a running cuOpt server over HTTP, such as when a payload is rejected with a 422.

For example

You say

Using cuopt-server-api-python, write a Python client that submits this 3-node VRP to my local cuOpt server on port 8000 and polls until the solution is ready.

You get
  • Python client script
  • Polling loop with reqId validation
  • Payload field mapping

How it works

  • Shows the REST field names that differ from the Python API, like task_locations versus order_locations.
  • Explains the submit-then-poll flow, since solutions are not pushed back.
  • Notes that the server has no authentication or TLS, so it should sit behind a gateway.

Before installing

An NVIDIA GPU with a working CUDA driver is required; Docker deployments need the NVIDIA Container Toolkit and `--gpus all`.

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