You are on page 1of 10

IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 37, NO.

6, JUNE 2022 6637

Data-Driven Continuous-Set Predictive Current


Control for Synchronous Motor Drives
Paolo Gherardo Carlet , Andrea Favato , Saverio Bolognani , and Florian Dörfler

Abstract—Optimization-based control strategies are an affirmed which rely on plant modeling and identification procedures.
research topic in the area of electric motor drives. These methods The epitome of this model-based paradigm is arguably the
typically rely on the accurate parametric representation of model-predictive control (MPC), which has been applied to
equations of a motor. In this article, we present the transition
from model-based to data-driven optimal control strategies. We power electronics control tasks for two decades, reaching an
start from the model-predictive control paradigm, which uses the industrial and commercial level [2].
voltage balance model of the motor. Then, we discuss the prediction Continuous control set (CCS) MPC methods for permanent
error method, where a state-space model is identified from data, magnet synchronous motor (PMSM) current control, which is
without parameterization. Moving toward data-driven controls, the focus of this article, rely on a state-space model of the
we present the subspace predictive control, where a reduced model
is constructed based on the singular value decomposition of raw motor to build the predictive controller [3]–[5]. The model is
data. The final step is represented by a complete data-driven commissioned by performing an experimental characterization
approach, named data-enabled predictive control, in which raw of specific parameters. These procedures often include many
data are not encoded into a model but directly used in the controller. different tests, and they require specific measuring devices and
The theory behind these techniques is reviewed and applied for proper testbed setups. Then, the resulting accurate model can be
the first time to the design of the current controller of synchronous
permanent magnet motor drives. Design guidelines are provided exploited in real time by means of lookup tables. Alternatively,
to practitioners for the proposed application, and a way to address parameters could be estimated via offline [6] or online [7]
offset-free tracking is discussed. Experimental results demonstrate procedures. Self-commissioning and autotuning techniques are
the feasibility of the real-time implementation and provide also consolidated strategies. In [8], an exhaustive survey of
comparisons between the model-based and data-driven controls. research and state-of-the-art parameter identification and self-
Index Terms—Data-driven control, data-enabled predictive commissioning methods for ac motor drives is discussed. In par-
control (DeePC), model-predictive control (MPC), permanent ticular, these approaches are of interest when high-performance
magnet synchronous motor (PMSM), prediction error method control is required with sensorless applications. Finally, many
(PEM), subspace predictive control (SPC).
methods have been proposed in the literature to improve the
I. INTRODUCTION robustness against parameter variations [9]–[13], although most
of these strategies are implemented for finite-set MPCs.
HE interest in data analysis is constantly growing, sup-
T ported by an unprecedented availability of computational
power and memory storage, as well as advances in optimization,
The key idea behind data-driven predictive controllers is to
avoid the model identification stage entirely and design the con-
troller directly from collected input/output (I/O) data, e.g., volt-
statistics, and machine learning. This leads to an increasing age/current samples. This approach overcomes the challenges of
attention toward data-enabled methods in all branches of science model selection and identification, resulting in particular interest
and engineering. This revolution has a significant impact on the for many industrial applications [14]. However, there are just a
control engineering too. Data-driven control design consists of few examples of data-driven control applications for electric
synthesizing a controller using the data collected on the real motor drives. In [15], an observer is coupled to an MPC to
system, without defining and identifying a parametric model for update the PMSM model, improving its reliability. However, this
the plant [1]. This is in contrast with model-based approaches, approach still relies on a parametric model. A controller design
procedure is proposed by Schenke et al. [16], based on deep
Manuscript received November 12, 2021; accepted December 31, 2021. Date reinforcement learning. The solution guarantees the benefits
of publication January 13, 2022; date of current version February 18, 2022. This
work was supported in part by the Fondazione “Ing. Aldo Gini”, in part by the of an optimal controller, without requiring expensive computa-
University of Padova under Project SID 2017-BIRD175428, and in part by ETH tions. Many effective techniques have been presented, which go
Zurich funds. Recommended for publication by Associate Editor R. Kennel. toward the data-driven paradigm, named model-free [17]–[19]
(Corresponding author: Paolo Gherardo Carlet.)
Paolo Gherardo Carlet and Andrea Favato are with Electric Drives Laboratory, or parameter-free [20] algorithms. In particular, Zhang et al. [17]
Department of Industrial Engineering, University of Padova, 35131 Padova, Italy and Tinazzi et al. [18] propose to online update a parameter-free
(e-mail: paologherardo.carlet@unipd.it; andrea.favato@phd.unipd.it). model, but they rely on the hypothesis that there are no data
Saverio Bolognani and Florian Dörfler are with Automatic Control Lab-
oratory, ETH Zürich, 8092 Zürich, Switzerland (e-mail: bsaverio@ethz.ch; available for guessing an initial controller, which might be too
dorfler@ethz.ch). restrictive.
Color versions of one or more figures in this article are available at In this article, we show a transition from model-based to
https://doi.org/10.1109/TPEL.2022.3142244.
Digital Object Identifier 10.1109/TPEL.2022.3142244 data-driven control design, considering as application the current

0885-8993 © 2022 IEEE. Personal use is permitted, but republication/redistribution requires IEEE permission.
See https://www.ieee.org/publications/rights/index.html for more information.

Authorized licensed use limited to: BEIHANG UNIVERSITY. Downloaded on October 29,2022 at 03:47:31 UTC from IEEE Xplore. Restrictions apply.
6638 IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 37, NO. 6, JUNE 2022

control of PMSMs. This control task serves as a well-understood Instead, this article provides some concrete, although prelim-
benchmark for new methods, despite the fact that other tradi- inary, answer to the contemporary question how data-driven
tional nondata-driven methods yield satisfactory results for this techniques can impact the electric drives field? Differently from
application. We consider optimization-based control scheme, other machine-learning-based solution that can be found in
i.e., MPC-type solutions. We first present a state-of-the-art the literature, the proposed schemes are more computationally
CCS-MPC, whose model is obtained through a previous char- efficient, less data hungry, and more suitable to rigorous stability
acterization of the motor parameters. Then, we move step by and robustness analysis [28].
step toward more data-driven control designs, exploiting just
voltage and current measurements collected from the motor. II. MODEL-BASED MPC OF PMSM CURRENTS
First, the prediction error method (PEM) technique coupled According to the MPC paradigm, the future control input se-
with MPC is presented, which is a consolidate solution for quence u = [u(k), u(k + 1), . . . , u(k + N − 1)]T is optimized
identifying a state-space model from data [21]. A further step in order to steer the predicted future output y = [y(k + 1), y(k +
is represented by the subspace predictive control (SPC) [22], 2), . . . , y(k + N )]T to a desired reference r = [r(k + 1), r(k +
where the collected data are processed offline by means of a 2), . . . , r(k + N )]T . Only the first optimal input of the sequence
least-squares program, and the resulting autoregressive model u(k) is applied to the plant (receding horizon principle). Thus,
with exogeneous inputs (ARX) is denoized by singular value the following optimization problem is solved at each control
thresholding. This pseudoidentification procedure is used to period:
build a linear predictor for the current dynamics. Finally, a  
completely data-driven control algorithm is presented, named min y − r2Q + u2R (1a)
u,x,y
the data-enabled predictive control (DeePC) [23], [24], where
the system identification process is completely avoided and the subject to x(k + 1) = Ax(k) + Bu(k), y = Cx (1b)
collected data are directly used in the controller. This technique u(k) ∈ U , k = 0, . . . , N − 1 (1c)
has already found application in power electronics [25]–[27].
The contributions of this article are manifold. where N is the prediction horizon, Q ≥ 0 and R > 0 are two
1) We illustrate the perspective of data-driven control design weighting matrices, A and B represent the state-space model
using a predictive control framework. used to predict the output y = Cx, and U is the input feasible
2) We demonstrate the practical real-time implementation of set. Considering the specific application, U is a polytope [29]. If
data-driven methods, which is not trivial since data-driven the set U is neglected, the problem is referred to unconstrained,
methods are expensive in terms of computation and sam- and it has a closed-form solution of reduced computational
ples. burden. In contrast, if the polytopic constraints are included, the
3) We show that the data-driven paradigm can be a systematic optimization problem becomes a quadratic program (QP), which
design tool for PMSM current controllers. requires an online QP solver such as qpOASES, as in [30], but
4) We compare the computational aspects of the presented it is still usually solvable in real time.
control strategies. In the context of PMSM current control, future currents are
5) As a technical contribution, we address the problem of the estimated by exploiting a parametric model, based on the PMSM
offset-free tracking for the SPC and DeePC methods. voltage balance equations, represented in the dq reference frame,
6) We provide guidelines for the choice of the con- synchronous with the rotor flux. The equations are arranged
trol parameters and excitation input signals for this in a state-space form and discretized using the explicit Euler
application. approximation technique
A relevant advantage of data-driven strategies is that they idq(k + 1) = Aidq(k) + Budq(k) + Bh(k)
can be easily implemented as automatic procedures that ex- ⎡ ⎤ ⎡T ⎤
cite the system with predefined input signals, perform offline Ts Lq s
1 − Rs ωe Ts 0
calculations, and deliver a ready-to-use control law. No special ⎢ Ld Ld ⎥ ⎢ Ld ⎥
A=⎣ Ld Ts ⎦ , B = ⎣ Ts ⎦ (2)
skills or specialized commissioning personnel are required to set −ωe Ts 1 − Rs 0
up the procedure. This approach could be interesting for some Lq Lq Lq
industrial challenges. For example, in compressor for refrigera- where Rs is the stator winding resistance, Ts is the sampling
tion equipment or submersible pumps, offline characterizations period, ωe is the electric angular speed, and Ld and Lq are the d-
cannot be performed when PMSMs are inaccessible. Another and q-axis inductances, respectively. Moreover, idq and udq are
case of interest is multipurpose drives, where algorithms suitable the dq currents and voltages, respectively. udq are the inputs of
for different PMSM topologies are needed. In addition, PMSM the system, whereas idq are the states. Finally, h = [0 − ωe Λpm ]T
and inverter manufacturers are often different companies, and is the back electromotive force (back EMF) due to the permanent
they were never meant to be integrated in the same application. magnet flux linkage Λpm . In the considered application, the full
Moreover, if the motor drive needs to be manually retuned during state, i.e., motor currents, is measurable. This model neglects
its life cycle, data-driven procedures represent a simple and the cross-saturation phenomena, as well as iron-saturation and
reliable method to adapt the initial design. back-EMF harmonic effects. Thus, the model can result as over-
The goal of this article is not to demonstrate the superiority simplified for some PMSM topologies, such as pure reluctance
of the data-driven paradigm over the model-based approach. motors. However, many CCS-MPCs proposed in the literature

Authorized licensed use limited to: BEIHANG UNIVERSITY. Downloaded on October 29,2022 at 03:47:31 UTC from IEEE Xplore. Restrictions apply.
CARLET et al.: DATA-DRIVEN CONTINUOUS-SET PREDICTIVE CURRENT CONTROL FOR SYNCHRONOUS MOTOR DRIVES 6639

work with even more simplified models, obtaining indeed good


results. In particular, the dependence of matrix A on the op-
erating speed ωe is neglected, preferring a constant A matrix
for the real-time implementation [29]. We will see later that
the data-driven paradigm overcomes the problem of selecting
a model structure. Moreover, it is worth noticing that the Euler
discretization does not introduce significant errors because of the
high sampling rates, which are typical of the power electronics
area.
An integral action is included in the MPC formulation by
means of the velocity form of the MPC problem (1) [31], in
order to achieve an unbiased current reference tracking. The
discussion about the offset-free data-driven control is given in
Section III-C.

III. TOWARD DATA-DRIVEN CONTROL OF PMSM DRIVES


A data-driven controller for PMSM solves essentially a cur-
rent reference tracking problem analogous to the one presented
in (1). However, in contrast to the parametric model (2) used in
the MPC solution, a nonparametric model is adopted, consisting
of raw measurements arranged in a matrix representation. The
construction of this model happens offline; therefore, it is not an Fig. 1. Overview of the data collection step and the online program. (a) Scheme
adaptive controller. A data-driven controller design procedure of the data collection process. (b) Block scheme of the online controller.
consists of two steps:
1) a data collection step, followed by offline rearrangement
requires the ad hoc identification procedures to identify all the
of the voltages/currents samples into proper matrices;
electric parameters (Rs , Ld , Lq , and Λpm ). The PEM method,
2) an online program, when the tracking problem is solved,
instead, does not enforce any parameterization of the model,
with the voltage/current sample matrices acting as a con-
and the resulting matrices can, in general, have a structure that
straint. In this online step, the controller has access to
is different from the one of (2).
the latest I/O (voltage/current) samples and optimizes the
2) SPC: In the SPC algorithm, the state-space model (1b) is
predictions over an horizon of N steps.
replaced by a different algebraic constraint that relates the future
current trajectory with the past Tini voltage/current samples and
A. Data Collection and Offline Computations
the future N input voltage samples.
All the considered data-driven designs begin from the collec- To obtain this model, two Hankel matrices H (uc ) and H (y c )
tion of a T -long sequence of I/O voltages uc and currents y c are built using the collected sequences uc and y c
measurements (see Fig. 1), where the superscript c stands for ⎡ ⎤
collected. The sequence uc = [uc1 ; uc2 ; . . .; ucT ] ∈ R2T contains u1 u2 · · · uT −Tini −N +1
⎢ u2 u3 · · · uT −Tini −N +2 ⎥
the inverter reference voltages, and it fulfills the persistency of ⎢ ⎥
H (uc ) := ⎢ . . .. ⎥. (4)
excitation requirement [32, Corollary 2], i.e., the Hankel matrix ⎣ .. .. . ⎦
of inputs in (4) needs to have full raw rank. The selection of the uTini +N uTini +N +1 · · · uT
input signal is further discussed in Section IV-A. The resulting
output sequence contains the dq currents y c = [y1c ; y2c ; . . . ; yTc ] ∈ The number of columns of a Hankel matrix is hereinafter
R2T . denoted as L. Given T data and the horizon lengths N and Tini ,
1) PEM-MPC: In the PEM-MPC method, the state-space L can be computed as L = T − Tini − N + 1. The output matrix
model (1b) is used, similarly to a standard MPC approach. H (y c ) is built in an analogous way from the samples y c . Then,
However, the coefficients of the state-space matrices A and B the matrices are partitioned in Past and Future subblocks
used in (1b) are inferred from data by means of an ordinary
least-squares problem1 that involves the sequence uc and yc UP YP
:= H (uc ), := H (y c ) (5)

T −1 UF YF
min xc (k + 1) − Axc (k) − Buc (k)2 . (3)
A,B
k=1 where UP contains the first Tini block rows of H (uc ), i.e.,
2Tini rows, and UF contains the remaining N block rows. The
The main difference between the resulting model and the para-
block Hankel matrices YP and YF are similarly obtained. The
metric voltage balance equation (2) is that the latter inherently
dimensions of all the presented matrices are summarized in
Table I for convenience. The I/O block Hankel matrices UP ,
1 We refer to [25] for a discussion on how to solve this problem numerically. UF , YP , and YF are used in the SPC design to construct an

Authorized licensed use limited to: BEIHANG UNIVERSITY. Downloaded on October 29,2022 at 03:47:31 UTC from IEEE Xplore. Restrictions apply.
6640 IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 37, NO. 6, JUNE 2022

TABLE I
OVERVIEW OF MATRIX DIMENSIONS FOR THE CONSIDERED PMSM CURRENT CONTROL APPLICATION

ARX predictor [33]



uini
y = Pw + Pu u (6)
yini

where uini , yini ∈ R2Tini are the past dq voltage and current sam-
ples, respectively; u, y ∈ R2N are the future ones. The matrices
Pw and Pu are computed solving the least-squares problem
 ⎡ ⎤2
   UP 
 
min YF − Pw | Pu ⎣ YP ⎦ (7)
Pw ,Pu 


UF 

UP
where Pw multiplies the two blocks and Pu multiplies
YP
the block UF . The matrix Pw is exploited in (6) to set the
initial condition of the prediction, i.e., to compute the term
Pw (uini , yini )T . A singular value decomposition of the initial
trajectory predictor Pw can be performed to mitigate the noise
effect in the data [22]. Only the dominant singular values are
used to construct a reduced-rank matrix.
3) DeePC: The design of a DeePC controller is purely data
driven, as the data block Hankel matrices defined in (5) are used
in their raw form in the controller. This method is based on the
so-called fundamental lemma of behavioral system theory [32],
which guarantees that (under persistency-of-excitation assump-
tions on uc ) any trajectory of the system needs to satisfy, for a
unique g ∈ RL , the linear equations Fig. 2. Overview of the three proposed data-driven controller design proce-
⎡ ⎤ ⎡ ⎤ dures.
UP uini
⎢Y ⎥ ⎢y ⎥
⎢ P⎥ ⎢ ini ⎥
⎢ ⎥g = ⎢ ⎥. (8)
⎣ UF ⎦ ⎣u⎦ B. Computational Aspects of the Online Stage
YF y In the online stage, the MPC tracking problem (1) is solved,
but with different representations in place of (1b) depending
Implicitly, (8) serves as a predictor of the future N -long I/O on the adopted data-driven method. Both the unconstrained and
voltage/current trajectory (u, y) based on Tini -long I/O initial constrained solutions are now discussed for each data-driven
trajectory (uini , yini ). If we consider (u, y) as free optimization method, clarifying the practicality of their real-time implemen-
variables, the vector g that satisfies the first two block equations tation from the computational burden point of view. A complete
of (8) can be expressed explicitly as overview of the data-driven design procedures is provided in
† Fig. 2, where the differences between the presented methods are
UP uini uini highlighted for both offline and online stages.
g= + Φz = M + Φz (9)
YP yini yini 1) PEM-MPC: The PEM-MPC algorithm is completely
analogous to a standard model-based MPC, from the point of
where † denotes the Moore–Penrose pseudoinverse operator, and view of the online program. It is worth remembering that two
Φ, such that [UP , YP ]T \Φ = 0, represents a basis of the kernel possible online controllers can be obtained, depending on the
of M. Both Φ and M can be computed offline using standard presence or absence of the constraints (1c). If the problem is
linear algebra routines. This decomposition allows expressing unconstrained [(1c) is absent], the PEM-MPC yields a linear
the future trajectory as a function of the lower dimensional feedback controller [5] of the form u = Kr r + Kx x(k). On
variable z and turns out to be useful in the online phase of the the other hand, the QP problem requires an iterative solver as
unconstrained control problem, as explained in Section III-B. in [30], if input constraints are included. In both situations, the

Authorized licensed use limited to: BEIHANG UNIVERSITY. Downloaded on October 29,2022 at 03:47:31 UTC from IEEE Xplore. Restrictions apply.
CARLET et al.: DATA-DRIVEN CONTINUOUS-SET PREDICTIVE CURRENT CONTROL FOR SYNCHRONOUS MOTOR DRIVES 6641

complexity of the PEM-MPC is the same of a standard model- d are defined as


based MPC, which is amenable for real-time implementation on
adequate hardware. The dimension of the decision variable coin- H := ΦT YTF QYF Φ + ΦT UTF RUF Φ
cides with the dimension of u ∈ R2N ; thus, it scales linearly with T T
the prediction horizon. In the considered application, the full uini uini
d := r − YF M QΦ − UF M RΦ.
state of the system is available, but, in general, the PEM-MPC yini yini
requires a state estimator. The other two data-driven methods, (13)
i.e., SPC and DeePC, do not require a state estimator, since they The Hessian inversion can be evaluated offline with proper
naturally work with the plant outputs. numerical techniques, further reducing the complexity of the
2) SPC: The SPC algorithm solves the same tracking prob- scheme. More details on the closed-form solution of the un-
lem (1) as in MPC or PEM-MPC, but with the state-space model constrained DeePC can be found in [25]. Starting from the
(1b) replaced by the predictor (6) optimal value of z opt , (9) is used to compute g opt and, finally, the
sequence of optimal input uopt . It is still possible to condense this
min ||y − r||2Q + ||u||2R (10a)
u,y controller in a feedback law similar to the SPC, with a decision
variable that scales linearly with the prediction horizon length.
uini The constrained solution of (12) would instead require an online
subject to y = Pw + Pu u (10b)
yini QP solver. However, the dimension of the decision variable g
can be large, as it depends on the number of samples used in (8).
u(k) ∈ U , k = 0, . . . , N − 1. (10c)
Thus, the real-time implementation of the DeePC algorithm is
Similarly to the PEM-MPC, if the constraints (10c) are not still a challenging problem.
present, then we can solve the problem in closed form by In conclusion, three main aspects differentiate the SPC and
substituting the predictor equation (10b) into (10a) and by setting DeePC methods [34]: the way the predictor is built, the un-
the gradient of the resulting convex quadratic cost to zero. derlying prediction model, and the variables over which the
The resulting online controller is a linear feedback of the form QP problem is solved. In fact, the SPC forces a least-squares

u = Kr r + Kini [uini , yini ]T . If the constraints (10c) are present, fit to a linear time-invariant (LTI) system model, whereas the
the minimization program can be solved online, at the same DeePC does not. Thus, SPC is more suited for LTI systems
computational complexity of the PEM-MPC one. In fact, the or linear parameter varying ones. On the other hand, DeePC
computational burden depends on the length of u. We remind exhibits interesting features also when applied to a nonlinear
that this property does not hold for those systems whose states system, even if the fundamental lemma requires in theory an
and outputs have different dimensions. LTI plant, e.g., the grid-connected inverter application shown
3) DeePC: The DeePC algorithm, because of the implicit in [25]. Finally, SPC solves the tracking problem in the input u,
form of the algebraic constraint, requires the minimization over whereas the DeePC solves the problem in g.
the decision variables g, u, y
min ||y − r||2Q + ||u||2R + λg ||g||2 (11a) C. Integral Action
g,u,y
⎡ ⎤ ⎡ ⎤ An integral action is needed to avoid bias errors in the
UP uini current reference tracking for the SPC and DeePC algorithms.
⎢Y ⎥ ⎢y ⎥
⎢ P⎥ ⎢ ini ⎥ For instance, the back EMF induced by the magnets acts as a
s.t. ⎢ ⎥ g = ⎢ ⎥ , u(k) ∈ U , k = 0, . . ., N − 1
⎣UF ⎦ ⎣u⎦ constant disturbance in the voltage equation, inducing a steady-
YF y state error in reference tracking. Following this principle, we
also introduce this framework for data-driven controllers. The
(11b)
integral action can be included by formulating the optimization
where λg adds a regularization on the decision variable g. In problem in its velocity form [31]. The idea is to perform the
fact, if noisy data are used, the Hankel matrices are full raw data collection stage filling the matrices with incremental data,
rank, but the realized control error in (11a) could be different e.g., Δy = y(k) − y(k − 1). For instance, the DeePC problem
from the predicted one. Thus, the term λg ||g||2 helps to robus- in (11) is written as follows:
tify the control problem [34, Sec. III-C]. In the unconstrained
case, the problem can be solved directly using the null-space min ||Δy − r ||2Q + ||Δu||2R + λg ||g||2
g,Δu,Δy
representation presented in (9). The future current and voltage
⎡  ⎤ ⎡ ⎤
sequences u and y are replaced in (11a) with UF g and YF g, UP Δuini
respectively, obtaining ⎢Y ⎥ ⎢ Δy ⎥
  ⎢ ⎥ ⎢ ini ⎥
subject to ⎢ P ⎥
 ⎦
g = ⎢ ⎥
uini 2 u ini 2
⎣ U F ⎣ Δu ⎦
min ||YF M + Φz − r||Q +||UF M + Φz ||R .
z yini yini YF Δy
(12)
u(k) = u(k − 1) + Δu(k) ∈ U , k = 0, 1, . . ., N − 1
The solution of the problem is available in closed form as
z = H d , where the Hessian matrix H and the linear term
opt -1 T
r(k) = r(k) − y(k), k = 1, . . ., N.
(14)

Authorized licensed use limited to: BEIHANG UNIVERSITY. Downloaded on October 29,2022 at 03:47:31 UTC from IEEE Xplore. Restrictions apply.
6642 IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 37, NO. 6, JUNE 2022

Fig. 3. Offset-free tracking error: simulation of the DeePC algorithm with


no integral action (before t = 1s) and with the offset-free implementation after
t = 1s. (a) d-current. (b) q-current.

TABLE II
OVERVIEW OF THE DRIVE PARAMETERS

Fig. 4. Testbed layout.

[UP YP UF YF ]T are the Hankel matrices filled with incre-
mental data. The optimization problem (14) is solved for g; then,
Δu(k) is found.
The effectiveness of the proposed solution is shown in Fig. 3.
The nominal current reference has been set and the steady state
is reached, while the motor is kept at nominal speed. Before
time t = 1s, the standard data-driven formulation is considered
as a controller. As can be seen, a bias appears in the tracking.
At time t = 1s, the controller designed with incremental data is
selected, and the bias is removed.
Fig. 5. Overview of some key parameters of the data collection test. (a) Output
currents during the excitation tests for different uexc values: mean and maximum
IV. EXPERIMENTAL VALIDATION output currents values. (b) Singular values analysis of Pw for different uexc
The authors propose the experimental validation on an interior values.
permanent magnet (IPM) motor. The nominal parameters of the
remains at standstill even if instantaneously the torque is not
considered machine are reported in Table II, while the test-bench
zero. In addition, nonlinear frictions help to avoid rotations of
layout is shown in Fig. 4. All the algorithms, i.e., the MPC,
the motor. If the mechanical inertia of the system is too low or the
PEM-MPC, SPC, and DeePC, are real time implemented on the
frictions are negligible, the rotor could slightly move, as happen
dSPACE MicroLabBox at a sample rate of Ts = 100 µs. The
for other injection-based commissioning techniques [35]. De-
MPC nominal model is commissioned by means of standard
signers should be aware of this potential issue in some specific
tests and offline postprocessing. The motor under test is not
applications.
significantly affected by the magnetic nonlinearity.
The criteria to select the voltage amplitude are discussed here.
The motor is driven by a two-level voltage-source inverter with
A. Data Acquisition Step a dc bus voltage of 300 V. The voltage sequence is generated
The test designed to collect I/O data from the IPM motor by picking the values from a uniform probability distribution
consists of excitation with a random (detailed below) dq voltage in the interval [−uexc , uexc ]. We propose a test to analyze the
vector sequence uc and the measurement of the dq currents via effects of uexc on the sequence y c and the data-driven design.
LEM sensors. Thanks to this choice, the rotor is not required Fig. 5(a) refers to several excitation tests, characterized by dif-
to be locked or to be maintained at standstill by another motor. ferent values of uexc . On the one hand, the maximum excitation
The selected zero-mean voltage sequence induces zero-mean voltage should be limited to avoid overcurrents, preserving a
currents and, consequently, a zero-mean torque. Since the me- safe motor operation. Fig. 5, in fact, shows that the mean value
chanical dynamic is much slower than the electric one, the rotor of the currents samples is quite low with respect to the nominal
Authorized licensed use limited to: BEIHANG UNIVERSITY. Downloaded on October 29,2022 at 03:47:31 UTC from IEEE Xplore. Restrictions apply.
CARLET et al.: DATA-DRIVEN CONTINUOUS-SET PREDICTIVE CURRENT CONTROL FOR SYNCHRONOUS MOTOR DRIVES 6643

TABLE III
MATRIX DIMENSIONS RESULTING FROM THE DESIGN CHOICES: N = 3, TINI = 1, AND T = 100 SAMPLES

value. However, the nominal current value, for the proposed


motor, is achieved using uexc = 90 V, i.e., the 30% of the dc
bus voltage. Higher excitation voltages should be avoided. On
the other hand, a too low voltage excitation could lead at least
to current sampling issues, due to small signal-to-noise ratios.
Moreover, we need to also take into consideration other prob-
lems, i.e., if the information carried by the data is rich enough
to describe the current dynamics. The pulsewidth modulation
(PWM) synthesis of low voltages could emphasize some inverter
nonlinearities, e.g., not properly compensated dead times, which
are not of interest of our identification. In order to evaluate if
the data are collected properly, the dominant singular values
of the matrix Pw are analyzed [see the logarithmic plot in
Fig. 5(b)]. The number of dominant values should be coher-
ent with the anticipated dimension of the state (see Table I).
Two dominant values characterize the considered dynamic,
as expected. Fig. 6. Accuracy of the data-driven predictors in the estimation of the q-axis
current variation. (a) MPC. (b) DeePC.

B. Parameter Selection
In this section, we address the problem of parameter selection C. Complexity of the Online Program
for designing the data-driven controls. The prediction horizon The design choices described in the previous subsection set
length N is chosen according to the MPC framework, i.e., all the dimensions of the matrices presented in Table III. All the
N = 3. This value is a good tradeoff between accuracy and controllers have been implemented in their unconstrained ver-
computational effort for this application [29]. Moreover, all these sion, i.e., a feedback law of the form u = K r r + K ini [uini , yini ]T
controllers share the same cost function; thus, equal weighting or u = K r r + K x x(k). This means that the turnaround time of
matrices Q and R are chosen. In particular, Q is the identity all the controllers is similar. A slightly higher computation time
matrix, whereas R is the identity scaled by a factor of 0.0001. is required for the first feedback law. The turnaround time of each
We consider the robust formulation of the DeePC, and the related predictive control scheme is about 9.6–9.7 μs, depending on the
parameter in (11) has been set to λg = 0.1. specific feedback law. The dSPACE MicroLabBox is equipped
Two parameters that characterize the data-driven algorithms with a 2-GHz NXP QorIQ P5020 microprocessor. The number
are the length of the initial trajectory Tini and the number of sam- of computations required by the feedback laws scales linearly
ples T . The trajectory [uini , yini ]T replaces the initial condition with respect to the length of the prediction horizon N and the
for the prediction. Thus, it determines the inherent system state, length of the initial trajectory Tini .
and the parameter Tini provides a complexity for the model.
In [32], the system lag2 l is used to find a lower bound for
Tini . In particular, if Tini ≥ l, the system prediction is uniquely
determined. Thanks to this criterion, the value of Tini can be D. Accuracy of the Data-Driven Predictor
chosen even without knowing the system dimension, but using The accuracy of the data-driven predictors is investigated in
an estimate of it. Since the system lag is known for the considered this subsection, taking the model-based MPC as benchmark.
application (i.e., l = 1), we set Tini = 1. The length T of the This analysis is performed during steady-state operation, when
recorded I/O vectors should be long enough to make sure that the motor is working at the nominal maximum-torque-per-
the Hankel matrices have full rank. The fundamental lemma ampere current point (see Table II) at standstill. During the tests,
in [32] gives a lower bound for T , whose value for the considered the currents are regulated by standard proportional–integral (PI)
application is T ≥ 3(Tini + N + 2) − 1. We selected T = 100 controllers. We are interested on the open-loop prediction accu-
samples, which satisfies the inequality. racy of the methods. This means that the predictors are fed by
current measurements and the reference voltages computed by
2 The lag l of a linear system is the smallest integer value for which the the PI controllers. A first qualitative information on the accuracy
observability matrix O = [C CA. . .CAl−1 ]T has full rank. is provided by Fig. 6(a) and (b), which shows the comparison

Authorized licensed use limited to: BEIHANG UNIVERSITY. Downloaded on October 29,2022 at 03:47:31 UTC from IEEE Xplore. Restrictions apply.
6644 IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 37, NO. 6, JUNE 2022

TABLE IV
RESIDUAL ANALYSIS OF THE PREDICTION ERROR: MEAN AND STANDARD DEVIATION OF THE RESIDUALS

TABLE V
TOTAL HARMONIC DISTORTION ANALYSIS AT THE NOMINAL POINT

algorithm, because it uses raw data without any preprocessing.


Fig. 7. Residual analysis of the prediction error: probability distribution Despite the direct exploitation of raw data, it has almost the
function of the residuals for the presented predictors. (a) d-axis current. same performance as the others. We also reported the same
(b) q-axis current. step response analysis at a nominal speed rate in Fig. 9. This
test confirms the effectiveness of the integral action included
in the data-driven control framework. The back EMF and the
between the measured q-axis current increments and the pre- state transition matrix A of the IPM motor model (2) depend
dicted ones, using, respectively, the predictor obtained with (3) on the operating speed. Thus, a bias in the current tracking
and (12). We observe good correspondence between measure- should be observed if the integral action is missing (as in
ments and predictions for both the controllers. Fig. 3). We underline that the proposed data-driven methods
The residuals between the measured and estimated currents seem very effective for the q-axis current. Moreover, other tools
are considered as performance index, as suggested in [15]. The can be used to further improve their behavior, in particular the
results of this analysis are reported in Fig. 4 and Table IV, one of the DeePC (see [23]). In addition, according to [36],
which shows the estimated probability density function of the d a feedforward term can be nested in the controller to improve
and q residuals for all the described predictors. From [15], we disturbance rejection performances, without penalizing the over-
expect a zero-mean normal distribution of the residuals, which shoot in the dynamics. We, therefore, believe that there is much
is coherent with the obtained results. The PEM-MPC predictor unexplored potential to improve the performance to data-driven
appears the most accurate one, proving that using data to validate controllers.
the commissioning tests is an interesting tool. Concerning the steady-state behaviors, a total harmonic dis-
tortion analysis is performed on the motor currents at nominal
speed. The results are briefly summarized in Table V. The distor-
E. Online Unconstrained Controller
tion is quite low, as expected from a continuous-set MPC, which
In this section, we provide a comparison between model- encapsulates a modulator in the controller structure. The PEM-
based and data-driven designed controllers in terms of step MPC seems again the preferable structure, as also observed in
current reference response. In particular, the reference r is the previous section. Nevertheless, both SPC and DeePC grant
changed from zero to the nominal maximum-torque-per-ampere the same harmonic distortion of a benchmark (model-based)
current. The model-based MPC adopts the motor parameters, velocity-form MPC.
which were previously obtained by means of characterization Finally, the closed-loop cost analysis is proposed to provide
procedures (see Table II). All the data-driven controllers are a different insight on the steady-state performance. The closed-
designed from the same data recording, in particular the one loop cost is computed for each control step using (14), where the
defined by a uexc = 50 V. weight matrices are designed as described in Section IV-B. The
The step responses are compared at standstill in Fig. 8. test considers the machine at standstill (see Fig. 8) and at nominal
It is interesting to notice that the data-driven designs allow speed (see Fig. 9), when the steady-state condition is reached.
achieving similar performances with respect to the model-based Results are described in Fig. 10, where the cost is reported in
controller. In fact, the commissioning effort of all the proposed decibel. The closed-loop costs achieved by the data-driven and
algorithms in terms of the measurement apparatus, the number model-based controllers are not significantly different, both at
of carried out tests, and their complexity and duration is much standstill [see Fig. 10(a)] and at nominal speed [see Fig. 10(b)].
lighter compared to the characterization required to build an Thus, a purely data-driven design assures the same closed-loop
accurate model-based controller [8]. Among data-driven con- cost of a standard model-based procedure, even if no assumption
trollers, the DeePC is considered as the most data-oriented on the model structure is required.

Authorized licensed use limited to: BEIHANG UNIVERSITY. Downloaded on October 29,2022 at 03:47:31 UTC from IEEE Xplore. Restrictions apply.
CARLET et al.: DATA-DRIVEN CONTINUOUS-SET PREDICTIVE CURRENT CONTROL FOR SYNCHRONOUS MOTOR DRIVES 6645

Fig. 8. Comparison of the step responses of model-based and data-driven current controllers at standstill. (a) MPC. (b) PEM-MPC. (c) SPC. (d) DeePC.

Fig. 9. Comparison of the step responses of model-based and data-driven current controllers at nominal speed.(a) MPC. (b) PEM-MPC. (c) SPC. (d) DeePC.

an open challenge. Finally, other future research will focus on


online adaptation of data-driven control structures and applica-
tions to other drive problems.

REFERENCES
[1] Z. S. Hou and Z. Wang, “From model-based control to data-driven control:
Survey, classification and perspective,” Inf. Sci., vol. 235, pp. 3–35, 2013.
[2] S. Vazquez, J. Rodriguez, M. Rivera, L. G. Franquelo, and M. Norambuena,
“Model predictive control for power converters and drives: Advances and
Fig. 10. Closed-loop cost analysis at the steady state. (a) Standstill. trends,” IEEE Trans. Ind. Electron., vol. 64, no. 2, pp. 935–947, Feb. 2017.
(b) Nominal speed. [3] S. Hanke, O. Wallscheid, and J. Böcker, “Continuous-control-set model
V. CONCLUSION predictive control with integrated modulator in permanent magnet syn-
chronous motor applications,” in Proc. IEEE Int. Electr. Mach. Drives
In this article, we presented a transition path from model- Conf., 2019, pp. 2210–2216.
[4] S. Bolognani, R. Kennel, S. Kuehl, and G. Paccagnella, “Speed and current
based to data-driven design of PMSM current controllers. Dif- model predictive control of an IPM synchronous motor drive,” in Proc.
ferent data-driven algorithms were considered: the PEM-MPC, IEEE Int. Electr. Mach. Drives Conf., 2011, pp. 1597–1602.
the subspace, and the DeePC. All the algorithms were online [5] A. Favato, P. G. Carlet, F. Toso, and S. Bolognani, “A model predictive
control for synchronous motor drive with integral action,” in Proc. 44th
implemented in the unconstrained version, proving their online Annu. Conf. IEEE Ind. Electron. Soc., 2018, pp. 325–330.
feasibility. Similar accuracy between model-based and data- [6] Q. Wang, G. Zhang, G. Wang, C. Li, and D. Xu, “Offline parameter self-
driven predictors was demonstrated with experimental data. learning method for general-purpose PMSM drives with estimation error
compensation,” IEEE Trans. Power Electron., vol. 34, no. 11, pp. 11103–
Experimental results showed that all these controllers have 11115, Nov. 2019.
comparable performance, considering the MPC with the accu- [7] A. Boglietti, A. Cavagnino, and M. Lazzari, “Experimental high-frequency
rate model as benchmark. Moreover, among data-driven con- parameter identification of AC electrical motors,” IEEE Trans. Ind. Appl.,
vol. 43, no. 1, pp. 23–29, Jan./Feb. 2007.
trollers, the DeePC performed well both in steady state and [8] S. A. Odhano, P. Pescetto, H. A. A. Awan, M. Hinkkanen, G. Pellegrino,
dynamics. and R. Bojoi, “Parameter identification and self-commissioning in AC
There are several challenges to address in the future. First, a motor drives: A technology status review,” IEEE Trans. Power Electron.,
vol. 34, no. 4, pp. 3603–3614, Apr. 2019.
comparison between data-driven and self-commissioning tech- [9] F. Wang, K. Zuo, P. Tao, and J. Rodríguez, “High performance model
niques would be valuable. This could help to design effective predictive control for PMSM by using stator current mathematical model
strategies for the excitation voltage signals. Second, the exten- self-regulation technique,” IEEE Trans. Power Electron., vol. 35, no. 12,
pp. 13652–13662, Dec. 2020.
sion of data-driven methods for a nonlinear system is at the [10] X. Zhang, L. Zhang, and Y. Zhang, “Model predictive current control
beginning. The possibility to automatically include the motor for PMSM drives with parameter robustness improvement,” IEEE Trans.
nonlinearities in the control law, e.g., magnetic cross satura- Power Electron., vol. 34, no. 2, pp. 1645–1657, Feb. 2019.
[11] X. Liu, L. Zhou, J. Wang, X. Gao, Z. Li, and Z. Zhang, “Robust predictive
tion effects, is of particular interest. Third, finding computa- current control of permanent-magnet synchronous motors with newly
tionally efficient methods for implementing high-dimensional designed cost function,” IEEE Trans. Power Electron., vol. 35, no. 10,
data-driven methods that include constraints in real time is still pp. 10778–10788, Oct. 2020.

Authorized licensed use limited to: BEIHANG UNIVERSITY. Downloaded on October 29,2022 at 03:47:31 UTC from IEEE Xplore. Restrictions apply.
6646 IEEE TRANSACTIONS ON POWER ELECTRONICS, VOL. 37, NO. 6, JUNE 2022

[12] M. Yang, X. Lang, J. Long, and D. Xu, “Flux immunity robust pre- [35] A. Varatharajan, P. Pescetto, and G. Pellegrino, “Sensorless self-
dictive current control with incremental model and extended state ob- commissioning of synchronous reluctance machine with rotor self-locking
server for PMSM drive,” IEEE Trans. Power Electron., vol. 32, no. 12, mechanism,” in Proc. IEEE Energy Convers. Congr. Expo., 2019, pp. 812–
pp. 9267–9279, Dec. 2017. 817.
[13] M. De Soricellis, D. DaRù, and S. Bolognani, “A robust current con- [36] R. Kadali, B. Huang, and A. Rossiter, “A data driven subspace approach
trol based on proportional-integral observers for permanent magnet syn- to predictive controller design,” Control Eng. Pract., vol. 11, no. 3,
chronous machines,” IEEE Trans. Ind. Appl., vol. 54, no. 2, pp. 1437–1447, pp. 261–278, 2003.
Mar./Apr. 2018.
[14] S. Yin, H. Gao, and O. Kaynak, “Data-driven control and process monitor- Paolo Gherardo Carlet received the B.S. and M.S.
ing for industrial applications—Part I,” IEEE Trans. Ind. Electron., vol. 61, (Hons.) degrees in electrical engineering in 2015 and
no. 11, pp. 6356–6359, Nov. 2014. 2017, respectively, from the University of Padova,
[15] A. Brosch, S. Hanke, O. Wallscheid, and J. Böcker, “Data-driven recursive Padova, Italy, where he is currently working toward
least squares estimation for model predictive current control of permanent the Ph.D. degree with the Electrical Drives Labora-
magnet synchronous motors,” IEEE Trans. Power Electron., vol. 36, no. 2, tory.
pp. 2179–2190, Feb. 2021. He was a Visiting Researcher with the Automatic
[16] M. Schenke, W. Kirchgässner, and O. Wallscheid, “Controller design for Control Laboratory, ETH Zürich, Zürich, Switzer-
electrical drives by deep reinforcement learning: A proof of concept,” IEEE land. His main research interests include model pre-
Trans. Ind. Informat., vol. 16, no. 7, pp. 4650–4658, Jul. 2020. dictive control, data-driven control, and sensorless
[17] Y. Zhang, J. Jin, and L. Huang, “Model-free predictive current con- techniques for ac motor drives.
trol of PMSM drives based on extended state observer using ultralo-
cal model,” IEEE Trans. Ind. Electron., vol. 68, no. 2, pp. 993–1003, Andrea Favato received the M.S. degree in electrical
Feb. 2021. engineering in 2018 from the University of Padova,
[18] F. Tinazzi, P. G. Carlet, S. Bolognani, and M. Zigliotto, “Motor parameter- Padova, Italy, where he is currently working toward
free predictive current control of synchronous motors by recursive least- the Ph.D. degree in industrial engineering with the
square self-commissioning model,” IEEE Trans. Ind. Electron., vol. 67, Electric Drives Laboratory.
no. 11, pp. 9093–9100, Nov. 2020. He has been a Visiting Researcher with the Auto-
[19] S. A. Hashjin, S. Pang, E. H. Miliani, K. Ait-Abderrahim, and B. Nahid- matic Control Laboratory, Institut für Automatik, Ei-
Mobarakeh, “Data-driven model-free adaptive current control of a wound dgenössische Technische Hochschule Zürich, Zürich,
rotor synchronous machine drive system,” IEEE Trans. Transp. Electrific., Switzerland. His research interests include model-
vol. 6, no. 3, pp. 1146–1156, Sep. 2020. based and data-driven control for electric drives,
[20] N. A. Losic and L. D. Varga, “A current-free and parameter-free con- power converter for grid applications, and sensorless
trol algorithm,” IEEE Trans. Ind. Appl., vol. 30, no. 2, pp. 324–332, control for synchronous motors.
Mar./Apr. 1994.
[21] J. B. Jørgensen, J. K. Huusom, and J. B. Rawlings, “Finite horizon MPC for
Saverio Bolognani received the B.S. degree in infor-
systems in innovation form,” in Proc. 50th IEEE Conf. Decis. Control/Eur.
mation engineering, the M.S. degree in automation
Control Conf., 2011, pp. 1896–1903.
engineering, and the Ph.D. degree in information
[22] W. Favoreel, B. De Moor, and M. Gevers, “SPC: Subspace predictive
engineering from the University of Padova, Italy, in
control,” IFAC Proc. Volumes, vol. 32, no. 2, pp. 4004–4009, 1999.
2005, 2007, and 2011, respectively.
[23] J. Coulson, J. Lygeros, and F. Dörfler, “Data-enabled predictive control:
In 2006–2007, he was a Visiting Graduate Student
In the shallows of the DeePC,” in Proc. 18th Eur. Control Conf., 2019,
with the University of California at San Diego, La
pp. 307–312.
Jolla, CA, USA. In 2013–2014, he was a Postdoctoral
[24] J. Coulson, J. Lygeros, and F. Dörfler, “Distributionally robust
Associate with the Laboratory for Information and
chance constrained data-enabled predictive control,” 2020, arXiv:2006
Decision Systems, Massachusetts Institute of Tech-
.01702.
nology, Cambridge, MA, USA. He is currently a
[25] L. Huang, J. Coulson, J. Lygeros, and F. Dörfler, “Data-enabled predictive
Senior Scientist with the Automatic Control Laboratory, ETH Zürich, Zürich,
control for grid-connected power converters,” in Proc. 58th Conf. Decis.
Switzerland. His research interests include the application of networked control
Control, 2019, pp. 8130–8135.
system theory to power systems, cyber-physical systems, the intersection of
[26] L. Huang, J. Zhen, J. Lygeros, and F. Dörfler, “Quadratic regularization of
nonlinear optimization with feedback control design, multiagent systems, and
data-enabled predictive control: Theory and application to power converter
game theory.
experiments,” 2020, arXiv:2012.04434.
[27] P. G. Carlet, A. Favato, S. Bolognani, and F. Dörfler, “Data-driven predic-
tive current control for synchronous motor drives,” in Proc. IEEE Energy Florian Dörfler received the Diploma degree in engi-
Convers. Congr. Expo., 2020, pp. 5148–5154. neering cybernetics from the University of Stuttgart,
[28] C. De Persis and P. Tesi, “Formulas for data-driven control: Stabilization, Stuttgart, Germany, in 2008 and the Ph.D. degree
optimality, and robustness,” IEEE Trans. Automat. Control, vol. 65, no. 3, in mechanical engineering from the University of
pp. 909–924, Mar. 2020. California at Santa Barbara, Santa Barbara, CA, USA,
[29] G. Cimini, D. Bernardini, S. Levijoki, and A. Bemporad, “Embedded in 2013.
model predictive control with certified real-time optimization for syn- From 2013 to 2014, he was an Assistant Professor
chronous motors,” IEEE Trans. Control Syst. Technol., vol. 29, no. 2, with the University of California Los Angeles, Los
pp. 893–900, Mar. 2021. Angeles, CA, USA. He is currently an Associate
[30] F. Toso, P. G. Carlet, A. Favato, and S. Bolognani, “On-line continuous Professor with the Automatic Control Laboratory,
control set MPC for PMSM drives current loops at high sampling rate ETH Zürich, Zürich, Switzerland, and the Associate
using qpOASES,” in Proc. IEEE Energy Convers. Congr. Expo., 2019, Head of the Department of Information Technology and Electrical Engineering.
pp. 6615–6620. His research interests include control, optimization, and system theory with
[31] G. Pannocchia, M. Gabiccini, and A. Artoni, “Offset-free MPC explained: applications in network systems, in particular electric power grids.
Novelties, subtleties, and applications,” IFAC-PapersOnLine, vol. 48, Dr. Dörfler was the recipient of the Distinguished Young Research Awards
no. 23, pp. 342–351, 2015. by IFAC (Manfred Thoma Medal 2020) and EUCA (European Control Award
[32] J. Willems, P. Rapisarda, I. Markovsky, and B. De Moor, “A note on 2020). His students were winners or finalists for Best Student Paper Awards
persistency of excitation,” Syst. Control Lett., vol. 54, no. 4, pp. 325–329, at the European Control Conference in 2013 and 2019, the American Control
Apr. 2005. Conference in 2016, the Conference on Decision and Control in 2020, the PES
[33] B. Huang and R. Kadali, Dynamic Modeling, Predictive Control and General Meeting in 2020, the PES PowerTech Conference in 2017, and the
Performance Monitoring: A Data-Driven Subspace Approach. London, International Conference on Intelligent Transportation Systems in 2021, and the
U.K.: Springer, 2008. 2010 ACC Student Best Paper Award, the 2011 O. Hugo Schuck Best Paper
[34] F. Dörfler, J. Coulson, and I. Markovsky, “Bridging direct & indirect data- Award, the 2012–2014 Automatica Best Paper Award, the 2016 IEEE Circuits
driven control formulations via regularizations and relaxations,” 2021, and Systems Guillemin-Cauer Best Paper Award, and the 2015 UCSB ME Best
arXiv:2101.01273. PhD award.

Authorized licensed use limited to: BEIHANG UNIVERSITY. Downloaded on October 29,2022 at 03:47:31 UTC from IEEE Xplore. Restrictions apply.

You might also like