Skip to content

Commit bb5427a

Browse files
committed
add update details from v0.10.0 to updates.md
- replace max_iter_num with max_iter in tutorial.ipynb and usecases.md to be consistent with the codebase.
1 parent 22e7d7e commit bb5427a

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ $ pip install path4gmns
3535
```
3636

3737
> [!IMPORTANT]
38-
> v0.10.0 introduces the link-based UE that adopts the Frank-Wolfe algorithm with line search. As it does not preserve any paths, each iteration runs faster than the path-based procedure with less memory footprint. Please **discard all old versions**.
38+
> v0.10.0 introduces the link-based UE that adopts the Frank-Wolfe algorithm with line search. As it does not preserve any paths, each iteration runs faster than the path-based procedure with less memory footprint. Besides, it fixes potential issues on invoking DTALite. Please **discard all old versions**.
3939
4040
> [!WARNING]
4141
> 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.

docs/source/updates.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,12 @@
7070
68. Adaptively display the path distance per the length unit passed to read_network() (v0.9.10)
7171
69. Introduce get_shortest_path_tree() to return the shortest path tree from a given source node (v0.9.10)
7272
70. Remove deprecated APIs including perform_column_generation(), perform_network_assignment(), perform_network_assignment(), and perform_network_assignment_DTALite() (v0.9.10)
73+
71. Introduce generic downloading functions to replace download_sample_data_sets() (v0.10.0)
74+
72. Introduce DTALiteClassic() and DTALiteMultimodal() to replace perform_network_assignment_DTALite() and
75+
run_DTALite(), respectively (v0.10.0)
76+
73. Add multiprocessing exception handling to DTALiteClassic() (v0.10.0)
77+
74. Fix segmentation fault on DTALiteMultimodal() with Python 3.8 on Linux (v0.10.0)
78+
75. Introduce link-based UE with find_ue_fw() (v0.10.0)
79+
76. Optimize IO by precluding path geometry as default when outputting route_assignment.csv (v0.10.0)
7380

7481
Detailed update information can be found in [Releases](https://github.com/jdlph/Path4GMNS/releases).

docs/source/usecases.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ pg.output_link_performance(network)
236236

237237
# NOTE that pg.output_columns(network) is NOT available under the link-based UE!
238238
```
239-
find_ue_fw() will terminate when it reaches the maximum number of iterations (**max_iter_num**) or the target relative gap (**rel_gap_tolerance**), whichever comes first. The default values are **40** and **1e-04**, respectively. You can specify
239+
find_ue_fw() will terminate when it reaches the maximum number of iterations (**max_iter**) or the target relative gap (**rel_gap_tolerance**), whichever comes first. The default values are **40** and **1e-04**, respectively. You can specify
240240
their values toward your own need like below.
241241

242242
```python
@@ -245,7 +245,7 @@ import path4gmns as pg
245245
network = pg.read_network()
246246
pg.read_demand(network)
247247

248-
pg.find_ue_fw(network, max_iter_num=100, rel_gap_tolerance=1e-6)
248+
pg.find_ue_fw(network, max_iter=100, rel_gap_tolerance=1e-6)
249249
pg.output_link_performance(network)
250250

251251
# NOTE that pg.output_columns(network) is NOT available under the link-based UE!

path4gmns/fw.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def find_ue_fw(ui, max_iter=40, rel_gap_tolerance=1e-04):
199199
200200
Note
201201
----
202-
You will need to call output_link_performance() toget the assignment
202+
You will need to call output_link_performance() to get the assignment
203203
results, i.e., volumes and other link attributes on each link (in
204204
link_performance.csv).
205205
"""

tutorial/tutorial.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@
387387
"id": "bf333d6c",
388388
"metadata": {},
389389
"source": [
390-
"find_ue_fw() will terminate when it reaches the maximum number of iterations (**max_iter_num**) or the target relative gap (**rel_gap_tolerance**), whichever comes first. The default values are **40** and **1e-04**, respectively. You can adjust\n",
390+
"find_ue_fw() will terminate when it reaches the maximum number of iterations (**max_iter**) or the target relative gap (**rel_gap_tolerance**), whichever comes first. The default values are **40** and **1e-04**, respectively. You can adjust\n",
391391
"their values toward your own need like below."
392392
]
393393
},
@@ -401,7 +401,7 @@
401401
"network = pg.read_network()\n",
402402
"pg.read_demand(network)\n",
403403
"\n",
404-
"pg.find_ue_fw(network, max_iter_num=100, rel_gap_tolerance=1e-6)\n",
404+
"pg.find_ue_fw(network, max_iter=100, rel_gap_tolerance=1e-6)\n",
405405
"pg.output_link_performance(network)\n",
406406
"\n",
407407
"# NOTE that pg.output_columns(network) is NOT available under the link-based UE!"

0 commit comments

Comments
 (0)