Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

OMMX adapter for SCIP

Solve an OMMX Instance with SCIP through PySCIPOpt. The adapter can pass supported indicator and SOS1 constraints directly to SCIP.

Installation from a prerelease or main · 日本語の導入手順

Solve an OMMX problem

from ommx_pyscipopt_adapter import OMMXPySCIPOptAdapter
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 = OMMXPySCIPOptAdapter.solve(ommx_instance)

print(ommx_solution)

Supply a previous candidate by name

from ommx import Instance, NamedState
from ommx_pyscipopt_adapter import OMMXPySCIPOptAdapter

instance = Instance.maximize()
x = instance.new_integer("x", lower=0, upper=5, subscripts=[0])
y = instance.new_integer("x", lower=0, upper=5, subscripts=[1])
instance.objective = 2 * x + y
instance.add_constraint(x + y <= 5)

initial_values: NamedState = {"x": {(0,): 1.0, (1,): 4.0}}
solution = OMMXPySCIPOptAdapter.solve(instance, initial_state=initial_values)
assert solution.state.entries == {x.id: 5.0, y.id: 0.0}

# Explicit conversion is also available when you need an ommx.State.
state = instance.state_from_named_values(initial_values)

Reference

SCIP adapter API · 日本語サイトのAPI Reference

For the termination report and the bound/gap history, see the SCIP diagnostics reference.

Metadata

Release files for ommx-pyscipopt-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)

Source distribution for ommx-pyscipopt-adapter 3.0.0rc1
File Size Uploaded Provenance Actions
ommx_pyscipopt_adapter-3.0.0rc1.tar.gz 33.9 kB With provenance Details for ommx_pyscipopt_adapter-3.0.0rc1.tar.gz

Release files / ommx_pyscipopt_adapter-3.0.0rc1.tar.gz

Download URL ommx_pyscipopt_adapter-3.0.0rc1.tar.gz
Size 33.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2949aada43d8169b1cd8f3cf5161cc73aaa3b1fc27cc85bd22abd207a088ff56
BLAKE2b-256 checksum
How to use checksums
287cc5abca293eec3cc74dc34e29f484c6641c04ab429e1740b67d83ce83f4e0
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 log

Security for ommx-pyscipopt-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_pyscipopt_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 log

A 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.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page