This paper proposes an optimal reactive power control method to maximize wind farm revenue and minimize the total electrical losses of a doubly-fed induction generator (DFIG)-based wind farm.