A Fundamental Component Insensitive Harmonic Optimization Method