ml4co_kit.wrapper.routing.tsp.pctsp

PCTSP Wrapper.

Classes

PCTSPWrapper(precision)

class ml4co_kit.wrapper.routing.tsp.pctsp.PCTSPWrapper(precision: ~numpy.float32 | ~numpy.float64 = <class 'numpy.float32'>)[source]

Bases: WrapperBase

from_txt(file_path: Path, 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

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

Write task data to .txt file