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.6.2.tar.gz.
File metadata
- Download URL: ommx_highs_adapter-2.6.2.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16ab0c287ad0b8ba731f3137c5d4056d0ed0975ccefba36b2345505bb45f2cfe
|
|
| MD5 |
30d7665997313d63cdb26fa46980e343
|
|
| BLAKE2b-256 |
4ee2f77d4a13ea71853fe55f0b4095b2d1884d2d3954714758cb52883c2e3337
|
Provenance
The following attestation bundles were made for ommx_highs_adapter-2.6.2.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.6.2.tar.gz -
Subject digest:
16ab0c287ad0b8ba731f3137c5d4056d0ed0975ccefba36b2345505bb45f2cfe - Sigstore transparency entry: 2256966128
- Sigstore integration time:
-
Permalink:
Jij-Inc/ommx@9fe6fae384f7a0dc22573e7ee6e5e25b3b3ef19b -
Branch / Tag:
refs/tags/python-2.6.2 - Owner: https://github.com/Jij-Inc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release_python.yml@9fe6fae384f7a0dc22573e7ee6e5e25b3b3ef19b -
Trigger Event:
push
-
Statement type: