Optimization of Instantaneous Torque Shape of a PM Motors Using Artificial Neural Network Based on FE Results.