In tractor gear processing, the commonly used tools include tractor gear type tools and rack type tools. In the process of tractor gear cutting tool processing, the slotting tool for processing tractor gear is like an external gear with a blade. Its blank makes meshing movement with the tractor gear slotting tool, and the shape of tractor gear is processed through continuous meshing movement. When the rack insert tool is used to process the tractor gear, the rack rotates and moves along the processing direction of the tractor gear, and finally processes the shape of the tractor gear. These two processing methods can use relevant algorithms to optimize their processing procedures. As shown in Figure , it is the schematic diagram of tractor gear processing with tractor gear insert.
Rack slotting cutter is also commonly used. In the process of processing tractor gear with rack slotting cutter, it is assumed that the module of processing tractor gear is m, the number of teeth is Z, the radius of gear blank graduation circle is r, and at a certain processing time t, the angle of gear blank α , Tool travel distance s, with a = Sr. In the meshing movement of the gear rack of agricultural machinery, the gear cutter of agricultural machinery increases at a uniform angle Δ A do implicated rotation, ah = ah+ Δ a. The motion of the tool contour is divided into two parts, including rotation and translation. Assuming that the rotation operator is rot (Z, a) and the movement operator is trans (s, 0, 0), there are:
The total transformation operator is:
At any instant, the coordinates of any feature point on the tooth profile curve are transformed according to the following law, namely:
The dot matrix of the instantaneous tool contour trace can be calculated by the formula, and the instantaneous tool contour trace can be obtained by connecting each point in sequence. In the process optimization of tractor gear processing, ant colony algorithm can select the next processing process according to a certain probability function. This probability is also called transfer probability, which is a function of the probability between processing processes and the amount of pheromone on the connecting edge. At time t, the probability of ant K transferring from process I to j: