To cope with the strong vibration of a supporting structure excited by external loads under operating conditions, and in order to achieve the purpose of vibration reduction by structural optimization through modal modification, a modal modification method was proposed, through structural vibration theory. Subsequently, the search performance of an improved particle swarm optimization method was analyzed before conducting a case study on the structural optimization. Finally, aiming at the problem of strong vibration of gun mount at the time of firing, a finite element model of the gun mount was constructed and the type and natural frequency of the gun vibration in a free state was analyzed. Meanwhile, taking the thickness, height and width of the stiffening structure of the bracket as the design variables, combined with the improved particle swarm algorithm, an optimized mathematical model was developed with the first-order natural frequency of the gun mount as the objective function. The secondary development of Abaqus finite element software by using Python is used as a tool to calculate the optimization model. By virtue of optimation, thickness, width and height of the stiffening structure are 156.4mm, 453.7mm and 238.9mm at the range of [100,600]mm, [100,700]mm, [100,700]mm, respectively, and the base frequency of the gun mount has been increased by 11.3%. The effect is remarkable.