技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
pyomo【数据与研究】Guides Pyomo optimization-modeling workflows, solver CLI use, data loading, structured modeling, and solver extensions.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
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.
references/repo-provenance.md when you need to check whether this skill
still matches the current checkout.references/troubleshooting.md when imports, solvers, optional packages,
Qt, or compiled extensions fail.scripts/check_import.py for a quick package/import sanity check.scripts/solve_tiny_milp.py when you need a safe solver-backed smoke test.The public package name is pyomo.
Typical installs:
pip install pyomoconda install -c conda-forge pyomoFor 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:
python -c "import pyomo, pyomo.environ as pyo; print(pyomo.__version__); print(pyo.ConcreteModel)"
modeling-basicsRead this for ConcreteModel, Set, Param, Var, Constraint,
Objective, Block, Expression, Suffix, value(), component traversal,
and small self-contained model construction.
data-and-ioRead this for AbstractModel, DataPortal, create_instance, data-file
loading, .dat / .tab / Excel inputs, and tutorial-style data workflows.
solve-and-cliRead this for pyomo solve, pyomo convert, pyomo run, pyomo help,
pyomo test-solvers, config templates, solver selection, and CLI smoke checks.
structured-modelingRead this for GDP, DAE, network models, MPEC, model transformations, discretization, ports/arcs, and other structured-modeling workflows.
solver-extensionsRead this for APPSI, FBBT, PyNumero, simplification, community detection, interior-point tooling, and the model viewer / optional-backend troubleshooting surface.
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/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.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.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.modeling-basics..dat, .tab, Excel, or create_instance, start with
data-and-io.pyomo solve, pyomo convert, or solver selection,
start with solve-and-cli.structured-modeling.solver-extensions.