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

Uploaded Python 3

File details

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

File metadata

  • Download URL: balinski_and_gomory-0.0.8.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.8.tar.gz
Algorithm Hash digest
SHA256 bdcddd6b5b83dd75231afc53d8b8c4e5059dfba06e3362f5eb04e41a2fed30ef
MD5 d3819d1ad5f81e6f47294c7f619e3a64
BLAKE2b-256 37e0d4c279fd3e3489e3715d71a9f2904de8ae44f54384de685bdfa9398489de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for balinski_and_gomory-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 63486d36bbdf905f71a316f67e933aef4087e5a0d67b4b70f6f44af1d95d9658
MD5 5893461a684146138cc507359a595493
BLAKE2b-256 5c0519db4f68b7681f6e7a7854c0218f329b23c5566ef612532ef51a74793c14

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