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

Uploaded Python 3Windows x86-64

pyomo_ripopt-0.8.0-py3-none-manylinux_2_17_x86_64.whl (21.9 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

pyomo_ripopt-0.8.0-py3-none-manylinux_2_17_aarch64.whl (20.6 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

pyomo_ripopt-0.8.0-py3-none-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

pyomo_ripopt-0.8.0-py3-none-macosx_10_12_x86_64.whl (1.7 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: pyomo_ripopt-0.8.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.8.0.tar.gz
Algorithm Hash digest
SHA256 0208802829f23f8f54a244e7ae0227a86edb8e89b5a133f6380ae5a75f3fb769
MD5 8686e6601d471aea0325d44aa67f544c
BLAKE2b-256 1f170333ee5c1bdd46c6fb70a4708bcd517500d96700d6ff9ae2f1975c7dd0f9

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pyomo_ripopt-0.8.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 1.5 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.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 4e829c82d326b8e656a850310879b74fca8a8b2214fafed28c2bf74c2ed18f1b
MD5 ab336884e68689f820b70c6c05d423ab
BLAKE2b-256 2847feb99c5d7e7e097b607ea1a755a9cc00fc1352af192562761319a49130b3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pyomo_ripopt-0.8.0-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 871c99a20afe9245f4d25abb4bd2e18ddc7890eaa55226b919c9cf64b0e6ffd7
MD5 954ee4f9f1dbbd36af930d9b7ed92fad
BLAKE2b-256 cb882e04a96b78a371c843dbbb0fd1942cb2c04512def10f31cf725a94de93fe

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pyomo_ripopt-0.8.0-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 f0ae29d7e0b5807bceaef5a55da9049c5225302cb9826233b69ecbcfc2f3a1bb
MD5 a77b372467fc2d65f3db7133b5d09e57
BLAKE2b-256 f879ee07c590c19af3477435493d4120ae99876f6bf5d0ecb46a5ec95be042e1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pyomo_ripopt-0.8.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d6180479e4c4dd36739753039d7ccf60b64c353516cfe91457e01480d2f99d8b
MD5 73835fd4dc758b7aab006fab468c2c68
BLAKE2b-256 d5738187e9aafb7229144678745a27bda1bc381df5d085e3768843e5e0d56e73

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pyomo_ripopt-0.8.0-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 58da4ac47b71f43fa6e57d528fce954102fca28fd98432de9d9b21a0432d539f
MD5 b919387f7518c04503771363c4b67334
BLAKE2b-256 fd594476f241b88cf94ba639a3827ae9368d7ddd30127ccdd48280a4f726db9d

See more details on using hashes here.

Provenance

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