Python, C 또는 CLI를 통해 GPU 가속 솔버를 사용하여 선형, 혼합 정수 및 이차 계획법 문제를 모델링하고 해결합니다.
- GitHub 스타
- 3,934
- 파일
- 52
- 마지막 커밋
- 2026년 11월 11일
- 라이선스
- Apache-2.0
- 허용된 도구
- —
cuopt-numerical-optimization-api skill은 무엇을 하나요?
cuopt-numerical-optimization-api은(는) agent skill입니다. Python, C 또는 CLI를 통해 GPU 가속 솔버를 사용하여 선형, 혼합 정수 및 이차 계획법 문제를 모델링하고 해결합니다.
skill의 SKILL.md에서 생성된 요약입니다.
cuopt-numerical-optimization-api skill 정보
이 SKILL은 개발자와 연구자가 GPU 가속을 사용하여 선형, 혼합 정수 및 이차 계획법 문제를 해결할 수 있도록 지원합니다. Python, C/C++ 또는 CLI를 통해 NVIDIA cuOpt 솔버에 접근할 수 있습니다. 에이전트는 리소스 흐름을 결정하거나 이산적인 예/아니오 결정을 내리는 것과 같이 복잡한 수학적 최적화 모델링이 필요한 경우 이 도구를 로드해야 합니다.
직접적인 API 호출 외에도 이 SKILL은 AMPL, GAMS, PuLP, JuMP, Pyomo 및 CVXPY를 포함한 기존 모델링 언어의 백엔드 역할을 합니다. 이를 통해 사용자는 최소한의 코드 변경만으로 GPU 가속 솔버로 전환할 수 있습니다. 이 도구는 선형 문제의 연속 변수와 이산적 수량 또는 이진 선택을 위한 정수 변수를 처리합니다. 또한 분산이나 제곱 오차를 최소화하기 위한 이차 계획법을 베타 버전으로 지원하지만, 목적 함수는 최소화 작업이어야 하며 행렬은 양의 준정부호(positive semi-definite)여야 합니다.
agent가 수행할 수 있는 작업
- 1연속적 리소스 할당 해결선형 계획법을 사용하여 리터나 달러와 같은 소수점 단위의 최적 배분량을 결정합니다.
- 2이산적 엔티티 수량 관리혼합 정수 계획법을 사용하여 특정 작업에 필요한 트럭이나 작업자의 수를 계산합니다.
- 3포트폴리오 분산 최소화데이터셋의 제곱 오차 또는 분산을 최소화하기 위해 이차 계획법을 수행합니다.
- 4기존 모델과 통합이미 Pyomo 또는 CVXPY로 작성된 모델의 솔버 백엔드로 cuOpt를 사용합니다.
skill의 SKILL.md를 기반으로 작성되었습니다. 모든 사용 사례는 해당 문서의 인용구와 대조 확인되었습니다.
cuopt-numerical-optimization-api skill 설치 방법
각 명령은 skill 폴더를 클라이언트의 skills 디렉터리에 복사합니다. 클라이언트를 재시작하거나 새 세션을 시작하여 로드하세요.Claude Code에 cuopt-numerical-optimization-api skill 설치
~/.claude/skills/cuopt-numerical-optimization-api/SKILL.md
$ npx degit NVIDIA/skills/skills/cuopt-numerical-optimization-api ~/.claude/skills/cuopt-numerical-optimization-apiClaude Code (project)에 cuopt-numerical-optimization-api skill 설치
.claude/skills/cuopt-numerical-optimization-api/SKILL.md
$ npx degit NVIDIA/skills/skills/cuopt-numerical-optimization-api .claude/skills/cuopt-numerical-optimization-apiCodex에 cuopt-numerical-optimization-api skill 설치
~/.agents/skills/cuopt-numerical-optimization-api/SKILL.md
$ npx degit NVIDIA/skills/skills/cuopt-numerical-optimization-api ~/.agents/skills/cuopt-numerical-optimization-apiGemini CLI에 cuopt-numerical-optimization-api skill 설치
~/.gemini/skills/cuopt-numerical-optimization-api/SKILL.md
$ npx degit NVIDIA/skills/skills/cuopt-numerical-optimization-api ~/.gemini/skills/cuopt-numerical-optimization-apiClaude.ai에 cuopt-numerical-optimization-api skill 설치
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
자동 검사
2026년 11월 15일에 실행됨전체 보고서 →자동 검사를 통과했습니다. 보안 감사는 아닙니다. 에이전트가 실행하기 전에 스크립트를 읽어 보세요. 검사 방식 · 점수를 높이기 위해 수정할 항목
- 소스 저장소 연결 및 접근 가능nvidia/skills/skills/cuopt-numerical-optimization-api is public and reachablegithub.com/nvidia/skills/tree/HEAD/skills/cuopt-numerical-op ↗통과
- 오픈 소스 라이선스 (OSI)Apache-2.0spdx.org/licenses/Apache-2.0.html ↗통과
- 최근 1년 내 커밋 또는 릴리스Last commit 2026-11-11github.com/nvidia/skills/commits ↗통과
- 스크립트에 다운로드 후 실행이나 자격 증명 탈취가 없음5 of 10 scripts read; none of them downloads and runs code, the rest were not read결함 발견
- SKILL.md에 숨겨진 지침 없음No override phrases, safeguard switches, credential requests or hidden charactersgithub.com/nvidia/skills/blob/HEAD/skills/cuopt-numerical-op ↗통과
- 사전 허용 도구가 제한됨No pre-approved tools; the agent asks before using onegithub.com/nvidia/skills/blob/HEAD/skills/cuopt-numerical-op ↗통과
- SKILL.md가 Agent Skills 형식을 따름Valid name and description; says when to use it; 104 linesgithub.com/nvidia/skills/blob/HEAD/skills/cuopt-numerical-op ↗통과
SKILL.md
GitHub에서 보기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 |
| 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.
이 스킬의 파일
52cuopt-numerical-optimization-api skill 질문
Claude Code에 cuopt-numerical-optimization-api skill을 어떻게 설치하나요?
npx degit NVIDIA/skills/skills/cuopt-numerical-optimization-api ~/.claude/skills/cuopt-numerical-optimization-api를 실행합니다. Claude Code는 ~/.claude/skills(모든 프로젝트) 또는 .claude/skills(한 프로젝트)에서 skills를 로드하며, 설명이 작업과 일치할 때 skill을 사용합니다.
cuopt-numerical-optimization-api skill을 사용할 수 있는 클라이언트는 무엇인가요?
Agent Skills 형식을 읽는 모든 클라이언트(Claude Code, Codex, Gemini CLI, claude.ai(ZIP으로 업로드))가 사용할 수 있습니다. skill 내 스크립트는 클라이언트가 코드 실행을 허용하는 경우에만 실행됩니다.
Pyomo 또는 PuLP와 같은 기존 모델링 언어와 함께 cuOpt를 사용할 수 있나요?
네, cuOpt는 AMPL, GAMS, PuLP, JuMP, Pyomo 및 CVXPY를 포함한 타사 도구의 솔버 백엔드로 작동합니다.