In this paper, aiming at the dynamics problems of heave and pitch motion of wave energy device, the objective optimization model is established with the maximum output power as the target, the differential equation of displacement, velocity, angular displacement and angular velocity of float and oscillator are solved numerically, and the optimal damping coefficient is solved by grid search, so as to ensure the maximum output power of wave energy device. It provides theoretical reference for practical application test.