ommx-highs-adapter
Provides an adapter to translate between OMMX and HiGHS
Usage
ommx-highs-adapter can be installed from PyPI as follows:
pip install ommx-highs-adapter
An example usage of HiGHS through this adapter:
from ommx_highs_adapter import OMMXHighsAdapter
from ommx.v1 import Instance, DecisionVariable
x1 = DecisionVariable.integer(1, lower=0, upper=5)
ommx_instance = Instance.from_components(
decision_variables=[x1],
objective=x1,
constraints=[],
sense=Instance.MINIMIZE,
)
# Create `ommx.v1.Solution` through `highspy.Highs`
ommx_solution = OMMXHighsAdapter.solve(ommx_instance)
print(ommx_solution)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file ommx_highs_adapter-2.8.0.tar.gz.
File metadata
- Download URL: ommx_highs_adapter-2.8.0.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a55fc56fca6e1e795a93280407c9c7f1dd1f1492d72d434c9f97f6d127c91a2
|
|
| MD5 |
c65f1d18c8e16afca18b420ba27f802a
|
|
| BLAKE2b-256 |
d61c02659a83708247cc113715ec576683665cd87c25ec87d33c48acbdefe6ff
|
Provenance
The following attestation bundles were made for ommx_highs_adapter-2.8.0.tar.gz:
Publisher:
release_python.yml on Jij-Inc/ommx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ommx_highs_adapter-2.8.0.tar.gz -
Subject digest:
9a55fc56fca6e1e795a93280407c9c7f1dd1f1492d72d434c9f97f6d127c91a2 - Sigstore transparency entry: 2791091702
- Sigstore integration time:
-
Permalink:
Jij-Inc/ommx@123fbdff4860d6322e0e9ea3fa5d7c1d4042e29b -
Branch / Tag:
refs/tags/python-2.8.0 - Owner: https://github.com/Jij-Inc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release_python.yml@123fbdff4860d6322e0e9ea3fa5d7c1d4042e29b -
Trigger Event:
push
-
Statement type: