A SyR and IPM machine design methodology assisted by optimization algorithms