Velocity-Controlled Particle Swarm Optimization ( PSO ) and Its Application to the Optimization of Transverse Flux Induction Heating Apparatus

The main disadvantage of transverse flux induction heating (TFIH) is its resulting non-uniform temperature distribution on the surface of the strip at the inductor outlet. For obtaining a uniform temperature distribution, an improved particle swarm optimization (PSO) named velocity-controlled PSO (VCPSO) is proposed and applied to optimize this problem. Support vector machine (SVM) is adopted to establish a regression model to replace the complex and time-consuming coupling calculation process involved in TFIH problem. Simulation results of several test functions show that VCPSO performs much better than standard PSO (SPSO). Moreover, based on the existing research and experiments, the application of VCPSO combined with SVM to the TFIH problem achieves satisfactory results.


Introduction
Transverse flux induction heating (TFIH) technology has become more and more popular in both industry and domestic applications due to its fast, highly efficient, and high-quality heating abilities [1,2].Among these applications, heating metal strips and sheets are very important examples; however, for this kind of application, the requirement for uniform temperature distribution on the surface of the strip or sheets is very high, and the main disadvantage of TFIH is its non-uniform temperature distribution on the surface of the heating target.In order to obtain a uniform temperature distribution, the input current, frequency, coil dimension, and structures need to be optimized.
Particle swarm optimization (PSO) is a good method for optimization of the TFIH problem.It was originally proposed and developed by Kennedy and Eberhart [3][4][5][6].With the adopted simple concept, PSO can be implemented in a few lines of computer codes easily.It converges very fast and does not require that the function to be optimized must be differentiable [7,8].Because of its obvious advantages, PSO has been applied to many fields.However, it also has the problem of low search precision and tending to fall into local extremum when solving some complex problems, which gives rise to substantial efforts to improve its optimization performance.In this paper, an algorithm called velocity-controlled PSO (VCPSO) is put forward, which improves the particles' distribution during the optimizing process.The improvement is reflected in two ways: the first is uniform initialization Energies 2019, 12, 487 2 of 12 of population; the second is velocity regulation according to the number of particles that exceed the feasible region during the optimizing process.Simulation test results of several typical functions reveal that VCPSO has better global search ability, higher search precision, and a faster convergence rate when compared with standard PSO (SPSO).
During the TFIH optimization process, the average relative error of the strip's temperature at the outlet is needed, since it relates to the optimization target.However, the calculation involved in this process is very complex and time-consuming.Generally, it may need 2 to 3 h to obtain one needed result.Thus, in this work, support vector machine (SVM) is used to establish a regression model between the applied current, frequency, coil size, and the average relative error of temperature of the TFIH.The 3D finite element method (FEM) package MagNet and ThermNet is adopted for calculating the temperature distribution of the strips heated by the TFIH system.After that, the analysis results are used to train the SVM, and the regression model of the TFIH system is obtained.Since the complex calculation process has been replaced by the regression model, thus the complexity has been reduced then the optimization efficiency can be improved greatly.
In this paper, the application of VCPSO combined with SVM to the TFIH problem is implemented by using the MATLAB platform (2015b, MathWorks, Natick, MA, USA).The whole optimization process is carried out successfully to get the optimal design variables.Comparison of results before and after the optimization shows that the temperature distribution of the strip after the optimization is more uniform and it can provide a theoretical reference for the optimal design of TFIH equipment.

Principle of Particle Swarm Optimization
PSO is a kind of swarm intelligence algorithm [9].It simulates the foraging behavior of birds.In a particle swarm optimizer, each particle represents a potential solution to a problem and adjusts its flying according to its own flying experience and its companions' flying experience [10].Each particle is treated as a point in a D-dimensional space.The i-th particle is represented as X i = (x i1 , x i2 , . . ., x iD ).The velocity of particle i is represented as V i = (v i1 , v i2 , . . ., v iD ).The best previous position of any particle is recorded as P i = (p i1 , p i2 , . . ., p iD ).The best previous position of all particles is recorded as P g = (p g1 , p g2 , . . ., p gD ).The particles' velocity and position are updated through iterations according to the following equations: where c 1 and c 2 are usually two positive constants, in this article c 1 = c 2 = 2, r 1 and r 2 are two random numbers ranges from 0 to 1, whose values are recalculated every time Equation ( 1) is used; t represents the t-th iteration while t + 1 represents the t + 1-th iteration; w is the inertia weight [11], whose value is defined by Equation (3): where N max represents maximum number of iterations, t represents the t-th iteration while t + 1 represents the t + 1-th iteration, k is a constant and its value is 0.5, 1, or 2 according to the distribution of population-when the distribution is too narrow, k equals 2; when it is too widely distributed k equals 0.5; otherwise k equals 1.The performance of each particle is measured according to a pre-defined fitness function, which is determined by the problem to be solved.The inertia weight w is employed to control the impact of the previous history of velocities on the current velocity, thereby influencing the trade-off between global and local exploration abilities of the "flying points".A larger inertia weight w tends to facilitate a global search while a smaller inertia weight tends to facilitate a local search.Suitable selection of the Energies 2019, 12, 487 3 of 12 inertia weight w can provide a balance between global and local exploration abilities [12].In SPSO, the inertia weight w is usually linearly decreased from a relatively large value to a small value through the course of the run, thus the algorithm tends to have more global search ability at the beginning of the run while having more local search ability near the end of the run.Besides, there is a maximum velocity allowed [12] in case that the particles' velocities are too large to exceed the feasible region.

Velocity-Controlled Particle Swarm Optimization
PSO has the advantage of simple principle and easy implementation, but it tends to fall into local extremum and have low search precision while solving some complex problems [13].Considering this, VCPSO is put forward to improve the optimization performance.Details of the improvement are described as follows.
(1) For PSO, it is favourable to initialize the population as uniformly as possible to cover the entire search space, which can improve the PSO's global search ability and convergence rate.Thus, this paper proposes a method of uniform initialization.For D-dimensional optimization problem, each dimension is uniformly divided into m parts, so that uniformly distributed m D points are combined in the whole search space.(2) In a particle swarm optimizer, it is necessary to limit the particles' positions after updating them in case they exceed the feasible region.In the process of searching for the optimal solution, the number of particles that exceed the feasible region before limiting them can reflect the group's search status to some extent.If the number is too large, it means that the distribution of the particles is too scattered and the search scope is too large.Then it is necessary to reduce the velocities of the particles by speeding up the attenuation rate of the inertia weight and reducing the maximum velocity allowed.If the number is too small, it means that the particles maybe are gathering too much to do a full search.Then it is necessary to increase the velocities of the particles by slowing down the attenuation rate of the inertia weight and increasing the maximum velocity allowed.
In addition, considering that the optimal solution may be on the boundary of the feasible region and the algorithm converges in the later search stage, the process mentioned above is only implemented in the early search stage.
The specific iterations of VCPSO are as follows: a.
Give values of all parameters needed in the algorithm, including the number of uniformly division for each dimension m, range of search area ps, range of velocity vs, fitness function adaptfunc, the maximum number of iterations N, and so on.b.
Randomly initialize population velocity within the range of velocity range.d.
Calculating particle fitness using initialized population position.e.
Initialize each particle's best previous position P i (i = 1, 2, . . ., n) and the best previous position of all particles P g by using particle fitness calculated in d-th step.f.
If the current iteration number does not reach 2/3 of N, then go to step h, otherwise go to step g. h.
Count the number of particles, num, that exceed the feasible region after updating.If num/n is greater than 0.5, reduce the velocities of all particles by speeding up the attenuation rate of the inertia weight and reducing the maximum velocity allowed.If num/n is less than 0.05, increase the velocities of the particles by slowing down the attenuation rate of the inertia weight and increasing the maximum velocity allowed.If num/n is somewhere between 0.05 and 0.5, keep the current search status.
i.If a dimension of a particle exceeds the upper limit, the dimension information is replaced by the upper limit value, and the lower limit value is replaced by the lower limit value.Then calculate each particle's fitness.j.
Update each particle's best previous position P i (i = 1, 2, . . ., n) and the best previous position of all particles P g .k.
Calculate the average fitness value of the top 50% particles in the population.If the difference between the average fitness values that were respectively calculated during the current iteration and last iteration is less than 0.01 or current iterations t > N, stop the iteration; otherwise go to step f.
Flow charts are shown in Figure 1.This paper chooses five test functions whose global optimums are already known in order to test the optimization performance of VCPSO.Expressions of the five test functions are shown in Equations ( 4)- (8).Test results of VCPSO, SPSO, and Gaussian quantum-behaved PSO (GQPSO) [14] are shown and compared in Table 1.The whole procedure runs in MATLAB.The data are the average of 100 times' results."non" in Table 1 means that algorithm did not find the global optimum within the maximum number of iterations.
Energies 2019, 12, 487 From Table 1, it is concluded that VCPSO has better global search ability, higher search precision and a faster convergence rate than SPSO while solving the same problem.The improvements proposed in this paper effectively improve the optimization performance of PSO.In the other hand, VCPSO is much better than GQPSO in running time and average iterations.The optimal solution of VCPSO is also better than that of GQPSO in general.

Support Vector Machine
SVM was proposed by Vapnik and Cortes in 1995 [15].As a kind of machine learning algorithm based on statistical learning theory, SVM has an intuitive geometric interpretation and good generalization ability [16].It can effectively overcome the "curse of dimensionality" and avoid the local optimal solution.It can not only be applied to machine learning problems such as function fitting, but also has many unique advantages in solving small sample, nonlinear, and high-dimensional pattern recognition problems.SVM has become a hot research area in the field of machine learning [17][18][19][20].
Assuming that the sample generated from a certain probability distribution is (x 1 , y 1 ), (x 2 , y 2 ), . . ., (x n , y n ), the regression problem is to find the appropriate real value function to fit these sample points and establish the corresponding relationship between input and output.Support Vector Machine (SVM) can solve regression problem as looking for a pipeline that can hold all the sample points in the sample set, and the central line of the pipeline is the regression estimation function f (x).
To measure the error between the observed value y and the predicted value f (x), that is, when the error between the observed value y and the predicted value f (x) of X point does not exceed the small positive number given in advance, it is considered that the predicted value f (x) at that point is lossless relative to the observed value y, although sometimes the predicted value f (x) and the observed value y may not be completely equal.Similar to support vector classification, the following problems need to be solved: By introducing relaxation variable ξ, ξ and penalty parameter C, the above problems are transformed into: In order to reduce the number of parameters of SVM, the radial basis function (RBF) is used in this paper, the equation is as follows where γ is a constant greater than zero.Its dual form is min 1 The final decision Equation ( 14) is obtained by solving the above dual problem.

Transverse Flux Induction Heating Optimization Based on VCPSO and SVM
TFIH is composed of two iron cores and two coils, the coil is placed inside of the iron core named a heater, one heater is placed above the strip and another heater is placed below the strip, two heaters on each side are placed parallel to each other, as shown in Figure 2. By injecting alternating current into the coil of the heater, an alternating magnetic field will be produced in the iron core and strip and thus eddy current will be produced in the strip due to the alternating magnetic field.The eddy current generates heat, and thus the strip will be heated.During the induction heating process, the strip moves at a constant speed between the two heaters.The temperature distribution on the surface of the strip at the outlet of TFIH is the most important parameter to represent the performance of the TFIH.In Figure 2, the arrow shows the movement direction of the strip.In our previous work, both the current and frequency have been found to influence the temperature distribution of the strip.Generally, the higher the input current and its frequency, the higher the temperature distributed on the strip.Furthermore, the size of the coil plays the most important role to determine the temperature distribution of the strip as it can affect the eddy current distribution on the strip.According to our work, the hexagonal coil has the ideal coil structure for the TFIH system [21].In this paper, the length of the coil along the width of the strip has been taken into the consideration, and the parameter of l is shown in Figure 3.In order to measure the uniformity of the temperature distribution of the strip, the average relative error of temperature is adopted in this paper.The optimization model of TFIH system is obtained and described as follows:   In Equation (15), F(X) is the objective function that represents the average relative error of temperature.Ti is the temperature value at each sampling point.Ta is the average temperature of all sampling points.In our previous work, both the current and frequency have been found to influence the temperature distribution of the strip.Generally, the higher the input current and its frequency, the higher the temperature distributed on the strip.Furthermore, the size of the coil plays the most important role to determine the temperature distribution of the strip as it can affect the eddy current distribution on the strip.According to our work, the hexagonal coil has the ideal coil structure for the TFIH system [21].In this paper, the length of the coil along the width of the strip has been taken into the consideration, and the parameter of l is shown in Figure 3.In order to measure the uniformity of the temperature distribution of the strip, the average relative error of temperature is adopted in this paper.The optimization model of TFIH system is obtained and described as follows: where i = 1, 2, . . ., n. n represents the number of sampling points of the strip surface temperature at the outlet of heater.
Energies 2017, 10, x 7 of 12 In our previous work, both the current and frequency have been found to influence the temperature distribution of the strip.Generally, the higher the input current and its frequency, the higher the temperature distributed on the strip.Furthermore, the size of the coil plays the most important role to determine the temperature distribution of the strip as it can affect the eddy current distribution on the strip.According to our work, the hexagonal coil has the ideal coil structure for the TFIH system [21].In this paper, the length of the coil along the width of the strip has been taken into the consideration, and the parameter of l is shown in Figure 3.In order to measure the uniformity of the temperature distribution of the strip, the average relative error of temperature is adopted in this paper.The optimization model of TFIH system is obtained and described as follows:  (15) where i = 1,2,...,n.n represents the number of sampling points of the strip surface temperature at the outlet of heater.In Equation (15), F(X) is the objective function that represents the average relative error of temperature.Ti is the temperature value at each sampling point.Ta is the average temperature of all sampling points.In Equation (15), F(X) is the objective function that represents the average relative error of temperature.T i is the temperature value at each sampling point.T a is the average temperature of all sampling points.
X = (x 1 , x 2 , x 3 ) represents three design variables, x 1 is the current, x 2 is the frequency, x 3 is the length of the coil along the width of the strip which has been shown in Figure 3.I min equals 300 A, I max equals 1500 A; f min equals 500 Hz, f max equals 1500 Hz; l min equals 380 mm, l max equals 420 mm.For the temperature distribution, the 3D FEM is adopted.In this paper the MagNet and ThermNet are used.In the performance analysis, the gap between the strip and heating coil equals 2 mm, and the thickness of strip is 2 mm and the width of strip is 400 mm.The strip moves at the speed of 0.05 m/s.Because TFIH is symmetrical in both horizontal and vertical directions, 1/4 model of TFIH is chosen for simulation.
In order to realize the regression prediction of transverse flux induction heating, the data of temperature average relative error under different current, frequency, and coil size obtained by finite element simulation are used as training samples of support vector machine.The training data are shown in Table 2.The flow chart of TFIH problem prediction using SVM is shown in Figure 4.
Energies 2017, 10, x 8 of 12 Imax equals 1500 A; fmin equals 500 Hz, fmax equals 1500 Hz; lmin equals 380 mm, lmax equals 420 mm.For the temperature distribution, the 3D FEM is adopted.In this paper the MagNet and ThermNet are used.In the performance analysis, the gap between the strip and heating coil equals 2 mm, and the thickness of strip is 2 mm and the width of strip is 400 mm.The strip moves at the speed of 0.05 m/s.Because TFIH is symmetrical in both horizontal and vertical directions, 1/4 model of TFIH is chosen for simulation.
In order to realize the regression prediction of transverse flux induction heating, the data of temperature average relative error under different current, frequency, and coil size obtained by finite element simulation are used as training samples of support vector machine.The training data are shown in Table 2.The flow chart of TFIH problem prediction using SVM is shown in Figure 4.The process of SVM modeling for TFIH is described as follows: 1. Original data processing: in order to improve the prediction accuracy, first of all to the original data format, and data will be normalized to [-1, 1].The normalization has three purpose: (1) to solve the problem of dimension, and if the magnitude difference between different data of the same attribute is too large, the change of large number will cover up the change of decimal number; (2) to improve the convergence speed-the speed of solution can be accelerated after data normalization; (3) to optimize the parameters in the following steps-the larger the input, the better.It is likely that the value of the  The process of SVM modeling for TFIH is described as follows: 1.
Original data processing: in order to improve the prediction accuracy, first of all to the original data format, and data will be normalized to [-1, 1].The normalization has three purpose: (1) to solve the problem of dimension, and if the magnitude difference between different data of the same attribute is too large, the change of large number will cover up the change of decimal number; (2) to improve the convergence speed-the speed of solution can be accelerated after data normalization; (3) to optimize the parameters in the following steps-the larger the input, the better.It is likely that the value of the parameters will exceed the optimum range, and after normalization, the optimum range of the parameters can basically cover its optimum value.Parameter optimization: the parameters here refer to a series of parameters involved in the modeling process, such as penalty factor, and parameters in the kernel function.When different parameters are selected, the prediction models will be different and the accuracy of the models will be different.Therefore, it is necessary to optimize the parameters to obtain the prediction model with the highest accuracy.4.
SVM modeling: the process of solving the corresponding convex quadratic programming problem. 5.
Regression model: the regression prediction model of transverse flux induction heating problem can be obtained by the above process.6.
Finally, the predictive model is used to predict the test sample and get the predictive value.
The comparison between predicted and simulated values is shown in Table 3. From the comparison of data in Table 3, it can be seen that the regression prediction model of transverse flux induction heating established by support vector machine has high fitting accuracy, and can be used to replace the finite element numerical calculation to analyze the transverse flux induction heating problem.Since the calculation of nonlinear coupled electromagnetic thermal problems involved in TFIH is time consuming, the analysis results obtained by using the MagNet and ThermNet simulation is used to train SVM, thus a regression model of the TFIH problem can be obtained to replace the time consuming calculation process.The regression model is applied in the process of optimizing the TFIH problem with VCPSO.The whole process is implemented in MATLAB.
X values before and after the optimization respectively as shown in Table 4. TFIH parameters are normally selected via trial-and-error according to the temperature requirement from strip heating treatment.X values before optimization were given by experience on the basis of many simulation analysis, the "Before optimization" parameters in Table 4 are typical of the settings in TFIH equipment.
Figures 5 and 6 show the temperature distribution on the surface of strip at the outlet of TFIH device before and after the optimization, respectively, based on the MagNet and ThermNet with the selected X values.The left boundary in both Figures 5 and 6 show the temperature distribution of the strip at the outlet.It can be seen that after the optimization, the temperature distribution on the surface of the strip after optimization is more uniform and also the average temperature rise is higher as well, as shown on the left edge of Figure 6.The temperature distribution of half width strip at the outlet is illustrated in Figure 7.As shown, the peak to peak temperature before the optimization is about 260 • C while that after optimization is about 60 • C.
Energies 2017, 10, x 10 of 12 distribution of half width strip at the outlet is illustrated in Figure 7.As shown, the peak to peak temperature before the optimization is about 260 °C while that after optimization is about 60 °C.

Conclusions
In this paper, VCPSO is proposed based on the analysis of the distribution of the particles during the PSO optimizing process.A number of experiments have been done to compare the performance of VCPSO with SPSO.It was found that VCPSO has better global search ability, higher search precision and a faster convergence rate when compared with SPSO.Furthermore, the VCPSO combined with SVM is adopted to optimize a TFIH system.By using the proposed new method, the temperature distribution of the strip at the outlet became quite uniform.However, the number of particles increasing exponentially with the increase of the optimization parameters (mentioned in distribution of half width strip at the outlet is illustrated in Figure 7.As shown, the peak to peak temperature before the optimization is about 260 °C while that after optimization is about 60 °C.

Conclusions
In this paper, VCPSO is proposed based on the analysis of the distribution of the particles during the PSO optimizing process.A number of experiments have been done to compare the performance of VCPSO with SPSO.It was found that VCPSO has better global search ability, higher search precision and a faster convergence rate when compared with SPSO.Furthermore, the VCPSO combined with SVM is adopted to optimize a TFIH system.By using the proposed new method, the temperature distribution of the strip at the outlet became quite uniform.However, the number of particles increasing exponentially with the increase of the optimization parameters (mentioned in distribution of half width strip at the outlet is illustrated in Figure 7.As shown, the peak to peak temperature before the optimization is about 260 °C while that after optimization is about 60 °C.

Conclusions
In this paper, VCPSO is proposed based on the analysis of the distribution of the particles during the PSO optimizing process.A number of experiments have been done to compare the performance of VCPSO with SPSO.It was found that VCPSO has better global search ability, higher search precision and a faster convergence rate when compared with SPSO.Furthermore, the VCPSO combined with SVM is adopted to optimize a TFIH system.By using the proposed new method, the temperature distribution of the strip at the outlet became quite uniform.However, the number of particles increasing exponentially with the increase of the optimization parameters (mentioned in

Conclusions
In this paper, VCPSO is proposed based on the analysis of the distribution of the particles during the PSO optimizing process.A number of experiments have been done to compare the performance of VCPSO with SPSO.It was found that VCPSO has better global search ability, higher search precision and a faster convergence rate when compared with SPSO.Furthermore, the VCPSO combined with SVM is adopted to optimize a TFIH system.By using the proposed new method, the temperature distribution of the strip at the outlet became quite uniform.However, the number of particles increasing exponentially with the increase of the optimization parameters (mentioned in Section 2.2) is the main
i = 1,2,...,n.n represents the number of sampling points of the strip surface temperature at the outlet of heater.

X
= (x1,x2,x3) represents three design variables, x1 is the current, x2 is the frequency, x3 is the length of the coil along the width of the strip which has been shown in Figure3.Imin equals 300 A,

X
= (x1,x2,x3) represents three design variables, x1 is the current, x2 is the frequency, x3 is the length of the coil along the width of the strip which has been shown in Figure 3. Imin equals 300 A,

Figure 4 .
Figure 4. Flow chart of SVM used for the TFIH problem prediction.

Figure 4 .
Figure 4. Flow chart of SVM used for the TFIH problem prediction.

Figure 7 .
Figure 7.Comparison of temperature distribution before and after optimization.

Figure 7 .
Figure 7.Comparison of temperature distribution before and after optimization.

Figure 7 .
Figure 7.Comparison of temperature distribution before and after optimization.
Update each particle's best previous position Pi (i = 1,2,…,n) and the best previous position of all particles Pg .k. Calculate the average fitness value of the top 50% particles in the population.If the difference between the average fitness values that were respectively calculated during the current iteration and last iteration is less than 0.01 or current iterations t > N, stop the iteration; otherwise go to step f.Flow charts are shown in Figure1.

Table 1 .
Comparison of test results.
Training samples and test samples: after data processing, a part of the original data is selected as training samples to establish a regression prediction model, and the rest as test samples to test the accuracy of the obtained prediction model.3.

Table 3 .
Prediction results of average relative error of strip temperature at outlet of device by support vector machine.

Table 4 .
X values before and after the optimization.