Text this: Comparison of random search and gradient-based optimization techniques on design improvement of permanent magnet synchronous motor.