$npx skillfedfor your agent

lap

Linear Assignment Problem solver (LAPJV/LAPMOD).

Worth itPyPI Software DevelopmentReleased Feb 20261.7M downloads / moBSD-2-ClausePlatform wheel

Decision gist · record as of 2026-08-14

platform wheels — lap-0.5.13-cp310-cp310-macosx_10_9_x86_64.whl · lap-0.5.13-cp310-cp310-macosx_11_0_arm64.whl · lap-0.5.13-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
v0.5.13 · released 2026-02-23 · Python >=3.7 · 1 runtime deps: numpy

Yes. lap is a focused, well-maintained solver for a specific algorithmic problem with no known vulnerabilities, permissive licensing, and broad platform coverage. Install it if you need to solve linear assignment problems and prefer a specialized implementation over a general-purpose optimizer. The medium install friction is offset by pre-built wheels and active maintenance.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires a C++ compiler if building from source; pre-built wheels available for common platforms eliminate this for most users.
  • Medium install friction due to compiled C++ components, but pre-built wheels cover modern Python versions (3.7–3.14) across Windows, Linux, and macOS architectures.
  • Repository is actively maintained with recent commits.

License · maintenance · safety

BSD-2-Clause (permissive) — Released under BSD-2-Clause (permissive), allowing commercial and private use with minimal restrictions—suitable for most projects.

last release 2026-02-23 (172 days) · last repo commit 2026-02-23 · 252 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,749,785 downloads/mo, #3,594 on PyPI

Verify before relying

pip install lap

import lap
import numpy as np

cost, x, y = lap.lapjv(np.random.rand(4, 5), extend_cost=True)
print(cost, x, y)
  • Performance comparison with scipy.optimize.linear_sum_assignment or other solvers on typical problem sizes.
  • Exact behavior and performance trade-off threshold between LAPJV and LAPMOD for sparse matrices.
Same gist for agents: .md · .json

What it is and what it does

lap is a specialized solver for the linear assignment problem—the task of finding a minimum-cost perfect matching between two sets of items. It implements two algorithms from academic literature: LAPJV (Jonker-Volgenant) for dense cost matrices and LAPMOD (Volgenant-Mordecai) for sparse ones. The package takes a cost matrix as input and returns the total assignment cost plus two index arrays describing which row is assigned to which column and vice versa.

The solver is built from scratch based on published papers and a public-domain Pascal reference implementation. It returns assignment indices rather than a full assignment matrix, keeping the output compact. The package has wheels for Python 3.7–3.14 across Windows, Linux, and macOS, with support for both numpy 1.x and 2.x, making it straightforward to install on most systems.

Use it for

  • Object tracking: match detected objects across video frames by minimizing spatial distance cost.
  • Bipartite graph matching: find optimal pairings in workforce scheduling or resource allocation problems.
  • Image registration: align keypoints between two images by minimizing coordinate mismatch cost.
  • Data association: link sensor measurements to tracked targets in multi-object tracking systems.
  • Auction algorithms: solve procurement or assignment auctions where cost represents bid or preference.
  • Sequence alignment: match elements between two ordered sequences to minimize dissimilarity.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

lap is a focused, well-maintained solver for a specific algorithmic problem with no known vulnerabilities, permissive licensing, and broad platform coverage. Install it if you need to solve linear assignment problems and prefer a specialized implementation over a general-purpose optimizer. The medium install friction is offset by pre-built wheels and active maintenance.

Install

lap on PyPI

Before you install

Medium install friction due to compiled C++ components, but pre-built wheels cover modern Python versions (3.7–3.14) across Windows, Linux, and macOS architectures. Repository is actively maintained with recent commits.

Requires a C++ compiler if building from source; pre-built wheels available for common platforms eliminate this for most users.

License in practice

Released under BSD-2-Clause (permissive), allowing commercial and private use with minimal restrictions—suitable for most projects.

Quickstart

pip install lap

import lap
import numpy as np

cost, x, y = lap.lapjv(np.random.rand(4, 5), extend_cost=True)
print(cost, x, y)

Verify before relying

  • Performance comparison with scipy.optimize.linear_sum_assignment or other solvers on typical problem sizes.
  • Exact behavior and performance trade-off threshold between LAPJV and LAPMOD for sparse matrices.

Package facts

LicenseBSD-2-Clause permissive
Python supportSupports the current Python release >=3.7
Install frictionMedium. Platform-specific wheel
Runtime dependencies
1 package
numpy
MaintenanceActively maintained 172 days since the last release
Last repo commit
First released
Downloads1,749,785 / month, #3,594 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaEnvironment :: ConsoleIntended Audience :: DevelopersIntended Audience :: EducationIntended Audience :: Science/ResearchOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: POSIXOperating System :: UnixProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: EducationTopic :: Education :: TestingTopic :: Scientific/EngineeringTopic :: Scientific/Engineering :: Artificial IntelligenceTopic :: Scientific/Engineering :: Image RecognitionTopic :: Scientific/Engineering :: MathematicsTopic :: Software Development

Evidence: lap-0.5.13-cp310-cp310-macosx_10_9_x86_64.whl; lap-0.5.13-cp310-cp310-macosx_11_0_arm64.whl; lap-0.5.13-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl; lap-0.5.13-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; lap-0.5.13-cp310-cp310-musllinux_1_2_aarch64.whl; lap-0.5.13-cp310-cp310-musllinux_1_2_x86_64.whl; lap-0.5.13-cp310-cp310-win_amd64.whl; lap-0.5.13-cp310-cp310-win_arm64.whl; lap-0.5.13-cp311-cp311-macosx_10_9_x86_64.whl; lap-0.5.13-cp311-cp311-macosx_11_0_arm64.whl; lap-0.5.13-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl; lap-0.5.13-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; lap-0.5.13-cp311-cp311-musllinux_1_2_aarch64.whl; lap-0.5.13-cp311-cp311-musllinux_1_2_x86_64.whl; lap-0.5.13-cp311-cp311-win_amd64.whl; lap-0.5.13-cp311-cp311-win_arm64.whl; lap-0.5.13-cp312-cp312-macosx_10_13_x86_64.whl; lap-0.5.13-cp312-cp312-macosx_11_0_arm64.whl; lap-0.5.13-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl; lap-0.5.13-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl

Tags

Capabilities
linear assignment problem solveroptimal matching algorithmLAPJV LAPMOD implementationcost matrix assignmentbipartite matching optimizationHungarian algorithm alternativeassignment cost minimization
Topics
optimizationgraph-algorithmsnumerical-computing
PyPI keywords
Linear AssignmentLAPJVLAPMODlaplapx

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “LAPJV LAPMOD implementation”

  • lapSolves the linear assignment problem using the Jonker-Volgenant…
  • lapxSolves linear assignment problems using Jonker-Volgenant and related…
  • py3rijndaelpy3rijndael provides a pure-Python implementation of the Rijndael…

Give your agent the search over MCP, or paste the wish link into any chat.

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.

permissive licensepure Python
323.3Mdownloads / mo

See also lapx · munkres · nvidia-cusolver · qdldl · tabmat · jenkspy · quadprog · nvidia-cusolver-cu12 · qpsolvers · leidenalg

Further reading