Optimizing UPS Systems with Power Factor Correction