In the field of offshore engineering, the transverse rocking motion of ships in bad sea conditions seriously affects navigation safety and operation efficiency. The double gyroscope rocking reduction device provides a new idea for solving the ship stability problem under complex sea state by canceling the adverse effects of each other. In this paper, the optimization design method of double gyro rocking reduction device based on nonlinear dynamics equations is established for the transverse rocking problem of ships under complex sea conditions. Torsethaugen wave spectrum is used to simulate irregular wave conditions, a joint ship-gyro dynamic model is constructed, and a PD inlet controller based on transverse rocking angle feedback is designed. The damping coefficients of the rocking reduction gyro are optimized by genetic algorithm, and the fitness function with the rocking reduction efficiency and the degree of vibration shaking of the inlet damping as the objectives is established. The simulation results show that the optimized dual gyro shaking reduction system achieves a shaking reduction performance of about 90% under one-level wave conditions, which is improved to 80% compared with 72.22% before optimization. The multiobjective optimization increases the rocking reduction effect from 71.46% to 75.34%, and the rotor mass decreases from 2526 kg to 2165 kg. Adams dynamics simulation verifies that the device has a good rocking reduction effect in level 1-3 waves, but the rocking increase phenomenon may occur in high level waves. This study provides a theoretical basis and design method for the engineering application of double gyro rocking reduction device under complex sea conditions.