Design optimization for torque ripple minimization and poles cost reduction with hybrid permanent magnets