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

Uploaded Python 3

File details

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

File metadata

  • Download URL: balinski_and_gomory-0.0.6.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.6.tar.gz
Algorithm Hash digest
SHA256 82525fd2cc1188ee640529cefdf3c7702b20542dff5b30e42ca36bb0f90239bb
MD5 805a208cce4c1d10d3f52d27b52dc113
BLAKE2b-256 5f7a926db6a5dd1da723122552a5be15045be8f41f9790199063e920e1802987

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for balinski_and_gomory-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1c5c6b25e70ae7097229cc6b8b00131ad9560ad0614ab3672316dbf640c86e18
MD5 0cd4463ff49d98153544c470fafd1baf
BLAKE2b-256 7db1234811fc1a0e4d72edbe92d2b246ce3ebb6a3b41a49d6b64e89b0487ba65

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