Skip to content
rathaROGPublic

About

Linear assignment problem solvers — Single ✓ Batch ✓ Square ✓ Rectangular ✓

Topics

Resources

Stars

44 stars

Watchers

3 watching

Forks

Repository files navigation

🆕 What's new

- 2026/10/29: v0.13.0 improved performance on rectangular inputs for native R/H families.
- 2026/10/27: v0.12.0 improved performance on congested rectangular inputs for native R/H families.
- 2026/10/19: v0.11.0rc1 added the Rust and hybrid solvers: lapjvr, lapjvh, lapjvr_batch, and lapjvh_batch.
- 2026/09/07: v0.10.0rc1 added Python 3.15 support and lapmod_batch. It improved type hints, stability, and performance.


GitHub release Platforms Python Versions

Linear Assignment Problem Solvers · 𝕏

Single ✓ Batch ✓ Square ✓ Rectangular ✓

lapx started as a project to maintain Tomas Kazmar's lap, a Jonker-Volgenant solver package. It provides dense and sparse solvers for single matrices and batches. See the usage guide for all available functions.

For dedicated native solvers, see laprust (Rust, from lapjvr) and lapcpp (C++). Both packages provide lapjv and lapjv_batch.

💽 Installation

Install from PyPI:

Wheels PyPI version Total downloads Monthly downloads

python -m pip install lapx

Published wheels cover Python 3.9–3.15 on most platforms and architectures. See the package files for details. musllinux ARMv7 wheels include all pre-existing solvers but omit lapjvr, lapjvh, lapjvr_batch, and lapjvh_batch because native Rust build tools are unavailable.

For source builds, optional solver families, and compiler settings, see the installation guide.

🧪 Usage

Install the package as lapx and use import lap. Do not install lap and lapx together. Both packages provide the import name lap.

See the usage guide for single-matrix examples, batch examples, cost rules, and return formats.

🏆 Benchmark and Test

Horizontal bars compare single, batch, and tracking totals in seconds. Lower is better.

Totals sum the recorded case times with the original precision settings.

See the benchmark guide for commands, repeat controls, timing methods, and historical results.

See the solver test guide and the build and packaging guide to run the checks.

📝 License

NOTICE LICENSE

About

Linear assignment problem solvers — Single ✓ Batch ✓ Square ✓ Rectangular ✓

Topics

Resources

Stars

44 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages