You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ $ pip install path4gmns
38
38
> v0.9.10 comes with bug fix on [find_shortest_path()](https://github.com/jdlph/Path4GMNS/issues/58), new functionality on obtaining the shortest path tree, and performance improvement on the UE module. Please **discard all old versions**.
39
39
40
40
> [!WARNING]
41
-
> The path cost from find_shortest_path() is in travel time rather than distance for v0.9.9.post1 and any earlier versions. See [Issue #58](https://github.com/jdlph/Path4GMNS/issues/58) for details. v0.9.10 offers the correct implementation.
41
+
> find_shortest_path() computes the shortest path per travel time rather than distance for v0.9.9.post1 and any earlier versions. See [Issue #58](https://github.com/jdlph/Path4GMNS/issues/58) for details. v0.9.10 offers the correct implementation with the flexibility to switch between time and distance.
42
42
43
43
> [!WARNING]
44
44
> Invoking find_shortest_path() and find_ue() in the same code snippet will lead to [OSError: exception: access violation reading ...](https://github.com/jdlph/Path4GMNS/issues/51#issue-2601430024) for v0.9.9 and any version before.
# retrieve the shortest path from the source node (i.e., node 1) to node 2
104
106
print(f'shortest path (link id) from node 1 to node 2: {sp_tree_link[2]}')
105
107
# retrieve the shortest path from the source node (i.e., node 1) to node 3
106
108
print(f'shortest path (link id) from node 1 to node 3: {sp_tree_link[3]}')
107
109
```
108
110
109
-
Similarly, you can get the distance-based shortest path tree as well. The distance unit is in line with the one passed to read_network(), which is miles by default.
111
+
Similarly, you can get the distance-based shortest path tree as well. The distance unit is in line with the one passed to read_network().
110
112
111
113
```python
112
114
import path4gmns as pg
113
115
114
116
network = pg.read_network()
115
117
116
-
# get shortest path tree (in node sequences) from node 1 (cost is measured by distance (in miles))
118
+
# get shortest path tree (in node sequences) from node 1
# retrieve the shortest path from the source node (i.e., node 1) to node 2
148
153
print(f'shortest path (link id) from node 1 to node 2: {sp_tree_link[2]}')
@@ -192,7 +197,7 @@ pg.output_columns(network)
192
197
pg.output_link_performance(network)
193
198
```
194
199
195
-
v0.9.10 provides users more flexibility to control UE convergency by returning the relative gap and passing the relative gap tolerance (i.e., the target relative gap). find_ue() will terminate when either column_upd_num or rel_gap_tolerance is reached.
200
+
v0.9.10 provides users more flexibility to control UE convergency with the relative gap tolerance (i.e., the target relative gap). find_ue() will terminate when either column_upd_num or rel_gap_tolerance is reached and return the final relative gap.
A special event often comes with capacity reduction over affected links, which is now supported in v0.8.4 or higher. You can introduce one special event for each demand period in settings.yml as below.
223
+
A special event often comes with capacity reduction over affected links, which is supported in v0.8.4 or higher. You can introduce one special event for each demand period in settings.yml as below.
Copy file name to clipboardExpand all lines: tutorial/tutorial.ipynb
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -832,7 +832,7 @@
832
832
"\n",
833
833
"Starting from v0.9.6, you could conduct the above tasks using the [Multimodal DTALite](https://github.com/asu-trans-ai-lab/DTALite/tree/feature/multimodal). No parameters are needed. \n",
834
834
"\n",
835
-
"Note that running it with the current input will lead to *kernel crash* as it requires a **different [settings.yml](https://github.com/asu-trans-ai-lab/DTALite/blob/feature/multimodal/data/01_4_node_network/minimum_input/settings.yml)**! You can test this API with [this data set](https://github.com/asu-trans-ai-lab/DTALite/tree/feature/multimodal/data). "
835
+
"**Note that** running it with the current input will lead to *kernel crash* as it requires a **different [settings.yml](https://github.com/asu-trans-ai-lab/DTALite/blob/feature/multimodal/data/01_4_node_network/minimum_input/settings.yml)**! You can test this API with [this data set](https://github.com/asu-trans-ai-lab/DTALite/tree/feature/multimodal/data). "
0 commit comments