optimization-mode-router

작성자: nvidia

빠른 직접 cuOpt 해결과 재생 가능 또는 감사 가능한 모델 아티팩트 모드 중에서 선택하세요.

npx skills add https://github.com/nvidia/cuopt-examples --skill optimization-mode-router

Optimization Mode Router

Use this skill when a user asks a question that may be answered by solving an optimization problem from uploaded or provided data, and you need to decide whether to:

  • proceed with a fast direct-to-cuOpt solve, or
  • offer a replayable/auditable path that preserves a structured model artifact for later reruns, review, export, or audit.

This skill is about mode selection, not full formulation. Its purpose is to keep the common path fast while surfacing stronger reproducibility only when it is actually useful.

Read this when

Read this skill when all of the following are true:

  1. The user appears to be asking a question that could become an LP, MILP, QP, or routing problem.
  2. The user has provided data, or is expected to provide data.
  3. You need to decide whether to:
    • go straight to a direct cuOpt solve, or
    • preserve a replayable/auditable artifact as part of the workflow.

Do not use this skill for

  • Pure formulation work after the execution mode has already been chosen.
  • Pure cuOpt API usage when the user has already clearly chosen fast vs replayable mode.
  • Non-optimization analytics questions.

Default behavior

  • Default to Fast mode.
  • Default to direct cuOpt solve for one-off requests from uploaded CSVs (schedule, assignment, allocation, routing) — proceed to cuopt-model-mapper without asking fast vs replayable unless the user signals audit/export/rerun.
  • Do not ask about replayability/auditability unless there is a real signal that it matters.
  • Avoid turning a straightforward optimization request into a heavy upfront questionnaire.
  • NemoClaw sandbox: Fast mode means cuOpt after cuopt-sandbox gates — never a custom greedy/heuristic builder as the solve path.

Two modes

Fast mode

Use Fast mode when the user appears to want the quickest route to an answer.

Behavior:

  • inspect the provided data
  • identify whether the request is LP, MILP, QP, or routing
  • ask only the minimum necessary clarifying questions
  • build the model directly in cuOpt
  • solve and explain the result
  • do not preserve a replayable model artifact unless requested

Replayable / Auditable mode

Use this mode when the user wants reuse, traceability, or formal review.

Behavior:

  • capture explicit assumptions
  • record data-to-model mappings
  • preserve a structured model specification or equivalent reusable artifact
  • solve with cuOpt
  • return both the answer and reusable/reviewable model metadata

When to ask the mode-selection question

Ask the user to choose between Fast mode and Replayable/Auditable mode if any of the following are true:

  1. The user explicitly asks for any of these:

    • save the model
    • rerun on new data
    • replay later
    • recurring or scheduled runs
    • audit trail
    • export the model
    • document assumptions
    • review the formulation
    • show how the data maps into the model
  2. The request appears operational or recurring rather than one-off:

    • daily / weekly / monthly planning
    • production workflow
    • repeated scenario analysis
    • future datasets are expected
  3. The user indicates a need for traceability or justification:

    • compliance
    • internal or external review
    • reproducibility
    • explicit explanation of assumptions or mappings

When not to ask

Do not ask the mode-selection question when the request is clearly:

  • one-off
  • exploratory
  • ad hoc
  • speed-oriented

In those cases, proceed in Fast mode unless the user later asks for replayability, audit, export, or model persistence.

Recommended user-facing phrasing

Preferred short form:

Should I treat this as a one-off solve, or make it replayable/auditable too?

Alternative longer form:

I can do this in two ways: Fast mode for the quickest answer, or Replayable mode that also keeps a structured spec for reruns, audit, and reuse. Which do you want?

Decision rule

  • If there is no meaningful signal for replayability/auditability → use Fast mode silently.
  • If there is a meaningful signal → ask the mode-selection clarifier early.
  • If the user chooses replayable/auditable mode → preserve the structured artifact and proceed.
  • If the user chooses fast mode → proceed directly to cuOpt.

Handoff guidance

After selecting a mode, hand off based on problem type:

  • If the request is LP / MILP:

    • use numerical-optimization-formulation
    • then use cuopt-numerical-optimization-api-python (or cuopt-numerical-optimization-api-cli for MPS inputs)
    • in sandbox contexts, follow cuopt-sandbox (gates + selected gRPC path) before any LP/MILP solve
  • If the request is QP:

    • use numerical-optimization-formulation
    • then use cuopt-numerical-optimization-api-python
    • in sandbox contexts, follow cuopt-sandbox (gates + selected gRPC path) before any QP solve
  • If the request is routing (VRP / TSP / PDP):

    • use routing-formulation
    • then use cuopt-routing-api-python
    • in sandbox contexts, follow cuopt-sandbox (gates + REST) before any routing solve
  • If the user is asking about server usage or deployment rather than solving a model directly:

    • use cuopt-server-common or cuopt-server-api-python as appropriate
  • In all cuOpt user tasks:

    • follow cuopt-user-rules

Operational notes

  • This skill is about execution mode selection, not full mathematical modeling.
  • Keep the user experience lightweight by default.
  • Prefer direct-to-cuOpt for one-off work.
  • Use replayable/auditable mode only when the user’s needs justify the extra structure.

nvidia의 다른 스킬

compileiq-debug
nvidia
무언가 잘못되었을 때 사용: Search()가 멈추거나, 모든 평가가 INVALID_SCORE를 반환하거나, 점수가 개선되지 않거나, 모든 설정이 동일한 숫자를 반환하거나, ptxas 오류 등이 발생할 때
create-github-pr
nvidia
gh CLI를 사용하여 GitHub 풀 리퀘스트를 생성합니다. 사용자가 새 PR을 만들거나, 코드 리뷰를 제출하거나, 풀 리퀘스트를 열고자 할 때 사용합니다. 트리거 키워드 -…
nemoclaw-maintainer-cross-issue-sweep
nvidia
다른 열린 이슈들을 스캔하여 주어진 PR이 함께 수정하거나 실수로 망가뜨릴 수 있는 이슈를 찾습니다. 인접 수정 기회와 모순 위험을 file:line…과 함께 출력합니다.
fhir-basics
nvidia
에이전트에게 FHIR R4 API의 작동 방식, 사용 가능한 리소스, 검색 매개변수를 사용한 쿼리 방법, 모든 응답 형식을 올바르게 파싱하는 방법을 가르칩니다…
compileiq-validate-result
nvidia
검색이 완료된 후, 속도 향상을 청구하거나 ACF를 발송하기 전에 사용합니다. dump_results CSV를 로드하고, 상위 K개 후보(단일 목표)를 추출합니다…
changelog-audit
nvidia
릴리스 전에 Warp CHANGELOG.md를 감사합니다: 누락된 항목 복구, 사용자 영향별 정렬, 항목 언어 다듬기, 줄 바꿈, (릴리스 브랜치 모드) 비교 업데이트…
maintain-dynamic-plugins
nvidia
NeMo Relay 동적 플러그인 로더, 매니페스트, Rust 네이티브 SDK, gRPC 워커 프로토콜, Python 워커 SDK, 문서, 테스트 및 릴리스 워크플로 커버리지를 유지 관리합니다.
dgx-diagnose
nvidia
일반적인 DGX Station GB300 문제 진단 — CUDA 충돌, 잘못된 GPU 타겟팅, vLLM/SGLang 컨테이너 버그, MIG 상태 문제, NVLink/Fabric Manager 오류,…