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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file balinski_and_gomory-0.0.7.tar.gz.
File metadata
- Download URL: balinski_and_gomory-0.0.7.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f8a4f75fbe23bd2f8f3af2418d54d042d9f48295cbb251e93a3596798a73935
|
|
| MD5 |
2ddf3263313d67b2a5f367f1f5c8515b
|
|
| BLAKE2b-256 |
4670919af2adebaafa4f549eb402619aa20b87ffc189ab031a167020d46665ee
|
File details
Details for the file balinski_and_gomory-0.0.7-py3-none-any.whl.
File metadata
- Download URL: balinski_and_gomory-0.0.7-py3-none-any.whl
- Upload date:
- Size: 1.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80d427c0e32173bd44043927dd98041019c0ee9b80f79f857c9ee637e6807e15
|
|
| MD5 |
82febd92a6372748c0ca5d2b1121e85d
|
|
| BLAKE2b-256 |
73a9bd311bf748c92685728beca62639779f006212fe0044e87db4a291a4e8bd
|