Modelliere und löse lineare, gemischt-ganzzahlige und quadratische Optimierungsprobleme mit GPU-beschleunigten Solvern via Python, C oder CLI.
- GitHub Stars
- 3.934
- Dateien
- 52
- Letzter Commit
- 11. Nov. 2026
- Lizenz
- Apache-2.0
- Erlaubte Tools
- —
Was macht der cuopt-numerical-optimization-api Skill?
cuopt-numerical-optimization-api ist ein Agent Skill. Modelliere und löse lineare, gemischt-ganzzahlige und quadratische Optimierungsprobleme mit GPU-beschleunigten Solvern via Python, C oder CLI.
Zusammenfassung erzeugt aus der SKILL.md des Skills.
Über den cuopt-numerical-optimization-api skill
Diese Skill ermöglicht es Entwicklern und Forschern, lineare, gemischt-ganzzahlige und quadratische Optimierungsprobleme mittels GPU-Beschleunigung zu lösen. Sie bietet Zugriff auf den NVIDIA cuOpt Solver über Python, C/C++ oder ein Command Line Interface. Ein Agent sollte dieses Tool laden, wenn ein User komplexe mathematische Optimierungen modellieren muss, wie etwa die Bestimmung von Ressourcenflüssen oder diskrete Ja/Nein-Entscheidungen.
Über direkte API-Aufrufe hinaus dient die Skill als Backend für etablierte Modellierungssprachen wie AMPL, GAMS, PuLP, JuMP, Pyomo und CVXPY. Das erlaubt es Usern, mit minimalen Code-Änderungen auf GPU-beschleunigtes Lösen umzustellen. Das Tool verarbeitet kontinuierliche Variablen für lineare Probleme sowie ganzzahlige Variablen für diskrete Mengen oder binäre Entscheidungen. Es unterstützt zudem in der Beta-Phase quadratische Programmierung zur Minimierung von Varianz oder quadratischen Fehlern, wobei die Zielfunktion eine Minimierung sein muss und die Matrix positiv semidefinit sein muss.
Was ein agent damit machen kann
- 1Kontinuierliche Ressourcenallokation lösenBestimme die optimale Verteilung von Bruchteilen wie Litern oder Dollar mittels linearer Programmierung.
- 2Diskrete Entitätenmengen verwaltenBerechne die Anzahl der benötigten LKWs oder Mitarbeiter für eine spezifische Aufgabe mittels Mixed-Integer Programming.
- 3Varianz in Portfolios minimierenNutze quadratische Programmierung, um den quadratischen Fehler oder die Varianz in einem Datensatz zu minimieren.
- 4In bestehende Modelle integrierenNutze cuOpt als Solver-Backend für ein Modell, das bereits in Pyomo oder CVXPY geschrieben wurde.
Geschrieben basierend auf dem SKILL.md des skills. Jeder use case wurde gegen ein zitat daraus geprüft.
So installierst du den cuopt-numerical-optimization-api Skill
Jeder Befehl kopiert den Skill-Ordner in das Skills-Verzeichnis des Clients. Starte den Client neu oder beginne eine neue Session, um ihn zu laden.Den cuopt-numerical-optimization-api Skill in Claude Code installieren
~/.claude/skills/cuopt-numerical-optimization-api/SKILL.md
$ npx degit NVIDIA/skills/skills/cuopt-numerical-optimization-api ~/.claude/skills/cuopt-numerical-optimization-apiDen cuopt-numerical-optimization-api Skill in Claude Code (project) installieren
.claude/skills/cuopt-numerical-optimization-api/SKILL.md
$ npx degit NVIDIA/skills/skills/cuopt-numerical-optimization-api .claude/skills/cuopt-numerical-optimization-apiDen cuopt-numerical-optimization-api Skill in Codex installieren
~/.agents/skills/cuopt-numerical-optimization-api/SKILL.md
$ npx degit NVIDIA/skills/skills/cuopt-numerical-optimization-api ~/.agents/skills/cuopt-numerical-optimization-apiDen cuopt-numerical-optimization-api Skill in Gemini CLI installieren
~/.gemini/skills/cuopt-numerical-optimization-api/SKILL.md
$ npx degit NVIDIA/skills/skills/cuopt-numerical-optimization-api ~/.gemini/skills/cuopt-numerical-optimization-apiDen cuopt-numerical-optimization-api Skill in Claude.ai installieren
npx degit NVIDIA/skills/skills/cuopt-numerical-optimization-api cuopt-numerical-optimization-api && zip -r cuopt-numerical-optimization-api.zip cuopt-numerical-optimization-api # claude.ai → Customize → Skills → + → Create skill → Upload a skill → cuopt-numerical-optimization-api.zip
Automatisierte Checks
Geluften am 15. Nov. 2026Vollständiger Bericht →Hat unsere automatischen Prüfungen bestanden. Das ist kein Sicherheitsaudit: Lesen Sie die Skripte, bevor ein Agent sie ausführt. Wie die Checks funktionieren · Was du für mehr Punkte verbessern kannst
- Source Repository verknüpft und erreichbarnvidia/skills/skills/cuopt-numerical-optimization-api is public and reachablegithub.com/nvidia/skills/tree/HEAD/skills/cuopt-numerical-op ↗Bestanden
- Open Source Lizenz (OSI)Apache-2.0spdx.org/licenses/Apache-2.0.html ↗Bestanden
- Commit oder Release im letzten JahrLast commit 2026-11-11github.com/nvidia/skills/commits ↗Bestanden
- Keine Download-und-Ausführen-Muster oder Zugangsdatendiebstahl in Skripten5 of 10 scripts read; none of them downloads and runs code, the rest were not readBefund
- Keine versteckten Anweisungen in SKILL.mdNo override phrases, safeguard switches, credential requests or hidden charactersgithub.com/nvidia/skills/blob/HEAD/skills/cuopt-numerical-op ↗Bestanden
- Vorab erlaubte Tools sind eingeschränktNo pre-approved tools; the agent asks before using onegithub.com/nvidia/skills/blob/HEAD/skills/cuopt-numerical-op ↗Bestanden
- SKILL.md folgt dem Agent-Skills-FormatValid name and description; says when to use it; 104 linesgithub.com/nvidia/skills/blob/HEAD/skills/cuopt-numerical-op ↗Bestanden
SKILL.md
Auf GitHub ansehencuOpt 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 |
| C / C++ | User is embedding in a C/C++ application | references/c_api.md |
| CLI | User is solving from MPS files on the command line | 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.
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*xorx*yterms (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.
Dateien in diesem Skill
52cuopt-numerical-optimization-api Skill-Fragen
Wie installiere ich den cuopt-numerical-optimization-api Skill in Claude Code?
Führe npx degit NVIDIA/skills/skills/cuopt-numerical-optimization-api ~/.claude/skills/cuopt-numerical-optimization-api aus. Claude Code lädt Skills aus ~/.claude/skills (alle Projekte) oder .claude/skills (ein Projekt) und nutzt einen Skill, wenn seine Beschreibung zur Aufgabe passt.
Welche Clients können den cuopt-numerical-optimization-api Skill nutzen?
Jeder Client, der das Agent Skills-Format liest: Claude Code, Codex, Gemini CLI und claude.ai (als ZIP hochladen). Skripte im Skill laufen nur dort, wo der Client Codeausführung erlaubt.
Kann ich cuOpt mit bestehenden Modellierungssprachen wie Pyomo oder PuLP nutzen?
Ja, cuOpt fungiert als Solver-Backend für Drittanbieter-Tools wie AMPL, GAMS, PuLP, JuMP, Pyomo und CVXPY.