Optimization of active power control strategy for wind farm