Affected by the fluctuation of wind and load, large frequency change will occur in independently islanded wind-diesel complementary microgrid. In order to suppress disturbance and ensure the normal operation of microgrid, a $H_{2}/H_{∞}$ controller optimized by improved particle swarm algorithm is designed to control the frequency of microgrid. $H_{2}/H_{∞}$ hybrid control can well balance the robustness and the performance of system. Particle swarm algorithm is improved. Adaptive method is used to adjust the inertia weight, and cloud fuzzy deduction is used to determine the learning factor. Improved particle swarm algorithm can solve the problem of local extremum, so the global optimal goal can be achieved. It is used to optimize $H_{2}/H_{∞}$ controller, so as to overcome the conservative property of solution by linear matrix inequality and improve the adaptive ability of controller. Simulation results show that with a $H_{2}/H_{∞}$ controller optimized by improved particle swarm algorithm, the frequency fluctuations caused by the wind and load is decreased, and the safety and stable operation of microgrid is guaranteed.