cuopt-numerical-optimization-api
LP, MILP, and QP (beta) with cuOpt — Python, C, and CLI.
Skill by NVIDIA cuOpt Team
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/nvidia-cuopt-numerical-optimization-api
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, data-analysis
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/cuopt-numerical-optimization-api
What's inside
- Skill name
cuopt-numerical-optimization-api- Description
- LP, MILP, and QP (beta) with cuOpt — Python, C, and CLI. Use when the user is solving LP, MILP, or QP with any cuOpt interface.
- License
- Apache-2.0
- Metadata
- author: NVIDIA cuOpt Team
- Instructions
- 88 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (52)
- BENCHMARK.md
- SKILL.md
- README.md · assets/c/
- README.md · assets/c/lp_basic/
- lp_simple.c · assets/c/lp_basic/
- README.md · assets/c/lp_duals/
- lp_duals.c · assets/c/lp_duals/
- README.md · assets/c/lp_warmstart/
- README.md · assets/c/milp_basic/
- milp_simple.c · assets/c/milp_basic/
- README.md · assets/c/milp_production_planning/
- milp_production.c · assets/c/milp_production_planning/
- README.md · assets/c/mps_solver/
- sample.mps · assets/c/mps_solver/data/
- mps_solver.c · assets/c/mps_solver/
- README.md · assets/cli/
- README.md · assets/cli/lp_production/
- production.mps · assets/cli/lp_production/
- README.md · assets/cli/lp_simple/
- sample.mps · assets/cli/lp_simple/
- README.md · assets/cli/milp_facility/
- facility.mps · assets/cli/milp_facility/
- README.md · assets/python/
- README.md · assets/python/least_squares/
- model.py · assets/python/least_squares/
- README.md · assets/python/lp_basic/
- model.py · assets/python/lp_basic/
- README.md · assets/python/lp_duals/
- model.py · assets/python/lp_duals/
- README.md · assets/python/lp_warmstart/
- model.py · assets/python/lp_warmstart/
- README.md · assets/python/maximization_workaround/
- model.py · assets/python/maximization_workaround/
- README.md · assets/python/milp_basic/
- incumbent_callback.py · assets/python/milp_basic/
- model.py · assets/python/milp_basic/
- README.md · assets/python/milp_production_planning/
- model.py · assets/python/milp_production_planning/
- README.md · assets/python/mps_solver/
- README.md · assets/python/mps_solver/data/
- sample.mps · assets/python/mps_solver/data/
- model.py · assets/python/mps_solver/
- results.md · assets/python/mps_solver/
- README.md · assets/python/portfolio/
- model.py · assets/python/portfolio/
- evals.json · evals/
- c_api.md · references/
- cli_api.md · references/
- python_api.md · references/
- qp_examples.md · references/
- skill-card.md
- skill.oms.sig
SKILL.md (first lines)
# 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: | Interface | When to use | Reference | |-----------|-------------|-----------| | **Python** | User is writing Python code | [references/python_api.md](references/python_api.md) | | **C / C++** | User is embedding in a C/C++ application | [references/c_api.md](references/c_api.md) | | **CLI** | User is solving from MPS files on the command line | [references/cli_api.md](references/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](https://docs.nvidia.com/cuopt/user-guide/latest/thirdparty_modeling_languages/index.html). ## 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 continuous | **LP** | | Linear | Some integer or binary | **MILP** | | Has squared (`x*x`) or cross (`x*y`) terms | Continuous (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 / concept | Variable type | Examples | |---------------------------|---------------|----------| | **Discrete entities (counts)** | **INTEGER** | Workers, cars, trucks, machines, pilots, facilities, units to manufacture | | **Yes/no or on/off** | **INTEGER** (binary, lb=0 ub=1) | Open a facility, run a machine, assign a person to a shift | | **Amounts that can be fractional** | **CONTINUOUS** | Tonnes, litres, dollars, hours, kWh, proportion of capacity | | **Rates or fractions** | **CONTINUOUS** | Utilization, 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) | Problem | Likely cause | Fix | |---------|-------------|-----| | Infeasible | Conflicting constraints | Check constraint logic and bounds | | Unbounded | Missing bounds | Add variable bounds | | Slow solve | Large problem | Set time limit; increase gap tolerance | | QP rejected with MAXIMIZE | QP only supports MINIMIZE | Negate the objective; negate the result | | QP returns non-optimal | Q not PSD or badly scaled | Check Q is PSD; rescale variables | ## Solver Settings (concepts) | Setting | Purpose | |---------|---------| | `time_limit` | Stop after N seconds | | `mip_relative_gap` | Stop MILP when within X% of optimal | | `mip_absolute_tolerance` | Absolute MIP gap stop | | `log_to_console` | Enable solver logging | Syntax varies by interface — see the interface reference file.
From NVIDIA/skills, Apache-2.0.
More from NVIDIA/skills
- 0.846score
nemo-fabric-integrate
NVIDIA Corporation and Affiliates
Use this skill when integrating NVIDIA NeMo Fabric into a consumer application, service, evaluation harness, or platform through the typed Python SDK —…
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.846score
jetson-video-pipeline
Vinit Bansal <vinitkumarb@nvidia.com>
Use when planning, executing, and independently validating Jetson Video Codec SDK or PyNvVideoCodec encode/decode, transcode, segmentation, container decode…
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.846score
nvflare-convert-pytorch
NVIDIA FLARE Team <federatedlearning@nvidia.com>
Convert existing plain or manual PyTorch training code into an NVFLARE federated job using Client API model exchange, local validation, and job export; use…
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.846score
nemo-relay-get-started
NVIDIA Corporation and Affiliates
Use this skill when first-time NeMo Relay users want help selecting and following an appropriate quick-start guide or verifying their first working integration.
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.846score
jetson-video-recipe
Vinit Bansal <vinitkumarb@nvidia.com>
Use when turning a Jetson encoder use case into one surface-neutral recipe with native Video Codec SDK and PyNvVideoCodec projections.
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.846score
nvidia-broadcast
NVIDIA Broadcast Team <broadcast-skills-dev@nvidia.com>
Use when controlling NVIDIA Broadcast through MCP to apply effects, process local media, select devices, or change camera resolution, or when Broadcast is…
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.846score
jetson-video-setup
Vinit Bansal <vinitkumarb@nvidia.com>
Use when installing, repairing, reusing, inspecting, or verifying readiness of the native NVIDIA Video Codec SDK or PyNvVideoCodec on Jetson, including the…
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.846score
nvflare-diagnose-job
NVIDIA FLARE Team <federatedlearning@nvidia.com>
Use when the user asks why a reported NVFLARE job failure signal occurred: the job failed, stalled, timed out, lost clients, ended with EXECUTION_EXCEPTION…
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.846score
nvflare-convert-lightning
NVIDIA FLARE Team <federatedlearning@nvidia.com>
Convert existing PyTorch Lightning training code into an NVFLARE federated job using the Lightning Client API patch, local validation, and job export; use…
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.846score
nemo-relay-install
NVIDIA Corporation and Affiliates
Use this skill when choosing or running NeMo Relay installation for an agent runtime, application language, framework integration, or plugin bundle, or…
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.846score
nvflare-fed-stats
NVIDIA FLARE Team <federatedlearning@nvidia.com>
Compute federated statistics over tabular data (count, sum, mean, stddev, var, histogram, quantile, noise-protected min/max) and image data (count…
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.846score
jetson-video-capability
Vinit Bansal <vinitkumarb@nvidia.com>
Use when Jetson codec, profile, chroma, bit-depth, dimension, engine-count, or operational support must be reconciled from live APIs, authenticated NVIDIA…
SkillAFreshness: A★ 3.7KClaude Code +9
Signals
- Stars
- 3,718
- Forks
- 457
- Open issues
- 8
- Last commit (this folder)
- Aug 7, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/NVIDIA/skills
- Website
- docs.nvidia.com/skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from NVIDIA cuOpt Team
- 0.840score
cuopt-server-api-python
NVIDIA cuOpt Team
cuOpt REST server — start server, endpoints, Python/curl client examples.
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.800score
cuopt-routing-api-python
NVIDIA cuOpt Team
Vehicle routing (VRP, TSP, PDP) with cuOpt — Python API only.
SkillBFreshness: B★ 3.7KClaude Code +9 - 0.796score
cuopt-install
NVIDIA cuOpt Team
Install cuOpt for Python, C, or server via pip, conda, or Docker; verify the install.
SkillBFreshness: B★ 3.7KClaude Code +9 - 0.791score
cuopt-numerical-optimization-formulation
NVIDIA cuOpt Team
LP, MILP, QP — concepts, problem-text parsing, and formulation patterns (parameters, constraints, decisions, objective).
SkillBFreshness: B★ 3.7KClaude Code +9 - 0.791score
cuopt-multi-objective-exploration
NVIDIA cuOpt Team
Trace, complete, and interpret the Pareto frontier across competing objectives using repeated single-objective cuOpt solves (weighted-sum and ε-constraint).
SkillBFreshness: B★ 3.7KClaude Code +9 - 0.739score
cuopt-developer
NVIDIA cuOpt Team
Modify, build, test, debug, and contribute to NVIDIA cuOpt (C++/CUDA, Python, server, CI).
SkillCFreshness: C★ 3.7KClaude Code +9
Cite this page
cuopt-numerical-optimization-api skill. Agent Mart. https://agentmart.dev/skills/nvidia-cuopt-numerical-optimization-api (last updated 2026-10-24)