xipopt
xipopt solves nonlinear optimization problems written as JAX functions with Ipopt.
A problem is a pytree of variables, an objective and constraints, all plain JAX functions. xipopt compiles the function values and their derivatives into programs for the PJRT C API through cyxla. Ipopt's callbacks execute those programs directly from Cython, so a solve never enters the Python interpreter. The API follows JAX-CIP.
Installation
pip install xipopt
The wheels contain Ipopt with the MUMPS and SPRAL linear solvers, so nothing else needs installing. They exist for Linux, macOS on Apple silicon and Windows, on Python 3.11 and later.
Example
This is problem 71 of Hock and Schittkowski, which the Ipopt documentation uses as its example.
import jax.numpy as jnp
import xipopt as xip
def objective(x, params):
return x[0] * x[3] * (x[0] + x[1] + x[2]) + x[2]
problem = xip.Problem(
variables=xip.Variable(lower=1.0, upper=5.0, shape=(4,)),
objective=objective,
constraints=(
xip.Constraint(lambda x, params: jnp.prod(x), lower=25.0),
xip.Constraint(lambda x, params: jnp.sum(x**2), lower=40.0, upper=40.0),
),
)
solution = xip.solve(problem, jnp.array([1.0, 5.0, 5.0, 1.0]))
print(solution.status, solution.objective, solution.x)
assert solution.status is xip.Status.SOLVE_SUCCEEDED
assert abs(solution.objective - 17.0140173) < 1e-6
Documentation
The documentation has a user guide, an explanation of the design and the API reference.
License
Hippocratic License 3.0. The wheels bundle libraries under their own licenses, which licenses lists.
Metadata
Release files for xipopt 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| xipopt-0.1.0.tar.gz | 212.5 kB | With provenance | Details for xipopt-0.1.0.tar.gz |
Built distributions (wheels)
Total release size: 312.3 MB
Release files / xipopt-0.1.0.tar.gz
| Download URL | xipopt-0.1.0.tar.gz |
|---|---|
| Size | 212.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
58fccb7523f99286a4ad84b72a5ddec29c7f3720c975320cfb5809050f6da11c
|
|
BLAKE2b-256 checksum How to use checksums |
d523cb0c0708802a802c87c8bbd474a8546937da6c94a2eaca3b6c5e6bb58169
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / xipopt-0.1.0-cp314-cp314-win_amd64.whl
| Download URL | xipopt-0.1.0-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 21.8 MB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
dcb7c28b418eeb48838fad869713b11f04a9f5c42cffc5babc22e1f3bd9e98ff
|
|
BLAKE2b-256 checksum How to use checksums |
fa770dddc2d519dc7e9a7c93ac61486aabe92661faa14b74a3a21ae55464014d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / xipopt-0.1.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | xipopt-0.1.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 22.4 MB |
| Tags | CPython 3.14 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
2f496187f51db41ef2b2bc61ee271b216be66b5fac87247e4d8026459154c4bf
|
|
BLAKE2b-256 checksum How to use checksums |
89f3a43383869f0894a8f5408df4573675a5e66de8ce1ee6c53beeeee74a6298
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / xipopt-0.1.0-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
| Download URL | xipopt-0.1.0-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 18.3 MB |
| Tags | CPython 3.14 Linux glibc 2.24+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
242523ce498a0b36c987cacb2c49703b166e2f0a5e611f52ef66de269ba965db
|
|
BLAKE2b-256 checksum How to use checksums |
0180ef920e4ab0ffa0256202275e430ae697b96eac25451edaf506da4266a056
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / xipopt-0.1.0-cp314-cp314-macosx_11_0_arm64.whl
| Download URL | xipopt-0.1.0-cp314-cp314-macosx_11_0_arm64.whl |
|---|---|
| Size | 15.9 MB |
| Tags | CPython 3.14 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
efe8e3fb568081991217a1243544c6974bbf2de947a00471bb61437a8dd902bf
|
|
BLAKE2b-256 checksum How to use checksums |
a1ed20a1f5c35d10635e210ca907cfb44d751551f10057132d41e5d9f8691577
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / xipopt-0.1.0-cp313-cp313-win_amd64.whl
| Download URL | xipopt-0.1.0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 21.3 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
20d4fbc9a4c3e9f01c584b11bc86351d32a7b9050f80bfbd296bceb383d1a413
|
|
BLAKE2b-256 checksum How to use checksums |
7617bc1324a313de6021078ccec8af6b82e9446d5f94f04170bd9e996f666632
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / xipopt-0.1.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | xipopt-0.1.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 22.4 MB |
| Tags | CPython 3.13 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
1dcbc887c947f7e6e1c262110bef73e394d8880c0f680f41f65bf319cfafcbd5
|
|
BLAKE2b-256 checksum How to use checksums |
5cd1b45fd27f60ad8d6ecda696e95e6df8dce027cac31e05ec5b138e4aeeffc2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / xipopt-0.1.0-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
| Download URL | xipopt-0.1.0-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 18.3 MB |
| Tags | CPython 3.13 Linux glibc 2.24+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
166d16482555d37f3344ac26b93f2f1f2a65a167f09f16836011653a912e6a05
|
|
BLAKE2b-256 checksum How to use checksums |
268f9f7a0bf023cde20846c6179f6b7239bdbd3be43c45269ab37ecf3fd2234b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / xipopt-0.1.0-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | xipopt-0.1.0-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 15.9 MB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
80325348930f44c48a841992f1035ffcbf5c0db7f42980a16ff1d6d0fbd5fd0b
|
|
BLAKE2b-256 checksum How to use checksums |
fb9dbf469d1634f17c8c224fb9dc353069135c5b2397d10280359e44d3607ee0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / xipopt-0.1.0-cp312-cp312-win_amd64.whl
| Download URL | xipopt-0.1.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 21.3 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
c13e3a147c0bffed54c94f69fef6c3f837284c36fdcd42fca9f58ba9528763e3
|
|
BLAKE2b-256 checksum How to use checksums |
efd1bcb02cdddeea52aeed52f9302e4e6d5bed2346811b4885adc3683da239bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / xipopt-0.1.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | xipopt-0.1.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 22.4 MB |
| Tags | CPython 3.12 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
6274720d4ba8e5d6720b08a5acada6cb25fe8ecd9364697e3f7fb85a1f8db4bf
|
|
BLAKE2b-256 checksum How to use checksums |
ebc301409312701faf969da7a75096024656b47b832331897a85ad25f3bb2666
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / xipopt-0.1.0-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
| Download URL | xipopt-0.1.0-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 18.3 MB |
| Tags | CPython 3.12 Linux glibc 2.24+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
563d62468c9d27ced675788f9adb453f5151614ad44d79bb31aacfac4f933e52
|
|
BLAKE2b-256 checksum How to use checksums |
9f850a2750e0511a815c1a09ee29233e38377605a86997e2d42670255ba94e1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / xipopt-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | xipopt-0.1.0-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 15.9 MB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
458854f8d099cf30bcb4ec12646a771399506fff7e6ee8463279aa0c79c34a71
|
|
BLAKE2b-256 checksum How to use checksums |
ffe9768c128a71009fed8eb0efaa32956ab651a4339554444f38b959a7781af8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / xipopt-0.1.0-cp311-cp311-win_amd64.whl
| Download URL | xipopt-0.1.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 21.3 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
759a5cc203bb5937b9311a330772975babcf2aec513e643c7951139e13d28dac
|
|
BLAKE2b-256 checksum How to use checksums |
239948e2e2aabb54be82f722be0d4dfdf8c23abe56463ca558497a7717c33618
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / xipopt-0.1.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | xipopt-0.1.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 22.4 MB |
| Tags | CPython 3.11 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
525e1f88c1d32e0cac1bfabd8cd178b9d715cf6460218842237ae1a8dec7ad04
|
|
BLAKE2b-256 checksum How to use checksums |
b5686329ad3095f78a7f24a18696f0a7caf76c57659bf654565d7551245cfd0e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / xipopt-0.1.0-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
| Download URL | xipopt-0.1.0-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 18.3 MB |
| Tags | CPython 3.11 Linux glibc 2.24+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
c13cac9b80122306e035a6e77005dc1774dfbe7aa6cc73b5a34c916eca7f1260
|
|
BLAKE2b-256 checksum How to use checksums |
c08ebb315a85cdb6c56cc3e69f4086265743cefcb25155f835cae5b4593617e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / xipopt-0.1.0-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | xipopt-0.1.0-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 15.9 MB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
41299a209eb2410f6eea4c2253665f6bdbb3b5d6d0928b9a206324ad02c98abf
|
|
BLAKE2b-256 checksum How to use checksums |
adef0627c3910ee0290e47d4a15c49d8b561a854f7f3bd30bb5b6d59d2dc3568
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logSecurity for xipopt 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 17 files in this release have been uploaded with provenance metadata.
Attestation for xipopt-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.