Metadata-Version: 2.4
Name: ommx_highs_adapter
Version: 3.0.0rc1
Summary: An adapter between OMMX and HiGHS
Author-email: "Jij Inc." <info@j-ij.com>
Project-URL: Documentation, https://jij-inc-ommx.readthedocs-hosted.com/en/latest/autoapi/ommx_highs_adapter/index.html
Project-URL: Repository, https://github.com/Jij-Inc/ommx
Project-URL: Issues, https://github.com/Jij-Inc/ommx/issues
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: License :: OSI Approved :: Apache Software License
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.11
Description-Content-Type: text/markdown
Requires-Dist: ommx<4.0.0,>=3.0.0rc1
Requires-Dist: highspy>=1.9.0
Requires-Dist: numpy>=1.17.3

# OMMX adapter for HiGHS

Use HiGHS to solve a linear optimization problem expressed as an OMMX Instance. The adapter prepares a copy of the problem and evaluates the returned candidate in OMMX.

[Installation from a prerelease or `main`](https://jij-inc-ommx.readthedocs-hosted.com/en/latest/getting_started/install.html#install-highs-adapter) · [日本語の導入手順](https://jij-inc-ommx.readthedocs-hosted.com/ja/latest/getting_started/install.html#install-highs-adapter)

## Solve an OMMX problem

```python markdown-code-runner
from ommx_highs_adapter import OMMXHighsAdapter
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 = OMMXHighsAdapter.solve(ommx_instance)

print(ommx_solution)
```

## Reference

[HiGHS adapter API](https://jij-inc-ommx.readthedocs-hosted.com/en/latest/autoapi/ommx_highs_adapter/index.html#ommx_highs_adapter.OMMXHighsAdapter) · [日本語サイトのAPI Reference](https://jij-inc-ommx.readthedocs-hosted.com/ja/latest/autoapi/ommx_highs_adapter/index.html#ommx_highs_adapter.OMMXHighsAdapter)

For search progress, objective bounds and termination status, use the [HiGHS diagnostics reference](https://jij-inc-ommx.readthedocs-hosted.com/en/latest/autoapi/ommx_highs_adapter/index.html#ommx_highs_adapter.HighsDiagnosticsAnalyzer).
