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

Uploaded Python 3Windows x86-64

pyomo_ripopt-0.8.1-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.1-py3-none-manylinux_2_17_aarch64.whl (24.8 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

pyomo_ripopt-0.8.1-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.1.tar.gz.

File metadata

  • Download URL: pyomo_ripopt-0.8.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.8.1.tar.gz
Algorithm Hash digest
SHA256 ec4d3a48680fd324e8fb00aaab13bef5b3421b0662898185c0f8a516c29a2bb5
MD5 16f14ceda0a9940eb5e4c0017f4f1dd7
BLAKE2b-256 6ca8e339583b871fa8c3ed43cd7143956144ab83cba17bb5344402d440ab3a09

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pyomo_ripopt-0.8.1-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.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 f6c4de5b6ceb4395ea2df5575bff536105dfa4a25b9d21ca7037f53877bca9f1
MD5 6d973f15b5533dbfa51e513419249027
BLAKE2b-256 49af5b1de914a503c61d8cceaf6614b54fee6ed2d9d624daca6a9352b2456f70

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pyomo_ripopt-0.8.1-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 11e70fa3d583cd03ba2ff0ed129cc05261acb383e46819d9cdbcd733cb58bce1
MD5 59c7c1ba9366ea3624f635b47623f039
BLAKE2b-256 20d266876074e78aa5bb190d4677922fa861c2996ba435971d70842a3cc1efab

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pyomo_ripopt-0.8.1-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 0c80b010ce46a107f1b849b1c46adc5e55a223a6a439524462794791009b296f
MD5 19666f1a5cee178608876e5db6f2d6a1
BLAKE2b-256 14d09fa33dd3047e70b8914a72e0af60128fb1aad7a4e656a40469c582665484

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pyomo_ripopt-0.8.1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e97e648c1a03c67d22db7b1340709bbcaf95676fa7e5b4668313a5d25948f9f3
MD5 f5b7d60406353af0c503c894936231bb
BLAKE2b-256 2b0773b49044f723f364220355e5c815e6f6fe2e46472d3d6b44a00f46c0c33e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pyomo_ripopt-0.8.1-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 773ad45af4f528045d6a84660342cf1660d561f87b56ea0b3af26383ef21d98d
MD5 68b345f8842172cd4ef90ba3c080163d
BLAKE2b-256 c12cbaf06d089bb635ecfe15a6cbe9d67e031bf787a6fe82cc178928287636af

See more details on using hashes here.

Provenance

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