The invention belongs to the technical field of automatic ship anti-collision 
route planning and mainly relates to an automatic ship anti-collision method optimized by a wolf colony 
search algorithm. The method disclosed by the invention comprises the following steps: establishing a 
simulation interface needed by a ship 
simulation test, and determining ship parameters used for collision avoidance; and determining ship encounter situation and analyzing 
collision risk index, namely adopting the across encounter situation of two ships, analyzing the 
collision risk index shown in the specification of the ship and a target ship, wherein UtT is the time-based 
collision risk index, UdT is the space collision 
risk index, and only when UtT and UdT are not zero, ship collision risk exists. According to the method disclosed by the invention, the defect that the 
rate of convergence is reduced because the wolf colony 
algorithm crosses the border in the migrating, moving and surrounding processes when exceeding the search space is overcome, the 
improved algorithm is applied to automatic ship anti-collision 
route planning, and an automatic ship anti-collision method optimized by the wolf colony 
search algorithm is generated through establishment of a ship motion model and generation of the objective function.