All skills
nvidia avatar

/cuopt-numerical-optimization-api

@e0cd22d
by NVIDIA Corporationnvidia/skills3.5k stars
424

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.

Use this Skill: https://skilld.dev/gh/nvidia/skills/cuopt-numerical-optimization-api

This session only. Nothing lands on disk.

assetspythonmps_solverdataREADME.md

≈507 tokens on demand. Your agent reads this file only when SKILL.md points to it.

MPS Solver Data

This directory contains MPS files for testing.

Included Files

air05.mps (MIPLIB Benchmark)

An airline crew scheduling problem from the MIPLIB benchmark library.

Property Value
Type Binary Integer Program
Variables 7,195 (all binary)
Constraints 426
Non-zeros 52,121
Known Optimal 26,374

Source: https://miplib.zib.de/instance_details_air05.html

Problem: Given flight legs and possible crew pairings, find the minimum-cost set of pairings that covers all flight legs (set covering problem).

MPS File Format

MPS (Mathematical Programming System) is a standard format for LP/MILP problems.

Sections

Section Purpose
NAME Problem name
ROWS Constraint and objective definitions
COLUMNS Variable coefficients in each row
RHS Right-hand side values for constraints
BOUNDS Variable bounds and types
ENDATA End of file marker

Row Types

Type Meaning
N Objective function (no constraint)
L Less than or equal (≤)
G Greater than or equal (≥)
E Equality (=)

Bound Types

Type Meaning
LO Lower bound
UP Upper bound
FX Fixed value (lb = ub)
FR Free variable (-∞ to +∞)
BV Binary variable (0 or 1)
UI Upper bound, integer
LI Lower bound, integer

Adding Custom MPS Files

python model.py --file path/to/your/problem.mps

Standard Test Problem Sources

  • MIPLIB - Mixed Integer Programming Library
  • Netlib LP - Classic LP test problems
  • NEOS - Network-Enabled Optimization System

Creating MPS Files

cuOpt can export problems to MPS format:

from cuopt.linear_programming.problem import Problem

problem = Problem("MyProblem")
# ... define variables, constraints, objective ...
problem.writeMPS("output.mps")

Source: SKILL.md on GitHub

1 warning1mo3 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    The skill provides a comprehensive environment for modeling and solving optimization problems using the NVIDIA cuOpt library. It includes well-documented examples and reference implementations for Python, C, and CLI interfaces. Security analysis identified a remote data download from a reputable academic source and standard data ingestion patterns for optimization files, neither of which present malicious risk.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: MEDIUM · 1 issue

Signed by skilld at e0cd22d. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 months ago
version
26.10.00
Other metadata
metadata
{
  "author": "NVIDIA cuOpt Team",
  "tags": [
    "cuopt",
    "linear-programming",
    "milp",
    "qp",
    "python",
    "c-api",
    "cli"
  ]
}

README badge

README badge for nvidia/skills/cuopt-numerical-optimization-api