Compilation#

Installing#

The most reliable method is building wheels and testing with cibuildwheel:

python -m cibuildwheel --output-dir wheelhouse
pip install --force-reinstall wheelhouse/*.whl

Optional CPLEX-backed MaxHS / iMaxHS#

MaxHS and iMaxHS are optional and controlled by build environment variables.

Default behavior is auto-detect:

  • if CPLEX headers + libraries are found, extensions are built

  • otherwise they are skipped

Relevant variables:

  • CPLEX_INC_DIR

  • CPLEX_LIB_DIR

  • HERMAX_ENABLE_MAXHS (auto | on | off)

  • HERMAX_ENABLE_IMAXHS (auto | on | off)

Optional OptiLog Formula Support#

Hermax can optionally accept OptiLog WCNF formulas by converting them to PySAT WCNF internally.

pip install optilog==0.6.1

This dependency is optional because OptiLog has a separate proprietary licensing model.