ml4co_kit.wrapper.routing.vrp.cvrp

CVRP Wrapper.

Classes

CVRPWrapper(precision)

class ml4co_kit.wrapper.routing.vrp.cvrp.CVRPWrapper(precision: ~numpy.float32 | ~numpy.float64 = <class 'numpy.float32'>)[source]

Bases: WrapperBase

from_txt(file_path: Path, cvrp_open: bool = False, distance_type: DISTANCE_TYPE = DISTANCE_TYPE.EUC_2D, round_type: ROUND_TYPE = ROUND_TYPE.NO, ref: bool = False, overwrite: bool = True, normalize: bool = False, show_time: bool = False)[source]

Read task data from .txt file

from_vrplib_folder(vrp_folder_path: Path = None, sol_folder_path: Path = None, round_type: ROUND_TYPE = ROUND_TYPE.NO, ref: bool = False, overwrite: bool = True, normalize: bool = False, show_time: bool = False)[source]

Read task data from folder (to support VRPLIB)

to_txt(file_path: Path, show_time: bool = False, mode: str = 'w')[source]

Write task data to .txt file

to_vrplib_folder(vrp_folder_path: Path = None, sol_folder_path: Path = None, show_time: bool = False, sequential_orderd: bool = True)[source]