본문으로 건너뛰기
cccskills
무료GitHub에 공개

cuopt-numerical-optimization-api

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.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(52)

  • SKILL.md4.8 KB
  • assets/c/lp_basic/lp_simple.c3.6 KB
  • assets/c/lp_basic/README.md466 B
  • assets/c/lp_duals/lp_duals.c4.0 KB
  • assets/c/lp_duals/README.md500 B
  • assets/c/lp_warmstart/README.md289 B
  • assets/c/milp_basic/milp_simple.c3.4 KB
  • assets/c/milp_basic/README.md405 B
  • assets/c/milp_production_planning/milp_production.c3.5 KB
  • assets/c/milp_production_planning/README.md459 B
  • assets/c/mps_solver/data/sample.mps490 B
  • assets/c/mps_solver/mps_solver.c3.4 KB
  • assets/c/mps_solver/README.md590 B
  • assets/c/README.md1.7 KB
  • assets/cli/lp_production/production.mps375 B
  • assets/cli/lp_production/README.md192 B
  • assets/cli/lp_simple/README.md191 B
  • assets/cli/lp_simple/sample.mps490 B
  • assets/cli/milp_facility/facility.mps694 B
  • assets/cli/milp_facility/README.md199 B
  • assets/cli/README.md856 B
  • assets/python/least_squares/model.py831 B
  • assets/python/least_squares/README.md136 B
  • assets/python/lp_basic/model.py1.1 KB
  • assets/python/lp_basic/README.md207 B
  • assets/python/lp_duals/model.py1.2 KB
  • assets/python/lp_duals/README.md227 B
  • assets/python/lp_warmstart/model.py1.8 KB
  • assets/python/lp_warmstart/README.md140 B
  • assets/python/maximization_workaround/model.py736 B
  • assets/python/maximization_workaround/README.md152 B
  • assets/python/milp_basic/incumbent_callback.py1.8 KB
  • assets/python/milp_basic/model.py1.2 KB
  • assets/python/milp_basic/README.md433 B
  • assets/python/milp_production_planning/model.py1.2 KB
  • assets/python/milp_production_planning/README.md165 B
  • assets/python/mps_solver/data/README.md2.0 KB
  • assets/python/mps_solver/data/sample.mps490 B
  • assets/python/mps_solver/model.py8.2 KB
  • assets/python/mps_solver/README.md2.2 KB
  • assets/python/mps_solver/results.md2.5 KB
  • assets/python/portfolio/model.py1.6 KB
  • assets/python/portfolio/README.md232 B
  • assets/python/README.md581 B
  • BENCHMARK.md4.8 KB
  • evals/evals.json13.7 KB
  • references/c_api.md4.7 KB
  • references/cli_api.md5.5 KB
  • references/python_api.md4.7 KB
  • references/qp_examples.md5.7 KB
  • skill-card.md4.3 KB
  • skill.oms.sig15.9 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

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.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Modify, build, test, debug, and contribute to NVIDIA cuOpt (C++/CUDA, Python, server, CI). Use for solver internals, PRs, DCO, and code conventions.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

NVIDIA/cuopt1.1천2026년 10월 17일 업데이트

Install cuOpt for Python, C, or server via pip, conda, or Docker; verify the install. For building cuOpt from source, see cuopt-developer.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

NVIDIA/cuopt1.1천2026년 10월 17일 업데이트

Trace, complete, and interpret the Pareto frontier across competing objectives using repeated single-objective cuOpt solves (weighted-sum and ε-constraint).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

NVIDIA/cuopt1.1천2026년 10월 17일 업데이트

LP, MILP, QP — concepts, problem-text parsing, and formulation patterns (parameters, constraints, decisions, objective). Concepts only; no API.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

NVIDIA/cuopt1.1천2026년 10월 17일 업데이트

Vehicle routing (VRP, TSP, PDP) with cuOpt — Python API only. Use when the user is building or solving routing in Python.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

NVIDIA/cuopt1.1천2026년 10월 17일 업데이트

cuOpt REST server — start server, endpoints, Python/curl client examples. Use when the user is deploying or calling the REST API.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

NVIDIA/cuopt1.1천2026년 10월 17일 업데이트

NVIDIA의 스킬 모두 보기

이 스킬의 문제 신고