A NeuralNetworkBased Model Predictive Control of ThreePhase Inverter With an Output Filter
Abstract
Model predictive control (MPC) has become one of the wellestablished modern control methods for threephase inverters with an output filter, where a highquality voltage with low total harmonic distortion (THD) is needed. Though it is an intuitive controller easy to understand and implement, it has the significant disadvantage of requiring a large number of online calculations for solving the optimization problem. On the other hand, the application of modelfree approaches such as artificial neural networkbased (ANNbased) approaches is currently growing rapidly in the area of power electronics and drives. This paper presents a new control scheme for a twolevel converter based on combining MPC with feedforward ANN, with the aim of getting lower THD and improving the steady and dynamic performance of the system for different types of loads. First, MPC is used, as an expert, in the training phase to generate data required for training the proposed neural network. Then, once the neural network is finetuned, it can be successfully used online for voltage tracking purpose, without the need of using MPC. The proposed ANNbased control strategy is validated through simulation, using MATLAB/Simulink tools, taking into account different loads conditions. Moreover, the performance of the ANNbased controller is evaluated, on several samples of linear and nonlinear loads under various operating conditions, and compared to that of MPC, demonstrating the excellent steadystate and dynamic performance of the proposed ANNbased control strategy.
I Introduction
The threephase inverter is an extensively popular device, which is commonly used for transferring energy from a DC voltage source to an AC load. The control of threephase inverters has received much attention in the last decades both in the scientific literature and in the industryoriented research [1, 2]. In particular, for applications such as uninterruptible power supplies (UPSs), energystorage systems, variable frequency drives, and distributed generation, the inverters are commonly used with an output filter to provide a highquality sinusoidal output voltage with low total harmonic distortion (THD) for various types of loads, especially for unbalanced or nonlinear loads [3, 4, 5, 6, 7]. However, the performance of the inverter is mainly dependent on the applied control technique. These controllers must cope with the load variations, the nonlinearity of the system, and ensuring stability under any operating condition with a fast transient response [8].
In the literature, various types of classical and modern control schemes have been studied and proposed in order to improve the performance of the converters, such as nonlinear methods (e.g., hysteresis voltage control (HVC)) [9], linear methods (e.g., proportionalintegral (PI) controller with pulsewidth modulation (PWM) and space vector modulation (SVM)) [10, 11, 12, 13], multiloop feedback control [14, 15], deadbeat control [16, 17, 18, 19, 20], repetitivebased controllers [21, 22], linear quadratic controller (LQR) [23], and slidingmode control [24, 25]. Most of these control schemes, in a way or another, are characterized by a number of limitations.
Just to name a few, the major drawback of nonlinear methods (e.g., HVC), which require high switching frequency for effective operation, is having a variable switching frequency which creates resonance problems which reduce the converter’s efficiency [26, 27]. On the other hand, although the linear methods, which require carrierbased modulators, have the advantage of constant switching frequency, their dynamic response is weak comparing with HVC, because of the slow response of the modulator. However, both linear and nonlinear methods are extensively used for generating the switching signals of the inverter because of the simplicity of the controller implementation. Another example is deadbeat control which provides fast transient response, however, it has high sensitivity to model uncertainties, measurement noise, and parameter perturbations, in particular for high sampling rates. Other modern control approaches based on control theory [28] and synthesis [29] have been proposed, with the aim of handling the possible uncertainties in the system.
Model predictive control (MPC) has become one of the wellestablished modern control methods in power electronics, particularly for threephase inverters with filter according to [26, 1, 30, 31, 32]. The key characteristic of MPC is to explicitly use the model of the system to predict the future behavior of the variables to be controlled, considering a certain time horizon. Afterwards, MPC selects the optimal control action (i.e., optimal switching signals) based on the minimization of a predefined cost function, which represents the desired behavior of the system [33, 34, 35]. The main features of MPC can be summarized as: (i) an intuitive controller easy to understand and implement, with a fast dynamic response; (ii) the simple inclusion of system constraints and nonlinearities, and multivariable cases; (iii) the flexibility to include other system requirements. On the other hand, a major drawback of MPC is that it requires the optimization problem to be solved online, which involves a huge amount of realtime calculations. However, different solutions have been introduced in order to address this problem, as proposed in [36, 37, 31].
On the other hand, the application of datadriven methodologies (or modelfree approaches, particularly artificial neural networks ANNsbased approaches) is currently growing rapidly in the area of power electronics and drives [38]. Broadly speaking, the use of neural networks for the control of dynamical systems was proposed in the early nineties [39, 40, 41]. Multilayer perceptrons were employed in various roles, including system identification and implementation of the control law. In particular, ANNbased controllers and estimators have been widely used in identification and control of power converters and motor drives [42]. As an example, they can be used to estimate the rotor speed, rotorflux, and torque of induction motors [43, 44, 45], in addition to the identification and estimation of the stator current of induction motor drives [46]. Moreover, several ANNbased methods have been used in control of power converters, as presented in [47, 48, 49, 50]. Indeed, the ANNbased controllers have some advantages compared to other control methods such as: (i) their design does not require the mathematical model of the system to be controlled, considering the whole system as a blackbox; (ii) they can generally improve the performance of the system when they are properly tuned; (iii) they are usually easier to be tuned as compared to conventional controllers; (iv) they can be designed based on the data acquired from a real system or a plant in the absence of necessary expert knowledge. But, they require a large number of training data. However, as the present work suggests, this is not a major drawback because large amounts of data can be obtained using reliable simulation tools.
By taking advantage of the flexibility of MPC at training time, this paper proposes a feedforward ANNbased controller for a threephase inverter with output filter for UPS applications, with the aim of getting lower THD and good performance for different types of loads. The proposed controller undergoes two main steps: (i) the use of MPC as an expert or a teacher for generating the data required for training offline the proposed neural network using standard supervised learning, under fullstate observation of the system; (ii) once the offline training is performed, the trained ANN can successfully control the output voltage of the inverter, without the need of using MPC at test time, as illustrated in Fig. 1. A performance comparison between the proposed ANNbased approach and the conventional MPC, under various operating conditions, is studied. The main contributions of the work described in this paper can be summarized as follows:

To the best of our knowledge, this is the first attempt to directly control a threephase inverter with an output filter using a feedforward ANN based on MPC, instead of the more common modelbased approaches as well as ANN classical controlbased (such as Fuzzy Logic Controller FLC, PID, or PWMbased) approaches, or a combination of both [48, 51, 52, 53, 54, 55].

The proposed ANNbased approach generates directly the switching signals of the inverter, without the need for the mathematical model of the inverter and without a predefined cost function to be minimized at each sampling time .

An open repository of the dataset and codes^{1}^{1}1Web: https://github.com/IhabMohamed/ANNMPC is provided to the community for further research activities.
The rest of the paper is organized as follows. Section II deals with the mathematical model of the threephase voltagesource inverter with filter, whereas in Section III the proposed predictive controller strategy is explained. The ANNbased control scheme proposed in this paper is described in Section IV. In Section V, simulation implementation and results are discussed for both proposed control schemes, then the conclusion is provided in Section VI.
Ii System Description and Modeling
In this section, the mathematical interpretation of the converter system considered in this paper is presented. Moreover, the model of filter is described in details, and is then used by the predictive controller to predict the output voltage for all given input voltage vectors.
Iia System description via Clarke transformation
The power circuit of the threephase voltagesource inverter considered in this paper is depicted in Fig. 2. In the present case, the load is assumed to be unknown, while the models of the converter and filter are presented [30]. Moreover, the two switches of each leg of the converter operate in a complementary mode, in order to avoid the occurrence of shortcircuit conditions. Thus, the switching states of the converter can be represented by the three binary switching signals, , , and , as follows:
These switching states can be expressed in vectorial form (i.e., in reference frame) by following transformation:
(1) 
where . It is noteworthy that the switching devices are assumed to be ideal switches, therefore the process of switchingON/OFF is not taken into consideration [32].
The possible outputvoltage space vectors generated by the inverter can be obtained by
(2) 
where , , and represent the phasetoneutral, , voltages of the inverter. On the other hand, the voltage vector can be defined, in terms of the switching state vector S and the dclink voltage , by
(3) 
Fig. 3 illustrates the eight switching states and, consequently, the eight voltage vectors generated by the inverter using (1) and (3), considering all the possible combinations of the switching signals , , and . It is noteworthy that only seven different voltage vectors are considered as possible outputs, since .
Similarly, as in (1), the filter current , the output voltage , and the output current can be expressed in the vectorial form as
(4) 
(5) 
(6) 
IiB filter modeling
As far as the model of filter is concerned, it can be described by two equations, the former describes the inductance dynamics, whereas the latter describing the capacitor dynamics [1]. These two equations can be written as a continuoustime statespace system as
(7) 
where and are the filter inductance and the filter capacitance, respectively. The output voltage and the filter current can be measured, whilst the voltage vector can be calculated using (3). The output current is considered as a disturbance due to its dependence on an unknown load, whereas the value of is assumed to be fixed and known. The output voltage is considered as the output of the system, which can be written as a state equation as .
Then, using (7), the discretetime statespace model of the filter can be obtained for a sampling time as
_x(k+1) = ⏟ e^AT_s_A_q ⏟ [if(k)vc(k)]_x(k) + ⏟∫^T_s_0 e^AτB dτ_B_q v_i(k) + ⏟∫^T_s_0 e^AτB_d dτ_B_dq i_o(k).
This model is used by the predictive controller (i.e., MPC) to predict the output voltage for all given input voltage vectors . Then, for predicting the output voltage using (IIB), the output current is needed and can be estimated using (8), assuming that for sufficiently small sampling times as proposed in [1, 35].
(8) 
Iii Model Predictive Control for Neural Network
In this section, the model predictive control (MPC) proposed in [30, 34], and which provides the stateofart of outputvoltage control of threephase inverter for UPS applications, has been used: (i) to generate the data required for the offline training of the proposed neural network, and (ii) to compare its performance with the proposed ANNbased controller under linear and nonlinear load conditions.
Iiia Proposed Predictive Controller Strategy
In the proposed control strategy, it has been assumed that the inverter generates only a finite number of possible switching states and their corresponding outputvoltage vectors, making it possible to solve the optimization problem of the predictive controller online [1]. MPC exploits the discretetime model of the inverter to predict the future behavior of the variables to be controlled, for each switching state. Thereafter, the optimum switching state is selected, based on the minimization of a predefined cost function, and directly fed to the power switches of the converter in each sampling interval , without the need for a modulation stage. The cost function to be minimized has been chosen in order to achieve the lowest error between the predicted output voltage and the reference voltage. In this work, a cost function which defines the desired behavior of the system is expressed in orthogonal coordinates by
(9) 
where and are the real and imaginary parts of the outputvoltage reference vector , while and are the real and imaginary parts of the predicted outputvoltage vector .
The block diagram of MPC, considering only onestep prediction horizon, for a threephase inverter with output filter is shown in Fig. 4. The control cycle of the predictive controller at sampling instant is described as a pseudo code in Algorithm 1 with more detail. Line of the code declares the control function, where the switching signals , , and are the outputs, while the inputs are the measured variables of the filter current , the output voltage , and the reference voltage at sampling time , all expressed in coordinates. The two variables, and , are recalled from the previous sampling instant (lines to ), which are firstly initialized for (lines to ). These two variables are used to estimate the output current given by (8) (line ), in order to obtain the possible predictions of using (IIB).
The optimization problem to be solved is performed between lines and . The code sequentially selects one of the seven possible voltage vectors generated by the inverter based on (3) (line ) and applies it, in order to obtain the output voltage prediction at instant , as in line . The cost function given by (9) is used to evaluate the error between the reference and the predicted output voltage at instant for each voltage vector (line ). The code selects the optimal value of the cost function , and the optimum voltage vector is then chosen (lines to ). Note that, is initialized with a very high value (line ). Finally, the switching states, , , and , corresponding to the optimum voltage vector are generated and applied at the next sampling instant (line ), as illustrated in Fig. 3.
IiiB Discussion
In fact, all the control approaches proposed in the literature, in a way or another, are modelbased approaches, which require in general either diverse computational or approximative procedures for applying their solution. In this context, MPC, the widely used approach for threephase inverters, relies on solving an optimization problem online, leading to a large number of online computations. In other words, the control signal of MPC is determined by minimizing a cost function online at each time instant. Moreover, recently the artificial neural networks have been used in conjunction with MPC, in order to provide a powerful and fast optimization as proposed in [56, 57, 58, 59].
The alternative approach to be considered in the present work is to apply neural networkbased function approximators, which can be trained offline to represent the optimal control law. Such an approach is expected to avoid the drawbacks associated with MPCbased control approaches, does not require the mathematical model of the system to be controlled, does not evaluate a cost function online at each sampling time, and, therefore, does not rely on an optimization problem to be solved online. For this reason, this paper focuses on the control of a threephase inverter with output LC filter using a feedforward ANNbased MPC, which has not been reported in the literature, where MPC is only used as a teacher for training the neural network.
Iv Implementation of ANNBased Controller
In this section, some important concepts related to ANN including the structure of the proposed ANNbased controller as well as details on the training data will be covered.
Iva Proposed Neural Network Architecture
Machine learning, and in particular artificial neural networks, is one key technology in modern control systems. An artificial neural network is an extremely flexible computational model that can be optimized to learn inputtooutput mappings based on historical data. This model can be expressed as
(10) 
where is an activation function (usually it is a nonlinear function such as logistic sigmoid or hyperbolic tangent, to ensure the universal approximation property [60]), is the input vector of the ANN with elements, are the weights for each input , and is a bias or correction factor. Indeed, the objective of the ANN training phase is to optimize and . Although the most recent developments have focused on larger and larger scale problems (deep learning), improved techniques have also been proposed to improve the reliability of networks of smaller size. The result is a sound and flexible technology.
An artificial neural network (ANN) is composed of a number of simple computing elements organized in layers and linked by weighted connections. Feedforward networks do not contain loops, so they have a static behavior and can be used to implement memoryless inputtooutput mappings. In a feedforward network it is possible to distinguish one input layer, one output layer, and hidden layers that connect the input to the output.
In this work, a feedforward neural network (fully connected multilayer perceptron) of the “shallow” type, i.e., one hidden layer, was used to implement the control model. A grid search tuning procedure allowed the selection of a configuration with 15 units in the hidden layer, while the number of input and output units is constrained by the number of input and output variables, respectively. Training was done via the Scaled Conjugate Gradient (SCG) method [61], which exploits the good convergence properties of conjugate gradient optimization [62] and has the computational advantage of not requiring a line search, nor any userselected parameters.
IvB ANN Training Procedure
The ANN takes as inputs the measured variables of the filter current , the output voltage , the output current , and the reference voltage all expressed in coordinates. For simplicity’s sake, the real and imaginary parts of these variables are separately fed to the neural network, bringing the total number of input features to eight, i.e., . On the other hand, the optimum voltage vector to be applied at each sampling instant constitute the output of the ANN. In fact, the size of the output layer is an array with a length of , which represents the indexes of the seven possible voltage vectors that inverter generates. The output is onehot encoded, meaning that at each sampling instant only the index of the optimum voltage vector will be active (i.e., having a value of one), while others will be equal to zero.
The training data, which have been collected by MPC, comprises samples, which are divided into samples for specific resistive loads (i.e., for only and ), whereas only samples represent the case where the inverter is directly fed a nonlinear load (i.e., diodebridge rectifier) with different values of and . For each sample, the simulation is run, using MPC^{2}^{2}2Web: https://github.com/IhabMohamed/MPC3PhaseInverters, under various operating conditions such as simulation time (i.e, number of output voltage cycles), sampling time , filter capacitor , filter inductance , DClink voltage , and reference voltage . Then, the input features of the neural network and their targets are stored for training.
As a consequence, the total dataset consists of and instances for the case of having and training samples, respectively. These dataset has been divided into two parts: randomly selected for training purposes, and for testing and validation. The overall accuracy of ANN in the case of samples is , while it has a increase for the samples case, considering hidden layers and the training function “transcg”. It is observed that the validation and training error, as well as the error on the test set, are very similar when training stops, according to the “early stopping” criterion used. This is an indication that the neural network may attain a good degree of generalization. For instance, for the samples case, the best validation performance is taken from epoch with the lowest validation error of . The training results are summarized in Table I. It is noteworthy that training was also done using Bayesian regularization backpropagation method, achieving an accuracy of . However, its performance at the test phase (online) was not satisfactory.
Tr. Samples  No. of Instances  Accuracy  Validation Error (epoch) 

samples  (747)  
samples  (526) 
For further detailed information about the training samples used for training the ANNbased controller, please refer to: https://github.com/IhabMohamed/ANNMPC.
IvC ANNBased Controller
As previously mentioned, the ANNbased controller is trained offline from samples collected via MPC, as shown in Fig. 1. After finetuning the ANN, the trained ANN can be used instead of MPC to control the system presented in Fig. 2.
Fig. 5 depicts the proposed block diagram of the ANNbased controller for a threephase inverter with output filter, in order to generate a highquality sinusoidal output voltage with low THD, considering different types of loads.
The control strategy of the proposed ANNbased controller at sampling time can be described as follows:

then, these measured values in addition to the reference voltage are used by the trained ANN in order to explicitly generate the optimum voltage vector to be applied at instant ;

finally, the switching states, , , and , corresponding to the optimum voltage vector are applied and directly given to the power switches of the converter each sampling interval .
V Simulation Implementation and Results
This section provides a comprehensive study and evaluation of the two proposed control strategies, taking into account different loads under various operating conditions.
Va Simulation Setup
The Simulink model and the simulations of the system shown in Fig. 2 have been implemented using MATLAB (R2018a)/Simulink software components, which runs on Ubuntu 16.04 bit, in order to verify the proposed ANNbased control strategy and compare its performance with the conventional predictive controller (i.e., MPC). A lowerend PC has been used for acquiring the training samples, offline training, and online voltage tracking purpose using the proposed ANN approach. In particular, it is equipped with an Intel^{®} Core i54210U CPU, GB of RAM, and an Nvidia Geforce^{®} GPU, and runs Ubuntu 16.04 bit.
VB Simulation Results
The simulation of the threephase inverter system shown in Fig. 2 was carried out, considering linear (i.e., resistive) and nonlinear loads, in order to evaluate the behavior of the proposed ANNbased control strategy and compare its performance with that of MPC proposed in Section III. In particular, the steady and dynamic performance of both control strategies are studied and evaluated, taking into account different loads conditions. The parameters of the system are listed in Table II.
Parameter  Value 

DClink voltage  
Filter capacitor  
Filter inductance  
Sampling time 
The behavior of the ANNbased controller in steadystate operation for a resistive load of shown in Fig. 6, while the behavior of the predictive controller for the same resistive load is shown in Fig. 7. It is noteworthy that the amplitude and the fundamental frequency of reference voltage are set to and , respectively. It can be seen in the figures that the output voltages for the proposed control strategies are sinusoidal with low distortion, particularly for the ANNbased approach which has a THD of only compared to for MPC. Moreover, it is observed, due to the resistive load, that the output current is proportional to the output voltage, whilst the filter current measured at the output of the converter shows highfrequency harmonics, especially in the case of MPC, which are attenuated by the filter.
The transient response of both the control strategies for noload (i.e., opencircuit) is shown in Fig. 8 and Fig. 9. Here, the filter capacitor and filter inductance are set to and , respectively, whilst the sampling time is kept constant at a value of . It can be seen that the ANNbased controller permits a fast and safe transient response, demonstrating the excellent dynamic performance of the proposed ANNbased control strategy. For MPC, the time elapsed in order to reach steadystate operation and to faithfully track its reference waveform is about ( cycle), which is affected by the change in the load, as illustrated in Table III. On the other side, for the ANNbased controller, it is observed that it takes less than for any load, in order to reach steadystate. Furthermore, the output voltage quality of ANNbased approach is improved significantly, with a THD of compared to for MPC.
As previously mentioned, the proposed ANN is trained offline using a dataset which represents only different values of resistive load under different operating conditions. However, in order to verify the feasibility and effectiveness of the proposed ANNbased controller under realistic conditions, the behavior of the system is tested online considering nonlinear loads, such as a diodebridge rectifier as shown in Fig. 10 and an inductive load. Fig. 11 and Fig. 12 show the behavior of the proposed control strategies for a diodebridge rectifier, with values and , while the behavior for an inductive load of is shown in Fig. 13 and Fig. 14, considering the same operating conditions presented in Table II and different amplitudes of the reference output voltage. As can be seen in the figures, the output voltage generated by the ANNbased controller outperforms that obtained using MPC for nonlinear loads, despite the highly distorted output currents due to feeding a nonlinear load. For instance, for MPC, the total distortion in the output voltage for the inductive load was , while it was for the ANNbased controller. The result of MPC can be improved by using either a smaller sampling time or a higher value of the filter capacitance [32].
In order to achieve a fair comparison and prove the superiority of the proposed ANNbased approach compared to MPC in both transient and steadystate response, Table III shows a comprehensive comparison of both the control strategies for linear and nonlinear loads, under various operating conditions such as sampling time , filter capacitor , filter inductance , DClink voltage , and reference voltage . Fifty unseen samples, at training time, have been considered for testing the proposed approaches, thirty samples for different values of a resistive load, whereas the rest for a diodebridge rectifier as a nonlinear load. Moreover, the THD of the output voltage obtained by the proposed control strategies, for some samples given in Table III, is visualized in Fig. 15. As anticipated, the performance of the ANNbased approach, either based on sixty or seventy training samples, outperforms that of MPC, which can be noticed in lower THD and less settling time to reach steadystate (i.e., , as shown in the first ten samples (i.e., )). It can be noticed that the performance of the ANNbased controller using only sixty training samples is similar to that based on seventy samples (see column and in Table III).
However, for samples , the output voltages obtained using MPC are better than that obtained using the ANNbased controller. Moreover, it can be seen in sample that the ANNbased approach failed to control the output voltage and track its reference waveform. As a consequence, the UPS does not work properly due to a higher distortion in the voltage. These results could be improved using either (i) a higher sampling frequency, or (ii) a higher value of the filter capacitance , as illustrated in sample which represents an improvement of the result of sample . An alternative solution to be considered to improve the performance of the controller is to increase the number of training instances, taking into account various values of and . In addition, it is observed that having a onedelay step in the input features of the neural network improves its performance to outperform that of MPC. For example, of samples is decreased to be , respectively.
In fact, it is not surprising that the performance of the proposed ANNbased controller outperforms that of MPC in both transient and steadystate response, even with unseen samples (i.e., loads) at training time as tabulated in Table III. This happened for two reasons. First, the training data are sufficient to learn the mathematical model of the system to be controlled and its dynamics, as well as representing the optimal control law. Second, generating a sinusoidal output voltage can be considered as a repetitive task, where neural network can easily detect and learn repetitive sequences of actions.
Case # : Resistive Load as Linear Load with  Results  
[]  [] ()  
Sample No.  []  []  []  []  []  []  
0.49  ()  
0.55  ()  
0.65  ()  
0.66  ()  
0.63  ()  
0.95  ()  
0.70  ()  
0.76  ()  
0.98  ()  
Open Circuit  0.79  ()  
\hdashline  0.72  
0.83  
0.88  
0.95  
0.96  
1.58  
1.09  
1.20  
1.61  
Open Circuit  2.25  
\hdashline  1.11  
1.66  
2.10  
2.27  
1.50  
\hdashline  4.42  
4.19  
5.63  
3.61  
Open Circuit  3.70  
Case # : DiodeBridge Rectifier as NonLinear Load with and  Results  
[]  []  
Sample No.  []  []  []  []  []  []  []  
3.97  
1.99  
1.97  
0.94  
0.80  
1.30  
2.22  
\hdashline  2.94  
3.32  
3.15  
2.89  
2.19  
1.69  
3.47  
\hdashline  2.04  
4.30  
2.70  
3.63  
35  5.78  
50  2.30 
At the moment, one can say that the main limitation of the proposed method is that only the simulation results are not sufficient to prove its novelty in practical applications. However, indeed we believe that our proposed approach will also represent a novel contribution to the practical applications for the following reasons: (i) based on the previously proposed literature, both ANNbased and MPCbased approaches have shown good results in both simulated and experimental scenarios; (ii) moreover, the trained network is only required to be finetuned, in order to improve its performance in practical applications.
Vi Conclusions and Future Work
A novel control strategy using a feedforward ANN to generate a highquality sinusoidal output voltage of a threephase inverter with an output filter has been successfully developed and tested, for different types of loads under various operating conditions. The output voltage of the inverter is directly controlled, without the need for the mathematical model of the inverter, considering the whole system as a blackbox. In this work, MPC has been used for two main purposes: (i) generating the data required for the offline training of the proposed ANN, and (ii) comparing its performance with the proposed ANNbased controller for linear and nonlinear load conditions. Simulation results, based on fifty test samples different than those that were used at training time, show that the proposed ANNbased controller performs better than MPC, in terms of a lower THD and a fast and safe transient response, demonstrating the excellent steady and dynamic performance of the proposed ANNbased control strategy. As in any modelbased control strategy, variations in the system parameters inevitably influence the performance of the ANNbased control scheme proposed in this paper. The possible directions for future work would be (i) the implementation of the ANNbased controller in practical applications; then (ii) the employment in other power electronics applications, possibly employing different neural networks.
References
 [1] P. Cortés, G. Ortiz, J. I. Yuz, J. Rodríguez, S. Vazquez, and L. G. Franquelo, “Model predictive control of an inverter with output LC filter for UPS applications,” IEEE Transactions on Industrial Electronics, vol. 56, no. 6, pp. 1875–1883, 2009.
 [2] T. G. Habetler, R. Naik, and T. A. Nondahl, “Design and implementation of an inverter output LC filter used for dv/dt reduction,” IEEE Transactions on Power Electronics, vol. 17, no. 3, pp. 327–331, 2002.
 [3] B. K. Bose, “Power electronics and AC drives,” Englewood Cliffs, NJ, PrenticeHall, 1986, 416 p., 1986.
 [4] M. P. Kazmierkowski and L. Malesani, “Current control techniques for threephase voltagesource PWM converters: A survey,” IEEE Transactions on industrial electronics, vol. 45, no. 5, pp. 691–703, 1998.
 [5] J. M. Carrasco, L. G. Franquelo, J. T. Bialasiewicz, E. Galván, R. C. PortilloGuisado, M. M. Prats, J. I. León, and N. MorenoAlfonso, “Powerelectronic systems for the grid integration of renewable energy sources: A survey,” IEEE Transactions on industrial electronics, vol. 53, no. 4, pp. 1002–1016, 2006.
 [6] F. Blaabjerg, R. Teodorescu, M. Liserre, and A. V. Timbus, “Overview of control and grid synchronization for distributed power generation systems,” IEEE Transactions on industrial electronics, vol. 53, no. 5, pp. 1398–1409, 2006.
 [7] J. Gurrero, L. G. De Vicuna, and J. Uceda, “Uninterruptible power supply systems provide protection,” IEEE Industrial Electronics Magazine, vol. 1, no. 1, pp. 28–38, 2007.
 [8] J. Y. Hung, W. Gao, and J. C. Hung, “Variable structure control: A survey,” IEEE transactions on industrial electronics, vol. 40, no. 1, pp. 2–22, 1993.
 [9] I. S. Mohamed, S. A. Zaid, M. AbuElyazeed, and H. M. Elsayed, “Classical methods and model predictive control of threephase inverter with output LC filter for UPS applications,” in Control, Decision and Information Technologies (CoDIT), 2013 International Conference on. IEEE, 2013, pp. 483–488.
 [10] D. M. Brod and D. W. Novotny, “Current control of VSIPWM inverters,” IEEE Transactions on Industry Applications, no. 3, pp. 562–570, 1985.
 [11] J. Jung, M. Dai, and A. Keyhani, “Optimal control of threephase PWM inverter for UPS systems,” in IEEE Power Electronics Specialists Conference, vol. 3, 2004, pp. 2054–2059.
 [12] I. S. Mohamed, S. A. Zaid, M. AbuElyazeed, and H. M. Elsayed, “Model predictive controla simple and powerful method to control UPS inverter applications with output LC filter,” in Electronics, Communications and Photonics Conference (SIECPC), 2013 Saudi International. IEEE, 2013, pp. 1–6.
 [13] F. Rojas, R. Kennel, R. Cardenas, R. Repenning, J. C. Clare, and M. Diaz, “A new spacevectormodulation algorithm for a threelevel fourleg NPC inverter,” IEEE Transactions on Energy Conversion, vol. 32, no. 1, pp. 23–35, 2017.
 [14] P. C. Loh, M. J. Newman, D. N. Zmood, and D. G. Holmes, “A comparative analysis of multiloop voltage regulation strategies for single and threephase UPS systems,” IEEE Transactions on Power Electronics, vol. 18, no. 5, pp. 1176–1185, 2003.
 [15] P. C. Loh and D. G. Holmes, “Analysis of multiloop control strategies for LC/CL/LCLfiltered voltagesource and currentsource inverters,” IEEE Transactions on Industry Applications, vol. 41, no. 2, pp. 644–654, 2005.
 [16] O. Kukrer, “Deadbeat control of a threephase inverter with an output LC filter,” IEEE Transactions on power electronics, vol. 11, no. 1, pp. 16–23, 1996.
 [17] P. Mattavelli, “An improved deadbeat control for UPS using disturbance observers,” IEEE Transactions on Industrial Electronics, vol. 52, no. 1, pp. 206–212, 2005.
 [18] Y. A.R. I. Mohamed and E. F. ElSaadany, “An improved deadbeat current control scheme with a novel adaptive selftuning load model for a threephase PWM voltagesource inverter,” IEEE Transactions on Industrial Electronics, vol. 54, no. 2, pp. 747–759, 2007.
 [19] J. S. Lim, C. Park, J. Han, and Y. I. Lee, “Robust tracking control of a threephase DC–AC inverter for UPS applications,” IEEE Transactions on Industrial Electronics, vol. 61, no. 8, pp. 4142–4151, 2014.
 [20] M. Pichan, H. Rastegar, and M. Monfared, “Deadbeat control of the standalone fourleg inverter considering the effect of the neutral line inductor,” IEEE Trans. Industrial Electronics, vol. 64, no. 4, pp. 2592–2601, 2017.
 [21] G. Escobar, P. Mattavelli, A. M. Stankovic, A. A. Valdez, and J. LeyvaRamos, “An adaptive control for UPS to compensate unbalance and harmonic distortion using a combined capacitor/load current sensing,” IEEE Transactions on Industrial Electronics, vol. 54, no. 2, pp. 839–847, 2007.
 [22] S. Jiang, D. Cao, Y. Li, J. Liu, and F. Z. Peng, “LowTHD, fasttransient, and costeffective synchronousframe repetitive controller for threephase UPS inverters,” IEEE Transactions on Power Electronics, vol. 27, no. 6, pp. 2994–3005, 2012.
 [23] E. Wu and P. W. Lehn, “Digital current control of a voltage source converter with active damping of LCL resonance,” in Twentieth Annual IEEE Applied Power Electronics Conference and Exposition, 2005. APEC 2005., vol. 3. IEEE, 2005, pp. 1642–1649.
 [24] H. Komurcugil, “Rotatingslidinglinebased slidingmode control for singlephase UPS inverters,” IEEE Transactions on Industrial Electronics, vol. 59, no. 10, pp. 3719–3726, 2012.
 [25] S. Sabir, Q. Khan, M. Saleem, and A. Khaliq, “Robust voltage tracking control of three phase inverter with an output LC filter: A sliding mode approach,” in Emerging Technologies (ICET), 2017 13th International Conference on. IEEE, 2017, pp. 1–5.
 [26] P. Cortés, M. P. Kazmierkowski, R. Kennel, D. E. Quevedo, and J. R. Rodriguez, “Predictive control in power electronics and drives.” IEEE Trans. Industrial Electronics, vol. 55, no. 12, pp. 4312–4324, 2008.
 [27] V. K. Singh, R. N. Tripathi, and T. Hanamoto, “HIL cosimulation of finite setmodel predictive control using FPGA for a threephase VSI system,” Energies, vol. 11, no. 4, p. 909, 2018.
 [28] G. Willmann, D. F. Coutinho, L. F. A. Pereira, and F. B. Líbano, “Multipleloop Hinfinity control design for uninterruptible power supplies,” IEEE Transactions on Industrial Electronics, vol. 54, no. 3, pp. 1591–1602, 2007.
 [29] T.S. Lee, K. Tzeng, and M. Chong, “Robust controller design for a singlephase UPS inverter using synthesis,” IEE ProceedingsElectric Power Applications, vol. 151, no. 3, pp. 334–340, 2004.
 [30] I. S. Mohamed, S. A. Zaid, H. M. Elsayed, and M. AbuElyazeed, “Threephase inverter with output LC filter using predictive control for UPS applications,” in Control, Decision and Information Technologies (CoDIT), 2013 International Conference on. IEEE, 2013, pp. 489–494.
 [31] M. Nauman and A. Hasan, “Efficient implicit modelpredictive control of a threephase inverter with an output LC filter,” IEEE Transactions on Power Electronics, vol. 31, no. 9, pp. 6075–6078, 2016.
 [32] I. S. Mohamed, S. A. Zaid, M. AbuElyazeed, and H. M. Elsayed, “Implementation of model predictive control for threephase inverter with output LC filter on eZdsp F28335 Kit using HIL simulation,” International Journal of Modelling, Identification and Control, vol. 25, no. 4, pp. 301–312, 2016.
 [33] E. F. Camacho and C. Bordons, “Nonlinear model predictive control: An introductory review,” in Assessment and future directions of nonlinear model predictive control. Springer, 2007, pp. 1–16.
 [34] S. Vazquez, J. Rodriguez, M. Rivera, L. G. Franquelo, and M. Norambuena, “Model predictive control for power converters and drives: Advances and trends,” IEEE Transactions on Industrial Electronics, vol. 64, no. 2, pp. 935–947, 2017.
 [35] I. S. Mohamed, S. A. Zaid, M. AbuElyazeed, and H. M. Elsayed, “Improved model predictive control for threephase inverter with output LC filter,” International Journal of Modelling, Identification and Control, vol. 23, no. 4, pp. 371–379, 2015.
 [36] S. Mariéthoz and M. Morari, “Explicit modelpredictive control of a PWM inverter with an LCL filter,” IEEE Transactions on Industrial Electronics, vol. 56, no. 2, pp. 389–399, 2009.
 [37] S. Kwak and J.C. Park, “Switching strategy based on model predictive control of VSI to obtain high efficiency and balanced loss distribution,” IEEE Trans. Power Electron, vol. 29, no. 9, pp. 4551–4567, 2014.
 [38] M. H. Rashid, Power electronics handbook. ButterworthHeinemann, 2017.
 [39] K. S. Narendra and K. Parthasarathy, “Identification and control of dynamical systems using neural networks,” IEEE Transactions on neural networks, vol. 1, no. 1, pp. 4–27, 1990.
 [40] K. J. Hunt, D. Sbarbaro, R. Żbikowski, and P. J. Gawthrop, “Neural networks for control systems—a survey,” Automatica, vol. 28, no. 6, pp. 1083–1112, 1992.
 [41] J. SaintDonat, N. Bhat, and T. J. McAvoy, “Neural net based model predictive control,” International Journal of Control, vol. 54, no. 6, pp. 1453–1468, 1991.
 [42] B. Karanayil and M. F. Rahman, “Artificial neural network applications in power electronics and electric drives,” in Power Electronics Handbook (Fourth Edition). Elsevier, 2018, pp. 1245–1260.
 [43] M. T. Wishart and R. G. Harley, “Identification and control of induction machines using artificial neural networks,” IEEE Transactions on Industry Applications, vol. 31, no. 3, pp. 612–619, 1995.
 [44] X. Sun, L. Chen, Z. Yang, and H. Zhu, “Speedsensorless vector control of a bearingless induction motor with artificial neural network inverse speed observer,” IEEE/ASME Transactions on mechatronics, vol. 18, no. 4, pp. 1357–1366, 2013.
 [45] H.Y. Lee, J.L. Lee, S.O. Kwon, and S.W. Lee, “Performance estimation of induction motor using artificial neural network,” in 2018 25th International Conference on Systems, Signals and Image Processing (IWSSIP). IEEE, 2018, pp. 1–3.
 [46] S. M. Gadoue, D. Giaouris, and J. W. Finch, “Stator current model reference adaptive systems speed estimator for regeneratingmode lowspeed operation of sensorless induction motor drives,” IET Electric Power Applications, vol. 7, no. 7, pp. 597–606, 2013.
 [47] A. Bakhshai, J. Espinoza, G. Joos, and H. Jin, “A combined artificial neural network and DSP approach to the implementation of space vector modulation techniques,” in Industry Applications Conference, 1996. ThirtyFirst IAS Annual Meeting, IAS’96., Conference Record of the 1996 IEEE, vol. 2. IEEE, 1996, pp. 934–940.
 [48] J. O. Pinto, B. K. Bose, L. B. Da Silva, and M. P. Kazmierkowski, “A neuralnetworkbased spacevector PWM controller for voltagefed inverter induction motor drive,” IEEE Transactions on Industry Applications, vol. 36, no. 6, pp. 1628–1636, 2000.
 [49] E. Karatepe, T. Hiyama et al., “Artificial neural networkpolar coordinated fuzzy controller based maximum power point tracking control under partially shaded conditions,” IET Renewable Power Generation, vol. 3, no. 2, pp. 239–253, 2009.
 [50] M. P. Akter, S. Mekhilef, N. M. L. Tan, and H. Akagi, “Modified model predictive control of a bidirectional AC–DC converter based on lyapunov function for energy storage systems,” IEEE Transactions on Industrial Electronics, vol. 63, no. 2, pp. 704–715, 2016.
 [51] B.R. Lin and R. G. Hoft, “Power electronics inverter control with neural networks,” in Proceedings Eighth Annual Applied Power Electronics Conference and Exposition,. IEEE, 1993, pp. 128–134.
 [52] X. Sun, M. H. Chow, F. H. Leung, D. Xu, Y. Wang, and Y.S. Lee, “Analogue implementation of a neural network controller for UPS inverter applications,” IEEE transactions on power electronics, vol. 17, no. 3, pp. 305–313, 2002.
 [53] H. Boumaaraf, A. Talha, and O. Bouhali, “A threephase NPC gridconnected inverter for photovoltaic applications using neural network MPPT,” Renewable and Sustainable Energy Reviews, vol. 49, pp. 1171–1179, 2015.
 [54] R.J. Wai, M.W. Chen, and Y.K. Liu, “Design of adaptive control and fuzzy neural network control for singlestage boost inverter,” IEEE Transactions on Industrial Electronics, vol. 62, no. 9, pp. 5434–5445, 2015.
 [55] X. Fu and S. Li, “Control of singlephase gridconnected converters with LCL filters using recurrent neural network and conventional control methods,” IEEE Transactions on Power Electronics, vol. 31, no. 7, pp. 5354–5364, 2016.
 [56] S. Piche, B. SayyarRodsari, D. Johnson, and M. Gerules, “Nonlinear model predictive control using neural networks,” IEEE Control Systems Magazine, vol. 20, no. 3, pp. 53–62, 2000.
 [57] B. M. Åkesson and H. T. Toivonen, “A neural network model predictive controller,” Journal of Process Control, vol. 16, no. 9, pp. 937–946, 2006.
 [58] D. Wang, X. Yin, S. Tang, C. Zhang, Z. J. Shen, J. Wang, and Z. Shuai, “A deep neural network based predictive control strategy for high frequency multilevel converters,” in 2018 IEEE Energy Conversion Congress and Exposition (ECCE). IEEE, 2018, pp. 2988–2992.
 [59] T. Dragicevic and M. Novak, “Weighting factor design in model predictive control of power electronic converters: An artificial neural network approach,” IEEE Transactions on Industrial Electronics, 2018.
 [60] K. Hornik, “Approximation capabilities of multilayer feedforward networks,” Neural networks, vol. 4, no. 2, pp. 251–257, 1991.
 [61] M. F. Møller, “A scaled conjugate gradient algorithm for fast supervised learning,” Neural networks, vol. 6, no. 4, pp. 525–533, 1993.
 [62] R. Fletcher, Practical methods of optimization. John Wiley & Sons, Ltd, 2000, second edition.