A new Optimal Harmonic Power Flow (OHPF) method is proposed in this pa
per. This new OHPF is designed to minimize the MW losses and the total
harmonic voltage distortion while satisfying the power flow equations
, harmonic power flow equations, security constraints and harmonic sta
ndard, etc. A two-level algorithm is used to solve the problem: the ma
ster level determines the settings of compensators and taps; the slave
level includes subproblems which involve cases of fundamental and har
monic frequencies separately. The test results for two power systems s
how the applicability of the proposed method.