Skip to main content

OpenPinch-solvers

Platform wheels that ship a current Ipopt executable, so OpenPinch can get its nonlinear solver from pip, without IDAES or conda.

pip install openpinch-solvers
import openpinch_solvers
import pyomo.environ as pyo

solver = pyo.SolverFactory("ipopt", executable=openpinch_solvers.ipopt_executable())

What is in the wheel

Component Version Role Licence
Ipopt 3.14.20 interior point NLP solver, ipopt executable EPL-2.0
MUMPS 5.9.1 (via ThirdParty-Mumps 3.0.14) sparse linear solver used by Ipopt CeCILL-C
AMPL Solver Library 20241111 (snapshot solvers-20241108, via ThirdParty-ASL 2.1.0) reads Pyomo's .nl files, writes .sol files permissive notice
OpenBLAS 0.3.34 (Linux, Windows) BLAS and LAPACK BSD-3-Clause
Accelerate system framework (macOS) BLAS and LAPACK part of macOS
GCC runtime from the build toolchain libgfortran, libquadmath, libgcc_s (and on Windows libstdc++, libwinpthread) GPL-3.0 with the GCC Runtime Library Exception; LGPL-2.1 for libquadmath; MIT and BSD-3-Clause for winpthreads

MUMPS is the only linear solver. The HSL solvers (MA27, MA57 and others) are not redistributable and are not included; Ipopt's linear solver loader is enabled, so a user who has an HSL licence can still point Ipopt at their own libhsl with the hsllib option.

Wheels are built for:

  • Linux x86_64 and aarch64 (manylinux_2_28, glibc 2.28 or newer)
  • macOS arm64 (11.0 or newer) and x86_64 (10.13 or newer)
  • Windows x86_64

Each wheel is tagged py3-none-<platform>: the executable does not depend on the Python version, so one wheel serves Python 3.10 and newer. There is no source distribution; building from source needs the toolchain described in Building.

Python API

  • openpinch_solvers.ipopt_executable() returns the absolute path of the bundled ipopt executable. It raises FileNotFoundError if the package was not installed from a platform wheel.
  • openpinch_solvers.bin_directory is the directory that holds it (named like idaes.bin_directory).
  • openpinch_solvers.add_to_path() puts that directory first on PATH for the current process and its children, so a plain SolverFactory("ipopt") finds the bundled executable.
  • IPOPT_VERSION, MUMPS_VERSION, ASL_VERSION and BLAS_LAPACK describe the bundled build.

The wheel also installs an ipopt console command. It is a small Python launcher that runs the bundled executable with the same arguments, so ipopt -v works in an activated environment. Code that starts the solver many times should use ipopt_executable() or add_to_path() instead, which run the executable directly without starting Python first.

How OpenPinch uses it

OpenPinch's heat exchanger network synthesis solves Pyomo models. Ipopt is the default solver for network evolution and duty optimisation. Before this package, Ipopt came only from IDAES's idaes get-extensions download, which ships Ipopt 3.13.2 from 2020.

OpenPinch's synthesis extra is planned to depend on openpinch-solvers. OpenPinch looks for a solver executable on PATH first and then in IDAES's bin_directory, which it prepends to PATH so Pyomo's SolverFactory("ipopt") finds it. With this package installed it checks openpinch_solvers.bin_directory in the same way, which is the same as:

import openpinch_solvers

openpinch_solvers.add_to_path()

Building

The wheels are built by cibuildwheel on GitHub Actions (.github/workflows/wheels.yml). Its before-all step runs scripts/build_ipopt.sh, which downloads the sources listed in scripts/sources.sh, checks each SHA-256, and builds, all as static libraries linked into one executable:

  1. OpenBLAS (single-threaded, DYNAMIC_ARCH with a baseline target, so it runs on any CPU of the architecture) on Linux and Windows; Accelerate on macOS.
  2. The ASL, through ThirdParty-ASL.
  3. MUMPS (sequential, with its built-in AMD and PORD orderings, no METIS), through ThirdParty-Mumps and its patches.
  4. Ipopt, with MUMPS and the ASL.

Toolchains: the manylinux_2_28 image's GCC and gfortran on Linux; Apple clang and conda-forge's gfortran 11.3 (from isuruf/gcc, pinned by checksum) on macOS; MSYS2's UCRT64 MinGW-w64 GCC and gfortran on Windows.

The hatchling build hook (hatch_build.py) copies the executable into openpinch_solvers/bin and tags the wheel. The repair step then bundles the Fortran runtime: auditwheel on Linux and delocate on macOS. On Windows the build script copies the MinGW runtime DLLs next to ipopt.exe, where Windows looks for them; delvewheel only patches extension modules, so it is not used. The tests in tests/ run against every wheel: they check ipopt --version, that the runtime libraries come from the wheel, that MUMPS is the linear solver, and that Pyomo solves Hock-Schittkowski problem 71 to its known optimum.

To build locally on Linux or macOS:

bash scripts/build_ipopt.sh
python -m build --wheel

On Windows, run python scripts/msys2.py scripts/build_ipopt.sh with MSYS2 installed in C:\msys64 (or set MSYS2_ROOT).

Releasing

Bump __version__ in src/openpinch_solvers/__init__.py, merge to main, then push a tag v<version> on that commit. .github/workflows/release.yml checks the tag, builds and tests the wheels, publishes them to PyPI through trusted publishing, and creates a GitHub release with the wheels and the source of every bundled component (scripts/collect_sources.sh, which also runs in CI on every pull request) attached.

The PyPI side needs a one-time setup: a trusted publisher for the project openpinch-solvers with owner waikato-ahuora-smart-energy-systems, repository OpenPinch-solvers, workflow release.yml and environment pypi (a "pending publisher" before the first release), and a pypi environment in the repository settings.

To update a solver, change its version, URL and checksum in scripts/sources.sh, the matching constant in src/openpinch_solvers/__init__.py, EXPECTED_IPOPT in the tests for Ipopt, and the licence files if they changed.

Licences

The Python code and build scripts in this repository are MIT licensed (see LICENSE), the same as OpenPinch. The wheels also contain the third-party components in the table above, under their own licences. Their texts are in licenses/ and are installed in each wheel's .dist-info/licenses/ directory:

  • EPL-2.0.txt: Ipopt, ThirdParty-Mumps and ThirdParty-ASL.

  • MUMPS-LICENSE.txt, MUMPS-CeCILL-C-V1-en.txt, MUMPS-PORD-README.txt: MUMPS (CeCILL-C; BSD-3-Clause parts derived from LAPACK; PORD is public domain).

  • ASL-NOTICE.txt: the AMPL Solver Library notices (AMPL Optimization and Lucent Technologies).

  • OpenBLAS-LICENSE.txt, GotoBLAS-LICENSE.txt, LAPACK-LICENSE.txt: OpenBLAS and the reference LAPACK it contains.

  • GPL-3.0.txt, GCC-RUNTIME-EXCEPTION-3.1.txt: the GCC runtime libraries.

  • LGPL-2.1.txt: libquadmath (x86_64 builds), shipped as a separate shared library.

  • winpthreads-COPYING.txt: libwinpthread (Windows).

  • SOURCES.txt: where the source code of all of the above is.

Commercial use

None of these licences restricts commercial use. Running the solver, or selling software that runs it, places no obligations on that software: Pyomo starts ipopt as a separate process. Redistributing the wheels means keeping the licence files with them and offering the source of the copyleft components (Ipopt, MUMPS, the GCC runtime libraries). Each GitHub release does that: it carries the source archives of every third-party component in its wheels, including the exact packages the bundled runtime libraries came from, with a SOURCES.md index and SHA256SUMS. Inside an installed wheel, openpinch_solvers/runtime-sources.tsv lists the runtime library sources.

The HSL solvers, which need a paid licence for commercial use, are not included. A user who loads their own HSL library through Ipopt's linear solver loader needs their own HSL licence.

Metadata

Release files for openpinch-solvers 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for openpinch-solvers 0.1.0
File Actions
openpinch_solvers-0.1.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for openpinch_solvers-0.1.0-py3-none-win_amd64.whl
openpinch_solvers-0.1.0-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for openpinch_solvers-0.1.0-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
openpinch_solvers-0.1.0-py3-none-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64, Linux glibc 2.27+ ARM64 Details for openpinch_solvers-0.1.0-py3-none-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
openpinch_solvers-0.1.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for openpinch_solvers-0.1.0-py3-none-macosx_11_0_arm64.whl
openpinch_solvers-0.1.0-py3-none-macosx_10_13_x86_64.whl Python 3 none macOS 10.13+ x86-64 Details for openpinch_solvers-0.1.0-py3-none-macosx_10_13_x86_64.whl

Total release size: 26.8 MB

Release files / openpinch_solvers-0.1.0-py3-none-win_amd64.whl

Download URL openpinch_solvers-0.1.0-py3-none-win_amd64.whl
Size 7.0 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
a2ed8167fccfeb1fbbfb76ad9d969ccfc3279a12d8c80a5054be4f3a1934d9db
BLAKE2b-256 checksum
How to use checksums
56baccf2c0032cdbf94ab06f13b12da8049e80a5c7ca79a0d8b7ecbc5e8cc61e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Release files / openpinch_solvers-0.1.0-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL openpinch_solvers-0.1.0-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 5.8 MB
Tags Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
3a3c1706d05988a0def7d0e5a7cb6d155929364def0e20f24b16b6db87cab75c
BLAKE2b-256 checksum
How to use checksums
1b31206ddc481b9afd47000c89e08f0e99a9322c4d09d9bbc451a53bfd132441
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Release files / openpinch_solvers-0.1.0-py3-none-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl

Download URL openpinch_solvers-0.1.0-py3-none-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Size 6.2 MB
Tags Linux glibc 2.27+ ARM64 Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
92c5a66e8a0705999cba04f68b9ba4f04264b437d152c9cf572234f1604c32da
BLAKE2b-256 checksum
How to use checksums
4757ae0f81f35855f14e39030b2df254a9b32625d11e9beac82016b59171e634
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Release files / openpinch_solvers-0.1.0-py3-none-macosx_11_0_arm64.whl

Download URL openpinch_solvers-0.1.0-py3-none-macosx_11_0_arm64.whl
Size 3.4 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
9b17ab21763ebc004e3521c383c3ff8fb7dc238b47980b4fa26d0651e6834d38
BLAKE2b-256 checksum
How to use checksums
2e974d11e5b2c7e9b662604f851f34f486a1aa3cb6bf982d329d3a4fcf2734de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Release files / openpinch_solvers-0.1.0-py3-none-macosx_10_13_x86_64.whl

Download URL openpinch_solvers-0.1.0-py3-none-macosx_10_13_x86_64.whl
Size 4.4 MB
Tags Python 3 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
69ebab6c570ea9cf116caab43f8f9c6f1e8fb1b2288259bfd3809f242e8bcd01
BLAKE2b-256 checksum
How to use checksums
b146c00e9b98eb9f5abfeab3bcfbedaa7490b50d10ca2a3671d94405e03a78c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Security for openpinch-solvers 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 5 files in this release have been uploaded with provenance metadata.

Select from 5 files

Attestation for openpinch_solvers-0.1.0-py3-none-win_amd64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

5 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page