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.0b9

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

Release files / ommx_pyscipopt_adapter-3.0.0b9.tar.gz

Download URL ommx_pyscipopt_adapter-3.0.0b9.tar.gz
Size 28.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c752b8966c20ca3b6cfe2b02f451aa2dc7c8bf56d4ce23c826af7a71bb760bf1
BLAKE2b-256 checksum
How to use checksums
dd3002b34866b7b2828dde9d07c8087fa863acc2b5a689375a28cfe0e3c11311
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 4, 2026.

Transparency log

Security for ommx-pyscipopt-adapter 3.0.0b9

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.0b9.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 4, 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