In modern wind farms, maximum power point tracking (MPPT) is widely implemented. Using the MPPT method, each individual wind turbine is controlled by its pitch angle and tip speed ratio to generate the maximum active power. In a wind farm, the upstream wind turbine may cause power loss to its downstream wind turbines due to the wake effect. According to the wake model, downstream power loss is also determined by the pitch angle and tip speed ratio of the upstream wind turbine. By optimizing the pitch angle and tip speed ratio of each wind turbine, the total active power of the wind farm can be increased. In this paper, the optimal pitch angle and tip speed ratio are selected for each wind turbine by the exhausted search. Considering the estimation error of the wake model, a solution to implement the optimized pitch angle and tip speed ratio is proposed, which is to generate the optimal control curves for each individual wind turbine off-line. In typical wind farms with regular layout, based on the detailed analysis of the influence of pitch angle and tip speed ratio on the total active power of the wind farm by the exhausted search, the optimization is simplified with the reduced computation complexity. By using the optimized control curves, the annual energy production (AEP) is increased by 1.03% compared to using the MPPT method in a case-study of a typical eighty-turbine wind farm.