Reinforcement Learning for Pmsm: Effects of Choosing a Reward Function | IEEE Conference Publication | IEEE Xplore