Skip to content

A Rust library to transform integer and pseudo Boolean constraints into conjunctive normal form

License

Notifications You must be signed in to change notification settings

pindakaashq/pindakaas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pindakaas logo

A library to transform pseudo-Boolean and integer constraints into conjunctive normal form.

Supported Constraints

  • At most one (AMO)
    • Bitwise encoding
    • Ladder encoding
    • Pairwise encoding
  • Cardinality constraints
    • Sorting Network encoding
  • Boolean linear
    • Adder encoding
    • BDD encoding
    • Sequential Weight Counter encoding
    • Totalizer encoding
  • Integer (linear)
    • Direct / Domain / Unary encoding
    • Order encoding
    • Binary encoding

Installation and usage

Although the main pindakaas library is written in rust, it is also available from Python. (A C(++) interface is also under consideration).

Rust

cargo add pindakaas

Python

pip install pindakaas

Acknowledgements

The encoding algorithms implemented in this library are based partially on the following academic research.

  • TODO

This library is also heavily inspired by PBLib, an earlier library containing different encoding algorithms for pseudo-Boolean constraints. More information about PBLib can be found in its accompanying publication, and the source code for the library can be found on GitHub

This research was partially funded by the Australian Government through the Australian Research Council Industrial Transformation Training Centre in Optimisation Technologies, Integrated Methodologies, and Applications (OPTIMA), Project ID IC200100009

License

This library is made available under the MPL-2.0 license.

About

A Rust library to transform integer and pseudo Boolean constraints into conjunctive normal form

Topics

Resources

License

Stars

Watchers

Forks

Languages