cuopt-qp-api-python

Installation
SKILL.md

cuOpt QP — Python API (beta)

Confirm the objective has squared or cross terms (QP); if purely linear, use LP/MILP. QP must be minimization.

This skill is Python only. QP is beta.

CRITICAL: MINIMIZE only

# ❌ WRONG
problem.setObjective(x*x + y*y, sense=MAXIMIZE)

# ✅ CORRECT — negate for maximization
problem.setObjective(-(x*x + y*y), sense=MINIMIZE)

Portfolio Example

Installs
1
Repository
nvidia/cuopt
GitHub Stars
935
First Seen
Apr 21, 2026
cuopt-qp-api-python — nvidia/cuopt