This release is a pre-release and may not be stable for production use.
OMMX adapter for Python-MIP
Solve a linear OMMX Instance with Python-MIP, or import a Python-MIP model as an OMMX Instance to evaluate it or use another solver.
Installation from a prerelease or main · 日本語の導入手順
Solve an OMMX problem
from ommx_python_mip_adapter import OMMXPythonMIPAdapter
from ommx import DecisionVariable, Instance, Sense
x1 = DecisionVariable.integer(1, lower=0, upper=5)
ommx_instance = Instance.from_components(
decision_variables=[x1],
objective=x1,
active_constraints={},
sense=Sense.Minimize,
)
ommx_solution = OMMXPythonMIPAdapter.solve(ommx_instance)
print(ommx_solution)
Import a Python-MIP model
import mip
import ommx_python_mip_adapter as adapter
model = mip.Model()
x1 = model.add_var(name="1", var_type=mip.INTEGER, lb=0, ub=5)
x2 = model.add_var(name="2", var_type=mip.CONTINUOUS, lb=0, ub=5)
model.objective = -x1 - 2 * x2
model.add_constr(x1 + x2 - 6 <= 0)
ommx_instance = adapter.model_to_instance(model)
print(ommx_instance)
Reference
Python-MIP adapter API · 日本語サイトのAPI Reference
The model conversion reference covers the supported input and includes an executable example.
Metadata
Release files for ommx-python-mip-adapter 3.0.0rc1
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 |
|---|---|---|---|---|
| ommx_python_mip_adapter-3.0.0rc1.tar.gz | 14.2 kB | With provenance | Details for ommx_python_mip_adapter-3.0.0rc1.tar.gz |
Release files / ommx_python_mip_adapter-3.0.0rc1.tar.gz
| Download URL | ommx_python_mip_adapter-3.0.0rc1.tar.gz |
|---|---|
| Size | 14.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f2456cb37b080604e22cb4de09415ed7dbf2f2ebcfb0e8a1f95f4065d1cbffd2
|
|
BLAKE2b-256 checksum How to use checksums |
6e4a6d18885cb9d3c6dada2ab46b1a9c4102defc1720b561a63937889aa00d02
|
| 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 Nov 16, 2026.
Transparency logSecurity for ommx-python-mip-adapter 3.0.0rc1
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
1 file in this release has been uploaded with provenance metadata.
Attestation for ommx_python_mip_adapter-3.0.0rc1.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 Nov 16, 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.