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.7.1.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.7.1-py3-none-win_amd64.whl (1.8 MB view details)

Uploaded Python 3Windows x86-64

pyomo_ripopt-0.7.1-py3-none-manylinux_2_17_x86_64.whl (22.7 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

pyomo_ripopt-0.7.1-py3-none-manylinux_2_17_aarch64.whl (21.6 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

pyomo_ripopt-0.7.1-py3-none-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

pyomo_ripopt-0.7.1-py3-none-macosx_10_12_x86_64.whl (1.9 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: pyomo_ripopt-0.7.1.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.7.1.tar.gz
Algorithm Hash digest
SHA256 b1afb6a3eec22e8295fb7c39781974ac8b1f2fea6f68244d30f8ee92493607bc
MD5 b9e572a7b41885c5edb41dd3aaaebfc1
BLAKE2b-256 fe0503648f900536c5de3f751cf9fb0e1c1e8f1b9305eae4461ad10cffa79e64

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyomo_ripopt-0.7.1.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.7.1-py3-none-win_amd64.whl.

File metadata

  • Download URL: pyomo_ripopt-0.7.1-py3-none-win_amd64.whl
  • Upload date:
  • Size: 1.8 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.7.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 c8b37af63a519802ab029a5045a5304de55395b128ccfc92786339c247bccb4e
MD5 2c5b425867cdc28e96f8e472ddb75cee
BLAKE2b-256 943a54b0c9aa6664db94bc0be568c4d9332e4404c428dab9b78d12bf4143300f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyomo_ripopt-0.7.1-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.7.1-py3-none-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for pyomo_ripopt-0.7.1-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 dd3955d54422c9ce9804934b46438d79d5524a0ebbaee662bd1cda6519138a81
MD5 a6f13654fed05ed282a042d1dd6a77b6
BLAKE2b-256 d2a3c29a224157a5eda5f522ebd49c62d4bc6e09bda12c72b65e87686e232e0f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyomo_ripopt-0.7.1-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.7.1-py3-none-manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for pyomo_ripopt-0.7.1-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 93980d326ee481885e93c3e5a83a812322c032bafaa151299c4185d34244cfed
MD5 a98487b09cbf15ca78a77a46fffcf926
BLAKE2b-256 ffee3f68f87aae20222a840ed0a88db14692d751c41692d723cf09733d3dc9ce

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyomo_ripopt-0.7.1-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.7.1-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyomo_ripopt-0.7.1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 32bdf2e0d3f929b9f1a13e5743a73bf520436e8526505835cd7215284716cdc9
MD5 bfb194a3135a34d891b9d88358034f7a
BLAKE2b-256 5eb5b738e59e7dd617ff57444bc39bd226efd0622a5062d1db210c2eff7aa727

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyomo_ripopt-0.7.1-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.7.1-py3-none-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for pyomo_ripopt-0.7.1-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 2e06c7002bdb5583a28c5e7dbb33e526409ba33b9906ec68c4ea7b430206ba75
MD5 2440b7e45c60f29a94b4c0327c564509
BLAKE2b-256 4d36205ce624088c3e4a70ce265493a9986bfa41ffdd679e18855f1cbdfb891a

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyomo_ripopt-0.7.1-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