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.2.tar.gz
(61.2 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.2-cp314-cp314-win_amd64.whl
(145.4 kB
view details)
File details
Details for the file upmp-0.1.2.tar.gz.
File metadata
- Download URL: upmp-0.1.2.tar.gz
- Upload date:
- Size: 61.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82f74a83d17f911e254ed8278a2bd34f395a32a063d881b31ad97dac8ef33e83
|
|
| MD5 |
a30ee35101d72f7f0e54333d704b1804
|
|
| BLAKE2b-256 |
e58d25eadc1295d889f07526795cf265099353460488d44a2201ad9da5ef2ae0
|
File details
Details for the file upmp-0.1.2-cp314-cp314-win_amd64.whl.
File metadata
- Download URL: upmp-0.1.2-cp314-cp314-win_amd64.whl
- Upload date:
- Size: 145.4 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 |
db9c4b0736401ff1c822949a6a5d666fdab6911fff165dbe92f63b0badea8a4c
|
|
| MD5 |
c5fa3f5e14f9acede089091c332b2b75
|
|
| BLAKE2b-256 |
f13094f0eda82acd356354d79b2eda0c0e0491e696aaccb5a12f154c7734d312
|