Skip to main content

Pyomo solver plugin for the ripopt NLP solver

Project description

pyomo-ripopt

Pyomo solver plugin for ripopt, a fast interior-point NLP solver written in Rust.

Installation

pip install pyomo-ripopt

This installs the solver plugin and a bundled ripopt binary. No Rust toolchain needed.

Usage

import pyomo_ripopt  # registers the solver
from pyomo.environ import *

model = ConcreteModel()
model.x = Var(initialize=0.5)
model.obj = Objective(expr=(model.x - 2)**2)

solver = SolverFactory('ripopt')
result = solver.solve(model, tee=True)
print(f"x* = {value(model.x)}")  # 2.0

Solver Options

Pass options the same way as Ipopt:

solver = SolverFactory('ripopt')
solver.options['max_iter'] = 1000
solver.options['tol'] = 1e-10
solver.options['print_level'] = 5

Building from Source

If a pre-built wheel is not available for your platform:

cargo install ripopt   # installs the ripopt binary
pip install pyomo-ripopt --no-binary :all:

The solver will find the ripopt binary on your PATH.

License

EPL-2.0, same as ripopt.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyomo_ripopt-0.8.2.tar.gz (2.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pyomo_ripopt-0.8.2-py3-none-win_amd64.whl (2.4 MB view details)

Uploaded Python 3Windows x86-64

pyomo_ripopt-0.8.2-py3-none-manylinux_2_17_x86_64.whl (26.7 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

pyomo_ripopt-0.8.2-py3-none-manylinux_2_17_aarch64.whl (24.9 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

pyomo_ripopt-0.8.2-py3-none-macosx_11_0_arm64.whl (2.4 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

pyomo_ripopt-0.8.2-py3-none-macosx_10_12_x86_64.whl (2.6 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

Details for the file pyomo_ripopt-0.8.2.tar.gz.

File metadata

  • Download URL: pyomo_ripopt-0.8.2.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyomo_ripopt-0.8.2.tar.gz
Algorithm Hash digest
SHA256 516b6dd47ad947d06f70599b48c55fce1536cbeadf61a169ef5af5b5a3276752
MD5 9a16ff1450d1174455f23b0d416aae32
BLAKE2b-256 38566047f0e3c85b6c8048700b30cef9b06067b5d5d6c110d6dec4042e998b32

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyomo_ripopt-0.8.2.tar.gz:

Publisher: publish-pyomo.yml on jkitchin/ripopt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyomo_ripopt-0.8.2-py3-none-win_amd64.whl.

File metadata

  • Download URL: pyomo_ripopt-0.8.2-py3-none-win_amd64.whl
  • Upload date:
  • Size: 2.4 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyomo_ripopt-0.8.2-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 2570e987caa81b07ff035b30346ba7ff198605cd656df12fe516e38207cefffe
MD5 34daa102e754f97c92e5399bc74fb38f
BLAKE2b-256 8673fec1b72b937198835c135cdf58982dea1e055ce30ec1946d1bd6d80094af

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyomo_ripopt-0.8.2-py3-none-win_amd64.whl:

Publisher: publish-pyomo.yml on jkitchin/ripopt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyomo_ripopt-0.8.2-py3-none-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for pyomo_ripopt-0.8.2-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 3851a914b7534dfdf6b27bbab1327b73d5c80ce73ac8dde256d9cdbd6a59021e
MD5 33402d2f488cc5483ef4fe5b425627df
BLAKE2b-256 1927d75a8d3f3b994e8fc1c27a61940a15f861040bb21d951d910ba44890c711

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyomo_ripopt-0.8.2-py3-none-manylinux_2_17_x86_64.whl:

Publisher: publish-pyomo.yml on jkitchin/ripopt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyomo_ripopt-0.8.2-py3-none-manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for pyomo_ripopt-0.8.2-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 c1f0e2544c1b37f5dcca0c7d2177013c6ddecd88dd485325877259ff82bbd781
MD5 31c95016c1bcda74af4f86b805d75aed
BLAKE2b-256 692e6cae605df42d1bce509b75676efbd2d504ba92d29fb8ddb2f8376509e71d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyomo_ripopt-0.8.2-py3-none-manylinux_2_17_aarch64.whl:

Publisher: publish-pyomo.yml on jkitchin/ripopt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyomo_ripopt-0.8.2-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyomo_ripopt-0.8.2-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a4a1fa3352d2847484458299f6faa45555aa4426e67b41a4ef1b7b3bd348fab4
MD5 d283f2b09fadc9d51c332d955939d52b
BLAKE2b-256 fd5a8029cadf84f862674b8c171c1b098e896c2c9b8244dce43c1bb678847fdb

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyomo_ripopt-0.8.2-py3-none-macosx_11_0_arm64.whl:

Publisher: publish-pyomo.yml on jkitchin/ripopt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyomo_ripopt-0.8.2-py3-none-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for pyomo_ripopt-0.8.2-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 2ca89e71402aaf25d794779a70a0487bdd4deafc88293b0512a4b433a5f756c0
MD5 135f3499d6963e1218edd731c8570de8
BLAKE2b-256 3177a3ac38379f072dc5ef7eee4a2f4df48fca3231391841d67edfcd660befeb

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyomo_ripopt-0.8.2-py3-none-macosx_10_12_x86_64.whl:

Publisher: publish-pyomo.yml on jkitchin/ripopt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page