Skip to main content

No project description provided

Project description

Primal LAP

A Primal Method for the Assignment Problem ( M. L. Balinski, R. E. Gomory,)

pip install balinski-and-gomory
from balinski_and_gomory import solve_slow, solve_hylac

import torch

n = 5
costs = torch.randint(1, 100, size=(n, n), dtype=torch.uint32)

print("Input cost matrix:")
print(costs)

print(solve_hylac(costs))

print(solve_slow(costs))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

balinski_and_gomory-0.0.3.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

balinski_and_gomory-0.0.3-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file balinski_and_gomory-0.0.3.tar.gz.

File metadata

  • Download URL: balinski_and_gomory-0.0.3.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for balinski_and_gomory-0.0.3.tar.gz
Algorithm Hash digest
SHA256 d99b449defa14bd47e00318f243503d63b22e4bcdb609a68058f36c969645f51
MD5 7586ee394f6b78ac61392f2bdb252e0e
BLAKE2b-256 c6c95eeb4c65fd4ae05ee63d4207ec6d57fa1d94d0f74182730b23d365733742

See more details on using hashes here.

File details

Details for the file balinski_and_gomory-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for balinski_and_gomory-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c214d2cca35fef7d2bd33c8cce21135d9cb4dfb39724f4e92ebeb1efc48a72be
MD5 f331447fe3644a677c77c2e05a91623e
BLAKE2b-256 a6b96d2954d4fe7a4d5435c9606358de7f2f4bb36efa08068ddbffca83079f6c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page