$npx skillfedfor your agent

lapx

Linear assignment problem solvers, including single and batch solvers.

Worth itPyPI Software DevelopmentReleased Jan 2026727.9K downloads / moMITPlatform wheel

Decision gist · record as of 2026-08-14

platform wheels — lapx-0.9.4-cp310-cp310-macosx_10_9_x86_64.whl · lapx-0.9.4-cp310-cp310-macosx_11_0_arm64.whl · lapx-0.9.4-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
v0.9.4 · released 2026-01-07 · Python >=3.7 · 1 runtime deps: numpy

Yes. lapx is actively maintained, has no known vulnerabilities, and offers a stable, performant implementation of linear assignment solvers with multiple output formats and batch support. Install it if you need to solve assignment problems and want more flexibility or batch processing capabilities. The requirement not to install both lap and lapx simultaneously is a minor gotcha but well-documented.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires numpy; import name is lapx; do not install both lap and lapx simultaneously as they provide the same import namespace.
  • Medium install friction due to compiled wheels; pre-built binaries cover Python 3.10–3.14 and major platforms (macOS, Linux, Windows, ARM), reducing build overhead.
  • Active maintenance with recent releases and no reported vulnerabilities.

License · maintenance · safety

MIT (permissive) — MIT license permits unrestricted use, modification, and distribution in commercial and private projects with minimal attribution requirements.

last release 2026-01-07 (219 days) · last repo commit 2026-03-03 · 44 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 727,850 downloads/mo, #5,214 on PyPI

Verify before relying

pip install lapx
import numpy as np
import lapx

cost_matrix = np.random.rand(100, 150)
total_cost, row_indices, col_indices = lapx.lapjvx(cost_matrix, extend_cost=True, return_cost=True)
assignments = np.column_stack((row_indices, col_indices))
  • Performance comparison to scipy.optimize.linear_sum_assignment and other LAP solvers under typical workloads.
  • Numerical stability guarantees or known edge cases (e.g., degenerate cost matrices, very large or very small values).
  • Memory usage characteristics for batch operations on large matrices.
Same gist for agents: .md · .json

What it is and what it does

lapx is a linear assignment problem solver package that evolved from maintaining an earlier lap package. It implements Jonker-Volgenant algorithms optimized for both dense (LAPJV) and sparse (LAPMOD) cost matrices, solving the problem of finding optimal one-to-one assignments between two sets of items to minimize total cost. The package supports square and rectangular matrices, single-problem and batch processing, and offers multiple output formats to match different downstream use cases.

The core solver functions are based on academic papers and public-domain implementations. lapx provides lapjv, lapmod, lapjvx (SciPy-style output), lapjvxa (direct assignment array output), lapjvc (optimized for square matrices), lapjvs and lapjvsa (sparse variants), and batch versions of each. It depends only on numpy and is available as pre-built wheels for Python 3.7 through 3.14 across macOS, Linux, Windows, and ARM architectures, with optional performance tuning via environment variables during source builds.

Use it for

  • Object tracking: match detected objects across video frames by minimizing distance or appearance cost.
  • Bipartite graph matching: find optimal pairings between two sets of nodes in applications like job scheduling or resource allocation.
  • Data association: assign sensor measurements to tracked targets in multi-object tracking systems.
  • Batch processing: solve multiple assignment problems in parallel using batch solver functions.
  • Rectangular assignment: handle cases where the number of rows and columns differ, extending costs as needed.

Worth the install?

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

Worth it

Yes.

lapx is actively maintained, has no known vulnerabilities, and offers a stable, performant implementation of linear assignment solvers with multiple output formats and batch support. Install it if you need to solve assignment problems and want more flexibility or batch processing capabilities. The requirement not to install both lap and lapx simultaneously is a minor gotcha but well-documented.

Install

lapx on PyPI

Before you install

Medium install friction due to compiled wheels; pre-built binaries cover Python 3.10–3.14 and major platforms (macOS, Linux, Windows, ARM), reducing build overhead. Active maintenance with recent releases and no reported vulnerabilities.

Requires numpy; import name is lapx; do not install both lap and lapx simultaneously as they provide the same import namespace.

License in practice

MIT license permits unrestricted use, modification, and distribution in commercial and private projects with minimal attribution requirements.

Quickstart

pip install lapx
import numpy as np
import lapx

cost_matrix = np.random.rand(100, 150)
total_cost, row_indices, col_indices = lapx.lapjvx(cost_matrix, extend_cost=True, return_cost=True)
assignments = np.column_stack((row_indices, col_indices))

Verify before relying

  • Performance comparison to scipy.optimize.linear_sum_assignment and other LAP solvers under typical workloads.
  • Numerical stability guarantees or known edge cases (e.g., degenerate cost matrices, very large or very small values).
  • Memory usage characteristics for batch operations on large matrices.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.7
Install frictionMedium. Platform-specific wheel
Runtime dependencies
1 package
numpy
MaintenanceActively maintained 219 days since the last release
Last repo commit
First released
Downloads727,850 / month, #5,214 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 :: MathematicsTopic :: Software DevelopmentTopic :: Software Development :: Libraries

Evidence: lapx-0.9.4-cp310-cp310-macosx_10_9_x86_64.whl; lapx-0.9.4-cp310-cp310-macosx_11_0_arm64.whl; lapx-0.9.4-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl; lapx-0.9.4-cp310-cp310-manylinux_2_24_armv7l.manylinux_2_31_armv7l.whl; lapx-0.9.4-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl; lapx-0.9.4-cp310-cp310-musllinux_1_2_aarch64.whl; lapx-0.9.4-cp310-cp310-musllinux_1_2_armv7l.whl; lapx-0.9.4-cp310-cp310-musllinux_1_2_x86_64.whl; lapx-0.9.4-cp310-cp310-win_amd64.whl; lapx-0.9.4-cp310-cp310-win_arm64.whl; lapx-0.9.4-cp311-cp311-macosx_10_9_x86_64.whl; lapx-0.9.4-cp311-cp311-macosx_11_0_arm64.whl; lapx-0.9.4-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl; lapx-0.9.4-cp311-cp311-manylinux_2_24_armv7l.manylinux_2_31_armv7l.whl; lapx-0.9.4-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl; lapx-0.9.4-cp311-cp311-musllinux_1_2_aarch64.whl; lapx-0.9.4-cp311-cp311-musllinux_1_2_armv7l.whl; lapx-0.9.4-cp311-cp311-musllinux_1_2_x86_64.whl; lapx-0.9.4-cp311-cp311-win_amd64.whl; lapx-0.9.4-cp311-cp311-win_arm64.whl

Tags

Capabilities
linear assignment problem solverjonker-volgenant algorithmlapjv lapmodoptimal matching algorithmcost matrix assignmentbatch assignment solverhungarian algorithm alternative
Topics
optimizationmatching-algorithmbatch-processing
PyPI keywords
Linear Assignment Problem SolverLAP solverJonker-Volgenant AlgorithmLAPJVLAPMODlaplapxlapjvxlapjvxalapjvclapjvslapjvsalapjvx_batchlapjvxa_batchlapjvs_batchlapjvsa_batch

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 › “linear assignment problem solver”

  • lapxSolves linear assignment problems using Jonker-Volgenant and related…
  • lapSolves the linear assignment problem using the Jonker-Volgenant…
  • ortoolsOR-Tools provides constraint programming, linear and mixed-integer…

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 lap · munkres · nvidia-cusolver · qpsolvers · ortools · PuLP · nvidia-cusolver-cu12 · linear-operator · Mosek · lineax

Further reading