The invention belongs to the technical field of
engineering design, and discloses a new meta-
heuristic method inspired by a piranha fierce hunting strategy, and the
algorithm comprises the steps: initializing a numerical value, initializing the positions Xi of individuals in a piranha school, the number N of the individuals, and the maximum number tmax of iterations; s3, searching: performing multi-dimensional
perception on all piranha according to a formula (1), a formula (3), a formula (4) and a formula (6), then performing greedy decision search movement according to a formula (8), and turning to S3; s4, interaction: each piranha randomly selects other piranha according to a formula (9) for interaction, the piranha preferentially moves, and the step S4 is executed; hunting and killing: hunting and killing each piranha to the position of the
global optimal prey according to a formula (10), and updating the position of the individual and the current
global optimal position Xbest; s2, judging whether to terminate or not, judging whether an optimization precision requirement or the maximum number of iterations tmax is met or not, if yes, outputting the optimal value of the target function, and if not, turning to S2. According to the invention, accurate and efficient target locking is realized. A closely cooperative
optimization system is constructed by simulating a plurality of natural communication mechanisms such as sound signals,
light guide,
pheromone transmission,
vibration response and the like.