Skip to main content

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.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` from the `pyscipot.Model`
ommx_solution = OMMXPySCIPOptAdapter.solve(ommx_instance)

print(ommx_solution)

SOS1 hints

use_sos1="auto" (the default) uses native SCIP SOS1 constraints when the hint's ordinary formulation can be safely replaced. The adapter checks the cardinality and link equations, variable bounds, and that auxiliary selectors are not used by the objective or other active constraints. If a hint cannot be validated, its ordinary constraints are kept.

Use use_sos1="forced" to require valid SOS1 hints; missing or unsupported hints raise OMMXPySCIPOptAdapterError with the reason. use_sos1="disabled" solves the ordinary formulation without consuming hints.

When a formulation is replaced, link-implied bounds are preserved in SCIP and auxiliary selector values are restored by both decode_to_state() and decode(). The original OMMX instance is unchanged, and the returned solution is evaluated against its original constraints. Binary members used as their own selectors remain solver variables.

If SCIP's numerical feasibility tolerance permits a state that cannot satisfy the original rows after restoration, decoding raises OMMXPySCIPOptAdapterError. Tighten SCIP's feasibility tolerance or use use_sos1="disabled" to retain the original rows in the solver.

Reference

TBW

Metadata

Release files for ommx-pyscipopt-adapter 2.9.2

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 2.9.2
File Size Uploaded
ommx_pyscipopt_adapter-2.9.2.tar.gz 17.7 kB Details

Release files / ommx_pyscipopt_adapter-2.9.2.tar.gz

Download URL ommx_pyscipopt_adapter-2.9.2.tar.gz
Size 17.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ffe117fcb701d4cc24f09d6b60c2b357235f5e7e4c8855bc68c1a65e7b4a55e8
BLAKE2b-256 checksum
How to use checksums
579b9c871ae28dc38b0fc2537a6dec246dcb8fff596c4520b0941da8733f9d71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 6, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2.9.2 This release

1 release file

2.9.1

1 release file

2.9.0

1 release file

2.8.0

1 release file

2.7.0

1 release file

2.6.3

1 release file

2.6.2

1 release file

2.6.1

1 release file

2.6.0

1 release file

2.5.2

1 release file

2.5.1

1 release file

2.5.0

1 release file

2.4.0

1 release file

2.3.6

1 release file

2.3.5

1 release file

2.3.4

1 release file

2.3.3

1 release file

2.3.2

1 release file

2.3.1

1 release file

2.3.0

1 release file

2.2.0

1 release file

2.1.0

1 release file

2.0.12

1 release file

2.0.11

1 release file

2.0.10

1 release file

2.0.9

1 release file

2.0.8

1 release file

2.0.7

1 release file

2.0.6

1 release file

2.0.5

1 release file

2.0.4

1 release file

2.0.3

1 release file

2.0.2

1 release file

2.0.1

1 release file

2.0.0

1 release file

1.9.5

1 release file

1.9.4

1 release file

1.9.3

1 release file

1.9.2

1 release file

1.9.1

1 release file

1.9.0

1 release file

1.8.6

1 release file

1.8.5

1 release file

1.8.4

1 release file

1.8.3

1 release file

1.8.2

1 release file

1.8.1

1 release file

1.8.0

1 release file

1.7.0

1 release file

1.6.0

1 release file

1.5.1

1 release file

1.5.0

1 release file

1.4.4

1 release file

1.4.3

1 release file

1.4.2

1 release file

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