Skip to content
Back to skills

Pyomo

ASecurity

"Guides Pyomo optimization-modeling workflows, solver CLI use, data

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
toolspythonbashexpressdebuggingapibackend

Works with

  • cli
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 20 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill pyomo --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pyomo?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pyomo
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-pyomo/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-pyomo)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: pyomo
description: "Guides Pyomo optimization-modeling workflows, solver CLI use, data
  loading, structured modeling, and solver extensions."
disable-model-invocation: true
metadata:
  disco-role: operating
license: NOASSERTION
---

# Pyomo

Use this skill when the task is about Pyomo algebraic optimization models,
Pyomo's `pyomo` command, data loading into models, or solver/analysis
extensions that build on Pyomo models.

## Start here

- Read `references/repo-provenance.md` when you need to check whether this skill
  still matches the current checkout.
- Read `references/troubleshooting.md` when imports, solvers, optional packages,
  Qt, or compiled extensions fail.
- Use `scripts/check_import.py` for a quick package/import sanity check.
- Use `scripts/solve_tiny_milp.py` when you need a safe solver-backed smoke test.

## Install and import

The public package name is `pyomo`.

Typical installs:

- `pip install pyomo`
- `conda install -c conda-forge pyomo`

For solver-backed checks, also install a solver such as `glpk`.
For GUI or advanced extensions, install only the optional packages that the
relevant sub-skill or reference calls out.

Minimal import check:

```bash
python -c "import pyomo, pyomo.environ as pyo; print(pyomo.__version__); print(pyo.ConcreteModel)"
```

## Route map

### `modeling-basics`
Read this for `ConcreteModel`, `Set`, `Param`, `Var`, `Constraint`,
`Objective`, `Block`, `Expression`, `Suffix`, `value()`, component traversal,
and small self-contained model construction.

### `data-and-io`
Read this for `AbstractModel`, `DataPortal`, `create_instance`, data-file
loading, `.dat` / `.tab` / Excel inputs, and tutorial-style data workflows.

### `solve-and-cli`
Read this for `pyomo solve`, `pyomo convert`, `pyomo run`, `pyomo help`,
`pyomo test-solvers`, config templates, solver selection, and CLI smoke checks.

### `structured-modeling`
Read this for GDP, DAE, network models, MPEC, model transformations,
discretization, ports/arcs, and other structured-modeling workflows.

### `solver-extensions`
Read this for APPSI, FBBT, PyNumero, simplification, community detection,
interior-point tooling, and the model viewer / optional-backend troubleshooting
surface.

## What this skill owns

- Pyomo modeling APIs and common component patterns.
- Pyomo data-loading workflows and tutorial-style examples.
- Pyomo CLI entry points and solver orchestration.
- Structured modeling extensions and their transformations.
- Optional solver/analysis extensions and their dependency boundaries.

## What this skill does not own

- Generic mathematical-optimization theory that is not Pyomo-specific.
- Solver installation instructions beyond the Pyomo-facing commands and
  dependency notes.
- External solver manuals.
- Original repository paths in runtime instructions.

## Bundled helpers

- `scripts/check_import.py` — run this when you need a fast import and metadata
  check from the target environment.
- `scripts/check_optional_backends.py` — run this when you need a quick report
  on optional scientific, GUI, and Pyomo extension dependencies.
- `scripts/solve_tiny_milp.py` — run this when you need a deterministic solve
  smoke test against a tiny binary model.

## References

- `references/core-modeling.md` — core component and expression overview.
- `references/data-and-io.md` — abstract models, data files, and input formats.
- `references/cli-reference.md` — Pyomo CLI commands and safe help paths.
- `references/structured-modeling.md` — GDP, DAE, network, and MPEC workflows.
- `references/solver-extensions.md` — APPSI, PyNumero, FBBT, viewer, and other
  optional extensions.
- `references/repo-routing-metadata.json` — structured router metadata used by
  repo-skills routing.
- `references/troubleshooting.md` — install, import, solver, Qt, and extension
  failures.

## Verified package facts

- `pyomo` installs a `pyomo` console command.
- `pyomo.solve`, `pyomo.convert`, `pyomo.run`, `pyomo.download-extensions`,
  `pyomo.build-extensions`, `pyomo.install-extras`, `pyomo.model-viewer`, and
  `pyomo.test-solvers` are available subcommands in this checkout.
- The package imports as `pyomo` and `pyomo.environ`.
- `SolverFactory('glpk')` works when the `glpsol` executable is available.
- `pyomo model-viewer` requires `qtconsole` plus a Qt binding and currently
  reports missing Qt support when those extras are absent.

## Selection hints

- If the task mentions building or debugging a model, start with
  `modeling-basics`.
- If the task mentions `.dat`, `.tab`, Excel, or `create_instance`, start with
  `data-and-io`.
- If the task mentions `pyomo solve`, `pyomo convert`, or solver selection,
  start with `solve-and-cli`.
- If the task mentions GDP, DAE, network, or complementarity models, start with
  `structured-modeling`.
- If the task mentions APPSI, PyNumero, FBBT, simplification, community
  detection, interior point, or the viewer, start with `solver-extensions`.

Files in this skill

  • SKILL.md4.9 KB
  • references/cli-reference.md3.2 KB
  • references/core-modeling.md2.3 KB
  • references/data-and-io.md2.5 KB
  • references/repo-provenance.md1.4 KB
  • references/repo-routing-metadata.json322 B
  • references/solver-extensions.md4 KB
  • references/structured-modeling.md3.4 KB
  • references/troubleshooting.md3.9 KB
  • scripts/check_import.py1.1 KB
  • scripts/check_optional_backends.py2.8 KB
  • scripts/solve_tiny_milp.py1.3 KB
  • sub-skills/data-and-io/SKILL.md3.4 KB
  • sub-skills/data-and-io/references/troubleshooting.md1.5 KB
  • sub-skills/modeling-basics/SKILL.md3.6 KB
  • sub-skills/modeling-basics/references/troubleshooting.md1.4 KB
  • sub-skills/solve-and-cli/SKILL.md3.5 KB
  • sub-skills/solve-and-cli/references/troubleshooting.md1.6 KB
  • sub-skills/solver-extensions/SKILL.md3.3 KB
  • sub-skills/solver-extensions/references/troubleshooting.md2.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.