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.5.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.5-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: balinski_and_gomory-0.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 851aac2a988b6e3382eb436ab3c9bd7a1e814e86917199aae14e2b8cfb1c99de
MD5 87282ceefd86ac3f9dca6c5771ed7705
BLAKE2b-256 e92d9b6c717dbba3a9b2c284649ced98e4596ee5d25b3d26b8dc85dc2df21551

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for balinski_and_gomory-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a6249f3317e6bf8369ba9765675023929d25b539303bef6f8be44b6f80c09e84
MD5 75fea699e5f2c8da051932b113d4c2ed
BLAKE2b-256 0fa1cbea39e21ca30cd590f14fc0c52a3fa5a939d8eed4d8b6ff79e8f8b6e8e6

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