A New Global Toolpath Linking Algorithm for Different Subregions with Travelling Saleman Problem Solver
Qirui Hu,Zhiwei Lin,Jianzhong Fu
DOI: https://doi.org/10.1080/0951192x.2021.1992667
IF: 4.1
2021-01-01
International Journal of Computer Integrated Manufacturing
Abstract:In CNC toolpath generation process, the operation of linking toolpaths from different sub-machining regions is common and inevitable. Apparently, the jumping toolpath between machining regions is invalid. They do not contribute to the machining process but only waste valuable manufacturing time; therefore, these toolpaths should be as short as possible. Many methods have been used to link toolpaths, such as the Genetic Algorithm (GA), the Particle Swarm Optimization (PSO) or even the greedy algorithm. However, GA and PSO require multiple iterations to find the global optimum, while greedy algorithm selects the current shortest connection each time without considering the global optimum. To reduce the total length of non-productive toolpaths and save computing time, in this paper, a new method is proposed by modeling the toolpath linking problem purely as a traveling salesman problem (TSP). The initial toolpaths in different subregions are generated in ordinary ways. Each toolpath of a subregion has two endpoints, which can be simplified as a line segment. In this way, the toolpath linking problem can be considered as a segment TSP: finding the shortest tour through all the segments. In this paper, the efficient TSP solver using Lin-Kernighan-Helsgaun (LKH) algorithm is employed and modified for the segment TSP application. The distance function between 'cities' is redefined to adapt the segments TSP. Finally, the feasibility of the proposed method is verified with several examples. The comparison with the result of traditional greedy algorithm proves the superiority of the proposed method.