Quickstart Guide#

NVIDIA cuOpt provides C API for LP and MILP. This section will show you how to install cuOpt C API and how to use it to solve LP and MILP problems.

Installation#

pip#

For CUDA 12.x:

This wheel is a Python wrapper around the C++ library and eases installation and access to libcuopt. This also helps in the pip environment to load libraries dynamically while using the Python SDK.

# This is a deprecated module and no longer used, but it shares the same name for the CLI, so we need to uninstall it first if it exists.
pip uninstall cuopt-thin-client
pip install --extra-index-url=https://pypi.nvidia.com libcuopt-cu12==25.5.* nvidia-cuda-runtime-cu12==12.8.*

Conda#

NVIDIA cuOpt can be installed with Conda (via miniforge) from the nvidia channel:

For CUDA 12.x:

# This is a deprecated module and no longer used, but it shares the same name for the CLI, so we need to uninstall it first if it exists.
conda remove cuopt-thin-client
conda install -c rapidsai -c conda-forge -c nvidia \
    libcuopt=25.05.* python=3.12 cuda-version=12.8

Please visit examples under each section to learn how to use the cuOpt C API.