Skip to main content
Loss of provenance

A previous release had provenance metadata, but this release does not. View details.

Hermax: MaxSAT Optimization for Python

PyPI version PyPI wheel Python versions License: Apache-2.0 Documentation Status
Paper: SAT 2026 Windows x86 supported Linux x86 and ARM supported macOS x86 and ARM supported

Hermax Banner

Hermax is a Python bridge to high-performance MaxSAT backends, with a unified IPAMIR-inspired interface for hard clauses, soft literals, assumptions, and iterative optimization workflows.

Why Hermax

  • High-level modeling API (hermax.model) with typed variables, vectors, matrices, intervals, and lazy arithmetic.
  • Unified API across heterogeneous MaxSAT engines.
  • Incremental and non-incremental solver families
  • Scientific and reproducible workflow
  • Native compatibility with PySAT

Who Is This For?

Hermax is for combinatorially hard problems where:

  • finding even a good base solution is already difficult
  • the search state is mostly boolean

This is usually a better fit than MILP tooling when your problem is not mainly about floating-point structure, large integer arithmetic, or strong LP relaxations. In those cases, a MILP such as PuLP, SCIP, or Gurobi is often the more natural first choice.

If your problem is highly combinatorial but can benefit from a broader black-box CP approach, CP-SAT may also be a good alternative.

Hermax is especially relevant for:

  • engineers building repeated optimization workflows around hard clauses, soft literals, assumptions, and iterative solve loops,
  • users who already work with clauses, WCNF, or incremental solver-style APIs, and
  • researchers comparing MaxSAT backends behind a common Python interface.

Installation

Core install:

pip install hermax

Modeling Example

from hermax.model import Model

m = Model()

# Decision variables
x = m.int_vector("x", length=4, lb=0, ub=6)       # integer domain [0, 6]
use_bonus = m.bool("use_bonus")

# Hard constraints
m &= x.all_different()
m &= (x[0] + x[1] <= x[2] + 2)
m &= (x[3] >= 2).only_if(use_bonus)

# Prefer x[0] == 1, and charge 3 for using the bonus.
m.obj += 5 * (x[0] != 1)
m.obj += 3 * use_bonus

r = m.solve()  # auto-routes SAT/MaxSAT based on model content
print(r.status, r.cost)

Incremental MaxSAT Example

CoreTrail is Hermax’s native incremental core-guided MaxSAT solver.

from hermax.incremental import CoreTrail

solver = CoreTrail()
solver.add_clause([1, 2])   # hard
solver.set_soft(-1, 10)     # soft weight
solver.set_soft(-1, 6)      # update weight (last-wins)

ok = solver.solve(assumptions=[-2])
print("status:", solver.get_status().name)
if ok:
    print("cost:", solver.get_cost())
    print("model:", solver.get_model())

Citation

If you use Hermax in research, please cite:

@InProceedings{salviahornos_et_al:LIPIcs.SAT.2026.41,
  author = {Salvia Hornos, Josep Maria and Fern\'{a}ndez Cam\'{o}n, C\`{e}sar and Mateu Pi\~{n}ol, Carles},
  title = {{Hermax: A Unified MaxSAT Library}},
  booktitle = {29th International Conference on Theory and Applications of Satisfiability Testing (SAT 2026)},
  pages = {41:1--41:13},
  series = {Leibniz International Proceedings in Informatics (LIPIcs)},
  ISBN = {978-3-95977-431-4},
  ISSN = {1868-8969},
  year = {2026},
  volume = {377},
  editor = {Ignatiev, Alexey and Szeider, Stefan},
  publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f\"{u}r Informatik},
  address = {Dagstuhl, Germany},
  URL = {https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.SAT.2026.41},
  URN = {urn:nbn:de:0030-drops-263478},
  doi = {10.4230/LIPIcs.SAT.2026.41},
  annote = {Keywords: MaxSAT, Incremental Solving, IPAMIR, Python, Constraint modelling}
}

If you use CoreTrail, please also cite its solver description:

@article{hornos2026coretrail,
  title={CoreTrail and ShareTrail: Incremental Core-Guided MaxSAT Solvers},
  author={Hornos, Josep Maria Salvia and Ignatiev, Alexey and Marques-Silva, Joao},
  journal={MaxSAT Evaluation 2026: Solver and Benchmark Descriptions},
  pages={17},
  year={2026},
  url={https://hdl.handle.net/10138/640150}
}

Please also cite the backend solver papers relevant to your experiments; see the documentation acknowledgments, CITATION.cff, and NOTICE for the relevant references.

License

This repository is licensed under Apache License 2.0. See LICENSE. Third-party integrated solvers may have additional license terms.

Metadata

Release files for hermax 1.3.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Loss of provenance

These files do not have provenance metadata, despite files in a prior release including this data.

We recommend further investigation before installing these files. View details.

Built distributions (wheels)

Table of built distributions (wheels) for hermax 1.3.4
File Actions
hermax-1.3.4-cp315-cp315-win_amd64.whl CPython 3.15 CPython 3.15 Windows x86-64 Details for hermax-1.3.4-cp315-cp315-win_amd64.whl
hermax-1.3.4-cp315-cp315-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.15 CPython 3.15 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for hermax-1.3.4-cp315-cp315-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
hermax-1.3.4-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for hermax-1.3.4-cp314-cp314-win_amd64.whl
hermax-1.3.4-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for hermax-1.3.4-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
hermax-1.3.4-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for hermax-1.3.4-cp313-cp313-win_amd64.whl
hermax-1.3.4-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for hermax-1.3.4-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
hermax-1.3.4-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for hermax-1.3.4-cp312-cp312-win_amd64.whl
hermax-1.3.4-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for hermax-1.3.4-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
hermax-1.3.4-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for hermax-1.3.4-cp311-cp311-win_amd64.whl
hermax-1.3.4-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for hermax-1.3.4-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
hermax-1.3.4-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for hermax-1.3.4-cp310-cp310-win_amd64.whl
hermax-1.3.4-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ x86-64, Linux glibc 2.24+ x86-64 Details for hermax-1.3.4-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Total release size: 109.0 MB

Release files / hermax-1.3.4-cp315-cp315-win_amd64.whl

Loss of provenance

This file belongs to a release without provenance metadata, despite a prior release including this data.

We recommend further investigation before installing this file. View details.

Download URL hermax-1.3.4-cp315-cp315-win_amd64.whl
Size 9.8 MB
Tags CPython 3.15 Windows x86-64
SHA-256 checksum
How to use checksums
69aeb47c0a9b7cc21a44529ea1b57deb3d28c70e07800ce1b1367d6f9998569b
BLAKE2b-256 checksum
How to use checksums
cdd618af0c75b12301186d6c16bab1cd79f7bd733060a409aede0e2c30c3247b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Release files / hermax-1.3.4-cp315-cp315-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Loss of provenance

This file belongs to a release without provenance metadata, despite a prior release including this data.

We recommend further investigation before installing this file. View details.

Download URL hermax-1.3.4-cp315-cp315-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 8.4 MB
Tags CPython 3.15 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
4e01b1653314cd27dbf6d0cb6ab3fec98b24e959ab1023c9680110413c437e1d
BLAKE2b-256 checksum
How to use checksums
365e49ced0790890ab67a8d35bf47a0c2f768334bdcbf67e807d867a65d79710
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / hermax-1.3.4-cp314-cp314-win_amd64.whl

Loss of provenance

This file belongs to a release without provenance metadata, despite a prior release including this data.

We recommend further investigation before installing this file. View details.

Download URL hermax-1.3.4-cp314-cp314-win_amd64.whl
Size 9.8 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
e7ce0da4307481425fae46ddd29e46fac1e80da2767666a838b9e56a3fb948b2
BLAKE2b-256 checksum
How to use checksums
0b48a3b213e6023233928c054ab6c86a806432b97969621a6b3a054dce63e498
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Release files / hermax-1.3.4-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Loss of provenance

This file belongs to a release without provenance metadata, despite a prior release including this data.

We recommend further investigation before installing this file. View details.

Download URL hermax-1.3.4-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 8.4 MB
Tags CPython 3.14 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
6fff25c25efb463d40f9f23fb6485a56a2236063b6d10a9c24977178564955eb
BLAKE2b-256 checksum
How to use checksums
bd0c68c35b4896699b6d4d00a7695ac79f896434d092f9a745ee72d9143c6aaf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / hermax-1.3.4-cp313-cp313-win_amd64.whl

Loss of provenance

This file belongs to a release without provenance metadata, despite a prior release including this data.

We recommend further investigation before installing this file. View details.

Download URL hermax-1.3.4-cp313-cp313-win_amd64.whl
Size 9.8 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
0c16e5e66cf43fee5c999367dffd78d567e5cb8283c90e4c279b501ee42431d0
BLAKE2b-256 checksum
How to use checksums
70f64df6b129f2f161aa7212d9bc63f463d32676406b3303a62e42cf4b9e9e9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Release files / hermax-1.3.4-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Loss of provenance

This file belongs to a release without provenance metadata, despite a prior release including this data.

We recommend further investigation before installing this file. View details.

Download URL hermax-1.3.4-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 8.4 MB
Tags CPython 3.13 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
5078e40bef4593f21cfe8c1594d169b0ca4fa3d618b0c49546cac1861ee49519
BLAKE2b-256 checksum
How to use checksums
76e24c35d859fcc7d7edcf6eacfcee66613efabb90caf2ea67b4a6eedb2c76a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / hermax-1.3.4-cp312-cp312-win_amd64.whl

Loss of provenance

This file belongs to a release without provenance metadata, despite a prior release including this data.

We recommend further investigation before installing this file. View details.

Download URL hermax-1.3.4-cp312-cp312-win_amd64.whl
Size 9.7 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
6c9087677555930aea3e16f4d6722860d565c75eb6c017839ad452f5733f609b
BLAKE2b-256 checksum
How to use checksums
5413f9e1a1d7c52d859439299827899b01d53cf0e0362f8f8013b2de7bdc846d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Release files / hermax-1.3.4-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Loss of provenance

This file belongs to a release without provenance metadata, despite a prior release including this data.

We recommend further investigation before installing this file. View details.

Download URL hermax-1.3.4-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 8.4 MB
Tags CPython 3.12 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
2979dc6a27bd21ee12fd123674f3ca2a9def7a762f7d8773e32bb81d1d123839
BLAKE2b-256 checksum
How to use checksums
15f190f9580f3df68ccc6c9dbfc2aa8f00909e85fb9212967095c3ca7e73708d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / hermax-1.3.4-cp311-cp311-win_amd64.whl

Loss of provenance

This file belongs to a release without provenance metadata, despite a prior release including this data.

We recommend further investigation before installing this file. View details.

Download URL hermax-1.3.4-cp311-cp311-win_amd64.whl
Size 9.7 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
78e432a4833c37383ae3d1a1d645dabd9d8a8ae3e6eb4c2988a557305b05735a
BLAKE2b-256 checksum
How to use checksums
12b7086012f4fca2472d59a9dc955594f5bf5719ccb0fe02ddfe9547afe39247
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Release files / hermax-1.3.4-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Loss of provenance

This file belongs to a release without provenance metadata, despite a prior release including this data.

We recommend further investigation before installing this file. View details.

Download URL hermax-1.3.4-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 8.4 MB
Tags CPython 3.11 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
adaa4e06f32efddc4a45ec320c4b9811d921f693c1105a5aa6e9405230dadb05
BLAKE2b-256 checksum
How to use checksums
4e3f9b87dbdf44f6361c30043e09276239e08e22f74675da7f987fbed132d2f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / hermax-1.3.4-cp310-cp310-win_amd64.whl

Loss of provenance

This file belongs to a release without provenance metadata, despite a prior release including this data.

We recommend further investigation before installing this file. View details.

Download URL hermax-1.3.4-cp310-cp310-win_amd64.whl
Size 9.7 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
e043ef8429dc3b4b231a810c19f058a968907ea99309b16521a9f1768d80954a
BLAKE2b-256 checksum
How to use checksums
8880c6271d482b20382f259802d92d253db3455d5fdb6a9c8c205203330d777b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Release files / hermax-1.3.4-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Loss of provenance

This file belongs to a release without provenance metadata, despite a prior release including this data.

We recommend further investigation before installing this file. View details.

Download URL hermax-1.3.4-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 8.4 MB
Tags CPython 3.10 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
5a8b30ffb6374d0d5cd62b9463d1d1a60a8d6bdb82c313ae674d203e51bf2d91
BLAKE2b-256 checksum
How to use checksums
9d6d6c26418e936e8a60b4c9393ddec20fdb60f12cbb6da48e1f3e22d1a6b787
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for hermax 1.3.4

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.

Loss of provenance

A previous release of these files had provenance metadata, but this release does not.

While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.

Release comparison

  • Removed 1.3.3 18 files Partial provenance
  • Added 1.3.4 12 files Without provenance

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.

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