Permanent magnet AC motor drives controlled by predictive algorithm