Skip to content

Commit

Permalink
Greeting! ML4CO-Kit 0.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
heatingma committed Feb 4, 2025
1 parent 6a368ae commit a35b17d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion ml4co_kit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,5 @@
from .learning import points_to_distmat, sparse_points


__version__ = "0.2.3"
__version__ = "0.2.4"
__author__ = "SJTU-ReThinkLab"
16 changes: 8 additions & 8 deletions ml4co_kit/solver/cvrp/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,11 +726,11 @@ def from_txt(
>>> solver = CVRPSolver()
# load data from ``.txt`` file
>>> solver.from_txt(file_path="examples/cvrp/txt/cvrp20_hgs_1s_6.13013.txt")
>>> solver.from_txt(file_path="examples/cvrp/txt/cvrp20.txt")
>>> solver.tours.shape
(10000, 27)
(16, 26)
>>> solver.points.shape
(10000, 20, 2)
(16, 20, 2)
"""
# check the file format
if not file_path.endswith(".txt"):
Expand Down Expand Up @@ -944,14 +944,14 @@ def to_vrplib_folder(
>>> solver = CVRPSolver()
# load data from ``.txt`` file
>>> solver.from_txt(file_path="examples/cvrp/txt/cvrp20_hgs_1s_6.13013.txt")
>>> solver.from_txt(file_path="examples/cvrp/txt/cvrp20.txt")
# Output data in VRPLIB format
>>> solver.to_vrplib_folder(
vrp_save_dir="cvrp20_hgs_1s_6.13013/problem",
vrp_filename="cvrp20_hgs_1s_6.13013",
sol_save_dir="cvrp20_hgs_1s_6.13013/solution",
sol_filename="cvrp20_hgs_1s_6.13013"
vrp_save_dir="cvrp20/problem",
vrp_filename="cvrp20",
sol_save_dir="cvrp20/solution",
sol_filename="cvrp20"
)
"""
# check
Expand Down

0 comments on commit a35b17d

Please sign in to comment.