Optimal control of permanent magnet motors using dynamic programming | IEEE Conference Publication | IEEE Xplore