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

Uploaded Python 3Windows x86-64

pyomo_ripopt-0.7.0-py3-none-manylinux_2_17_x86_64.whl (22.4 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

pyomo_ripopt-0.7.0-py3-none-manylinux_2_17_aarch64.whl (21.5 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

pyomo_ripopt-0.7.0-py3-none-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

pyomo_ripopt-0.7.0-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.0.tar.gz.

File metadata

  • Download URL: pyomo_ripopt-0.7.0.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.0.tar.gz
Algorithm Hash digest
SHA256 5a6db54c6a64e645ee3a09345fe4f1f79705552b5ffd55bfa622d455b55e31ce
MD5 4b27b74a122809635d6db582fba5e47d
BLAKE2b-256 be02092ae1da1829fe8df5542c0eae4dd2d4e54fd4a4442c812ced22185c2f80

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pyomo_ripopt-0.7.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 1.7 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.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 0e07241b56bac057e41d89400c02b2642d736d7c717e6bd2b3322a676716d48e
MD5 d6bef42a2fbbed450ceea105a0c125b6
BLAKE2b-256 50a6d02ba984b9f1a6a874cfd958a6942dda009e3171c89dbd8f9d79ef915d92

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pyomo_ripopt-0.7.0-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 5de2a882789df04e8610b990b728b24b54543e70092efe545eefde4fef5bfb53
MD5 6305b7eb578f3b447d7acb8b78d36c8d
BLAKE2b-256 51e1650864abc0446e877cf50a05909c751063c06ffc3d801e3e1bafa0a3dfd2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pyomo_ripopt-0.7.0-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 0218fa02ee4665e48275814ed82b169893047f3922558757259fcd383b5353e0
MD5 5a710ae53ac56d30ce32e8243d8e15a6
BLAKE2b-256 ab963620c39f77b6391a76e405bd2dfa9e777dd49d8a8387ab375714502856e3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pyomo_ripopt-0.7.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 204e7eae125a4e38ae453bdb2760583c8f7f5aa814ececf5dd59f5e14a0bad6b
MD5 5e53737f76a7a1e89e83f5782681358a
BLAKE2b-256 2aa64867024d5686419a98b8a5cd64a943dfbea50a88105376007db0dd9f81a9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pyomo_ripopt-0.7.0-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 567f2611ea321fac4f413e254cd58313a508c5d6047238ddce328404c42aa7bd
MD5 7ee1f2ce84c2280a11401eeb3d7bc890
BLAKE2b-256 0a4eea43bff052c4068922ebd62da7a16d3dc6cc1513cdcb223097659449bef8

See more details on using hashes here.

Provenance

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