Optimal DC machines performance based on intelligent controller