In order to enable ships to operate stably for a long time under complex sea conditions, all kinds of ships have an urgent need for gyroscopic rocking reduction devices. This paper takes the double gyro rocking reduction device with better rocking reduction effect as the research object, establishes its corresponding nonlinear dynamic equations, adopts the energy method to establish the differential equations of motion, and deduces the dynamic model of the rocking reduction double gyro. A parameter optimization model is established with the main objective of improving the shaking reduction effect, and the key components of the shaking reduction double gyro are optimized. The bacterial foraging optimization algorithm is selected to solve the model, and the multi-objective parameter optimization model is established. For one to five wave classes, the middle value of the wave height of the meaningful wave is selected for the dynamic simulation experiment of the double gyro. When the wave level is less than three time level, the rocking reduction performance of the rocking reduction double gyro reaches 87.5%, 78.1% and 77.78%, respectively, and the transverse rocking reduction performance is good. Under the simulation environment of sea state I (wave height 2.5m, average period 7s) and sea state II (righteous wave height 2.5m, average period 12s), the rocking reduction efficiencies of the ship after parameter optimization are improved by 6.44% and 10.09%, respectively.