Parallel IDA* solver written in C++ with pybind11
Project description
UPMP
Parallel IDA* solver written in C++ with pybind11.
Installation
pip install -e .
Usage
from UPMP import idaStar
lanes = [
[1, 2, 3],
[1, 2, 3],
]
result = idaStar(
lanes,
log_fn=None,
stop_get_best_fn=None,
stop_fn=None,
use_dsg_tiebreak=False,
num_threads=8,
)
print(result)
The native module is still available as ida_star_cpp for existing code.
Stack area generation
from UPMP import stackAreaGenerator
depo = stackAreaGenerator(
width=9,
length=9,
height=2,
fill_pct=60,
access="NSWE",
max_priority=5,
seed=123,
)
print(depo["priorities"])
Access direction fixing
from UPMP import accessDirectionFixing, idaStar
lanes, lane_matrix = accessDirectionFixing(depo)
details, lane_matrix = accessDirectionFixing(depo, return_details=True)
print(details["lanes"])
# lane_matrix is padded to width * length * height slots.
result = idaStar(lane_matrix)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
upmp-0.1.3.tar.gz
(62.0 kB
view details)
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
upmp-0.1.3-cp314-cp314-win_amd64.whl
(146.3 kB
view details)
File details
Details for the file upmp-0.1.3.tar.gz.
File metadata
- Download URL: upmp-0.1.3.tar.gz
- Upload date:
- Size: 62.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b6988969c38421577f8bc8f17c5483b07aeb6881093f23bc17cfedca48b62c5
|
|
| MD5 |
ff53cbfa1d5cfdbd448d3e6b0586c40c
|
|
| BLAKE2b-256 |
0a98b10b8cbc31c7fb4647e76d60676322dba2f4a944c2b2eaeda8b5ef4fd9fd
|
File details
Details for the file upmp-0.1.3-cp314-cp314-win_amd64.whl.
File metadata
- Download URL: upmp-0.1.3-cp314-cp314-win_amd64.whl
- Upload date:
- Size: 146.3 kB
- Tags: CPython 3.14, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e2f2137cb5c74de4b08d852d30b0320f6aace0ebf5d1d19e7bb9c2f54c7481f
|
|
| MD5 |
47a05188d634e9f2f035d0eb4887afc8
|
|
| BLAKE2b-256 |
b9a3691652df562e899fbbc265175c889f4851ba66fcb96a1d529dfe8043eb13
|