Design and Implementation of a Loss Optimization Control for Electric Vehicle In-Wheel Permanent-Magnet Synchronous Motor Direct Drive System. (May 2017)