Skip to main content
Pre-release

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

OMMX adapter for SCIP

This package provides an adapter for the SCIP from OMMX

Usage

ommx-pyscipopt-adapter can be installed from PyPI as follows:

pip install ommx-pyscipopt-adapter

SCIP can be used through ommx-pyscipopt-adapter by using the following:

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,
    constraints={},
    sense=Sense.Minimize,
)

# Create `ommx.Solution` from the `pyscipot.Model`
ommx_solution = OMMXPySCIPOptAdapter.solve(ommx_instance)

print(ommx_solution)

Initial solution by variable name

Resolve names and tuple subscripts against the instance you are solving, so the same initial values can be reused when variable IDs change.

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)

For scalar variables use () as the subscript key. The conversion raises KeyError for unknown names/subscripts and ValueError for ambiguous pairs.

Reference

TBW

Metadata

Release files for ommx-pyscipopt-adapter 3.0.0b8

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.0b8
File Size Uploaded Provenance Actions
ommx_pyscipopt_adapter-3.0.0b8.tar.gz 25.7 kB With provenance Details for ommx_pyscipopt_adapter-3.0.0b8.tar.gz

Release files / ommx_pyscipopt_adapter-3.0.0b8.tar.gz

Download URL ommx_pyscipopt_adapter-3.0.0b8.tar.gz
Size 25.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6515403237702a665a9c59e3a404a4a02c0e79f82244a5c468764f07ce388ac9
BLAKE2b-256 checksum
How to use checksums
3d4c9eb7506aea611f45c92ed2aafc6fe5b3e81888eed8f36e6e37460379c21b
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 Oct 28, 2026.

Transparency log

Security for ommx-pyscipopt-adapter 3.0.0b8

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.0b8.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 Oct 28, 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