Exact Feedback Linearization of a Multi-Variable Controller for a Bi-Directional DC-DC Converter as Interface of an Energy Storage System

: DC microgrids have shown to be a good approach for better accommodating stochastic renewable energy sources (RES) and for the charging of electric vehicles (EVs) at the distribution level. For this, fast-acting energy storage units (ESSs) are essential. This requires that both the bi-directional power converter topology and the control scheme present the right set of features. The ESS discussed in this paper consists of a new DC-DC converter based on a tapped inductor (TI) for a higher voltage gain at moderate duty cycles. The direction of the current in its intermediate inductor does not need to be reversed for power ﬂow reversal, leading to a faster action. Moreover, it can employ a multi-state and multi-variable modulation scheme that eliminates the right half-plane (RHP) zero, common in boost-type converters. In order to achieve good dynamic performance across a wide range of operating points, a control scheme based on feedback linearization is developed. This paper presents the modeling of the ﬁve-switch DC-DC converter operating in the tri-state buck–boost mode. A systematic approach for deriving control laws for the TI current and output voltage based on exact state feedback linearization is discussed. The performance of the proposed control scheme is veriﬁed by simulation for a supercapacitor (SC)-based ESS. It is compared to that of a conventional control scheme for a dual-state buck–boost mode with cascaded PI controllers designed based on small-signal models. The results show that both control schemes work similarly well at the operating point that the conventional control scheme was designed for. However, only the proposed scheme allows the SC-based ESS to control the current injected into the DC microgrid with the voltage of the SC varying between the expected range of rated to half-rated.


Introduction
The decentralization of power generation has become a topic of high interest for industry and academia. The integration of stochastic renewable energy sources (RESs) at the distribution level is facilitated by incorporating them into a microgrid [1]. DC microgrids are a good option since many RESs (photovoltaic and fuel cells) and energy storage units present DC output characteristics [2]. The efficiency of the DC-DC interfaces tends to be higher than in DC-AC, and issues such as frequency regulation, reactive power control and synchronization are avoided [3,4]. The control of segments of the distribution system as a microgrid also helps with the deployment of new large loads, such as electric vehicles (EVs). However, fast-acting energy storage systems (ESSs) are essential for balancing supply and demand, thus regulating the DC bus voltage [5][6][7].
The power converters of the ESSs must be bi-directional and can be either isolated or non-isolated. The dual-active bridge (DAB) is an example of the former, allowing higher voltage gains than the latter at the expense of a higher switch count. Among the non-isolated bi-directional DC-DC converters, there are the Class C and the four-switch converter, with two half-bridges and an intermediate inductor. The relatively low voltage gains of these topologies can be increased with topologies that employ tapped inductors (TIs) [8]. In [9], a three-switch converter with a TI is discussed. By employing a tri-state modulation scheme, the right half-plane (RHP) zero that appears in the control-to-output transfer function of the converters can be eliminated, thus increasing the speed of response of the converter [9,10]. It should be noted that for the three topologies mentioned above, the current in the intermediate inductor must be reversed for power flow reversal, which slows down the operation. In [11], a five-switch bi-directional DC-DC converter that does not present this constraint was presented. Moreover, it can also operate with tri-state modulation for an improved dynamic response [12].
Power converters frequently employ linear PI-type controllers [13,14]. They are designed based on converter models linearized around a specific operating point. The performance of PI controllers tends to degrade if the operating point of the converter changes. This might be a significant issue for ESSs that are prone to wide variations in the output current, as well as for the input voltage, when supercapacitors (SCs) are used as storage units. Recall that SCs typically operate with voltages in the range of rated to half-rated. For cases such as this, state feedback linearization techniques are a good and effective alternative. State feedback linearization has been applied to unidirectional buck, boost and buck-boost converters in [15][16][17], respectively. It was also applied to a bi-directional Class C converter in [18,19], and to a four-switch converter in [20]. One potential issue in these cases is when the inductor current is used as a feedback term in the denominator of the control law. Note that this quantity crosses zero during power flow reversal, leading to a potential singularity. The above converters are all single-input single-output (SISO) systems, but the technique has also been applied to multi-input multi-output (MIMO) systems. In [21], exact feedback linearization was used in a three-port boost converter for interfacing a PV panel to a battery and load. In [22], it was applied to a four-level buck converter with two flying capacitors and an LC output filter. Suitable control laws were developed to generate the duty cycles of the three switches so as to regulate three of the four state variables.
In this paper, state feedback linearization is applied to a new bi-directional DC-DC converter with a TI for an increased voltage gain at moderate duty cycles. A multi-state modulation scheme with multiple modulation signals is used to eliminate the RHP zero typically found in converters with intermediate inductors. Unlike previously reported DC-DC converters, this one allows reversal of the power flow without reversing the intermediate inductor current. This is beneficial since the inductor current, which is often used in the denominator of the control laws, will always be positive, eliminating potential singularities. It is a dual-input dual-output (DIDO) system, which is the simplest form of a MIMO system, where the magnitude of the inductor current presents a certain degree of independence with regard to the output voltage. In principle, it can be adjusted as a trade-off between converter losses and the speed of response of the output voltage. This paper is organized as follows. In Section 2, the five-switch bi-directional DC-DC converter is introduced. Section 3 presents the modeling of the system for both power flow directions, and how they are combined into a single model. Section 4 presents the derivation of the control law of the converter based on state feedback linearization, while Section 5 presents the system parameters, with considerations for controller design. The performance of the five-switch converter operating in the tri-state buck-boost mode with state feedback by means of simulation is verified in Section 6. It also presents a comparison with the conventional dual-state buck-boost with cascaded inner current outer voltage loops with linear PI controllers. Finally, Section 7 provides the final conclusion of this research work.

The Five-Switch Bi-Directional DC-DC Converter
The bi-directional DC-DC converter considered in this paper is shown in Figure 1. It consists of five switches interfacing two DC buses, Bus 1 and Bus 2, through a TI. This is modeled as an ideal transformer with two windings (L T1 and L T2 ) and a magnetizing inductance (L M ) in parallel with the primary winding. The turns ratio of the windings, L T1 /L T2 , is n/1. The converter can present a high voltage gain (V 2 /V 1 ) in the conventional dual-state scheme without an overly high duty cycle, by properly selecting the turns ratio n [23]. Capacitors C 1 and C 2 are low-pass input and output filters. The energy storage unit, in Bus 1, and cabling to the converter, as well as the DC microgrid, are modeled by a voltage source in series with a resistor (V 1 -R 1 and V 2 -R 2 ).

The Five-Switch Bi-Directional DC-DC Converter
The bi-directional DC-DC converter considered in this paper is shown in Figure 1. It consists of five switches interfacing two DC buses, Bus 1 and Bus 2, through a TI. This is modeled as an ideal transformer with two windings (LT1 and LT2) and a magnetizing inductance (LM) in parallel with the primary winding. The turns ratio of the windings, LT1/LT2, is n/1. The converter can present a high voltage gain (V2/V1) in the conventional dual-state scheme without an overly high duty cycle, by properly selecting the turns ratio n [23]. Capacitors C1 and C2 are low-pass input and output filters. The energy storage unit, in Bus 1, and cabling to the converter, as well as the DC microgrid, are modeled by a voltage source in series with a resistor (V1-R1 and V2-R2).
For the proper operation of the power converter, switches S1 to S4 should be unidirectional in terms of current, such as those used in PWM current source inverters (CSIs): IGBTs with reverse blocking capability or IGBTs/MOSFETs in series with a diode. Conversely, ST (the switch that taps the inductor to the common node of the DC buses) is a standard MOSFET with an anti-parallel body diode for bi-directional current flow. The converter allows a number of paths for the inductor current, or states of operation, as shown in Table 1. State SXY concerns a moment when switches SX and SY are on/activated together. They can be used in a switching cycle with two or three states [12,23]. Circuit current and voltage waveforms are also presented in [12,23]. Power flow reversal occurs without changing the direction of the current in the magnetizing inductance (iLM), favoring a fast dynamic response.  For the proper operation of the power converter, switches S 1 to S 4 should be unidirectional in terms of current, such as those used in PWM current source inverters (CSIs): IGBTs with reverse blocking capability or IGBTs/MOSFETs in series with a diode. Conversely, S T (the switch that taps the inductor to the common node of the DC buses) is a standard MOSFET with an anti-parallel body diode for bi-directional current flow. The converter allows a number of paths for the inductor current, or states of operation, as shown in Table 1. State S XY concerns a moment when switches S X and S Y are on/activated together. They can be used in a switching cycle with two or three states [12,23]. Circuit current and voltage waveforms are also presented in [12,23]. Power flow reversal occurs without changing the direction of the current in the magnetizing inductance (i LM ), favoring a fast dynamic response. Based on the operating states and current paths presented in Table 1, Figures 2 and 3 present the current paths, highlighted in red, for all possible operating states for each power flow direction.       The converter can operate in the dual-state modes [10] and in the tri-state modes [11]. The tri-state buck-boost mode is selected for this paper. In the forward mode, with power flowing from Bus 1 to Bus 2, states S 2T , S 3T and S 34 are used. Conversely, in the reverse mode, states S 4T , S 1T and S 12 are used. The PWM modulator for this type of operation is shown in Figure 4. It employs two modulation signals, m 1 and m 2 , where the magnitude of m 2 is larger than of m 1 and an auxiliary signal (q) that determines the direction of the power The converter can operate in the dual-state modes [10] and in the tri-state modes [11]. The tri-state buck-boost mode is selected for this paper. In the forward mode, with power flowing from Bus 1 to Bus 2, states S2T, S3T and S34 are used. Conversely, in the reverse mode, states S4T, S1T and S12 are used. The PWM modulator for this type of operation is shown in Figure 4. It employs two modulation signals, m1 and m2, where the magnitude of m2 is larger than of m1 and an auxiliary signal (q) that determines the direction of the power flow: q = 1 in the forward direction and q = 0 in the reverse direction. This modulator is used for obtaining the gating signals for the switches in both forward and reverse modes, shown in Figures     The tri-state buck-boost mode is selected for this paper. In the forward mode, with pow flowing from Bus 1 to Bus 2, states S2T, S3T and S34 are used. Conversely, in the rever mode, states S4T, S1T and S12 are used. The PWM modulator for this type of operation shown in Figure 4. It employs two modulation signals, m1 and m2, where the magnitu of m2 is larger than of m1 and an auxiliary signal (q) that determines the direction of t power flow: q = 1 in the forward direction and q = 0 in the reverse direction. This modulat is used for obtaining the gating signals for the switches in both forward and rever modes, shown in Figures 5 and 6.   to m2Ts, when only S3 is on, the inductor current flows through S3 and the body diode ST, sending energy from the inductor to Bus 2. For the reverse mode, D4T = m1, D1T = (m m1) and D12 = (1 − m2). According to Table 1, these are equivalent states to those in t forward mode. For instance, in the second segment, m1Ts to m2Ts, when only S1 is on, t inductor current flows through S1 and the body diode of ST, sending energy from the i ductor to Bus 1.

Modeling of the Five-Switch Converter
In this section, the modeling of the converter is performed based on the analysis the operating states that are generated by the PWM modulator for both the forward an reverse modes. The objective is to find a model that describes the system behavior as function of the control variables m1, m2 and q. It is based on the differential equations the three state variables of the bidirectional power converter: current in the magnetizin inductance (iLM) and voltages across the filter capacitors (vC1 and vC2).
By applying KVL and KCL for the three states of operation and averaging them f the forward mode, one obtains The impact of the modulation signals (m 1 and m 2 ) on the gating signals of the switches (v gS1 -v gST ) and the duration of the states for tri-state buck-boost operation is illustrated in Figures 5 and 6, respectively, for the forward and reverse modes. There, one can see that a switching period consists of three states among those shown in Table 1. Assuming that the peak value of the sawtooth carrier (V m ) is 1 V, and that m 1 < m 2 ≤ 1, the duty cycle of state S 2T = D 2T = m 1 . Likewise, D 3T = (m 2 − m 1 ) and D 34 = (1 − m 2 ). In the second segment, m 1 T s to m 2 T s , when only S 3 is on, the inductor current flows through S 3 and the body diode of S T , sending energy from the inductor to Bus 2. For the reverse mode, D 4T = m 1 , D 1T = (m 2 − m 1 ) and D 12 = (1 − m 2 ). According to Table 1, these are equivalent states to those in the forward mode. For instance, in the second segment, m 1 T s to m 2 T s , when only S 1 is on, the inductor current flows through S 1 and the body diode of S T , sending energy from the inductor to Bus 1.

Modeling of the Five-Switch Converter
In this section, the modeling of the converter is performed based on the analysis of the operating states that are generated by the PWM modulator for both the forward and reverse modes. The objective is to find a model that describes the system behavior as a function of the control variables m 1 , m 2 and q. It is based on the differential equations of the three state variables of the bidirectional power converter: current in the magnetizing inductance (i LM ) and voltages across the filter capacitors (v C1 and v C2 ). By applying KVL and KCL for the three states of operation and averaging them for the forward mode, one obtains Repeating the process for the reverse mode, one obtains By multiplying (1)-(3) by q and (4)-(6) by q and adding them, one obtains a final averaged model, valid for both forward and reverse modes: where the new control variables, u 1 and u 2 , are defined as

Exact State Feedback Linearization
The non-linear characteristics of this system can be observed in the model developed in the previous section. It includes cross-products between the state variables and the new control variables u 1 and u 2 . Using the conventional linearization approach based on small signal variations around an operating point to design conventional PI controllers, information would be lost and the system would not be fully described by the resulting model.
The main goal of an ESS is usually to control the output current, i 2 , which can be achieved indirectly through the output voltage, v C2 . Frequently, this is achieved by employing a cascaded inner inductor current and outer output voltage control loop. However, since the developed model presents two control variables, u 1 and u 2 , and in order to give more flexibility to the considered non-linear controller, this paper implements a parallel control structure. In this case, the inductor current reference can be chosen according to the system needs, with high values favoring a faster dynamic response and lower ones for improved efficiency.
The first step of the controller design is to rewrite the DIDO system, presented in Figure 7, in an affine linear form to apply the theory of exact state feedback linearization. This is achieved by means of (12) and (13).
where x ∈ R n is the state vector; u ∈ R m . relates to the control inputs; y ∈ R i y defines the controlled outputs; f, g and h are differentiable vector fields. Considering the model developed in the last section, where ∈ ℝ is the state vector; ∈ ℝ relates to the control inputs; ∈ ℝ y defines the controlled outputs; f, g and h are differentiable vector fields. Considering the model developed in the last section, There are several methods for obtaining the feedback linearization of the DIDO system [24][25][26][27]. First, the model is rewritten in a different set of coordinates, using the output y and its successive derivatives. This procedure is performed based on Equation (13), obtaining There are several methods for obtaining the feedback linearization of the DIDO system [24][25][26][27]. First, the model is rewritten in a different set of coordinates, using the output y and its successive derivatives. This procedure is performed based on Equation (13), obtaining where L f h and L g h are, respectively, Lie derivatives of the smooth scalar vector h(x) as a function of f (x) and g(x). If L gj h i (x) = 0 for all j, then the inputs do not appear, and, as highlighted by [22,24], one needs to differentiate repetitively as The values of r i are the sub-relative degrees of the DIDO system, and L gj L r i −1 f h i is the Lie derivative of the i-th output as a function of f (x) and g(x) [22,24]. In such a case, (20) can be rewritten as where and Matrix E(x) is called the decoupling matrix of the DIDO system. If it is nonsingular, the following input transformation can be defined: where z concerns new input variables.
Substituting (24) into (21) results in a linear and decoupled differential relation between the output y and the new input z [19].
It is important to remark that (21), or its closed loop (25), creates a new model for the converter. If this new state vector, represented by the original outputs and their derivatives, does not match the same number of states (n s ) of the original system, it means that this new mathematical model is not describing the dynamics of all states in the converter. As a consequence, any analysis based on this new model would disregard the remaining states. These are called the zero dynamics of this new representation. For a complete analysis of the converter, one must consider these new variables as well as these zero-dynamics.
Taking into account the 5-switch converter operating with the tri-state buck-boost mode with two control variables (u 1 and u 2 ) and two state variables to be controlled (i Lm and v C2 ), one can find the sub-relative degrees by considering m = 2 (two inputs) and i = 1 and 2 (two outputs).
By solving the Lie derivatives, one can find the sub-relative degrees of the system as follows. For For Thus, the sub-relative degrees of the system are r 1 = 1 and r 2 = 1. Knowing these two values, it is possible now to fully define matrix E(x) as Therefore, by replacing (26) and (27) with (28), matrix E(x) is finally given by Next, one computes vector A(x) as Thus, With matrices E(x) and A(x) defined, one obtains the control law of the converter from (24) as It should be noted that, since, for this particular converter, i LM = x 1 does not need to be reversed for power flow reversal and v C1 = x 2 ≈ V 1 > 0 and v C2 = x 3 ≈ V 2 > 0, there are no singularities in the linearized system. Particularizing (25) for this converter, one observes that the equivalent system is linear and decoupled, as shown in (34). It can be represented by a block diagram, as shown in Figure 8.
Energies 2022, 15, 7923 11 of 26 the proportional controllers of the inductor current and output voltage loops, shown in Figure 8 and (35).
Integrators of Figure 8 x u Figure 9. Model of the DIDO system with the state feedback linearization network and simple Ptype controllers.

Remark: Tuning Guidelines
One interesting feature for the proposed control scheme is the fact that it relies on only two parameters, and . These are indeed the desired closed-loop poles imposed by the control algorithm. They impose new dynamics to the closed-loop states represented by and , respectively. Their choice is completely straightforward; they directly For tracking reference values for i LM and v C2 , given by i LM_ref and v C2_ref , respectively, one can use simple proportional controllers to obtain inputs z 1 and z 2 required in (34). This implies taking The overall system, with the original system, state feedback linearization network and simple proportional controllers, is shown in Figure 9. In general, the objective of the "control system" is to provide the modulation signals that will result in the tracking of some reference quantities. In this case, the modulation signals are m 1 and m 2 and the quantities to be tracked are i LM = x 1 and v C2 = x 3 . The modulation signals can be obtained from (10)  (11), provided that u 1 and u 2 , signals in the input of block "system" in Figure 9, are known. According to (33) and as depicted in Figure 9, u 1 and u 2 are functions of the state variables i LM = x 1 , v C1 = x 2 and v C2 = x 3 , as well as z 1 and z 2 . The latter are the outputs of the proportional controllers of the inductor current and output voltage loops, shown in Figure 8 and (35).
Integrators of Figure 8 x u Figure 9. Model of the DIDO system with the state feedback linearization network and simple type controllers.

Remark: Tuning Guidelines
One interesting feature for the proposed control scheme is the fact that it relies only two parameters, and . These are indeed the desired closed-loop poles impos by the control algorithm. They impose new dynamics to the closed-loop states represent by and , respectively. Their choice is completely straightforward; they direct impose the new time response of these variables. One can either choose them followi practical considerations (desired time constant for these variables) or by a standard po placement procedure [28].

Zero Dynamics Analysis
Now, it is necessary to study the remaining dynamics of the system, the so-call zero dynamics. In the present case, they are trivial and are represented by the remaini state vC1. For this analysis, one considers the dynamics when the controlled ones rea their equilibrium point. Then, the control amounts to (remark that z = 0 for this analysi This system has two equilibrium points given by Only the larger solution is feasible. This one has as a Jacobian

Remark: Tuning Guidelines
One interesting feature for the proposed control scheme is the fact that it relies on only two parameters, λ 1 and λ 2 . These are indeed the desired closed-loop poles imposed by the control algorithm. They impose new dynamics to the closed-loop states represented by i LM and v C2 , respectively. Their choice is completely straightforward; they directly impose the new time response of these variables. One can either choose them following practical considerations (desired time constant for these variables) or by a standard pole-placement procedure [28].

Zero Dynamics Analysis
Now, it is necessary to study the remaining dynamics of the system, the so-called zero dynamics. In the present case, they are trivial and are represented by the remaining state v C1 . For this analysis, one considers the dynamics when the controlled ones reach their equilibrium point. Then, the control amounts to (remark that z = 0 for this analysis) and the zero-dynamics become This system has two equilibrium points given by Only the larger solution is feasible. This one has as a Jacobian This is negative inside a large operation region. Hence, the zero dynamics are asymptotically stable in this region, and, consequently, the full system is asymptotically stable.

System Parameters
The application scenario for the performance verification of the five-switch converter with the proposed control scheme is as an interface between two DC buses/elements, as depicted in Figure 1. It is assumed that the values of V 2 and R 2 are known. The rated voltages were taken as V 1 = 96 V and V 2 = 380 V and the rated power 1.9 kW. Other converter parameters are as follows: turns ratio n = 2, L M = 38.8 µH, C 1 = 76.8 µF, C 2 = 76.8 µF, and f sw = 250 kHz. The feeder resistances are R 1 = 0.0625 Ω and R 2 = 0.0625 Ω. These parameters are similar to those used in [12,23], which discuss the power electronic aspects of the five-switch DC-DC converter. The gains (λ 1 and λ 2 ) of the non-linear controller with state feedback linearization for the converter operating in tri-state buck-boost mode were computed, based on pole placement from linear control theory, as 250 k and 350 k, respectively. These gains are computed taking into account the behavior of a first-order system, where they relate to the time constant (T s ) of such systems. In this case, T s_λ1 = 16 µs and T s_λ2 = 11.4 µs.
In order to demonstrate the feasibility and benefits of the proposed mode of operation, tri-state buck-boost, and state feedback linearization, its performance is compared in the next section with a conventional technique. Usually, a converter such as this operates in dual-state buck-boost mode with a cascaded inner current (i LM ) and outer voltage (v C2 ) control loop, as presented in Figure 10.
This is negative inside a large operation region. Hence, the zero dynamics are asymptotically stable in this region, and, consequently, the full system is asymptotically stable.

System Parameters
The application scenario for the performance verification of the five-switch converter with the proposed control scheme is as an interface between two DC buses/elements, as depicted in Figure 1. It is assumed that the values of V2 and R2 are known. The rated voltages were taken as V1 = 96 V and V2 = 380 V and the rated power 1.9 kW. Other converter parameters are as follows: turns ratio n = 2, LM = 38.8 μH, C1 = 76.8 μF, C2 = 76.8 μF, and fsw = 250 kHz. The feeder resistances are R1 = 0.0625 Ω and R2 = 0.0625 Ω. These parameters are similar to those used in [12,23], which discuss the power electronic aspects of the fiveswitch DC-DC converter. The gains (λ1 and λ2) of the non-linear controller with state feedback linearization for the converter operating in tri-state buck-boost mode were computed, based on pole placement from linear control theory, as 250 k and 350 k, respectively. These gains are computed taking into account the behavior of a first-order system, where they relate to the time constant (Ts) of such systems. In this case, Ts_λ1 = 16 μs and Ts_λ2 = 11.4 μs.
In order to demonstrate the feasibility and benefits of the proposed mode of operation, tri-state buck-boost, and state feedback linearization, its performance is compared in the next section with a conventional technique. Usually, a converter such as this operates in dual-state buck-boost mode with a cascaded inner current (iLM) and outer voltage (vC2) control loop, as presented in Figure 10. The small-signal model is obtained by means of the standard linearization of (7)- (9). For operation in dual-state buck-boost mode, considering the modulation schemes discussed in Section 2, one has to set m2 to 1 V, to eliminate the free-wheeling states (S34 for the forward mode and S12 for the reverse mode), and then control the converter with a single input, m1. The value of q is set at 1, since the forward power flow, boost mode, is the worst case concerning the design of the PI controller. With m1 as the control variable, m2 = 1 and q = 1, one substitutes (10)-(11) into (7)-(9) to obtain new state equations as a function of a single control variable: m1. Then, one employs the conventional linearization technique, based on small-signal variations around a base operating point, to obtain transfer functions (iLM(s)/m1(s) and vC2(s)/iLM(s)). The first can be found to be It is used for designing the PI-type controller of the inner current loop for zero error in steady state to step changes. For the design of the outer voltage control loop, considering that its bandwidth is 10-20% of the one for the inner current loop, the latter can be assumed to be a unity gain. Next, one can derive an expression for vC2(s)/iLM(s)), applying the current division principle that relates the current in the output capacitor (iC2(s)) to iLM(s). This results in The small-signal model is obtained by means of the standard linearization of (7)- (9). For operation in dual-state buck-boost mode, considering the modulation schemes discussed in Section 2, one has to set m 2 to 1 V, to eliminate the free-wheeling states (S 34 for the forward mode and S 12 for the reverse mode), and then control the converter with a single input, m 1 . The value of q is set at 1, since the forward power flow, boost mode, is the worst case concerning the design of the PI controller. With m 1 as the control variable, m 2 = 1 and q = 1, one substitutes (10)-(11) into (7)-(9) to obtain new state equations as a function of a single control variable: m 1 . Then, one employs the conventional linearization technique, based on small-signal variations around a base operating point, to obtain transfer functions (i LM (s)/m 1 (s) and v C2 (s)/i LM (s)). The first can be found to be It is used for designing the PI-type controller of the inner current loop for zero error in steady state to step changes. For the design of the outer voltage control loop, considering that its bandwidth is 10-20% of the one for the inner current loop, the latter can be assumed to be a unity gain. Next, one can derive an expression for v C2 (s)/i LM (s)), applying the current division principle that relates the current in the output capacitor (i C2 (s)) to i LM (s). This results in Finally, by assuming that V 2 remains constant, one can compute the transfer function of the output capacitor voltage over the inductor current as In this particular case, standard type-2 PI controllers can be designed to provide the chosen bandwidths and phase margins for the inner and outer control loops. The parameters of the linear PI controllers were computed as follows. For the inner current loop, the bandwidth is selected as 50 kHz with a phase margin of 60 • , resulting in K pi = 0.0427, τ i = 11.88 µs and f pi = 186.7 kHz. For the outer voltage loop, the bandwidth is chosen as 10 kHz with a phase margin of 60 • , leading to K pv = 75.43, τ v = 12.62 µs and fp v = 7.93 kHz.
In Figure 11, the Bode diagrams of the linear cascaded control presented in Figure 10 are shown. From this figure, one can see that the compensated systems (orange plots) present the desired bandwidths and phase margin characteristics, validating the design of the type-2 PI controllers employed in the control law.
Finally, by assuming that V2 remains constant, one can compute the transfer function of the output capacitor voltage over the inductor current as In this particular case, standard type-2 PI controllers can be designed to provide the chosen bandwidths and phase margins for the inner and outer control loops. The parameters of the linear PI controllers were computed as follows. For the inner current loop, the bandwidth is selected as 50 kHz with a phase margin of 60°, resulting in Kpi = 0.0427, τi = 11.88 μs and fpi = 186.7 kHz. For the outer voltage loop, the bandwidth is chosen as 10 kHz with a phase margin of 60°, leading to Kpv = 75.43, τv = 12.62 μs and fpv = 7.93 kHz.
In Figure 11, the Bode diagrams of the linear cascaded control presented in Figure 10 are shown. From this figure, one can see that the compensated systems (orange plots) present the desired bandwidths and phase margin characteristics, validating the design of the type-2 PI controllers employed in the control law.

Performance Verification
Two types of tests were conducted, by means of simulations with PSIM, to demonstrate the feasibility and the advantages of the proposed five-switch converter operating

Performance Verification
Two types of tests were conducted, by means of simulations with PSIM, to demonstrate the feasibility and the advantages of the proposed five-switch converter operating in tristate buck-boost, with a non-linear control scheme based on state feedback linearization. First, it is assumed that the input (V 1 ) and output (V 2 ) voltages are kept constant at 96 V and 380 V, respectively. The output current reference signal (i 2_ref ) is a square waveform of ±5 A and 5 Hz. This can be seen as the case where the five-switch converter (and control law) acts as an interlink converter between two strongly regulated DC buses, meaning that their voltages remain constant regardless of the power injected into, or withdrawn from, the DC buses. This can be considered as the base case. Here, the main goal is to verify whether one can control the output current (i 2 ) that is injected from one bus to another.
Next, an SC is used in Bus 1 (V 1 ) to work as a storage unit for a controlled DC microgrid, which is defined in Bus 2 (V 2 ) for this case study. SCs are devices with high power density and high charge/discharge rates that can be used to provide sudden bursts of power by managing currents with high gradients. Typically, the voltage on an SC is allowed to vary between half-rated and rated values. For the DC microgrid side, to emulate the power variations inherent to a DC microgrid, a sinusoidal ripple of 20 V (peak-topeak) with a frequency of 120 Hz is added to the voltage source V 2 , meaning that instead of staying constant at 380V, this voltage source will vary from 370 V to 390 V. This is a typical condition and concerns the connection of a DC bus to an AC bus (grid or load) through a single-phase DC-AC interface, where such an interface creates DC-side current and voltage harmonics at two times (120 Hz) the grid frequency (60Hz). This case might present a challenge for the performance of the conventional PI controllers, designed for a fixed operating point. Conversely, the non-linear control scheme with state feedback linearization should be able to compensate for these conditions, presenting similar behavior in a wide range of operating points. For this test, the same output current profile from the previous case is used.
Finally, the efficiency of the five-switch DC-DC converter operating in the tri-state buck-boost mode at rated conditions, V 1 = 96 V and V 2 = 380 V, with the output current varying from −5 A (reverse mode) to 5 A (forward mode), is investigated. Figure 12 shows some key waveforms concerning the operation of the proposed non-linear controller with a fixed voltage at Bus 1 ( Figure 12a) and Bus 2 (Figure 12b). In Figure 12c, one sees that the output current (i 2 ) follows the reference signal (i 2_ref ). This is achieved indirectly by controlling the output voltage of the converter (v C2 ), as shown in Figure 12d. The reference (i LM_ref ) and inductor current (i LM ) are shown in Figure 12e. There, one sees that i LM tracks i LM_ref very well and that power flow reversal, with i 2 changing from −5 A to 5 A, can be obtained without reversing i LM . Moreover, the control of the two state variables, v C2 and i LM , is achieved in a decoupled way, as discussed in Section 4. It is worth pointing out that the i LM_ref is kept at 30 A until t = 0.25 s, when it is changed to 40 A, and then changed back to 30 A at t = 0.35 s. This action has two goals. The first is to show the good tracking capability of the inductor current control loop to step changes. A change in i 2_ref has a minor effect on i LM . The second is to show the impact of the magnitude of i LM on the values of the modulation signals, as discussed below. The waveforms of control variables (u 1 and u 2 ), which include the flag "q" with the direction of the power flow, are shown in Figure 12f. Those concerning the modulation signals (m 1 and m 2 ) used in the PWM modulator can be seen in Figure 12g. They remain within the range of the sawtooth carrier, 0 to 1 V, as expected. There, one can see that as i LM_ref increases, the magnitude of the modulation signals (m 1 and m 2 ) decreases.

Tests with Fixed Values of V 1 and V 2
In general, no major difference can be seen between the two control schemes regarding the control of the output current (i 2 ) in Figures 12c and 13c. Both control schemes present fast and accurate tracking of the output current reference (i 2_ref ). However, this is achieved with different values for the i LM ; see Figures 12e and 13e. For the conventional cascaded control scheme, the inductor current reference i LM_ref varies with the output voltage reference (v C2_ref ). When the power flow is reversed, at t = 0.3 s and t = 0.4 s, i LM also changes, but it remains always positive. This is a feature of the five-switch bi-directional DC-DC converter. Thus, i LM and v C2 are coupled variables for the cascaded linear controller. Finally, Figure 13f shows that only one modulation signal, m 1 , is used for both power flow directions for the converter operating in dual state with the conventional cascaded controller, while the other one, m 2 , is kept at 1 V. Next, Figure 13 presents the results for essentially the same test, but for the converter operating in dual-state mode with the cascaded linear controller. In this case, the output voltage (v C2 ) is adjusted by varying the inductor current (i LM ). Next, Figure 13 presents the results for essentially the same test, but for the converter operating in dual-state mode with the cascaded linear controller. In this case, the output voltage (vC2) is adjusted by varying the inductor current (iLM).

Tests with an SC at Bus 1 and Bus 2 with a Sinusoidal Ripple
In this test, the fixed voltages, or "strong buses", previously used in Bus 1 and Bus 2, are replaced, respectively, by an SC (a storage element) and a controlled DC microgrid, which corresponds to another common application for bi-directional DC-DC converters. This concerns a more demanding operating condition where the input (V 1 ) and output (V 2 ) voltages of the converter can vary considerably, driving the operating point of the converter further away from the base operating point. There are several papers focused on the sizing of SCs for given applications [29][30][31], which are typically in the order of 100 s of F. In this particular test, a small supercapacitor (95 mF) was considered for the test so that one can observe the impact of its voltage variation on the response of the inductor current (i LM ) and output voltage (v C2 ) control loops, in a single time frame. Figure 14 shows some relevant waveforms for this test. In Figure 14a, one sees the DC microgrid voltage at Bus 2 with the 20 V/120 Hz sinusoidal ripple. In Figure 14b, one sees that the output current (i 2 ) tracks very well the reference signal (i 2_ref ), a square wave of ±5 A and 5 Hz. The waveform of V 1 , the SC voltage at Bus 1, is shown in Figure 14c. It starts at 96 V and decreases due to a positive value for i 2 . At t = 0.3 s, it reaches approximately 72 V and starts to increase as the value of i 2 changes to −5 A. Thus, the variation in V 1 and V 2 has no negative impact on the performance of the proposed control scheme. Moreover, v C2 in Figure 14d and i LM in Figure 14e track their reference signals accurately. Note that, in this case, the inductor current reference (i LM_ref ) was kept constant at 35 A. Good tracking performance was achieved with the waveforms of control variables (u 1 and u 2 ) shown in Figure 14f and modulation signals (m 1 and m 2 ) shown in Figure 14g.
The five-switch converter operating with dual-state buck-boost and conventional linear cascaded control loops is subjected to the same test. The results are shown in Figure 15. In Figure 15a, one sees that the DC microgrid voltage waveform at Bus 2 (V 2 ) is the same as in the test for the non-linear controller. In Figure 15b, one sees that this conventional modulation and control scheme tracks the positive output current reference (i 2_ref ) well until the moment that the decreasing SC voltage, (V 1 in Figure 15c), reaches a value of approximately 80 V. This is when the modulation signal (m 1 ) and several waveforms start to oscillate. The control scheme starts to malfunction. At t = 0.3 s, when the power flow reverses and i 2_ref = −5 A, the output current (i 2 ) fails to track it, becoming more negative (lower) than i 2_ref . The inductor current (i LM ) and inductor current reference (i LM_ref ) waveforms, shown in Figure 15e, are limited at the maximum value, 50 A. One sees in Figure 15f that the modulation signal (m 1 ) decreases following the change of i 2_ref to −5 A, but starts to increase, unlike in the previous test for fixed values of V 1 and V 2 (Figure 13f), when its average value remained relatively constant. Overall, as a result of i 2 becoming more negative than i 2_ref at t = 0.3 s, V 1 increases more than expected, reaching 140 V at t = 0.4 s. From this point on, the linear controller is able to control the output current, but keeping the input voltage in the range of 120-140 V. In summary, due to the issues in tracking the reference output current/voltage in operating conditions different from the designed ones, the conventional control scheme fails to track the reference output current, which can even lead to damage to the SC and switches, due to overvoltage conditions.

Results for SC Voltage Falling to Half-Rated Value
For this test, to have the SC voltage decreasing from rated (96 V) to half-rated (48 V) using the same square output current reference (i 2_ref ) of ±5 A and 5 Hz, the SC used in the previous test is replaced by a smaller one of 55 mF. Figure 16 shows some relevant waveforms for this test. Moreover, since the DC microgrid voltage waveform at Bus 2 (V 2 ) is the same as in the previous tests, it is omitted in the next figure. starts at 96 V and decreases due to a positive value for i2. At t = 0.3 s, it reaches approximately 72 V and starts to increase as the value of i2 changes to −5 A. Thus, the variation in V1 and V2 has no negative impact on the performance of the proposed control scheme. Moreover, vC2 in Figure 14d and iLM in Figure 14e track their reference signals accurately. Note that, in this case, the inductor current reference (iLM_ref) was kept constant at 35 A. Good tracking performance was achieved with the waveforms of control variables (u1 and u2) shown in Figure 14f and modulation signals (m1 and m2) shown in Figure 14g. The five-switch converter operating with dual-state buck-boost and conventional linear cascaded control loops is subjected to the same test. The results are shown in Figure  15. In Figure 15a, one sees that the DC microgrid voltage waveform at Bus 2 (V2) is the same as in the test for the non-linear controller. In Figure 15b, one sees that this conventional modulation and control scheme tracks the positive output current reference (i2_ref) when its average value remained relatively constant. Overall, as a result of i2 becoming more negative than i2_ref at t = 0.3 s, V1 increases more than expected, reaching 140 V at t = 0.4 s. From this point on, the linear controller is able to control the output current, but keeping the input voltage in the range of 120-140 V. In summary, due to the issues in tracking the reference output current/voltage in operating conditions different from the designed ones, the conventional control scheme fails to track the reference output current, which can even lead to damage to the SC and switches, due to overvoltage conditions.

Results for SC Voltage Falling to Half-Rated Value
For this test, to have the SC voltage decreasing from rated (96 V) to half-rated (48 V) using the same square output current reference (i2_ref) of ±5 A and 5 Hz, the SC used in the previous test is replaced by a smaller one of 55 mF. Figure 16 shows some relevant waveforms for this test. Moreover, since the DC microgrid voltage waveform at Bus 2 (V2) is the same as in the previous tests, it is omitted in the next figure. In Figure 16a, one sees that the output current waveform (i 2 ) tracks very well i 2_ref . The voltage at the SC (V 1 ) is shown in Figure 16b. It starts at 96 V and decreases due to the positive value for i 2 . At t = 0.3 s, it reaches 48 V and starts to increase as the value of i 2 changes to −5 A. Thus, the larger variation in V 1 has no negative impact on the performance of the proposed control scheme. The output capacitor voltage (v C2 ) in Figure 16c and the inductor current (i LM ) in Figure 16d track their reference signals accurately. Note that in this case, the inductor current reference (i LM_ref ) was increased to 45 A in order to avoid the saturation of the control variables, which tend to increase as V 1 decreases. Good tracking performance was achieved with the waveforms of control variables (u 1 and u 2 ) shown in Figure 16e and modulation signals (m 1 and m 2 ) shown in Figure 16f.
The results for the conventional dual-state modulation and linear cascaded control loops under the same conditions are shown in Figure 17. In Figure 16a, one sees that the output current waveform (i2) tracks very well i2_ref. The voltage at the SC (V1) is shown in Figure 16b. It starts at 96 V and decreases due to the positive value for i2. At t = 0.3 s, it reaches 48 V and starts to increase as the value of i2 changes to −5 A. Thus, the larger variation in V1 has no negative impact on the performance of the proposed control scheme. The output capacitor voltage (vC2) in Figure 16c and the inductor current (iLM) in Figure 16d track their reference signals accurately. Note that in this case, the inductor current reference (iLM_ref) was increased to 45 A in order to avoid the saturation of the control variables, which tend to increase as V1 decreases. Good tracking performance was achieved with the waveforms of control variables (u1 and u2) shown in Figure 16e and modulation signals (m1 and m2) shown in Figure 16f.
The results for the conventional dual-state modulation and linear cascaded control loops under the same conditions are shown in Figure 17. In Figure 17a, one sees that this conventional modulation and control scheme tracks the positive output current reference (i2_ref) well until the moment that the decreasing SC voltage, (V1 in Figure 17b), reaches a value of approximately 80 V. At this point, similar to the previous test with the slightly larger SC, the modulation signal (m1) and several waveforms start to oscillate and the control scheme starts to malfunction. At t = 0.3 s, when the In Figure 17a, one sees that this conventional modulation and control scheme tracks the positive output current reference (i 2_ref ) well until the moment that the decreasing SC voltage, (V 1 in Figure 17b), reaches a value of approximately 80 V. At this point, similar to the previous test with the slightly larger SC, the modulation signal (m 1 ) and several waveforms start to oscillate and the control scheme starts to malfunction. At t = 0.3 s, when the power flow reverses and i 2_ref = −5 A, the output current (i 2 ) fails to track it, becoming more negative (lower) than i 2_ref . The inductor current (i LM ) and inductor current reference (i LM_ref ) waveforms, shown in Figure 17d, are limited at the maximum value, 50 A. Overall, as a result of i 2 becoming more negative than i 2_ref at t = 0.3 s, V 1 increases more than expected, reaching 160 V at t = 0.4 s. This is when i 2_ref becomes positive again but, still, i 2 fails to track it. Nonetheless, V 1 decreases. At t = 0.5 s, when i 2_ref becomes −5 A and with V 1 with a value of approximately 85 V, which is close to its rated value (96 V), the conventional control scheme starts to work again, with i 2 tracking i 2_ref well, until the end of the test. Again, note that the linear controller is not able to keep the SC voltage within the desired range of 96-48 V.

Efficiency Estimation
Having shown that the five-switch DC-DC converter operating with tri-state modulation and the proposed non-linear controller behave equally well regardless of the operating point, it is important to assess the impact of such a modulation and control scheme on the power losses. For this, two main sources of losses are considered in this analysis: conduction and switching losses on the semiconductors.
For the conduction losses, recall that switches S 1 to S 4 consist of MOSFETS in series with diodes to realize semiconductor switches that are unidirectional in current, while S T concerns a MOSFET only. In terms of losses, this means that the conduction losses in such devices (S 1 to S 4 ) will be defined as the sum of the conduction losses in each semiconductor, while S T follows the conventional losses calculation for a standard MOSFET. From the power semiconductor theory, one knows that where R DS and R T are, respectively, the conduction resistance of the MOSFET and diode, and V TO is the forward voltage of the diode. Subscripts S and D correspond to MOSFET and diode quantities, and RMS and AVG to root-mean-square and average values.
Since the MOSFET and diode are in series, for S 1 to S 4 , they have the same values of average and RMS current. Thus, the total conduction losses for S 1 to S 4 can be defined as For the switching losses, the following equations, (46) and (47), are used for the calculations. One important detail for the switching loss estimation is that, if the voltage across the series connection of the MOSFET and the diode is positive, the losses will be all concentrated in the MOSFET; thus, for this case, Psw Diode = 0. Likewise, if the voltage across the series connection of the MOFEST and the diode is negative, the losses will be all concentrated in the diode; thus, for this case, Psw MOSFET = 0.
where f s is the switching frequency; t f and t r are, respectively, the rise and fall times of the MOSFET; k oss is the coefficient related to the losses due to the output capacitance C oss of the MOSFET; Q RR is the coefficient related to the losses due to the reverse recovery time of the diode. From the above equations, one sees that it is necessary to obtain the RMS and average currents of the switches/diodes and maximum voltage of the switches (V DS ) and the diodes (V D ). This can be derived from the information presented in Table 1 and the analysis of the operating states presented in Figures 2 and 3. Moreover, it is important to select suitable power devices that match the power ratings of the desired application. Considering the voltage and current levels of the case studies discussed previously, Table 2 presents the devices chosen for this loss estimation analysis. The final plots considering the estimated efficiency of each mode/power flow direction, as a function of the output current, are presented next. This can be seen in Figures 18 and 19.
all concentrated in the diode; thus, for this case, = 0.
where fs is the switching frequency; tf and tr are, respectively, the rise and fall times of the MOSFET; koss is the coefficient related to the losses due to the output capacitance Coss of the MOSFET; QRR is the coefficient related to the losses due to the reverse recovery time of the diode. From the above equations, one sees that it is necessary to obtain the RMS and average currents of the switches/diodes and maximum voltage of the switches (VDS) and the diodes (VD). This can be derived from the information presented in Table 1 and the analysis of the operating states presented in Figures 2 and 3. Moreover, it is important to select suitable power devices that match the power ratings of the desired application. Considering the voltage and current levels of the case studies discussed previously, Table 2 presents the devices chosen for this loss estimation analysis.

Components
Devices Parameters   As can be seen from Figures 18 and 19, as the output current increases its absolute value, the efficiency of the system tends to drop, which is to be expected, since larger values of output current should increase the RMS and average values of the currents flowing through the semiconductors. Although the efficiency for low output currents is virtually the same for both modes, another aspect to be highlighted is the fact that, as the output current increases its absolute value, the reverse mode presents lower power losses, thus  As can be seen from Figures 18 and 19, as the output current increases its absolute value, the efficiency of the system tends to drop, which is to be expected, since larger values of output current should increase the RMS and average values of the currents flowing through the semiconductors. Although the efficiency for low output currents is virtually the same for both modes, another aspect to be highlighted is the fact that, as the output current increases its absolute value, the reverse mode presents lower power losses, thus presenting higher efficiency than the forward mode. This can be explained by the fact that, for the reverse mode, the high-voltage side is the one directly connected to the primary winding of the tapped inductor, which means that the lower average current of this DC bus results in a smaller current ripple for the magnetizing current, thus lowering the losses of the overall system.
It should be noted that the power loss/efficiency estimation is performed taking into consideration the power devices presented in Table 2, where one possible option would be to select, depending on the availability, power devices with better characteristics for increased efficiency of operation.

Conclusions
The performance of energy storage systems (ESSs), in terms of the dynamic response and tracking of the reference output current, depends on the features of the power converter and control scheme. This paper presented the modeling of a novel five-switch DC-DC power converter, which presents a high voltage gain (V 2 /V 1 ) and does not require the reversal of the intermediate inductor current to achieve power flow reversal. In terms of the control scheme, by operating this converter in a tri-state buck-boost mode, one eliminates the right half-plane (RHP) zero from the output-to-control transfer function, which facilitates the design of the control loop. Moreover, by employing the exact state feedback linearization technique, the converter should be able to operate in a wider range than that with a PI controller designed considering the conventional small-signal model of the converter. A systematic approach for modeling the converter and obtaining a control law with exact feedback linearization was presented. Note that since the inductor current, a state variable, does not need to reverse during power flow reversal in this particular converter, there will be not potential issues of "divide by zero" in the control law.
The performance of the five-switch DC-DC power converter with the proposed modulation (tri-state buck-boost) and control scheme (exact state feedback linearization) was verified by means of simulations. The selected application was as the interface of a supercapacitor (SC)-based ESS to an output DC bus, such as a DC microgrid. It was compared to the converter operating in the conventional dual-state buck-buck mode with linear cascaded current control loops. As expected, both control schemes present similar good behavior at the operating point that the conventional scheme was designed for. When the input voltage (V 1 ) varies even moderately, which is common in SC-based ESSs, the conventional scheme fails to track the output current reference. Conversely, the proposed modulation and control scheme tracks accurately, with a good dynamic response and zero steady-state error, the output current reference even with the SC voltage varying in a wide range, from rated to half-rated. This is an important feature of the interfaces of SC-based ESSs that is difficult to obtain with conventional power converters and control schemes.

Directions for Further Development
Having validated the mathematical model and proposed a control scheme for the fiveswitch bi-directional DC-DC converter, the next step is experimental verification. In this way, other aspects, such as the efficiency, power density and electromagnetic compatibility (EMC), of the converter can be assessed. As power semiconductor switches, MOSFETs, with their fast switching speeds and low R DS (ON), are the natural choice. For switches S 1 to S 4 series diodes, to match the switching speeds of MOSFETs, devices with fast switching characteristics and low reverse recovery times, such as Schottky diodes, should be added to the MOSFETs to provide the unidirectional current, or reverse blocking, feature. Regarding the proposed control scheme and PWM modulator, the TMS320F28035 microcontroller from Texas Instruments provides the means for its realization. Note that these are common choices for DC-DC converters used as interfaces of distributed energy resources.