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)