The invention belongs to the related technical field of path optimization, and discloses an anti-collision
laser cutting path optimization method and
system based on a
potential field ant colony
algorithm, and the method comprises the following steps: step 1, making an initial
cutting sequence of parts by taking the shortest moving distance of a cutter as a target; the initial
cutting sequence is obtained by a traveling salesman problem solved by adopting an
ant colony
algorithm; 2, according to the anti-collision constraint, a
potential field ant colony
algorithm is adopted to optimize the
cutting sequence to obtain an optimal path; according to the
potential field ant colony algorithm, a
gravitation factor and a repulsive
force factor are added according to an artificial potential field method, so that a
heuristic function of the potential field
ant colony algorithm is improved. According to the method, the anti-collision optimization effect is achieved in the mode that the
gravitation guides path searching and repulsive force eliminates obstacles, the number of paths passing through a
cut area is reduced, the
laser cutting speed is increased, the cutting quality is ensured, meanwhile, all planning of the part cutting paths is completed, and the
machining efficiency is improved.