원시데이터 수집 시스템
선정목록으로

Co-Design of a Controller and Its Digital Implementation: The MOBY-DIC2 Toolbox for Embedded Model Predictive Control

관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)

기본 정보

저자
  1. Alessandro Ravera — Department of Electrical, Electronic Telecommunications Engineering and Naval Architecture, University of Genoa, Genoa, Italy
  2. Alberto Oliveri — Department of Electrical, Electronic Telecommunications Engineering and Naval Architecture, University of Genoa, Genoa, Italy
  3. Matteo Lodi — Department of Electrical, Electronic Telecommunications Engineering and Naval Architecture, University of Genoa, Genoa, Italy
  4. Alberto Bemporad — IMT School for Advanced Studies Lucca, Lucca, Italy
  5. W.P.M.H. Heemels — Department of Mechanical Engineering, Control Systems Technology Section, Technische Universiteit Eindhoven, MB Eindhoven, The Netherlands
  6. Eric C. Kerrigan — Department of Electrical and Electronic Engineering, Department of Aeronautics, Imperial College London, London, U.K
  7. Marco Storace — Department of Electrical, Electronic Telecommunications Engineering and Naval Architecture, University of Genoa, Genoa, Italy
DOI
10.1109/tcst.2023.3254133
저널
IEEE Transactions on Control Systems Technology
발행년도
2023
발행기관
Institute of Electrical and Electronics Engineers
피인용수
6
라이선스
other-oa
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1109/tcst.2023.3254133
토픽
Fuel Cells and Related Materials
OpenAlex ID
W4327522477

평가 내용

관련도
관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Several software tools are available in the literature for the design and embedded implementation of linear model predictive control (MPC), both in its implicit and explicit (either exact or approximate) forms. Most of them generate C code for easy implementation on a microcontroller, and the others can convert the C code into hardware description language code for implementation on a field programmable gate array (FPGA). However, a unified tool allowing one to generate efficient embedded MPC for an FPGA, starting from the definition of the plant and its constraints, was still missing. The MOBY-DIC2 toolbox described in this brief bridges this gap. To illustrate its functionalities, the tool is exploited to embed the controller and observer for a real buck power converter in an FPGA. This implementation achieves a latency of about <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"> <tex-math notation="LaTeX">$30~\mu \text{s}$ </tex-math></inline-formula> with the implicit controller and 240 ns with the approximate explicit controller.

본문 44,199자

본문 펼치기
## Co-Design of a Controller and Its Digital Implementation: The MOBY-DIC2 Toolbox for Embedded Model Predictive Control Alessandro Ravera, _Student_ _Member,_ _IEEE_, Alberto Oliveri, _Member,_ _IEEE_, Matteo Lodi, _Member,_ _IEEE_, Alberto Bemporad, _Fellow,_ _IEEE_, W. P. M. H. Heemels, _Fellow,_ _IEEE_, Eric C. Kerrigan, _Senior_ _Member,_ _IEEE_, and Marco Storace, _Senior_ _Member,_ _IEEE_ _Abstract_ — Several software tools are available in the literature for the design and embedded implementation of linear model predictive control (MPC), both in its implicit and explicit (either exact or approximate) forms. Most of them generate C code for easy implementation on a microcontroller, and the others can convert the C code into hardware description language code for implementation on a field programmable gate array (FPGA). However, a unified tool allowing one to generate efficient embedded MPC for an FPGA, starting from the definition of the plant and its constraints, was still missing. The MOBY-DIC2 toolbox described in this brief bridges this gap. To illustrate its functionalities, the tool is exploited to embed the controller and observer for a real buck power converter in an FPGA. This implementation achieves a latency of about 30 _µ_ s with the implicit controller and 240 ns with the approximate explicit controller. _Index_ _Terms_ — Embedded model predictive control (MPC), field programmable gate array (FPGA), hardware–software co-design. I. INTRODUCTION INEAR model predictive control (MPC) [1], [2] is a model-based approach for the regulation and tracking # L of linear systems with multiple inputs and outputs, subject to affine inequality constraints. The traditional (implicit) formulation requires solving a quadratic programming (QP) optimization problem at each sampling time, which can be time-consuming and then not applicable for systems with very fast dynamics [3]. For piecewise-affine (PWA) systems subject to mixed linear/logical constraints, the MPC optimization problem can be formulated as a mixed-integer QP [4]. Explicit MPC [5] moves most of the computation offline, and the online computation of the control action (both for linear and PWA systems) reduces to the evaluation of a PWA Manuscript received 26 July 2022; revised 14 February 2023; accepted 3 March 2023. Date of publication 15 March 2023; date of current version 23 October 2023. Recommended by Associate Editor U. V. Kalabic. _(Corresponding_ _author:_ _Alberto_ _Oliveri.)_ Alessandro Ravera, Alberto Oliveri, Matteo Lodi, and Marco Storace are with the Department of Electrical, Electronic, Telecommunications Engineering and Naval Architecture, University of Genoa, 16145 Genoa, Italy (e-mail: alessandro.ravera@edu.unige.it; alberto.oliveri@unige.it; matteo.lodi@unige.it; marco.storace@unige.it). Alberto Bemporad is with the IMT School for Advanced Studies Lucca, 55100 Lucca, Italy (e-mail: alberto.bemporad@imtlucca.it). W. P. M. H. Heemels is with the Control Systems Technology Section, Department of Mechanical Engineering, Technische Universiteit Eindhoven, 5600 MB Eindhoven, The Netherlands (e-mail: m.heemels@tue.nl). Eric C. Kerrigan is with the Department of Electrical and Electronic Engineering, Department of Aeronautics, Imperial College London, SW7 2AZ London, U.K. (e-mail: e.kerrigan@imperial.ac.uk). Color versions of one or more figures in this article are available at https://doi.org/10.1109/TCST.2023.3254133. Digital Object Identifier 10.1109/TCST.2023.3254133 function, which significantly reduces the computational effort. Many approximate explicit control functions have also been proposed [6], [7], [8], [9], [10], which can contribute to further increase the controller update rate. The common drawback of all the explicit solutions is the rapid growth of the number of parameters as the dimension of the system increases, due to the so-called _curse_ _of_ _dimensionality_ [11]. Some solutions have been proposed in the last decade for fast and efficient implementation of implicit [12], [13], [14] and explicit [15], [16], [17], [18] MPC on different platforms, including microcontrollers and field programmable gate arrays (FPGAs). In the control literature, the implementation aspects and the corresponding support tools for creating real-time embedded controllers receive rather limited attention, while for practical applications these are of course crucial. In this brief, we present a second release of the MOBY-DIC <sup>1</sup> toolbox (briefly, MOBY-DIC2), <sup>2</sup> which extends the functionalities of the former version (MOBY-DIC1) [19]. This toolbox supports the co-design process of a controller and its digital implementation, enabling easy deployment of MPC-based control solutions for real-time applications. MOBY-DIC2 is a MATLAB toolbox based on object-oriented programming, which allows carrying out the _entire_ MPC design flow, from the definition of system dynamics and constraints to the embedded architectures, including implicit/explicit, exact/approximate MPC, and supporting both the microcontroller and FPGA implementations of the controllers and observers. The main strength of MOBY-DIC2 is the automatic generation of efficient VHDL <sup>3</sup> code, by setting the level of parallelism, the number of bits for the fixed-point representation of inputs, outputs, and coefficients, and the scalings to automatically interface with analog-to-digital and digital-to-analog converters (ADCs and DACs). To demonstrate all the functionalities of MOBYDIC2, embedded architectures implementing implicit, explicit, approximate MPC controllers, and Kalman filters are generated for a switching buck converter. Processor-in-the-loop (PIL) simulations and tests on a _real_ converter prototype are provided, showing the strengths and capabilities of the tool. II. SURVEY ON AVAILABLE TOOLS Several free and commercial tools are available to help the user in designing and/or implementing linear 1Acronym of the FP7 European Project “MOdel-Based sYnthesis of DIgital electronic Circuits for embedded control” FP7-ICT-2009-4 (2010–2012). 2Available online at https://github.com/COMPsys-UNIGE/MOBY-DIC 3Very high-speed integrated circuit hardware description language. © 2023 The Authors. This work is licensed under a Creative Commons Attribution 4.0 License. For more information, see https://creativecommons.org/licenses/by/4.0/ Fig. 1. Functionalities of available tools. Commercial tools are marked with an asterisk. MPC toolbox is part of MATLAB. implicit/explicit MPC. The main ones are summarized in Fig. 1, which lists all the steps necessary to generate and simulate an embedded MPC controller. Starting from the definition of the system and constraints, an implicit MPC controller can be designed, for linear or PWA systems. An explicit (either exact or approximate) solution can then be computed. When the system state is not completely measurable, a state observer must also be designed. C and VHDL code must then be created for implementation of the controller and observer on a microcontroller or an FPGA, respectively, or to perform PIL simulations involving a computer running the plant model (not in real-time) and an embedded device implementing the controller and/or the observer. We now briefly describe the tools listed in Fig. 1 from left to right. The following tools generate C code that can be exploited for microcontroller implementation of QP solvers: CVXGEN [20], FiOrdOs [21], FORCES [21], qpOASES [22], QPGEN [23], ODYS QP Solver [24], and OSQP [25]. PROTOIP [26] provides a MATLAB interface to Xilinx Vitis high-level synthesis (HLS), allowing for the generation of an embedded circuit on a heterogeneous (microcontroller + FPGA) computing platform (in particular, Xilinx Zynq System on Chip) starting from an algorithm described in the C language. PROTOIP allows performing PIL simulations, using MATLAB and a Zynq board, and evaluating the circuit performances within MATLAB environment. SPLIT [27] is a tool with a MATLAB interface for the generation of embedded implicit linear MPC, based on splitting algorithms, including the alternating direction method of multipliers (ADMM). Based on the matrices and constraints defining the QP optimization problem, a C code is generated for implementation on the microcontroller or, through PROTOIP [26], on heterogeneous computing platforms. _µ_ AO-MPC [28] is a Python tool (with MATLAB interface) that allows generating C code for embedded implicit MPC starting from the definition of the system to regulate. The hybrid toolbox [29] and multiparametric toolbox (MPT3) [30] are MATLAB tools that allow generating explicit MPC for linear and PWA systems. The hybrid toolbox also provides C files that can be deployed on the microcontroller. ODYS Embedded MPC [31] uses a specific version of ODYS QP Solver [24] optimized for MPC applications and allows generating C code with industrial standards for very fast embedded implementation of implicit linear, linear timevarying, and nonlinear MPC and related state observers. PIL simulations can also be carried out s t _xk_ + _i_ +1| _k_ = _Axk_ + _i_ | _k_ + _Buk_ + _i_ + _E_ _pk_ + _F_ _dk_ + _G_ MOBY-DIC1 allows designing, simulating, and implementing on FPGA explicit exact and approximate MPC, whereas the MATLAB MPC Toolbox [32] allows auto-generating C code from Embedded MATLAB functions for microcontroller implementation of both implicit and explicit (exact and approximate) MPC, based on the multiparametric solver described in [33]. State estimators can also be designed and implemented, and PIL simulations are available. However, the MPC toolbox does not support code generation for FPGA implementation. MOBY-DIC2 fills this gap, by extending the functionalities of MOBY-DIC1. It embeds a top-level interface for the following tools, whose invocation is transparent to the user: MPT3 for the design of explicit MPC, Xilinx Vitis HLS for the generation of VHDL code of the implicit MPC, and Xilinx model composer and system generator for the PIL simulations, including Simulink and an FPGA. MOBYDIC2 is compatible with both MPT3 and MPC toolbox, since an MPC controller previously generated with one of these tools can be easily imported in MOBY-DIC2 for FPGA implementation or PIL simulation. III. LINEAR MPC In this section, we briefly describe the formulation of MPC [1], [2] used within the MOBY-DIC2 toolbox for linear time-invariant (LTI) systems. We consider a dynamical system whose states, inputs, measurable parameters, unmeasurable disturbances, and outputs are denoted as _x_ ∈ R <sup>_nx_</sup>, _u_ ∈ R <sup>_nu_</sup>, _p_ ∈ R <sup>_n p_</sup>, _d_ ∈ R <sup>_nd_</sup>, and _y_ ∈ R <sup>_n_</sup> <sup>_y_</sup>, respectively. The MPC controller aims at bringing the system state or output to a constant (regulation problem) or time-varying (tracking problem) reference _r_ . All these variables are gathered in a vector _z_ = [ _x_ <sup>_T_</sup> _u_ <sup>_T_</sup> _p_ <sup>_T_</sup> _d_ <sup>_T_</sup> _y_ <sup>_T_</sup> _r_ <sup>_T_</sup> ] <sup>_T_</sup> . We use a subscript _k_ to indicate the value of a variable at a discrete time instant _kTs_, where _Ts_ is the sampling period, and a subscript _k_ + _i_ | _k_ to indicate the predicted value of a variable at time _(k_ + _i)Ts_, based on its value at time _kTs_, _k_ ∈ N, _i_ ∈ N. Starting from measurements or estimations of _xk_, _pk_, _dk_, and _rk, . . .,_ _rk_ + _N_ (only for tracking problems), the MOBY-DIC2 toolbox allows generating linear MPC by solving the following optimization problem with a receding horizon approach: min _ek_ <sup>_T_</sup> _Ek_ min _k_ <sup>_T_</sup> + _N_ | _k_ <sup>_Pek_</sup> <sup>+</sup> <sup>_N_</sup> <sup>|</sup> <sup>_k_</sup> <sup>+</sup> (1a) _k_ <sup>_T_</sup> + _i_ <sup>_Rϵk_</sup> <sup>+</sup> <sup>_i_</sup> _Nc_ _i_ =0 _ρσi_ <sup>_T_</sup> <sup>_σi_</sup> - + + _N_ −1 _i_ =0 - _ek_ <sup>_T_</sup> _k_ <sup>_T_</sup> + _i_ | _k_ <sup>_Qek_</sup> <sup>+</sup> <sup>_i_</sup> <sup>|</sup> <sup>_k_</sup> <sup>+</sup> <sup>_ϵ_</sup> _k_ <sup>_T_</sup> _(i_ = 0 _, . . ., N_ - 1 _)_ (1b) _yk_ + _i_ | _k_ = _Cxk_ + _i_ | _k_ + _Duk_ + _i_ + _E_ _y pk_ + _Fydk_ + _G y_ _(i_ = 0 _, . . ., N_ _)_ (1c) _Hi_ _zk_ <sup>_T_</sup> + _i_ | _k_ <sup>≤</sup> <sup>_Ki_</sup> <sup>+</sup> <sup>_�i_</sup> <sup>_σi_</sup> _(i_ = 0 _, . . ., Nc)_ (1d) _uk_ + _i_ = _�_ 1 _xk_ + _i_ | _k_ + _�_ 2 _(i_ = _Nu, . . ., N_ - 1 _)._ (1e) Within MOBY-DIC2, _p_ and _d_ are measured/estimated at every sampling instant and assumed to remain constant within the prediction horizon (i.e., _pk_ + _i_ | _k_ = _pk_, and the same holds for _d_ ). In this optimization problem, expression (1a) contains the quadratic cost function to be minimized at time _kTs_, where _Ek_ = [ _uk_ <sup>_T_</sup> <sup>_, . . ., u_</sup> _k_ <sup>_T_</sup> + _Nu_ −1 <sup>_, x T_</sup> _k_ | _k_ <sup>_, . . ., x T_</sup> _k_ + _N_ | _k_ <sup>_, σ_</sup> 0 <sup>_T_</sup> <sup>_, . . ., σ T_</sup> _Nc_ <sup>]</sup> <sup>_T_</sup> <sup>;</sup> <sup>_N_</sup> <sup>is</sup> Fig. 2. MOBY-DIC2 project flow. Green boxes: toolbox inputs; orange boxes: outputs. is created. We remark that the controllers can also be created using MPT3 or MPC toolbox and then converted into MOBYDIC2 objects. With the implicit controller, problem (1) is recast as a standard constrained QP with a sparse formulation, i.e., _Ek_ = [ _uk_ <sup>_T_</sup> <sup>_, . . ., u_</sup> _k_ <sup>_T_</sup> + _Nu_ −1 <sup>_, x T_</sup> _k_ | _k_ <sup>_, . . ., x T_</sup> _k_ + _N_ | _k_ <sup>_, σ_</sup> 0 <sup>_T_</sup> <sup>_, . . ., σ T_</sup> _Nc_ <sup>]</sup> <sup>_T_</sup> <sup>;</sup> <sup>_N_</sup> <sup>is</sup> the prediction horizon, _Nu_ ≤ _N_ is the control horizon, _Nc_ ≤ _N_ is the time horizon where the constraints are imposed, _Q_ = _Q_ <sup>_T_</sup> and _P_ = _P_ <sup>_T_</sup> are the positive-semidefinite weight matrices, and _R_ = _R_ <sup>_T_</sup> is a positive definite weight matrix. The terms _σi_ ( _i_ = 0 _, . . ., Nc)_ are slack vectors of soft constraints. We have _ek_ + _i_ | _k_ := _xk_ + _i_ | _k_ - _rk_ + _i_ for state regulation/tracking problems, whereas _ek_ + _i_ | _k_ := _yk_ + _i_ | _k_ - _rk_ + _i_ for output regulation/tracking. Finally, _ϵk_ + _i_ := _uk_ + _i_ - _ru_, where _ru_ is the input reference. For tracking problems, an augmented model is automatically generated to achieve offset-free tracking [34], in which _uk_ −1 becomes a system state with dynamics _uk_ = _uk_ −1 + _�uk_, where _�uk_ is the new system input. Therefore, _ru_ = 0. The affine time-invariant prediction model is given in (1b)–(1c), whereas inequality (1d) represents the affine inequality constraints at each time _(k_ + _i)Ts_ . Matrix _�i_ is diagonal and contains zeros or ones, indicating whether the corresponding constraint is _hard_ or _soft_, respectively. Finally, (1e) fixes the input (control) for time instants outside the control horizon. Within MOBY-DIC2 toolbox, MPC and state observers can also be designed and implemented for PWA systems, with a _switching_ approach, i.e., a different controller/observer is designed for each system dynamics [35], [36]. IV. MOBY-DIC2 FUNCTIONALITIES Fig. 2 shows the main design flow of the MOBY-DIC2 toolbox for LTI systems. The green boxes represent the toolbox inputs, whereas the orange ones the outputs. _A._ _Controller_ _Design_ The first step for MPC design is to define the prediction model (1b)–(1c) and the affine inequality constraints. The model can be represented either in discrete or continuous time. In the latter case, it is automatically converted into a discrete-time model with a sampling time _Ts_, specified by the user. If the controller latency is higher than _Ts_, the update time _T_ ctrl of the controller can be set as a multiple of _Ts_ . This means that only for the prediction phase, the LTI system is re-discretized with sampling time _T_ ctrl. Both hard and soft constraints can be imposed for any variable at any prediction instant. The MPC parameters appearing in problem (1) are then set within a MATLAB structure, and an object representing either an implicit or an explicit MPC controller s.t. _A_ in _Ek_ ≤ _b_ in _,_ _A_ eq _Ek_ = _b_ eq _._ (2) Additional details regarding the construction of the matrices can be found in [37]. MOBY-DIC2 solves problem (2) at each control interval _T_ ctrl by resorting to either the MATLAB function quadprog or the ADMM algorithm [38]. As better described in the following sections, code generation is supported only for ADMM, whereas quadprog can be used for software simulation purposes. The explicit MPC controller is generated by invoking the MPT3 toolbox, which solves problem (1) through multiparametric QP. Then, the control action _uk_ is represented as _uk_ = _f_ pwa _(xk, pk, dk,_ _rk, . . .,_ _rk_ + _N_ _)_, where _f_ pwa is a PWA function defined over a generic polytopic partition, like the one shown in Fig. 3 (left). MOBY-DIC2 allows also approximating the function _f_ pwa with another PWA function defined over a regular simplicial domain partition [6] (Fig. 3, right), to obtain lower computational effort and allowing to decrease the system sampling time. An object representing an approximate MPC controller can be created by specifying the number of partitions for each domain dimension. _B._ _Observer_ _Design_ Kalman filters and predictors can be easily created to estimate the system state and unmeasurable disturbance of an LTI system, by providing a process covariance matrix _Q_ _K_, a measurement covariance matrix _RK_, and an observer sampling time _T_ obs, which, for the reasons explained in Section IV-A, can be a multiple of the system sampling time _Ts_ . Summarizing, the relationship between the system sampling time _Ts_, observer sampling time _T_ obs, and controller sampling time _T_ ctrl is _T_ ctrl = _αT_ obs = _αβTs_, where _α_ and _β_ are positive integer numbers. The Kalman observers are designed through the MATLAB function kalman, to obtain _k_ <sup>_T_</sup> + _Nu_ −1 <sup>_, x T_</sup> _k_ | <sup>_T_</sup> _k_ + _N_ | _k_ <sup>_, σ_</sup> 0 <sup>_T_</sup> _k_ <sup>_T_</sup> <sup>_, . . ., u_</sup> _k_ <sup>_T_</sup> <sup>_T_</sup> _k_ | _k_ <sup>_, . . ., x T_</sup> _k_ min _Ek_ <u>12</u> <sup>_E_</sup> _k_ <sup>_T_</sup> <sup>_FEk_</sup> <sup>+</sup> <sup>_f_</sup> <sup>_T Ek_</sup> Fig. 3. Two-dimensional domain partitioned into generic polytopes (left) and regular simplices (right), with seven and four partitions along the first and second dimensions, respectively. either a current (Kalman filter) or a delayed (Kalman predictor) estimator. In the first case, the estimation at time _k_ is also based on measurements at time _k_ ; in the second case, only measurements up to time _k_ - 1 are used. _C._ _Embedded_ _System_ _Design_ This functionality represents the main strength of the tool. The designed controller and observer can be set as internal properties of the LTI system object, to create a closed-loop system including the Kalman filter. An embedded system object can then be created, representing the circuit to be implemented in a microcontroller or FPGA. The block scheme of the embedded system is shown in Fig. 4; the green rectangle represents the hardware architecture generated by MOBYDIC2, to be implemented in an FPGA or microcontroller (red rectangle). The controller and the observer can also be implemented individually. The circuit is thought to get the reference _rk, . . .,_ _rk_ + _N_ (in case of tracking problems), the parameter _pk_, and the outputs _yk_ through ADCs in a given range, which can be set within MOBY-DIC2, typically [0 4095] for 12-bit ADCs. These values are converted into the correct range through linear scalings, performed by SCALE blocks, and provided to the controller and observer, as shown in the figure. The control output _uk_ is scaled to the DAC range. For implicit MPC, the ADMM algorithm [38] is exploited by the circuit. ADMM steps are simple to implement and computationally very cheap, which makes this algorithm particularly suitable for implementation in embedded devices with limited computing resources [12]. The main linear algebraic operation in each step is matrix–vector multiplication. In addition, there is no data dependence between the optimization variables in an iteration; this allows for the processing of each optimization variable in parallel, thus making ADMM particularly suitable for FPGA implementations [38], [39], [40]. Also, QPGEN, OSQP, and SPLIT tools use the ADMM algorithm for the generation of C code. For FPGA implementation, two architectures can be generated: a fast one, which exploits parallelism to perform matrix–vector products, thus achieving a low latency at the cost of more hardware resources, and a small one, with higher latency and lower resource utilization. A fixed-point representation of data is chosen, where the user can set the number of bits. Also, the number of bits of ADC and DAC can be arbitrarily set. The toolbox creates C++ code, which is automatically converted into VHDL code through Vitis HLS, without any user intervention. In this case, also the VHDL code of the observer is generated through Vitis HLS. For explicit and approximate MPC, the circuit architectures described in [16] are implemented. Also in this case, for FPGA Fig. 4. Block scheme of the MOBY-DIC2 embedded system (green box) to be implemented on a digital device (red box). implementation, a serial architecture and a parallel architecture are available, to trade off circuit size and latency. In this case, the code is generated directly in VHDL language. C code can also be generated for microcontroller implementation of all kinds of controllers and observers, by exploiting the same algorithms used for the FPGA, with a floating point data representation. In this case, it is not possible to choose between serial (small) and parallel (fast) architectures. _D._ _Simulations_ The MOBY-DIC2 toolbox allows performing different kinds of simulations of the closed-loop systems including all types of controllers and observers. The simplest simulation runs directly in MATLAB. The plots of the time evolution of all the measured and estimated variables are automatically generated. A Simulink model can be created for interactive simulations, where references and parameters can be varied online. Also, the plant model can be replaced by a more accurate one, which is often useful (as in the example shown in this brief) since the prediction model used to design the MPC controller may be simpler than the plant model used for simulation. MOBY-DIC2 interfaces also with Xilinx Model Composer and System Generator to generate the Simulink models for PIL simulations, as the one shown in Fig. 5, where the embedded system (controller and observer) runs on an FPGA connected to the computer. The scaling blocks for adapting the signals to the ADC and DAC ranges are also generated. This allows evaluating the effects of delays and quantization errors due to ADCs and DACs and fixed-point representation of data. The snippet of code in Fig. 6 shows how the main MOBY-DIC2 functionalities can be invoked with a few commands. V. CASE STUDY _A._ _Experimental_ _Results_ _on_ _a_ _Buck_ _Converter_ The MOBY-DIC2 toolbox was used to generate different embedded systems (including different types of MPC controllers and a Kalman predictor) to be implemented on FPGA to regulate a real buck converter. A buck converter (see Fig. 7) is a switching DC–DC converter that allows transforming an input DC voltage _v_ in to a lower DC output voltage _v_ out. The circuit is composed of an inductor with voltage _v_ and current _i_, a diode with voltage drop _vd_, an MOS transistor operating as a switch, an output capacitor, and a load absorbing a current _i_ out. _RL_ indicates the parasitic resistance of the inductor. The Fig. 5. Automatically generated Simulink model for PIL simulation. Fig. 6. Portion of the MOBY-DIC2 MATLAB code. Fig. 7. Circuit model of a DC–DC buck converter. MOS transistor is driven by a pulsewidth modulation (PWM) signal with frequency _f_ and duty cycle _δ_ ∈[0 _,_ 1]. The buck converter is a switching system, consisting of two states: when the PWM signal is high, the MOS conducts current ( _on_ phase); when the PWM signal is low, the MOS does not conduct ( _off_ phase). We assume that the converter always works in continuous conduction mode, i.e., with _i_ _>_ 0, with state equations as follows: TABLE I <u>CONVERTER PARAMETERS</u> AND CONSTRAINTS where _s_ = 1 in on phase and 0 in off phase. The goal of the controller is to set the duty cycle _δ_ of the switch such that the average value of the output voltage (which is subject to some ripple) tracks a reference value _v_ ¯out _,_ ref, by fulfilling hard constraints _i_ ≤ _i_ max and _δ_ min ≤ _δ_ ≤ _δ_ max. The values of parameters and constraints are summarized in Table I. The nonlinear model (3) can be used to simulate the converter, but is not suitable as a prediction model for linear MPC. To this aim, a linear averaged model can be derived [41], [42]. By considering an augmented system, the averaged linear model can be written in discrete-time version as follows:     _L_ _Ts_ 1 0 _C_ _ı_ ¯ _k_ _v_ ¯ _out,k_ _δk_ −1 1  1 + <sup>_Ts_</sup> <sup>_RL_</sup> - _Ts/L_ _Ts(v_ <u>in</u> + _vd_ _)_ _L_ _L_   _ı_ ¯ _k_ +1 _v_ ¯ _out,k_ +1 _δk_   = 0 0 1     - <sup>_Tsvd_</sup> _L_ 0 0   0 - <sup>_Ts_</sup> _C_ 0   _iout,k_ + 0 0 1   _�δk_ +   +   (3)    _didt_ <sup>=</sup> <sup>_s(v_</sup> <sup><u>in</u></sup> <sup>+</sup> <sup>_vd_</sup> <sup>_)_</sup> <sup>−</sup> <sup>_v_</sup> _L_ <sup>_<u>d</u>_</sup> <sup>−</sup> <sup>_RLi_</sup> <sup>−</sup> <sup>_v_</sup> <sup><u>out</u></sup> _v_ <u>out</u> = <sup>_i_</sup> <sup>−</sup> <sup>_i_</sup> <sup><u>out</u></sup> _dt_ _C_ _C_ _L_ _dv_ <u>out</u> = <sup>_i_</sup> <sup>−</sup> <sup>_i_</sup> <sup><u>out</u></sup> (4) where _Ts_ = 1 _/_ _f_ ≈ 33.3 _µ_ s. By assuming _v_ in as a constant, this model is in the same form as model (1b)–(1c), where _x_ = [¯ _ı_ _v_ ¯out _δ_ ], _u_ = _�δ_, _p_ = _i_ out, and _y_ = _v_ ¯out, which can be assumed to be equal to _v_ out (small-ripple approximation [42]) and then easily measured on the circuit. The average current _ı_ ¯ must be instead estimated through a Kalman filter. The inductor current _i_ does not appear in model (4), and then the constraint on the inductor current must be reformulated in terms of the variables available in the prediction model. The inductor current is subject to a ripple, which can be evaluated, based on circuit equations, as _δ(v_ in − _v_ out _)/(_ 2 _f L)_ [42]. The constraint _i_ ≤ _i_ max can then be approximated as _ı_ ¯ + _δ(v_ in −¯ _v_ out _)/(_ 2 _f L)_ ≤ _i_ max. If _δ_ is replaced by its maximum value _δ_ max, the constraint becomes more conservative, but can be written as in expression (1d). TABLE II <u>CIRCUIT RESOURCE USAGE,</u> <u>LATENCY,</u> AND POWER WITH ALL DIFFERENT CONTROLLERS This state constraint is imposed only at the prediction instant _(k_ +1 _)Ts_, whereas input constraint _δ_ min ≤ _δ_ ≤ _δ_ max is imposed only at the current instant _kTs_ . The tracking problem can now be formulated as in (1), by setting _N_ = 5, _Nu_ = 3, _Nc_ = 1, _�_ 1 = [0 0 1], _�_ 2 = 0, _P_ = _Q_ = diag _(_ 0 _,_ 2 _,_ 0 _)_, and _R_ = 1. Implicit, explicit, and approximate MPC controllers were designed with _T_ ctrl = _Ts_, i.e., with _α_ = _β_ = 1. The PWA function defining the explicit controller is defined over a 5-D domain partitioned into six polytopes. The approximate controller was generated by partitioning the domain into regular simplices, with nine partitions along the state and reference dimensions and one partition along the parameter dimension. The Kalman predictor for the estimation of _ı_ ¯ was designed with _T_ obs = _Ts_ starting from the averaged model (4), by setting a process covariance matrix _Q_ _K_ = diag _(_ 0 _._ 1 _,_ 0 _._ 1 _)_ and a measurement covariance _RK_ = 0 _._ 1. _B._ _Circuit_ _Design_ Three embedded system objects were created, including the Kalman predictor and the three designed MPC controllers. For each of them, available circuits were generated and implemented on a Zynq-7000 XC7Z020-1CLG484C FPGA, with a clock frequency of 50 MHz. Explicit controllers use a 12-bit fixed-point representation, implicit controllers use an 18-bit fixed-point representation, whereas 12 bits were set for ADC and DAC. Table II shows the number of used look-up tables (LUTs), flip-flops (FFs), block random access memories (BRAM), and digital signal processors (DSPs) for all the circuit architectures. The percent values are relative to the total available resources in the Zynq board. Also, the circuit latency and estimated average power are listed. As expected, the approximate explicit MPC controller has the lowest latency, about two orders of magnitude lower than the sampling time _Ts_, with a very low resource utilization. An even smaller, but slower, circuit is obtained with the explicit MPC controller. Due to the high level of parallelism, the latency of the fast implicit solution is still lower than _Ts_ at the cost of a much higher resource occupation (especially DSP) and power consumption. If parallelism is not exploited (see the last row of Table II), the latency is much higher than _Ts_ and the architecture cannot be exploited in real experiments. We remark that the latency value shown in the table is only related to the embedded system computation; a further delay of 1 _._ 46 µs must be added due to the ADC conversion of measurements. _C._ _PIL_ _Simulations_ A Simulink model was generated with MOBY-DIC, combined with the Xilinx Model Composer and System Generator, to perform PIL simulations (see Fig. 5). The state-space model automatically generated by MOBY-DIC2 is the linear prediction model used for MPC design. We replaced it with the nonlinear model (3) to get a more accurate simulation of the converter. The Zynq board implementing the implicit fast architecture was connected to the PC, and the simulation results are shown in Fig. 8. The top panel of the figure shows the time evolution of _v_ out (blue), the value of _v_ ¯out estimated by the observer (red), and the reference output voltage (black, dashed). The middle panel shows _i_ (blue), the estimated value of _ı_ ¯ (red), and the bound _i_ max (gray). Note that the current ripple visible in the blue profile is not estimated by the observer, which is designed based on the averaged model. The black dashed line is the output current _i_ out. The bottom panel shows the evolution of _δ_ (blue) and its bounds (gray). The digital circuit correctly estimates _<u>ı</u>_ and _~~v~~_ out through the Kalman predictor and regulates _v_ out to the variable reference _v_ out _,_ ref, even if the parameter _i_ out changes. At the beginning, the controller brings _v_ out to 1 _._ 8 V in about 4 ms. After 7 _._ 5 ms, the reference voltage is set to 3 _._ 3 V (left black boxes), and after 12 _._ 5 ms, the output current _i_ out is varied from 0 _._ 8 to 1 _._ 2 A (right black boxes). The constraints are always satisfied. _D._ _Experiments_ The FPGA implementing the fast implicit controller was connected to a real buck converter and we used the same scenario as for the PIL simulation. The constant input voltage is applied through a BREMI BRS 55 power supply, whereas the time-varying output current is set through a PEL 3031E DC electronic load. The output voltage and load current are acquired through ADCs, whereas the output voltage reference is changed from 1 _._ 8 to 3 _._ 3 V through a switch in the Zynq board and is, therefore, an internal digital signal. The controller’s output _δ_ is provided to a block described in VHDL code generating the PWM signal to be applied to the MOS of the buck converter. An LTS 6-NP Hall-effect probe was used to acquire the inductor current through an RIGOL DS1000Z oscilloscope, together with the output voltage _v_ out and the PWM signal. Fig. 9 shows portions of the experimental results corresponding to the black rectangles in Fig. 8, i.e., during the changes in operating conditions. The experiment was repeated using two different control systems generated by MOBY-DIC2 and implemented on the FPGA: in one case, implicit MPC was used, and in the other, approximate explicit MPC was used. A Kalman predictor generated by MOBY-DIC2 was also used. The top panels show _v_ out and _v_ out _,_ ref, the middle panels _i_, _i_ out and _i_ max, and the bottom panels _δ_, which is reconstructed in MATLAB starting from the measured PWM signal and its bounds. Note that in all the cases, the regulation is successful and the measured results are similar to the simulated ones. Fig. 8. PIL simulation results with implicit MPC: output voltage (top), inductor current (middle), and duty cycle (bottom). Fig. 9. Experimental results with implicit (green) and approximate MPC (magenta). Top panels: output voltage _v_ out and its reference _v_ out _,_ ref (black dashed); middle panels: inductor current _i_, output current _i_ out (black dashed), and constraint _i_ max (gray); bottom panels: duty cycle _δ_ and its bounds (gray). Cases 1 (left panels) and 2 (right panels) correspond to the black rectangles in Fig. 8. (a) Case 1. (b) Case 2. VI. CONCLUSION Controllers based on implicit, explicit, and approximate MPC, including a state observer, were designed and implemented on a Zynq-7000 FPGA for the regulation of a real switching buck converter. Explicit MPC controllers need limited hardware resources and achieve latencies of hundreds of nanoseconds, whereas the parallel implicit version requires much more resources (especially DSPs) with a latency of tens of microseconds. A smaller, yet too slow, circuit implementing implicit MPC has also been designed. Without MOBY-DIC2, the same experiments would have required multiple tools (e.g., the MPC toolbox and PROTOIP), which are not guaranteed to be fully compatible and possibly require some manual modification to the generated code. MOBY-DIC2 allowed instead to carry out the whole design, simulation, and implementation process, by generating different control strategies and circuit architectures and comparing their performances. MOBY-DIC2 has proven to be an effective tool for control-circuit co-design and co-simulation. Different QP solvers can possibly be added to MOBYDIC2 for simulation and/or implementation purposes. The functionalities could also be extended to nonlinear MPC, which is possible due the fact that several circuit architectures are already available in the literature for the solution of nonlinear constrained optimization problems [43], [44], [45]. ACKNOWLEDGMENT The authors thank the consortium of European FP7 Project MOBY-DIC (ID: 248858) and Tomaso Poggi who actively worked on the toolbox. REFERENCES [1] D. Q. Mayne, “Model predictive control: Recent developments and future promise,” _Automatica_, vol. 50, no. 12, pp. 2967–2986, Dec. 2104. [2] J. B. Rawlings, D. Q. Mayne, and M. Diehl, _Model_ _Predictive_ _Con-_ _trol:_ _Theory,_ _Computation,_ _and_ _Design_ . Madison, WI, USA: Nob Hill Publishing, 2017. [3] Y. Wang and S. Boyd, “Fast model predictive control using online optimization,” _IEEE_ _Trans._ _Control_ _Syst._ _Technol._, vol. 18, no. 2, pp. 267–278, Mar. 2010. [4] F. Torrisi and A. Bemporad, “HYSDEL—A tool for generating com putational hybrid models,” _IEEE_ _Trans._ _Contr._ _Syst._ _Technol._, vol. 12, no. 2, pp. 235–249, Mar. 2004. [5] A. Bemporad, M. Morari, V. Dua, and E. N. Pistikopoulos, “The explicit linear quadratic regulator for constrained systems,” _Automatica_, vol. 38, no. 1, pp. 3–20, Jan. 2002. [6] A. Bemporad, A. Oliveri, T. Poggi, and M. Storace, “Ultra-fast stabi lizing model predictive control via canonical piecewise affine approximations,” _IEEE_ _Trans._ _Autom._ _Control_, vol. 56, no. 12, pp. 2883–2897, Dec. 2011. [7] B. A. G. Genuit, W. P. M. H. Heemels, and L. Lu, “Approximation of explicit model predictive control using regular piecewise affine functions: An input-to-state stability approach,” _IET_ _Control_ _Theory_ _Appl._, vol. 6, no. 8, pp. 1015–1028, May 2012. [8] C. Wen, X. Ma, and B. E. Ydstie, “Analytical expression of explicit MPC solution via lattice piecewise-affine function,” _Automatica_, vol. 45, no. 4, pp. 910–917, 2009. [9] L. H. Cseko, M. Kvasnica, and B. Lantos, “Explicit MPC-based RBF neural network controller design with discrete-time actual Kalman filter for semiactive suspension,” _IEEE_ _Trans._ _Control_ _Syst._ _Technol._, vol. 23, no. 5, pp. 1736–1753, Sep. 2015. [10] S. Chen et al., “Approximating explicit model predictive control using constrained neural networks,” in _Proc. Annu. Amer. Control Conf. (ACC)_, Milwaukee, WI, USA, Jun. 2018, pp. 1520–1527. [11] R. E. Bellman, _Dynamic_ _Programming_ . Princeton, NJ, USA: Princeton Univ. Press, 1957. [12] I. McInerney, G. A. Constantinides, and E. C. Kerrigan, “A survey of the implementation of linear model predictive control on FPGAs,” _IFAC-_ _PapersOnLine_, vol. 51, no. 20, pp. 381–387, 2018. [13] E. N. Hartley, J. L. Jerez, A. Suardi, J. M. Maciejowski, E. C. Kerrigan, and G. A. Constantinides, “Predictive control using an FPGA with application to aircraft control,” _IEEE_ _Trans._ _Control_ _Syst._ _Technol._, vol. 22, no. 3, pp. 1006–1017, May 2014. [14] G. Cimini, D. Bernardini, S. Levijoki, and A. Bemporad, “Embedded model predictive control with certified real-time optimization for synchronous motors,” _IEEE_ _Trans._ _Control_ _Syst._ _Technol._, vol. 29, no. 2, pp. 893–900, Mar. 2021. [15] F. Bayat, T. A. Johansen, and A. A. Jalali, “Combining truncated binary search tree and direct search for flexible piecewise function evaluation for explicit MPC in embedded microcontrollers,” _IFAC_ _Proc._ _Volumes_, vol. 44, no. 1, pp. 1332–1337, Jan. 2011. [16] A. Oliveri and M. Storace, “Hardware-in-the-loop simulations of circuit architectures for the computation of exact and approximate explicit MPC control functions,” in _Proc. IEEE Int. Conf. Circuits Syst._, Seville, Spain, Dec. 2012, pp. 380–383. [17] M. Gulan, G. Takacs, N. A. Nguyen, S. Olaru, P. Rodriguez-Ayerbe, and B. Rohal’-Ilkiv, “Efficient embedded model predictive vibration control via convex lifting,” _IEEE_ _Trans._ _Control_ _Syst._ _Technol._, vol. 27, no. 1, pp. 48–62, Jan. 2019. [18] C. Jugade, D. Ingole, D. N. Sonawane, M. Kvasnica, and J. Gustafson, “A memory efficient FPGA implementation of offset-free explicit model predictive controller,” _IEEE Trans. Control Syst. Technol._, vol. 30, no. 6, pp. 2646–2657, Nov. 2022. [19] A. Oliveri et al., “MOBY-DIC: A MATLAB toolbox for circuit oriented design of explicit MPC,” _IFAC_ _Proc._ _Volumes_, vol. 45, no. 17, pp. 218–225, 2012. [20] J. Mattingley and S. Boyd, “CVXGEN: A code generator for embedded convex optimization,” _Optim._ _Eng._, vol. 13, no. 1, pp. 1–27, Mar. 2012. [21] C. N. Jones, A. Domahidi, M. Morari, S. Richter, F. Ullmann, and M. Zeilinger, “Fast predictive control: Real-time computation and certification,” _IFAC_ _Proc._ _Volumes_, vol. 45, no. 17, pp. 94–98, 2012. [22] H. J. Ferreau, C. Kirches, A. Potschka, H. G. Bock, and M. Diehl, “qpOASES: A parametric active-set algorithm for quadratic programming,” _Math._ _Program._ _Comput._, vol. 6, no. 4, pp. 327–363, 2014. [23] P. Giselsson and S. Boyd, “Diagonal scaling in Douglas–Rachford splitting and ADMM,” in _Proc. IEEE Conf. Decis. Control_, Los Angeles, CA, USA, Dec. 2014, pp. 5033–5039. [24] G. Cimini, A. Bemporad, and D. Bernardini. (Sep. 2017). _ODYS_ _QP_ _Solver_ . [Online]. Available: https://odys.it/qp [25] B. Stellato, G. Banjac, P. Goulart, A. Bemporad, and S. Boyd, “OSQP: An operator splitting solver for quadratic programs,” _Math._ _Program._ _Comput._, vol. 12, no. 4, pp. 637–672, Dec. 2020. [26] A. Suardi, E. C. Kerrigan, and G. A. Constantinides, “Fast FPGA prototyping toolbox for embedded optimization,” in _Proc._ _Eur._ _Control_ _Conf._ _(ECC)_, Linz, Austria, Jul. 2015, pp. 2589–2594. [27] H. A. Shukla, B. Khusainov, E. C. Kerrigan, and C. N. Jones, “Software and hardware code generation for predictive control using splitting methods,” _IFAC-PapersOnLine_, vol. 50, no. 1, pp. 14386–14391, 2017. [28] P. Zometa, M. Kögel, and R. Findeisen, “ _µ_ AO-MPC: A free code generation tool for embedded real-time linear model predictive control,” in _Proc._ _Amer._ _Control_ _Conf._, Washington, DC, USA, Jun. 2013, pp. 5320–5325. [29] A. Bemporad. (Dec. 2004). _Hybrid_ _Toolbox—User’s_ _Guide_ . [Online]. Available: http://cse.lab.imtlucca.it/bemporad/hybrid/toolbox [30] M. Herceg, M. Kvasnica, C. N. Jones, and M. Morari, “Multi-parametric toolbox 3.0,” in _Proc. Eur. Control Conf. (ECC)_, Jul. 2013, pp. 502–510. [31] ODYS Srl. (Oct. 2019). _ODYS_ _Embedded_ _MPC_ . [Online]. Available: https://odys.it/embedded-mpc [32] A. Bemporad, M. Morari, and N. Ricker, _Model_ _Predictive_ _Control_ _Toolbox_ _for_ _MATLAB_ . The Mathworks, Inc. Accessed: 2004. [Online]. Available: http://www.mathworks.com/help/mpc [33] A. Bemporad, “A multiparametric quadratic programming algorithm with polyhedral computations based on nonnegative least squares,” _IEEE_ _Trans._ _Autom._ _Control_, vol. 60, no. 11, pp. 2892–2903, Nov. 2015. [34] G. Pannocchia, “Offset-free tracking MPC: A tutorial review and com parison of different formulations,” in _Proc._ _Eur._ _Control_ _Conf._ _(ECC)_, Jul. 2015, pp. 527–532. [35] S. Di Cairano, H. E. Tseng, D. Bernardini, and A. Bemporad, “Steering vehicle control by switched model predictive control,” _IFAC_ _Proc._ _Volumes_, vol. 43, no. 7, pp. 1–6, Jul. 2010. [36] A. Oliveri, M. Lodi, and M. Storace, “Design and circuit implementation of approximate switched MPC,” in _Proc._ _Eur._ _Conf._ _Circuit_ _Theory_ Desing, Dresden, Germany, Sep. 2013, pp. 1–4. [37] J. M. Maciejowski, _Predictive_ _Control_ _for_ _Linear_ _and_ _Hybrid_ _Systems_ . Upper Saddle River, NJ, USA: Prentice-Hall, 2007. [38] T. V. Dang, K. V. Ling, and J. M. Maciejowski, “Embedded ADMM based QP solver for MPC with polytopic constraints,” in _Proc._ _Eur._ _Control_ _Conf._ _(ECC)_, Linz, Austria, Jul. 2015, pp. 3446–3451. [39] J. L. Jerez, P. J. Goulart, S. Richter, G. A. Constantinides, E. C. Kerrigan, and M. Morari, “Embedded online optimization for model predictive control at megahertz rates,” _IEEE Trans. Autom. Control_, vol. 59, no. 12, pp. 3238–3251, Dec. 2014. [40] P. Zhang, J. Zambreno, and P. H. Jones, “An embedded scalable linear model predictive hardware-based controller using ADMM,” in _Proc._ _Int._ _Conf._ _Appl.-Specif._ _Syst._ _Archit._ _Process._ _Proc._, Seattle, WA, USA, Jul. 2017, pp. 176–183. [41] R. D. Middlebrook and S. Cuk, “A general unified approach to modelling switching-converter power stages,” in _Proc. IEEE Power Electron. Spec._ _Conf._ _(PESC)_, Cleveland, OH, USA, Jun. 1976, pp. 18–34. [42] R. W. Erickson and D. Maksimovic, _Fundamentals of Power Electronics_ . New York, NY, USA: Springer, 2007. [43] F. Xu, H. Chen, X. Gong, and Q. Mei, “Fast nonlinear model predictive control on FPGA using particle swarm optimization,” _IEEE_ _Trans._ _Ind._ _Electron._, vol. 63, no. 1, pp. 310–321, Jan. 2016. [44] A. Raha, A. Chakrabarty, V. Raghunathan, and G. T. Buzzard, “Embed ding approximate nonlinear model predictive control at ultrahigh speed and extremely low power,” _IEEE_ _Trans._ _Control_ _Syst._ _Technol._, vol. 28, no. 3, pp. 1092–1099, May 2020. [45] D. Tavernini, M. Metzler, P. Gruber, and A. Sorniotti, “Explicit non linear model predictive control for electric vehicle traction control,” _IEEE_ _Trans._ _Control_ _Syst._ _Technol._, vol. 27, no. 4, pp. 1438–1451, Jul. 2019. Open Access funding provided by ‘Università degli Studi di Genova’ within the CRUI CARE Agreement

섹션 본문 57문단 · 29,025자

(제목 없음)

1Several software tools are available in the literature for the design and embedded implementation of linear model predictive control (MPC), both in its implicit and explicit (either exact or approximate) forms.Most of them generate C code for easy implementation on a microcontroller, and the others can convert the C code into hardware description language code for implementation on a field programmable gate array (FPGA).However, a unified tool allowing one to generate efficient embedded MPC for an FPGA, starting from the definition of the plant and its constraints, was still missing.The MOBY-DIC2 toolbox described in this brief bridges this gap.To illustrate its functionalities, the tool is exploited to embed the controller and observer for a real buck power converter in an FPGA.This implementation achieves a latency of about 30 µs with the implicit controller and 240 ns with the approximate explicit controller.Index Terms-Embedded model predictive control (MPC), field programmable gate array (FPGA), hardware-software co-design.

I. INTRODUCTION

2L INEAR model predictive control (MPC) [1], [2] is a model-based approach for the regulation and tracking of linear systems with multiple inputs and outputs, subject to affine inequality constraints.The traditional (implicit) formulation requires solving a quadratic programming (QP) optimization problem at each sampling time, which can be time-consuming and then not applicable for systems with very fast dynamics [3].For piecewise-affine (PWA) systems subject to mixed linear/logical constraints, the MPC optimization problem can be formulated as a mixed-integer QP [4].Explicit MPC [5] moves most of the computation offline, and the online computation of the control action (both for linear and PWA systems) reduces to the evaluation of a PWA function, which significantly reduces the computational effort.Many approximate explicit control functions have also been proposed [6], [7], [8], [9], [10], which can contribute to further increase the controller update rate.The common drawback of all the explicit solutions is the rapid growth of the number of parameters as the dimension of the system increases, due to the so-called curse of dimensionality [11].Some solutions have been proposed in the last decade for fast and efficient implementation of implicit [12], [13], [14] and explicit [15], [16], [17], [18] MPC on different platforms, including microcontrollers and field programmable gate arrays (FPGAs).

3In the control literature, the implementation aspects and the corresponding support tools for creating real-time embedded controllers receive rather limited attention, while for practical applications these are of course crucial.In this brief, we present a second release of the MOBY-DIC 1 toolbox (briefly, MOBY-DIC2), 2 which extends the functionalities of the former version (MOBY-DIC1) [19].This toolbox supports the co-design process of a controller and its digital implementation, enabling easy deployment of MPC-based control solutions for real-time applications.MOBY-DIC2 is a MATLAB toolbox based on object-oriented programming, which allows carrying out the entire MPC design flow, from the definition of system dynamics and constraints to the embedded architectures, including implicit/explicit, exact/approximate MPC, and supporting both the microcontroller and FPGA implementations of the controllers and observers.The main strength of MOBY-DIC2 is the automatic generation of efficient VHDL 3 code, by setting the level of parallelism, the number of bits for the fixed-point representation of inputs, outputs, and coefficients, and the scalings to automatically interface with analog-to-digital and digital-to-analog converters (ADCs and DACs).To demonstrate all the functionalities of MOBY-DIC2, embedded architectures implementing implicit, explicit, approximate MPC controllers, and Kalman filters are generated for a switching buck converter.Processor-in-the-loop (PIL) simulations and tests on a real converter prototype are provided, showing the strengths and capabilities of the tool.

II. SURVEY ON AVAILABLE TOOLS

4Several free and commercial tools are available to help the user in designing and/or implementing linear 1 Acronym of the FP7 European Project "MOdel-Based sYnthesis of DIgital electronic Circuits for embedded control" FP7-ICT-2009-4 (2010-2012).

52 Available online at https://github.com/COMPsys-UNIGE/MOBY-DIC 3 Very high-speed integrated circuit hardware description language.implicit/explicit MPC.The main ones are summarized in Fig. 1, which lists all the steps necessary to generate and simulate an embedded MPC controller.Starting from the definition of the system and constraints, an implicit MPC controller can be designed, for linear or PWA systems.An explicit (either exact or approximate) solution can then be computed.When the system state is not completely measurable, a state observer must also be designed.C and VHDL code must then be created for implementation of the controller and observer on a microcontroller or an FPGA, respectively, or to perform PIL simulations involving a computer running the plant model (not in real-time) and an embedded device implementing the controller and/or the observer.We now briefly describe the tools listed in Fig. 1 from left to right.

6The following tools generate C code that can be exploited for microcontroller implementation of QP solvers: CVX-GEN [20], FiOrdOs [21], FORCES [21], qpOASES [22], QPGEN [23], ODYS QP Solver [24], and OSQP [25].

7PROTOIP [26] provides a MATLAB interface to Xilinx Vitis high-level synthesis (HLS), allowing for the generation of an embedded circuit on a heterogeneous (microcontroller + FPGA) computing platform (in particular, Xilinx Zynq System on Chip) starting from an algorithm described in the C language.PROTOIP allows performing PIL simulations, using MATLAB and a Zynq board, and evaluating the circuit performances within MATLAB environment.

8SPLIT [27] is a tool with a MATLAB interface for the generation of embedded implicit linear MPC, based on splitting algorithms, including the alternating direction method of multipliers (ADMM).Based on the matrices and constraints defining the QP optimization problem, a C code is generated for implementation on the microcontroller or, through PRO-TOIP [26], on heterogeneous computing platforms.

9µAO-MPC [28] is a Python tool (with MATLAB interface) that allows generating C code for embedded implicit MPC starting from the definition of the system to regulate.

10The hybrid toolbox [29] and multiparametric toolbox (MPT3) [30] are MATLAB tools that allow generating explicit MPC for linear and PWA systems.The hybrid toolbox also provides C files that can be deployed on the microcontroller.

11ODYS Embedded MPC [31] uses a specific version of ODYS QP Solver [24] optimized for MPC applications and allows generating C code with industrial standards for very fast embedded implementation of implicit linear, linear timevarying, and nonlinear MPC and related state observers.PIL simulations can also be carried out.

12MOBY-DIC1 allows designing, simulating, and implementing on FPGA explicit exact and approximate MPC, whereas the MATLAB MPC Toolbox [32] allows auto-generating C code from Embedded MATLAB functions for microcontroller implementation of both implicit and explicit (exact and approximate) MPC, based on the multiparametric solver described in [33].State estimators can also be designed and implemented, and PIL simulations are available.However, the MPC toolbox does not support code generation for FPGA implementation.MOBY-DIC2 fills this gap, by extending the functionalities of MOBY-DIC1.It embeds a top-level interface for the following tools, whose invocation is transparent to the user: MPT3 for the design of explicit MPC, Xilinx Vitis HLS for the generation of VHDL code of the implicit MPC, and Xilinx model composer and system generator for the PIL simulations, including Simulink and an FPGA.MOBY-DIC2 is compatible with both MPT3 and MPC toolbox, since an MPC controller previously generated with one of these tools can be easily imported in MOBY-DIC2 for FPGA implementation or PIL simulation.

III. LINEAR MPC

13In this section, we briefly describe the formulation of MPC [1], [2] used within the MOBY-DIC2 toolbox for linear time-invariant (LTI) systems.We consider a dynamical system whose states, inputs, measurable parameters, unmeasurable disturbances, and outputs are denoted as

14and y ∈ R n y , respectively.The MPC controller aims at bringing the system state or output to a constant (regulation problem) or time-varying (tracking problem) reference r .All these variables are gathered in a vector z = [x T u T p T d T y T r T ] T .We use a subscript k to indicate the value of a variable at a discrete time instant kT s , where T s is the sampling period, and a subscript k + i|k to indicate the predicted value of a variable at time (k + i)T s , based on its value at time kT s , k ∈ N, i ∈ N. Starting from measurements or estimations of x k , p k , d k , and r k , . . ., r k+N (only for tracking problems), the MOBY-DIC2 toolbox allows generating linear MPC by solving the following optimization problem with a receding horizon approach:

15Authorized licensed use limited to the terms of the applicable license agreement with IEEE.Restrictions apply.

16Within MOBY-DIC2, p and d are measured/estimated at every sampling instant and assumed to remain constant within the prediction horizon (i.e., p k+i|k = p k , and the same holds for d).In this optimization problem, expression (1a) contains the quadratic cost function to be minimized at time kT s , where

17is the time horizon where the constraints are imposed, Q = Q T and P = P T are the positive-semidefinite weight matrices, and R = R T is a positive definite weight matrix.The terms σ i (i = 0, . . ., N c ) are slack vectors of soft constraints.We have e k+i|k := x k+i|k − r k+i for state regulation/tracking problems, whereas e k+i|k := y k+i|k − r k+i for output regulation/tracking.Finally, ϵ k+i := u k+i − r u , where r u is the input reference.For tracking problems, an augmented model is automatically generated to achieve offset-free tracking [34], in which u k−1 becomes a system state with dynamics u k = u k−1 + u k , where u k is the new system input.Therefore, r u = 0.

18The affine time-invariant prediction model is given in (1b)-(1c), whereas inequality (1d) represents the affine inequality constraints at each time (k + i)T s .Matrix i is diagonal and contains zeros or ones, indicating whether the corresponding constraint is hard or soft, respectively.Finally, (1e) fixes the input (control) for time instants outside the control horizon.

19Within MOBY-DIC2 toolbox, MPC and state observers can also be designed and implemented for PWA systems, with a switching approach, i.e., a different controller/observer is designed for each system dynamics [35], [36].

20IV. MOBY-DIC2 FUNCTIONALITIES Fig. 2 shows the main design flow of the MOBY-DIC2 toolbox for LTI systems.The green boxes represent the toolbox inputs, whereas the orange ones the outputs.

A. Controller Design

21The first step for MPC design is to define the prediction model (1b)-(1c) and the affine inequality constraints.The model can be represented either in discrete or continuous time.In the latter case, it is automatically converted into a discrete-time model with a sampling time T s , specified by the user.If the controller latency is higher than T s , the update time T ctrl of the controller can be set as a multiple of T s .This means that only for the prediction phase, the LTI system is re-discretized with sampling time T ctrl .Both hard and soft constraints can be imposed for any variable at any prediction instant.The MPC parameters appearing in problem (1) are then set within a MATLAB structure, and an object representing either an implicit or an explicit MPC controller is created.We remark that the controllers can also be created using MPT3 or MPC toolbox and then converted into MOBY-DIC2 objects.

22With the implicit controller, problem ( 1) is recast as a standard constrained QP with a sparse formulation, i.e., min

23Additional details regarding the construction of the matrices can be found in [37].MOBY-DIC2 solves problem (2) at each control interval T ctrl by resorting to either the MATLAB function quadprog or the ADMM algorithm [38].As better described in the following sections, code generation is supported only for ADMM, whereas quadprog can be used for software simulation purposes.

24The explicit MPC controller is generated by invoking the MPT3 toolbox, which solves problem (1) through multiparametric QP.Then, the control action u k is represented as u k = f pwa (x k , p k , d k , r k , . . ., r k+N ), where f pwa is a PWA function defined over a generic polytopic partition, like the one shown in Fig. 3 (left).MOBY-DIC2 allows also approximating the function f pwa with another PWA function defined over a regular simplicial domain partition [6] (Fig. 3, right), to obtain lower computational effort and allowing to decrease the system sampling time.An object representing an approximate MPC controller can be created by specifying the number of partitions for each domain dimension.

B. Observer Design

25Kalman filters and predictors can be easily created to estimate the system state and unmeasurable disturbance of an LTI system, by providing a process covariance matrix Q K , a measurement covariance matrix R K , and an observer sampling time T obs , which, for the reasons explained in Section IV-A, can be a multiple of the system sampling time T s .Summarizing, the relationship between the system sampling time T s , observer sampling time T obs , and controller sampling time T ctrl is T ctrl = αT obs = αβT s , where α and β are positive integer numbers.The Kalman observers are designed through the MATLAB function kalman, to obtain Authorized licensed use limited to the terms of the applicable license agreement with IEEE.Restrictions apply.

C. Embedded System Design

26This functionality represents the main strength of the tool.The designed controller and observer can be set as internal properties of the LTI system object, to create a closed-loop system including the Kalman filter.An embedded system object can then be created, representing the circuit to be implemented in a microcontroller or FPGA.The block scheme of the embedded system is shown in Fig. 4; the green rectangle represents the hardware architecture generated by MOBY-DIC2, to be implemented in an FPGA or microcontroller (red rectangle).The controller and the observer can also be implemented individually.The circuit is thought to get the reference r k , . . ., r k+N (in case of tracking problems), the parameter p k , and the outputs y k through ADCs in a given range, which can be set within MOBY-DIC2, typically [0 4095] for 12-bit ADCs.These values are converted into the correct range through linear scalings, performed by SCALE blocks, and provided to the controller and observer, as shown in the figure.The control output u k is scaled to the DAC range.

27For implicit MPC, the ADMM algorithm [38] is exploited by the circuit.ADMM steps are simple to implement and computationally very cheap, which makes this algorithm particularly suitable for implementation in embedded devices with limited computing resources [12].The main linear algebraic operation in each step is matrix-vector multiplication.In addition, there is no data dependence between the optimization variables in an iteration; this allows for the processing of each optimization variable in parallel, thus making ADMM particularly suitable for FPGA implementations [38], [39], [40].Also, QPGEN, OSQP, and SPLIT tools use the ADMM algorithm for the generation of C code.For FPGA implementation, two architectures can be generated: a fast one, which exploits parallelism to perform matrix-vector products, thus achieving a low latency at the cost of more hardware resources, and a small one, with higher latency and lower resource utilization.A fixed-point representation of data is chosen, where the user can set the number of bits.Also, the number of bits of ADC and DAC can be arbitrarily set.The toolbox creates C++ code, which is automatically converted into VHDL code through Vitis HLS, without any user intervention.In this case, also the VHDL code of the observer is generated through Vitis HLS.

28For explicit and approximate MPC, the circuit architectures described in [16] are implemented.Also in this case, for FPGA implementation, a serial architecture and a parallel architecture are available, to trade off circuit size and latency.In this case, the code is generated directly in VHDL language.

29C code can also be generated for microcontroller implementation of all kinds of controllers and observers, by exploiting the same algorithms used for the FPGA, with a floating point data representation.In this case, it is not possible to choose between serial (small) and parallel (fast) architectures.

D. Simulations

30The MOBY-DIC2 toolbox allows performing different kinds of simulations of the closed-loop systems including all types of controllers and observers.The simplest simulation runs directly in MATLAB.The plots of the time evolution of all the measured and estimated variables are automatically generated.A Simulink model can be created for interactive simulations, where references and parameters can be varied online.Also, the plant model can be replaced by a more accurate one, which is often useful (as in the example shown in this brief) since the prediction model used to design the MPC controller may be simpler than the plant model used for simulation.MOBY-DIC2 interfaces also with Xilinx Model Composer and System Generator to generate the Simulink models for PIL simulations, as the one shown in Fig. 5, where the embedded system (controller and observer) runs on an FPGA connected to the computer.The scaling blocks for adapting the signals to the ADC and DAC ranges are also generated.This allows evaluating the effects of delays and quantization errors due to ADCs and DACs and fixed-point representation of data.The snippet of code in Fig. 6 shows how the main MOBY-DIC2 functionalities can be invoked with a few commands.

A. Experimental Results on a Buck Converter

31The MOBY-DIC2 toolbox was used to generate different embedded systems (including different types of MPC controllers and a Kalman predictor) to be implemented on FPGA to regulate a real buck converter.A buck converter (see Fig. 7) is a switching DC-DC converter that allows transforming an input DC voltage v in to a lower DC output voltage v out .The circuit is composed of an inductor with voltage v and current i, a diode with voltage drop v d , an MOS transistor operating as a switch, an output capacitor, and a load absorbing a current i out .R L indicates the parasitic resistance of the inductor.The Authorized licensed use limited to the terms of the applicable license agreement with IEEE.Restrictions apply.The buck converter is a switching system, consisting of two states: when the PWM signal is high, the MOS conducts current (on phase); when the PWM signal is low, the MOS does not conduct (off phase).We assume that the converter always works in continuous conduction mode, i.e., with i > 0, with state equations as follows: where s = 1 in on phase and 0 in off phase.The goal of the controller is to set the duty cycle δ of the switch such that the average value of the output voltage (which is subject to some ripple) tracks a reference value vout,ref , by fulfilling hard constraints i ≤ i max and δ min ≤ δ ≤ δ max .The values of parameters and constraints are summarized in Table I.

32The nonlinear model ( 3) can be used to simulate the converter, but is not suitable as a prediction model for linear MPC.To this aim, a linear averaged model can be derived [41], [42].By considering an augmented system, the averaged linear model can be written in discrete-time version as follows:

33where T s = 1/ f ≈ 33.3 µs.By assuming v in as a constant, this model is in the same form as model (1b)-(1c), where x = [ī vout δ], u = δ, p = i out , and y = vout , which can be assumed to be equal to v out (small-ripple approximation [42]) and then easily measured on the circuit.The average current ī must be instead estimated through a Kalman filter.

34The inductor current i does not appear in model ( 4), and then the constraint on the inductor current must be reformulated in terms of the variables available in the prediction model.The inductor current is subject to a ripple, which can be evaluated, based on circuit equations, as δ(v in − v out )/(2 f L) [42].The constraint i ≤ i max can then be approximated as ī + δ(v in − vout )/(2 f L) ≤ i max .If δ is replaced by its maximum value δ max , the constraint becomes more conservative, but can be written as in expression (1d).This state constraint is imposed only at the prediction instant (k +1)T s , whereas input constraint δ min ≤ δ ≤ δ max is imposed only at the current instant kT s .

35The tracking problem can now be formulated as in (1), by setting N = 5, N u = 3, N c = 1, 1 = [0 0 1], 2 = 0, P = Q = diag(0, 2, 0), and R = 1.

36Implicit, explicit, and approximate MPC controllers were designed with T ctrl = T s , i.e., with α = β = 1.The PWA function defining the explicit controller is defined over a 5-D domain partitioned into six polytopes.The approximate controller was generated by partitioning the domain into regular simplices, with nine partitions along the state and reference dimensions and one partition along the parameter dimension.

37The Kalman predictor for the estimation of ī was designed with T obs = T s starting from the averaged model ( 4), by setting a process covariance matrix Q K = diag(0.1,0.1) and a measurement covariance R K = 0.1.

B. Circuit Design

38Three embedded system objects were created, including the Kalman predictor and the three designed MPC controllers.For each of them, available circuits were generated and implemented on a Zynq-7000 XC7Z020-1CLG484C FPGA, with a clock frequency of 50 MHz.

39Explicit controllers use a 12-bit fixed-point representation, implicit controllers use an 18-bit fixed-point representation, whereas 12 bits were set for ADC and DAC.Table II shows the number of used look-up tables (LUTs), flip-flops (FFs), block random access memories (BRAM), and digital signal processors (DSPs) for all the circuit architectures.The percent values are relative to the total available resources in the Zynq board.Also, the circuit latency and estimated average power are listed.As expected, the approximate explicit MPC controller has the lowest latency, about two orders of magnitude lower than the sampling time T s , with a very low resource utilization.An even smaller, but slower, circuit is obtained with the explicit MPC controller.Due to the high level of parallelism, the latency of the fast implicit solution is still lower than T s at the cost of a much higher resource occupation (especially DSP) and power consumption.If parallelism is not exploited (see the last row of Table II), the latency is much higher than T s and the architecture cannot be exploited in real experiments.We remark that the latency value shown in the table is only related to the embedded system computation; a further delay of 1.46 µs must be added due to the ADC conversion of measurements.

C. PIL Simulations

40A Simulink model was generated with MOBY-DIC, combined with the Xilinx Model Composer and System Generator, to perform PIL simulations (see Fig. 5).The state-space model automatically generated by MOBY-DIC2 is the linear prediction model used for MPC design.We replaced it with the nonlinear model (3) to get a more accurate simulation of the converter.The Zynq board implementing the implicit fast architecture was connected to the PC, and the simulation results are shown in Fig. 8.The top panel of the figure shows the time evolution of v out (blue), the value of vout estimated by the observer (red), and the reference output voltage (black, dashed).The middle panel shows i (blue), the estimated value of ī (red), and the bound i max (gray).Note that the current ripple visible in the blue profile is not estimated by the observer, which is designed based on the averaged model.The black dashed line is the output current i out .The bottom panel shows the evolution of δ (blue) and its bounds (gray).

41The digital circuit correctly estimates ı and v out through the Kalman predictor and regulates v out to the variable reference v out,ref , even if the parameter i out changes.At the beginning, the controller brings v out to 1.8 V in about 4 ms.After 7.5 ms, the reference voltage is set to 3.3 V (left black boxes), and after 12.5 ms, the output current i out is varied from 0.8 to 1.2 A (right black boxes).The constraints are always satisfied.

D. Experiments

42The FPGA implementing the fast implicit controller was connected to a real buck converter and we used the same scenario as for the PIL simulation.The constant input voltage is applied through a BREMI BRS 55 power supply, whereas the time-varying output current is set through a PEL 3031E DC electronic load.The output voltage and load current are acquired through ADCs, whereas the output voltage reference is changed from 1.8 to 3.3 V through a switch in the Zynq board and is, therefore, an internal digital signal.The controller's output δ is provided to a block described in VHDL code generating the PWM signal to be applied to the MOS of the buck converter.An LTS 6-NP Hall-effect probe was used to acquire the inductor current through an RIGOL DS1000Z oscilloscope, together with the output voltage v out and the PWM signal.Fig. 9 shows portions of the experimental results corresponding to the black rectangles in Fig. 8, i.e., during the changes in operating conditions.The experiment was repeated using two different control systems generated by MOBY-DIC2 and implemented on the FPGA: in one case, implicit MPC was used, and in the other, approximate explicit MPC was used.A Kalman predictor generated by MOBY-DIC2 was also used.The top panels show v out and v out,ref , the middle panels i, i out and i max , and the bottom panels δ, which is reconstructed in MATLAB starting from the measured PWM signal and its bounds.Note that in all the cases, the regulation is successful and the measured results are similar to the simulated ones.

43Authorized licensed use limited to the terms of the applicable license agreement with IEEE.Restrictions apply.

VI. CONCLUSION

44Controllers based on implicit, explicit, and approximate MPC, including a state observer, were designed and implemented on a Zynq-7000 FPGA for the regulation of a real switching buck converter.Explicit MPC controllers need limited hardware resources and achieve latencies of hundreds of nanoseconds, whereas the parallel implicit version requires much more resources (especially DSPs) with a latency of tens of microseconds.A smaller, yet too slow, circuit implementing implicit MPC has also been designed.

45Without MOBY-DIC2, the same experiments would have required multiple tools (e.g., the MPC toolbox and PROTOIP), which are not guaranteed to be fully compatible and possibly require some manual modification to the generated code.MOBY-DIC2 allowed instead to carry out the whole design, simulation, and implementation process, by generating different control strategies and circuit architectures and comparing their performances.MOBY-DIC2 has proven to be an effective tool for control-circuit co-design and co-simulation.

46Different QP solvers can possibly be added to MOBY-DIC2 for simulation and/or implementation purposes.The functionalities could also be extended to nonlinear MPC, which is possible due the fact that several circuit architectures are already available in the literature for the solution of nonlinear constrained optimization problems [43], [44], [45].

Fig. 1 .

47Fig. 1.Functionalities of available tools.Commercial tools are marked with an asterisk.MPC toolbox is part of MATLAB.

Fig. 2 .

48Fig. 2. MOBY-DIC2 project flow.Green boxes: toolbox inputs; orange boxes: outputs.

Fig. 3 .

49Fig. 3. Two-dimensional domain partitioned into generic polytopes (left) regular simplices (right), with seven and four partitions along the first and second dimensions, respectively.

Fig. 4 .

50Fig. 4. Block scheme of the MOBY-DIC2 embedded system (green box) to be implemented on a digital device (red box).

Fig. 5 .

51Fig. 5. Automatically generated Simulink model for PIL simulation.

Fig. 6 .

52Fig. 6.Portion of the MOBY-DIC2 MATLAB code.

Fig. 7 .

53Fig. 7. Circuit model of a DC-DC buck converter.

54MOS transistor is driven by a pulsewidth modulation (PWM) signal with frequency f and duty cycle δ ∈ [0, 1].

Fig. 8 .

55Fig. 8. PIL simulation results with implicit MPC: output voltage (top), inductor current (middle), and duty cycle (bottom).

Fig. 9 .

56Fig.9.Experimental results with implicit (green) and approximate MPC (magenta).Top panels: output voltage v out and its reference v out,ref (black dashed); middle panels: inductor current i, output current i out (black dashed), and constraint i max (gray); bottom panels: duty cycle δ and its bounds (gray).Cases 1 (left panels) and 2 (right panels) correspond to the black rectangles in Fig. 8. (a) Case 1.(b) Case 2.

TABLE II CIRCUIT

57RESOURCE USAGE, LATENCY, AND POWER WITH ALL DIFFERENT CONTROLLERS

참고문헌 39건

  1. Steering Vehicle Control by Switched Model Predictive Control IFAC Proceedings Volumes · Elsevier BV · 2010 10.3182/20100712-3-de-2013.00046
  2. Fast Predictive Control: Real-time Computation and Certification IFAC Proceedings Volumes · Elsevier BV · 2012 10.3182/20120823-5-nl-3013.00075
  3. Multi-Parametric Toolbox 3.0 2022 European Control Conference (ECC) · 2013 10.23919/ecc.2013.6669862
  4. Predictive Control Using an FPGA With Application to Aircraft Control IEEE Transactions on Control Systems Technology · Institute of Electrical and Electronics Engineers · 2013 10.1109/tcst.2013.2271791
  5. Diagonal scaling in Douglas-Rachford splitting and ADMM 2014 10.1109/cdc.2014.7040175
  6. Combining Truncated Binary Search Tree and Direct Search for Flexible Piecewise Function Evaluation for Explicit MPC in Embedded Microcontrollers IFAC Proceedings Volumes · Elsevier BV · 2011 10.3182/20110828-6-it-1002.00332
  7. MOBY-DIC: A MATLAB Toolbox for Circuit-Oriented Design of Explicit MPC IFAC Proceedings Volumes · Elsevier BV · 2012 10.3182/20120823-5-nl-3013.00034
  8. Embedded Online Optimization for Model Predictive Control at Megahertz Rates IEEE Transactions on Automatic Control · Institute of Electrical and Electronics Engineers · 2014 10.1109/tac.2014.2351991
  9. The explicit linear quadratic regulator for constrained systems Automatica · Elsevier BV · 2002 10.1016/s0005-1098(01)00174-1
  10. &amp;#x03BC;AO-MPC: A free code generation tool for embedded real-time linear model predictive control American Control Conference · 2013 10.1109/acc.2013.6580668
  11. qpOASES: a parametric active-set algorithm for quadratic programming Mathematical Programming Computation · Springer Science+Business Media · 2014 10.1007/s12532-014-0071-1
  12. Hardware-in-the-loop simulations of circuit architectures for the computation of exact and approximate explicit MPC control functions 2021 28th IEEE International Conference on Electronics, Circuits, and Systems (ICECS) · 2012 10.1109/icecs.2012.6463722
  13. Explicit MPC-Based RBF Neural Network Controller Design With Discrete-Time Actual Kalman Filter for Semiactive Suspension IEEE Transactions on Control Systems Technology · Institute of Electrical and Electronics Engineers · 2015 10.1109/tcst.2014.2382571
  14. Approximation of explicit model predictive control using regular piecewise affine functions: an input-to-state stability approach IET Control Theory and Applications · Institution of Engineering and Technology · 2012 10.1049/iet-cta.2010.0709
  15. A Multiparametric Quadratic Programming Algorithm With Polyhedral Computations Based on Nonnegative Least Squares IEEE Transactions on Automatic Control · Institute of Electrical and Electronics Engineers · 2015 10.1109/tac.2015.2417851
  16. Design and circuit implementation of approximate switched MPC 2013 10.1109/ecctd.2013.6662329
  17. Analytical expression of explicit MPC solution via lattice piecewise-affine function Automatica · Elsevier BV · 2009 10.1016/j.automatica.2008.11.023
  18. Fast FPGA prototyping toolbox for embedded optimization 2022 European Control Conference (ECC) · 2015 10.1109/ecc.2015.7330928
  19. Offset-free tracking MPC: A tutorial review and comparison of different formulations 2022 European Control Conference (ECC) · 2015 10.1109/ecc.2015.7330597
  20. A general unified approach to modelling switching-converter power stages 1976 10.1109/pesc.1976.7072895
  21. HYSDEL—A Tool for Generating Computational Hybrid Models for Analysis and Synthesis Problems IEEE Transactions on Control Systems Technology · Institute of Electrical and Electronics Engineers · 2004 10.1109/tcst.2004.824309
  22. Ultra-Fast Stabilizing Model Predictive Control via Canonical Piecewise Affine Approximations IEEE Transactions on Automatic Control · Institute of Electrical and Electronics Engineers · 2011 10.1109/tac.2011.2141410
  23. Fast Model Predictive Control Using Online Optimization IEEE Transactions on Control Systems Technology · Institute of Electrical and Electronics Engineers · 2009 10.1109/tcst.2009.2017934
  24. CVXGEN: a code generator for embedded convex optimization Optimization and Engineering · Springer Science+Business Media · 2011 10.1007/s11081-011-9176-9
  25. Embedded ADMM-based QP solver for MPC with polytopic constraints 2022 European Control Conference (ECC) · 2015 10.1109/ecc.2015.7331067
  26. Fast Nonlinear Model Predictive Control on FPGA Using Particle Swarm Optimization IEEE Transactions on Industrial Electronics · Institute of Electrical and Electronics Engineers · 2015 10.1109/tie.2015.2464171
  27. Software and Hardware Code Generation for Predictive Control Using Splitting Methods IFAC-PapersOnLine · Elsevier BV · 2017 10.1016/j.ifacol.2017.08.2025
  28. An embedded scalable linear model predictive hardware-based controller using ADMM 2017 10.1109/asap.2017.7995276
  29. Predictive Control for Linear and Hybrid Systems 2017 10.1017/9781139061759
  30. Efficient Embedded Model Predictive Vibration Control via Convex Lifting IEEE Transactions on Control Systems Technology · Institute of Electrical and Electronics Engineers · 2017 10.1109/tcst.2017.2764019
  31. OSQP: an operator splitting solver for quadratic programs Mathematical Programming Computation · Springer Science+Business Media · 2020 10.1007/s12532-020-00179-2
  32. Explicit Nonlinear Model Predictive Control for Electric Vehicle Traction Control IEEE Transactions on Control Systems Technology · Institute of Electrical and Electronics Engineers · 2018 10.1109/tcst.2018.2837097
  33. Approximating Explicit Model Predictive Control Using Constrained Neural Networks 2018 10.23919/acc.2018.8431275
  34. A Survey of the Implementation of Linear Model Predictive Control on FPGAs IFAC-PapersOnLine · Elsevier BV · 2018 10.1016/j.ifacol.2018.11.063
  35. Embedding Approximate Nonlinear Model Predictive Control at Ultrahigh Speed and Extremely Low Power IEEE Transactions on Control Systems Technology · Institute of Electrical and Electronics Engineers · 2019 10.1109/tcst.2019.2898835
  36. Embedded Model Predictive Control With Certified Real-Time Optimization for Synchronous Motors IEEE Transactions on Control Systems Technology · Institute of Electrical and Electronics Engineers · 2020 10.1109/tcst.2020.2977295
  37. Model predictive control: Recent developments and future promise Automatica · Elsevier BV · 2014 10.1016/j.automatica.2014.10.128
  38. Fundamentals of Power Electronics 2001 10.1007/b100747
  39. A Memory Efficient FPGA Implementation of Offset-Free Explicit Model Predictive Controller IEEE Transactions on Control Systems Technology · Institute of Electrical and Electronics Engineers · 2022 10.1109/tcst.2022.3168493