tokens&
For enterprises
Submit
Sign in
tokens&

Build better AI stacks, claim useful opportunities, and give AI infrastructure companies a source-labeled adoption readout they can trust.

For buildersFor enterprises

Product

  • For builders
  • Category rankings
  • Startup credits and perks
  • Agent Skills
  • Platform
  • Submit project, tool, product, or perk

Enterprise

  • Start free company workspace

Community

  • Community
  • Newsletter
  • Events
Xin

© 2026 tokensand, LLC. All rights reserved.

  • Terms
  • Privacy
  • Security
  • Data Processing
  • Status
Agent Skills/cuOpt numerical optimization API
NVIDIAModelsSKILL.mdVerified source

Agent Skill

cuOpt numerical optimization API

Solve linear, mixed-integer, and quadratic programs with the cuOpt Python API and result diagnostics.

Install this skillView repository

Vendor-authored source · Apache-2.0 / CC-BY-4.0 license.

Raw SKILL.mdInstall the Tokens& Agent Pack

Skill specification

Declared by NVIDIA in the package front matter. Trigger conditions are what the coding agent matches on before it loads the skill.

View package fields
cuOpt numerical optimization API SKILL.md front matter fields
Skill namecuopt-numerical-optimization-api
Trigger conditionsLP, MILP, and QP (beta) with cuOpt — Python, C, and CLI. Use when the user is solving LP, MILP, or QP with any cuOpt interface.
Declared licenseApache-2.0
Version26.10.00

Install cuopt-numerical-optimization-api

In a terminal with Node.js, npm and Git, run the command for your agent. The Skills CLI installs the complete package directory, including referenced files within it. Review its install prompt, then start a new agent session. A skill package does not set up an MCP server connection.

Claude Code

.claude/skills/cuopt-numerical-optimization-api/SKILL.md

Project skills are committed with the repo. Use the user directory for a personal install across every project.

Project install

npx skills add 'https://github.com/NVIDIA/skills/tree/main/skills/cuopt-numerical-optimization-api' --skill 'cuopt-numerical-optimization-api' --agent 'claude-code'
Install for all projects instead

Personal install

npx skills add 'https://github.com/NVIDIA/skills/tree/main/skills/cuopt-numerical-optimization-api' --skill 'cuopt-numerical-optimization-api' --agent 'claude-code' --global

Codex

.agents/skills/cuopt-numerical-optimization-api/SKILL.md

Codex reads `.agents/skills/` as its primary location, which is also the cross-platform default other clients honour.

Project install

npx skills add 'https://github.com/NVIDIA/skills/tree/main/skills/cuopt-numerical-optimization-api' --skill 'cuopt-numerical-optimization-api' --agent 'codex'
Install for all projects instead

Personal install

npx skills add 'https://github.com/NVIDIA/skills/tree/main/skills/cuopt-numerical-optimization-api' --skill 'cuopt-numerical-optimization-api' --agent 'codex' --global

Cursor

.agents/skills/cuopt-numerical-optimization-api/SKILL.md

Cursor also loads `.agents/skills/`, `.claude/skills/`, and `.codex/skills/`, so one committed copy can serve several clients.

Project install

npx skills add 'https://github.com/NVIDIA/skills/tree/main/skills/cuopt-numerical-optimization-api' --skill 'cuopt-numerical-optimization-api' --agent 'cursor'
Install for all projects instead

Personal install

npx skills add 'https://github.com/NVIDIA/skills/tree/main/skills/cuopt-numerical-optimization-api' --skill 'cuopt-numerical-optimization-api' --agent 'cursor' --global

Gemini CLI

.agents/skills/cuopt-numerical-optimization-api/SKILL.md

Gemini CLI reads `.agents/skills/` first when both directories exist.

Project install

npx skills add 'https://github.com/NVIDIA/skills/tree/main/skills/cuopt-numerical-optimization-api' --skill 'cuopt-numerical-optimization-api' --agent 'gemini-cli'
Install for all projects instead

Personal install

npx skills add 'https://github.com/NVIDIA/skills/tree/main/skills/cuopt-numerical-optimization-api' --skill 'cuopt-numerical-optimization-api' --agent 'gemini-cli' --global

GitHub Copilot

.agents/skills/cuopt-numerical-optimization-api/SKILL.md

The Skills CLI uses the shared `.agents/skills/` directory for Copilot project installs.

Project install

npx skills add 'https://github.com/NVIDIA/skills/tree/main/skills/cuopt-numerical-optimization-api' --skill 'cuopt-numerical-optimization-api' --agent 'github-copilot'
Install for all projects instead

Personal install

npx skills add 'https://github.com/NVIDIA/skills/tree/main/skills/cuopt-numerical-optimization-api' --skill 'cuopt-numerical-optimization-api' --agent 'github-copilot' --global

SKILL.md

View raw source

Published by NVIDIA under Apache-2.0 / CC-BY-4.0. Rendered from the package in github.com/NVIDIA/skills/tree/main/skills/cuopt-numerical-optimization-api.

Read full skill instructions

cuOpt Numerical Optimization API

Model and solve LP, MILP, and QP problems using NVIDIA cuOpt's GPU-accelerated solver.

Interface Selection

Choose the reference for the user's interface:

InterfaceWhen to useReference
PythonUser is writing Python codereferences/python_api.md
C / C++User is embedding in a C/C++ applicationreferences/c_api.md
CLIUser is solving from MPS files on the command linereferences/cli_api.md

If the interface is not yet clear, ask before writing any code.

Already using a modeling language? cuOpt also works as a solver backend for third-party modeling tools — AMPL, GAMS / GAMSPy, PuLP, JuMP, Pyomo, and CVXPY — with near-zero code changes (point the model's solver at cuOpt). CVXPY additionally covers convex QP and, in beta, QCQP / SOCP. Prefer this when the user already has a model in one of these tools rather than porting it to the cuOpt API. See Third-Party Modeling Languages.

Choosing LP vs MILP vs QP

Decide from the objective and variables:

If the objective is...And variables are...Use
Linear (sum of c_i * x_i)All continuousLP
LinearSome integer or binaryMILP
Has squared (x*x) or cross (x*y) termsContinuous (integer QP not supported)QP (beta)

Prefer LP when the problem allows it. LP solves faster and has stronger optimality guarantees. Use MILP only when the problem logically requires whole numbers or yes/no decisions. Use QP only when the objective is genuinely quadratic (variance, squared error, kinetic energy).

  • Use LP when every quantity can meaningfully be fractional: flows, proportions, rates, dollars, hours, tonnes of material, etc.
  • Use MILP when the problem mentions counts of discrete entities, yes/no choices, or either/or decisions (e.g. open a facility or not, assign a person to a shift, number of trucks).
  • Use QP when the objective minimizes variance, squared error, or any expression with x*x or x*y terms (portfolio optimization, least squares, regularized regression).

Integer vs Continuous from Wording

Problem wording / conceptVariable typeExamples
Discrete entities (counts)INTEGERWorkers, cars, trucks, machines, pilots, facilities, units to manufacture
Yes/no or on/offINTEGER (binary, lb=0 ub=1)Open a facility, run a machine, assign a person to a shift
Amounts that can be fractionalCONTINUOUSTonnes, litres, dollars, hours, kWh, proportion of capacity
Rates or fractionsCONTINUOUSUtilization, percentage, share of budget

Rule of thumb: "How many things" → INTEGER. "How much" → CONTINUOUS.

QP Rules (all interfaces)

  • MINIMIZE only — the solver rejects MAXIMIZE for quadratic objectives. To maximize f(x), minimize -f(x) and negate the reported objective value.
  • Continuous variables only — integer QP is not supported.
  • Q should be positive semi-definite for a convex, well-posed problem.
  • Beta — API may evolve; treat as production-capable for typical convex QP.

Dual Values

Duals and reduced costs are available for LP and QP only:

  • MILP — no duals (integer optima are not continuous).
  • Quadratic constraints — duals unavailable even for LP/QP; all values return NaN.
  • PDLP warmstart — LP only; MILP solves do not accept a PDLP warmstart.

Common Issues (all interfaces)

ProblemLikely causeFix
InfeasibleConflicting constraintsCheck constraint logic and bounds
UnboundedMissing boundsAdd variable bounds
Slow solveLarge problemSet time limit; increase gap tolerance
QP rejected with MAXIMIZEQP only supports MINIMIZENegate the objective; negate the result
QP returns non-optimalQ not PSD or badly scaledCheck Q is PSD; rescale variables

Solver Settings (concepts)

SettingPurpose
time_limitStop after N seconds
mip_relative_gapStop MILP when within X% of optimal
mip_absolute_toleranceAbsolute MIP gap stop
log_to_consoleEnable solver logging

Syntax varies by interface — see the interface reference file.

More NVIDIA Agent Skills

All Agent Skills

AI-Q Blueprint deployment

Install, run, validate, troubleshoot, and stop a local or self-hosted NVIDIA AI-Q Blueprint environment.

Agents

CUDA-Q onboarding guide

Install CUDA-Q, validate simulators and hardware targets, and build reproducible quantum applications.

Models

cuOpt installation

Select and verify a compatible cuOpt Python, C, or REST server installation for an NVIDIA GPU environment.

Models

cuOpt optimization formulation

Translate business constraints and objectives into verifiable cuOpt mathematical programs before implementation.

Models

cuOpt routing API for Python

Build vehicle-routing and fleet-optimization models with constraints, objectives, and solution validation.

Models

cuPyNumeric installation

Plan an isolated cuPyNumeric installation and verify NumPy-compatible execution and GPU usage without modifying global environments.

Models