UPMP 0.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
upmp-0.1.2/.gitignore ADDED
@@ -0,0 +1,10 @@
1
+ build/
2
+ dist/
3
+ *.egg-info/
4
+ __pycache__/
5
+ .pytest_cache/
6
+ .venv/
7
+ .vscode/
8
+ *.pyd
9
+ *.so
10
+ *.dll
@@ -0,0 +1,17 @@
1
+ cmake_minimum_required(VERSION 3.15)
2
+
3
+ project(ida_star_cpp LANGUAGES CXX)
4
+
5
+ set(CMAKE_CXX_STANDARD 17)
6
+ set(CMAKE_CXX_STANDARD_REQUIRED ON)
7
+ set(CMAKE_CXX_EXTENSIONS OFF)
8
+
9
+ set(PYBIND11_FINDPYTHON ON)
10
+ find_package(pybind11 CONFIG REQUIRED)
11
+
12
+ pybind11_add_module(ida_star_cpp src/ida_star_cpp.cpp)
13
+
14
+ install(TARGETS ida_star_cpp
15
+ LIBRARY DESTINATION .
16
+ RUNTIME DESTINATION .
17
+ )
upmp-0.1.2/PKG-INFO ADDED
@@ -0,0 +1,77 @@
1
+ Metadata-Version: 2.2
2
+ Name: UPMP
3
+ Version: 0.1.2
4
+ Summary: Parallel IDA* solver written in C++ with pybind11
5
+ Author: Deniz Efe Yildiz
6
+ Requires-Python: >=3.9
7
+ Requires-Dist: ortools<10,>=9.12
8
+ Provides-Extra: animation
9
+ Requires-Dist: PySide6>=6.6; extra == "animation"
10
+ Requires-Dist: vtk>=9.3; extra == "animation"
11
+ Description-Content-Type: text/markdown
12
+
13
+ # UPMP
14
+
15
+ Parallel IDA* solver written in C++ with pybind11.
16
+
17
+ ## Installation
18
+
19
+ ```bash
20
+ pip install -e .
21
+ ```
22
+
23
+ ## Usage
24
+
25
+ ```python
26
+ from UPMP import idaStar
27
+
28
+ lanes = [
29
+ [1, 2, 3],
30
+ [1, 2, 3],
31
+ ]
32
+
33
+ result = idaStar(
34
+ lanes,
35
+ log_fn=None,
36
+ stop_get_best_fn=None,
37
+ stop_fn=None,
38
+ use_dsg_tiebreak=False,
39
+ num_threads=8,
40
+ )
41
+
42
+ print(result)
43
+ ```
44
+
45
+ The native module is still available as `ida_star_cpp` for existing code.
46
+
47
+ ## Stack area generation
48
+
49
+ ```python
50
+ from UPMP import stackAreaGenerator
51
+
52
+ depo = stackAreaGenerator(
53
+ width=9,
54
+ length=9,
55
+ height=2,
56
+ fill_pct=60,
57
+ access="NSWE",
58
+ max_priority=5,
59
+ seed=123,
60
+ )
61
+
62
+ print(depo["priorities"])
63
+ ```
64
+
65
+ ## Access direction fixing
66
+
67
+ ```python
68
+ from UPMP import accessDirectionFixing, idaStar
69
+
70
+ lanes, lane_matrix = accessDirectionFixing(depo)
71
+
72
+ details, lane_matrix = accessDirectionFixing(depo, return_details=True)
73
+ print(details["lanes"])
74
+
75
+ # lane_matrix is padded to width * length * height slots.
76
+ result = idaStar(lane_matrix)
77
+ ```
upmp-0.1.2/README.md ADDED
@@ -0,0 +1,65 @@
1
+ # UPMP
2
+
3
+ Parallel IDA* solver written in C++ with pybind11.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ pip install -e .
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```python
14
+ from UPMP import idaStar
15
+
16
+ lanes = [
17
+ [1, 2, 3],
18
+ [1, 2, 3],
19
+ ]
20
+
21
+ result = idaStar(
22
+ lanes,
23
+ log_fn=None,
24
+ stop_get_best_fn=None,
25
+ stop_fn=None,
26
+ use_dsg_tiebreak=False,
27
+ num_threads=8,
28
+ )
29
+
30
+ print(result)
31
+ ```
32
+
33
+ The native module is still available as `ida_star_cpp` for existing code.
34
+
35
+ ## Stack area generation
36
+
37
+ ```python
38
+ from UPMP import stackAreaGenerator
39
+
40
+ depo = stackAreaGenerator(
41
+ width=9,
42
+ length=9,
43
+ height=2,
44
+ fill_pct=60,
45
+ access="NSWE",
46
+ max_priority=5,
47
+ seed=123,
48
+ )
49
+
50
+ print(depo["priorities"])
51
+ ```
52
+
53
+ ## Access direction fixing
54
+
55
+ ```python
56
+ from UPMP import accessDirectionFixing, idaStar
57
+
58
+ lanes, lane_matrix = accessDirectionFixing(depo)
59
+
60
+ details, lane_matrix = accessDirectionFixing(depo, return_details=True)
61
+ print(details["lanes"])
62
+
63
+ # lane_matrix is padded to width * length * height slots.
64
+ result = idaStar(lane_matrix)
65
+ ```