Abstract
This paper proposes a multi-objective optimization method for permanent magnet motors using a fast optimization algorithm, Covariance Matrix Adaptation Evolution Strategy (CMA-ES), and deep learning. Multi-objective optimization with topology optimization is effective in the design of permanent magnet motors. Although CMA-ES needs fewer population size than genetic algorithm for single objective problems, this is not evident for multi-objective problems. For this reason, the proposed method generates training data by solving the single-objective optimization multiple times using CMA-ES, and constructs a deep neural network (NN) based on the data to predict performance from motor images at high speed. The deep NN is then used for fast solution of multi-objective optimization problems. Numerical examples demonstrate the effectiveness of the proposed method.
Introduction
In recent years, the demand for electric vehicles has increased due to environmental issues such as global warming and air pollution. Reflecting this trend, research on permanent magnet (PM) motors for traction of electric vehicles has been active. The development of these motors focuses on maximizing the output torque and minimizing the torque ripple to achieve a PM motor with high efficiency and low vibration and noise.
Parameter optimization (PO) and topology optimization (TO) are two major design methods for optimizing the shape of PM motors [1]. Since the performance of the optimized device highly depends on predetermined geometric parameters, it is often difficult in PO to set appropriate design parameters. In addition, PO has the problem that it is difficult to obtain novel device structure. On the other hand, since TO directly searches for the optimal material distribution, there is no need to set geometric parameters. TO can generate a wide variety of devices with novel structures and superior performance. In addition, multiple characteristics such as average torque, torque ripple, and losses must be considered when optimizing a PM motor. By solving a multi-objective optimization, it is possible to take these characteristics into account simultaneously. For these reasons, multi-objective optimization using TO is effective especially in the initial design phase of PM motors.
In general, TO of a PM motor has more design variables than PO. Genetic algorithms (GA) have been widely used as a method to solve such high-dimensional optimization problems [1–3]. When the number of optimization variables is n, the population size of a GA would be set proportionally to n. On the other hand, the recommended population size of the Covariance Matrix Adaptation Evolution Strategy (CMA-ES) is O (log n) [4], which would be more suitable for problems with many optimization variables, such as TO. In fact, CMA-ES has been successfully applied to TO of PM motors [5]. However, while CMA-ES has excellent search performance for single-objective optimization, it is still unclear whether the multi-objective version of CMA-ES outperforms NSGA-II [6] which is one of the most widely used methods for multi-objective GA with smaller number of population size for the former [7,8].
This paper proposes a multi-objective optimization method for PM motors using CMA-ES and deep learning. In the proposed method, training data is generated by performing a single-objective optimization of a PM motor using CMA-ES multiple times. The data obtained during the optimization process is used to train a convolutional neural network (CNN) which predicts the performance from the input motor images. The trained CNN is used to predict the performance of PM motors to solve the multi-objective optimization problem at high speed and obtain motor shapes with high performance and a variety of features, where NSGA-II is used for optimization in this study. The CNN trained by the above procedure can be applied to multi-objective optimization for different objective functions and constraints.
NGnet method
In this study, the shape of the magnetic core of the rotor of a PM motor is optimized. The NGnet (Normalized Gaussian Network) method is used as the topology optimization method [1,2], which is based on the shape function

Flow of NGnet method.
CMA-ES is used for pre-optimization to collect training data for the CNN. The population is generated according to a multivariate normal distribution
The sampled populations are evaluated for the objective function, and the top μ individuals with the highest evaluation values are used to update the center as follows:

Algorithm of CMA-ES.
Structure of CNN
A regression model is constructed using a CNN for motor performance prediction which works much faster than finite element method (FEM). The CNN predicts average torque and torque ripple from the cross-sectional images of a PM motor [9]. The input image set is composed of normalized 224 × 224 dimensional RGB images. As shown in Fig. 3, the convolutional layers of the VGG16 model [10] are used for transfer learning, and layers deeper than the ninth layer are re-trained [11]. To prevent overlearning, a dropout was performed between the two layers shown in Fig. 3 as Dense1 and Dense2.

Structure of CNN.
To generate the training data for the CNN, single-objective optimizations are performed for multiple times in advance, which is here defined by
Settings of pre-optimization
We performed FE analysis of the magnetostatic field in the quarter region of the D-model by changing the mechanical angle every 6 degrees obtain the training set. The computing time was about 86,400 s. using 16 parallel computers with Intel(R) Xeon(R) E5-2667 v3.
After constructing the trained CNN, we perform multi-objective optimization in which CNN predicts the performance of generated PM motors. The optimization problem is defined by
Settings of multi-optimization
Training results
The 38,784 data generated by the preliminary optimization were split 6:2:2 and used as training, validation, and test data, respectively. The training settings are listed in Table 3. The loss function is the mean absolute error (MAE). Predictions on the test data were performed on the trained CNNs. The error distributions between the FEM results and the CNN predictions for Tavg, Trip are shown in Fig. 4.

Error distribution for test data.
Settings of training CNN estimator
These MAEs and correlation coefficients are summarized in Table 4. From Table 4 and Fig. 4, we concluded that the prediction accuracy of the CNN was sufficiently high to test the validity of the proposed method especially for Tavg, whereas the prediction accuracy for Trip was lower than that for Tavg. The result of multi-objective optimization using these trained CNNs will be described below.
Prediction accuracy for test data
The multi-objective optimization was performed using CNN and NSGA-II. Figure 5 shows the resulting Pareto solutions whose performances are evaluated by CNN and the corresponding values re-computed by FEM, as well as the performance values for the six optimal solutions obtained by the preliminary optimization. The motor shapes corresponding to Pareto solutions A, B, and C are shown in Fig. 6, and the performance values of these motors are summarized in the caption of Table 5. Here, CNN and FEM refer to the values predicted by CNN and the values obtained from the FEM analysis. That is, the latter values are the ground truth. From Figs 5 and 6, it can be seen that the multi-objective optimization yielded PM motor shapes with a variety of featured and characteristics. It can also be seen that these shapes have characteristics that could not be obtained by the preliminary optimization. Table 6 shows the prediction accuracy for the optimal solutions. Since the population of optimal solutions contains shapes that are very close in both shape and performance value, the distance d between individuals is measured from

Analysis results of optimal solutions by FEM and optimal solutions of pre-optimization.

Motor shapes corresponding to Pareto solutions A, B and C.
Performances of motors shown in Fig. 6
As shown in Table 6 and Fig. 5, there is no significant difference between the predictions of CNN and FEM results for the optimal solutions, indicating that the optimization is performed with sufficient prediction performance. As with the prediction results for the test data, the error for Trip was slightly larger than that for be Tavg. Therefore, the prediction accuracy of Trip needs to be improved to obtain more accurate Pareto solutions.
Prediction accuracy of optimal solutions
Table 7 lists the computation time per generation for each method when FEM and CNN are used for performance analysis of the generated PM motors in multi-objective optimization using NSGA-II. In this study, 16 threads of CPU (Intel(R) Xeon(R) E5-2637v4) were used for FEM, and one GPU (NVIDIA Tesla V100 PCIE 16 GB) was used for CNN. The computational speed was approximately 18.8 times faster when using CNN than when using FEM, indicating a significant speedup. Although training a CNN is computationally expensive, once a CNN is trained to predict different properties, multi-objective optimization with different objective functions and constraints can be effectively performed.
Comparison of computation time per generation
Comparison of computation time per generation
In this paper, we proposed a method to obtain a variety of shapes by performing fast multi-objective optimization using a CNN trained on data obtained by single-objective optimizations with CMA-ES. The proposed method produces a variety of motor shapes with characteristics that cannot be obtained by the preliminary optimization through fast and accurate multi-objective optimization. The trained CNN can be applied to multi-objective optimization with additional objective variables, such as iron loss and permanent magnet area, and with different constraints. A future task is to improve the prediction accuracy, especially for torque ripple, to further enhance the optimization performance.
