Mitigation of the cogging torque and loss minimization in a permanent magnet machine using shape and topology optimization | Synapse