Application of genetic algorithms to motor parameter determination for transient torque calculations