The integration of hydrokinetic turbine (HKT) systems relies heavily on power converters, which enable precise control of turbine rotational speed to regulate active power delivered to the grid while providing reactive power compensation. This paper introduces an advanced model predictive control (MPC) strategy designed for maximum power point tracking and output frequency regulation in an HKT system interfaced through a back-to-back converter. The setup comprises a horizontal propeller turbine, a permanent magnet synchronous generator, a rectifier, and an inverter. The proposed control scheme was implemented in MATLAB and validated via simulations, with performance assessed through the system’s state variables. A comparison with a conventional proportional-integral (PI) control method demonstrates that MPC delivers superior transient performance and shorter settling times for high-efficiency operation, while remaining straightforward to implement. Specifically, the MPC controller exhibited a settling time that was 4 times faster than that of the PI controller.
Global warming has caused considerable environmental damage, largely driven by human activities. Consequently, all nations now share the responsibility to curb their carbon footprints and greenhouse gas emissions [1] while advancing the global energy transition. Over recent decades, renewable energy sources have attracted increasing attention due to their clean, sustainable, and environmentally benign characteristics [2]. Technologies such as photovoltaic, wind, and hydroelectric power are widely viewed as essential solutions. Nevertheless, solar and wind power face a key limitation stemming from the intermittent availability of their primary resources [3].
Hydroelectric power occupies a leading role in worldwide electricity production [4]. This generation method benefits from the consistent availability of water, offering excellent energy storage potential and flexible dispatch capabilities [5]. Large-scale hydroelectric facilities are typically employed for high-capacity output (exceeding 10 MW), whereas small hydropower plants (SHPs) better serve smaller communities. With ratings below 10 MW and no dam requirements, they are well-suited to regions with limited energy needs [6]. However, this approach depends on the presence of waterfalls. It entails substantial installation costs, making it less feasible in low-relief areas, sparsely populated zones, and regions facing socioeconomic challenges—locations where rural households frequently lack adequate access to education, infrastructure, and information [4]. Notably, although one-third of the world’s population remains without electricity, many such communities have access to flowing rivers. Small, isolated settlements generally need power only for basic purposes such as lighting, cooling, and communication [7]. In areas with little elevation change, however, traditional SHPs become impractical.
A highly promising option for electricity generation in low- or zero-head locations is hydrokinetic power. This technology is known under several terms, including Marine Current Turbine [8], ultra-low head hydraulic turbine [9], free-flow/stream turbine [10], or hydraulic turbine in current [11]. Hydrokinetic turbines produce electricity without requiring dams, water diversions, or large-scale civil works typical of conventional hydropower installations [12]. Moreover, they exert only minimal effects on the surrounding ecosystem’s flora and fauna. These systems are generally small-scale, with capacities in the range of a few hundred kVA [13]. Compared to wind or solar generation, hydrokinetic energy offers greater long-term predictability—particularly under tidal regimes—and more consistent availability in river environments [14].
Since 2017, hydrokinetic turbine (HKT) technology has experienced considerable progress and is currently advancing through phases of innovation, research, development, and supportive public policies, especially in rural electrification initiatives [15]. Nevertheless, as highlighted in [14], widespread adoption faces obstacles, including limited public awareness of its benefits, insufficient real-world performance data, and the technology’s relative immaturity, particularly in river and estuarine settings. In Colombia, hydrokinetic turbine applications remain at an early stage, with limited research and deployments. Notable initiatives have occurred in Neiva [16] and Medellín [17], while the Chocó department has seen no comparable projects to date.
The main objective in controlling a hydrokinetic turbine is to maximize energy capture while reducing mechanical wear and optimizing overall system behavior. This encompasses system stabilization, enhanced transient dynamics, improved steady-state performance, and reliable operation within acceptable bounds for maintenance, safety, and functionality [18].
When considering control strategies for hydrokinetic turbines (HKT), the fundamental aims are system stabilization, superior dynamic performance, enhanced steady-state behavior, and effective implementation of maximum power tracking control (MPTC) [19]. In particular, maximum power point tracking (MPPT) represents a well-established and thoroughly investigated topic in the wind energy field, as documented in [20-23]. In contrast, equivalent studies applied to hydrokinetic energy conversion remain comparatively sparse.
Within the relatively small body of literature on this subject, several comprehensive review papers provide important background [4, 14], while other publications analyze the technical difficulties inherent to HKT installations [19]. A limited number of works also evaluate practical implementation aspects, such as technology benchmarking and alternative power regulation methods. One particularly relevant contribution appears in [24], where the authors constructed models to directly compare hydrokinetic and wind-based generation. Their findings indicated that hydrokinetic systems offer markedly lower costs than small wind installations and focused on developing appropriate control frameworks to secure acceptable dynamic response and steady-state accuracy via maximum power tracking techniques.
A variety of power regulation schemes have been reported in the literature. Examples include the combination of Disturb & Observe MPPT with PI-based voltage control for stand-alone operation [25], Power Signal Feedback MPPT using look-up tables paired with linearized PI regulation [26], and Field-Oriented Control incorporating PI controllers whose gains are optimized via a biogeography-based algorithm tailored for grid-connected operation [18]. It should be noted, however, that most of these techniques were originally designed for DC architectures.
For grid-interfaced AC configurations, one approach described in [3] combines MPPT with impedance-based control to regulate the HKT system’s output voltage. Although the publication briefly surveys hydrokinetic turbine classifications, the turbine itself is represented solely by a Cp curve extracted from a simple one-dimensional look-up table, without any in-depth hydrodynamic modeling. On the inverter side, the strategy employs conventional PWM with phase-locked loop synchronization and standard linear PI regulators. In a similar vein, the work reported in [2] introduces a regulation method for a cross-flow hydraulic turbine operating in grid-tied mode. By directly modulating the generator’s q-axis current, the scheme bypasses the need for an internal speed control loop. That study, however, modeled the turbine using only a constant Cp value to estimate extractable power rather than a detailed dynamic representation, relied on a linearized mechanical torque expression, and implemented control through conventional PI controllers formulated via transfer functions.
A critical observation is that although the aforementioned techniques employ MPPT algorithms (whether look-up table-based or extremum-seeking), their reliance on linearized models arranged in cascaded structures and on classical P, I, or PI regulators limits reliable operation to narrow deviations around a single operating condition. Large disturbances or substantial changes in operating conditions can push the system outside the linear region, leading to degraded performance or even instability. This limitation underscores the value of more sophisticated nonlinear control methods—such as model predictive control (MPC)—which can natively handle multivariable, nonlinear dynamics while maintaining reasonable implementation complexity.
Accordingly, the objective of the current research is to develop an integrated control architecture for simultaneous power and voltage regulation using a nonlinear model predictive control (MPC) framework. This model-based methodology leverages a full-state-space representation to deliver a unified multivariable solution that accommodates wider variations in river current velocity.
The key original contributions of the present paper can be summarized as follows:
• Development of a comprehensive mathematical model that describes an HKT system in grid-connected operation, explicitly accounting for the nonlinear characteristics of the hydrokinetic turbine, the permanent magnet synchronous generator (PMSG), the DC/DC stage, and the grid-side inverter.
• Design of a nonlinear MPC algorithm utilizing the multiple-shooting approach together with dedicated numerical optimization solvers, applied across multiple prediction horizons; performance is systematically contrasted with that of a standard PI controller.
• Implementation of a simplified single-step-ahead MPC variant intended to minimize computational burden, with corresponding evaluation of its effectiveness.
The scope of this work is confined to the performance assessment of the proposed MPC strategy within a grid-connected HKT configuration. Analysis is restricted to the evolution of key state variables and to direct comparison against classical PI control. Only changes in river flow speed are considered; no formal stability analysis is conducted.
From both architectural and functional viewpoints, an HKT system closely parallels a wind energy conversion system. The most significant distinction arises from the fact that water has a density approximately 800 times that of air, which, in turn, leads to substantially slower rotational speeds for hydrokinetic rotors compared with wind rotors [27]. Figure 1 depicts the general layout of a grid-connected HKT installation, comprising a horizontal-axis hydrokinetic turbine, a permanent-magnet synchronous generator (PMSG), a controlled rectifier, and a grid-tied inverter. The mathematical representation of each subsystem is introduced in the subsections below:

Figure 1. Schematic representation of an HKT system.
A hydrokinetic turbine (HKT) captures kinetic energy from the moving water and transforms it into mechanical rotational energy at its shaft. The mechanical power extracted and the corresponding torque are expressed as follows [24]:
(1)
(2)
Where Cp denotes the power coefficient of the turbine—a parameter influenced by turbine design, blade count, and other factors—and varies as a function of the tip speed ratio (λ).
For this study, the selected HKT is based on the model described in [24], with its power coefficient given by the expression:
(3)
Meanwhile, the turbine’s rotational speed is also tied to λ and is determined using:
(4)
The core principle of the turbine control approach is to identify the tip speed ratio λ that yields the highest possible power coefficient, thereby maximizing the turbine’s mechanical power output. By setting β = 0 in Eq. 3, the optimal tip speed ratio λopt can be found. This simplification results in maximum values for both the power coefficient (Cpmax) and the mechanical power (Pmmax), both of which depend on the river flow velocity, as shown in Figure 2.

Figure 2. Power coefficient and mechanical power as a function of tip speed ratio: (a) Power coefficient, and (b) Mechanical power.
In an HKT system, the electrical generator is a permanent-magnet synchronous generator (PMSG) that converts mechanical rotational energy into electrical power. For mathematical modeling, the PMSG is commonly analyzed in the dq stationary reference frame. This transformation is accomplished via the Park transform, a standard technique for converting three-phase machine variables into a direct-quadrature (dq) coordinate system [28]. In this dq frame, the voltage equations of the PMSG are expressed as [29]:
(5)
The electromagnetic torque developed by the generator is given by [30]:
(6)
In Eq. 6, the first component represents the mutual (or alignment) torque, produced by the interaction between the permanent magnets and the stator currents. The second component is the reluctance torque, which stems from the rotor’s magnetic saliency [25].
The rotational dynamics of the electromechanical system are governed by the angular acceleration of the generator shaft, described by [31]:
(7)
Additionally, the relationship between the mechanical angular frequency of the generator and the electrical frequency is provided by [32]:
(8)
The controlled rectifier converts the PMSG’s alternating current (AC) output into a regulated direct current (DC) voltage. Its output voltage is determined according to [33]:
(9)
The DC/AC inverter transforms the smoothed DC voltage from the DC-link capacitor into an alternating current suitable for grid connection. Its dynamic behavior is modeled using Kirchhoff’s current and voltage laws applied to both the DC-link and grid sides, incorporating the Park transform and Eq. 9, leading to:
(10)
The overall behavior of the HKT system depicted in Figure 1 arises from the combined dynamics of the hydrokinetic turbine, PMSG, mechanical shaft, rectifier, and inverter. These interactions form a nonlinear dynamic system, which can be represented as:
(11)
(12)
(13)
This nonlinear system Eq. 11 is discretized for digital implementation using the fourth-order Runge–Kutta method, resulting in:
(14)
Where x+ represents the state vector at the next time step t+1, x is the state vector at the current time t, Δt denotes the sampling period for control, and
(15)
The reference states and input trajectories are determined based on the measured river flow velocity, vr, [34] at each sampling instant. This enables the hydrokinetic turbine to operate at an estimated optimal mechanical angular speed ωmopt, delivering maximum estimated mechanical power Pmmax. In contrast, electrical power is generated at the corresponding optimal electrical frequency ωeopt, computed from Eqs. 1, 4 and 8.
To maximize the efficiency of the HKT system, it is essential to ensure optimal transfer of the electromagnetic torque produced by the generator and to extract the highest possible active electrical power. This is accomplished by enforcing ī gd=0 in Eq. 6 and by minimizing irq through the setting ̄ rq=−Qref/vnd, with the reactive power reference set to Qref = 0.
Following these calculations, the target state vector 𝑥̄ = [𝑥̄𝑓 , 𝜔̄𝑚, 𝑖̄𝑔𝑑 , 𝑖̄𝑔𝑞 , 𝑖̄𝑟𝑑 , 𝑖̄𝑟𝑞 , 𝑣̄𝑑𝑐 ]⊤ and the reference control input vector 𝑢̄ = [𝑚̄ 𝑔𝑑 , 𝑚̄ 𝑔𝑞 , 𝑚̄ 𝑟𝑑 , 𝑚̄ 𝑟𝑞 ]⊤ are obtained and defined as follows:
(16)
(17)
Model predictive control (MPC) has a well-established history in control engineering and remains one of the most actively researched and applied techniques in both industry and academia. The method uses the system’s mathematical model, along with constraints and specified optimization goals, to predict future behavior and compute the optimal sequence of control actions. By forecasting the system’s evolution over defined prediction horizons, MPC selects control inputs that best satisfy the optimization objective while respecting all imposed constraints, thereby reducing the effects of disturbances and model uncertainties.
The MPC algorithm operates in a receding-horizon manner: at each time step, it solves a finite-horizon optimal control problem that minimizes a cost function (typically based on tracking error) subject to the system dynamics and constraints. Figure 3 provides a schematic overview of the procedure. The process begins with acquiring the current system measurement. An optimization problem is then formulated and solved to determine the control sequence that minimizes the deviation between predicted states and desired references over the prediction horizon. Only the first control action from this sequence is applied to the system, after which the horizon is shifted forward, new measurements are obtained, and the procedure repeats until the system reaches the target operating condition.

Figure 3. Schematic representation of a model-predictive control.
The cost function is typically formulated as a quadratic function of the tracking error. At the same time, the constraints include the discretized dynamic model, initial conditions, and bounds on both states and control inputs.
In the present work, the optimization task is addressed as follows: the continuous-time model is first discretized using either the Euler method or the fourth-order Runge–Kutta integration scheme. The resulting nonlinear program is then solved using the open-source framework CasADi, specifically designed for nonlinear optimization [35]. The implementation adopts the multiple-shooting approach, which, despite introducing a larger number of decision variables, offers greater simplicity in handling constraints derived from the discretized dynamics and naturally accommodates inequality constraints [36].
The MPC strategy can be expressed formally as an optimal control problem in the following manner:
(18)
Due to the nonlinear nature of both the objective function and the constraints given in Eqs. 14 and 15, the formulation in Eq. 18 constitutes a nonlinear optimization problem.
To assess the effectiveness of the proposed MPC controller when applied to the hydrokinetic turbine (HKT) system, simulations were conducted under the grid-connected configuration shown in Figure 4.

Figure 4. MPC controller for the HKT system.
This setup evaluates the controller’s capability to drive the key state variables (𝑝𝑚, 𝜔𝑚, 𝑖𝑔𝑞, 𝑖𝑔𝑞, 𝑖𝑟𝑑, 𝑖𝑟𝑞, 𝑣𝑑𝑐) to their respective reference values in the shortest possible time. All simulations were carried out in MATLAB. The system dynamics were discretized via the fourth-order Runge–Kutta method, and the optimization problems were solved using the CasADi toolbox.
A fixed sampling time of Δt = 0.1 ms was used for the MPC implementation. Different prediction horizons h were evaluated to examine the resulting closed-loop behavior of the state variables under MPC action. Step changes in river velocity were applied at times trc1 = 0.1 s and trc2 = 0.2 s, corresponding to velocities vr1 = 1.229 m/s and vr2 = 0.929 m/s, respectively, as depicted in Figure 5.

Figure 5. Changes in river speed.
Furthermore, the weighting matrices Q and R are adjusted through iterative trial-and-error simulations to achieve the targeted reference tracking and desired dynamic waveforms for the state variables. The optimal tuning is reached when
(19)
The proposed MPC strategy employs the CasADi framework to assess the feasibility and computational behavior of the optimization problem across various prediction horizons (h = 1, 2, 3, 5, and 7). Figure 6 illustrates the closed-loop responses of the key state variables for the different prediction horizons.

Figure 6. MPC response for different prediction horizons with CasADi: (a) Mechanical power, (b) Mechanical frequency, (c) PMSG current (d-axis), (d) PMSG current (q-axis), (e) Grid current (d-axis), (f) Grid current (q-axis), (g) DC-link voltage.
From the results depicted in Figure 6, the following conclusions can be drawn:
• For the mechanical power pm, the controller drives the variable to its references with settling times of ts1 = 0.1 μs, ts2 = 0.15 s, and ts3 = 0.23 s when starting from initial conditions and during the river velocity transitions from 0.929 m/s to 1.229 m/s at tch1 = 0.1 s and from 1.229 m/s to 0.929 m/s at tch2 = 0.2 s, respectively. Notably, the temporal response shows virtually no difference for prediction horizons h = 2, 3, 5, and 7. For h = 1, the settling time remains comparable (ts2 = 0.15 s), but the response exhibits a more overdamped characteristic.
• For the mechanical frequency ωm, with horizons h = 5 and h = 7 the controller achieves the references at ts1 = 0.012 μs, ts2 = 0.11 s, and ts3 = 0.22 s. For h = 3 the settling times are ts1 = 0.025 μs, ts2 = 0.12 s, and ts3 = 0.23 s. In contrast, when h = 1, the settling times increase to ts1 = 0.07 μs, ts2 = 0.18 s, and ts3 = 0.28 s, indicating the slowest response among all cases. While horizons h = 3, 5, and 7 provide faster convergence under initial conditions and during the first disturbance at tch1, they produce noticeably larger overshoots during the second disturbance at tch2 = 0.2 s compared with h = 1.
• Concerning the d-axis PMSG current igd, the controller settles to the references at ts1 = 0.1 μs, ts2 = 0.102 s, and ts3 = 0.21 s across all tested horizons. However, as the prediction horizon lengthens, the overshoot magnitude grows during both river velocity step changes (0.929 → 1.229 m/s and 1.229 → 0.929 m/s). The smallest overshoot is therefore observed when h = 1.
• For the q-axis PMSG current igq, horizons h = 3, 5, and 7 yield settling times of ts1 = 0.2 μs, ts2 = 0.12 s, and ts3 = 0.23 s. When h = 1, the settling times become ts1 = 0.02 μs, ts2 = 0.13 s, and ts3 = 0.21 s. Increasing the horizon leads to progressively larger overshoots, with the minimal overshoot occurring at h = 1.
• The behavior of the d-axis grid current ird closely resembles that of igq, with settling times of ts1 = 0.2 μs, ts2 = 0.12 s, and ts3 = 0.23 s for h = 3, 5, and 7. The primary distinction lies in the overshoot magnitudes: ird exhibits smaller excursions (ranging from −100 at tch1 = 0.1 s to +100 at tch2 = 0.2 s) compared with igq (ranging from −200 at tch1 = 0.1 s to +200 at tch2 = 0.2 s).
• For the q-axis grid current irq, the controller achieves the references at ts1 = 0.1 μs, ts2 = 0.11 s, and ts3 = 0.21 s for horizons h = 1, 3, 5, and 7. However, at h = 7, the signal displays a noticeably larger overshoot than at h = 1, 3, and 5.
• Regarding the DC-link voltage vdc, horizons h = 3, 5, and 7 produce settling times of ts1 = 0.1 μs, ts2 = 0.11 s, and ts3 = 0.21 s. For h = 1 the settling times are ts1 = 0.1 μs, ts2 = 0.13 s, and ts3 = 0.21 s. Longer horizons result in increased overshoot amplitudes, with the maximum overshoots occurring at h = 5 during the first change (tch1 = 0.1 s) and at h = 7 during the second change (tch2 = 0.2 s).
Overall, for settling times around ts1 = 0.02 s, ts2 = 0.15 s, and ts3 = 0.23 s, stable operation of all state variables is achieved with prediction horizons h = 3, 5, and 7. In contrast, when h = 1, the system stabilizes later, at approximately ts1 = 0.05 s, ts2 = 0.17 s, and ts3 = 0.27 s, introducing a delay of roughly 0.03 s in settling time compared with the longer horizons. As the prediction horizon increases, the closed-loop response becomes more underdamped, producing larger overshoots while still converging to the desired references without loss of stability. The case h = 1 yields fewer oscillations and smaller overshoots. Moreover, the controller adjusts the electrical quantities (igd, igq, ird, irq, vdc) more rapidly than the mechanical quantities (pm and ωm), demonstrating that the power converters proactively regulate the electrical variables to enable the turbine’s mechanical states to follow their references effectively.
In addition, two critical implementation aspects must be evaluated when deploying MPC with CasADi: the optimization time (the duration required to solve the optimal control problem at each step) and the total simulation time (the cumulative time needed to discretize the model and perform all optimizations). For real-time applicability, both values must remain well below the controller’s sampling period to guarantee that a feasible solution is computed before the next measurement update.
Table 1 summarizes the optimization time (Top) and simulation time (Tsim) for the MPC controller across the different prediction horizons tested. The data clearly indicate that shorter prediction horizons result in substantially reduced optimization and simulation times. Consequently, selecting h = 1 provides the fastest execution, with Top = 0.3074 s and Tsim = 46.98 s.
Table 1. MPC method performance for different prediction horizons.
Prediction Horizon [steps] | MPC Optimization Time [s] | PI Simulation Time [s] | MPC Simulation Time [s] |
1 | 0.3074 | 46.9791 | 32.1677 |
2 | 0.2344 | 63.4206 | 32.1677 |
3 | 0.3457 | 83.8509 | 32.1677 |
5 | 0.5247 | 116.5954 | 32.1677 |
7 | 0.7658 | 169.8734 | 32.1677 |
Furthermore, a side-by-side evaluation of computational demand—measured by total simulation duration—reveals that the MPC controller requires roughly 1.46 times the processing effort of its PI counterpart. The primary reason lies in the iterative solution of the finite-horizon optimal control problem inherent to MPC. At first glance, this higher resource consumption might suggest that MPC is less practical than the well-established PI technique. A detailed head-to-head performance analysis of both controllers is therefore presented in the following section to better assess the real-world merits of the MPC approach.
After establishing that the MPC strategy performs reliably across a range of prediction horizons in grid-tied operation, the focus now shifts to a comparative study between single-step MPC (h = 1) and classical PI control. The outcomes of this benchmark are displayed in Figure 7.

Figure 7. Comparison of MPC and PI control: (a) Mechanical power, (b) Mechanical frequency, (c) PMSG current (d-axis), (d) PMSG current (q-axis), (e) Grid current (d-axis), (f) Grid current (q-axis), and (g) DC-link voltage.
Analysis of the traces in Figure 7 yields the following insights:
• With respect to mechanical power pm, MPC settles to steady state extremely rapidly from startup, in only tsMPC1 = 0.1 μs, compared with tsPI1 = 0.5 s for the PI regulator. Following the river-speed step changes—at tch1 = 0.1 s (0.929 → 1.229 m/s) and tch2 = 0.2 s (1.229 → 0.929 m/s)—both algorithms converge in identical intervals: tsMPC2 = tsPI2 = 0.15 s and tsMPC3 = tsPI3 = 0.24 s. Hence, although MPC exhibits a clear advantage in reaching equilibrium from arbitrary initial states, the two controllers display equivalent disturbance rejection speed once the system is already running.
• Turning to mechanical angular speed ωm, MPC tracks the reference noticeably quicker during the startup transient, achieving settling in ts1MPC = 0.05 s versus ts1PI = 0.095 s for PI. For the two velocity disturbances applied at tch1 = 0.1 s and tch2 = 0.2 s, settling times coincide exactly at ts2 = 0.19 s and ts3 = 0.3 s for both methods. A significant difference emerges, however, during the first step change (tch1 = 0.1 s): the PI regulator suffers from a residual steady-state offset and never fully attains the target value. This persistent error, together with the slower initial convergence, points to weaker damping in the PI design relative to MPC, which explains MPC’s superior speed and accuracy.
• Examining the d-axis stator current igd, the PI controller initially outperforms MPC in transient speed under startup conditions, settling at ts1PI = 0.1 μs, ts2PI = 0.11 s, and ts3PI = 0.21 s. In contrast, MPC settles later at ts1MPC = 0.03 s, ts2MPC = 0.17 s, and ts3MPC = 0.27 s. Overshoot behavior is mixed: PI generates smaller peaks at startup and during the second disturbance (tch2 = 0.2 s), but MPC shows reduced peak deviation during the first disturbance (tch1 = 0.1 s). On average, MPC therefore tends to limit overshoot more effectively, despite its slightly slower response in this channel. Importantly, all observed overshoots remain modest, staying within approximately 10² A.
• For the q-axis stator current igq, MPC settles to the commanded values at ts1MPC = 0.01 s, ts2MPC = 0.15 s, and ts3MPC = 0.27 s, outperforming PI, which settles at ts1PI = 0.01 s, ts2PI = 0.17 s, and ts3PI = 0.2 s. The faster overall dynamics of MPC are evident here. In addition, MPC produces markedly smaller peak excursions and displays stronger damping, resulting in a smoother and more robust reaction to river-velocity steps compared with the PI baseline.
• Regarding the d-axis grid current ird, MPC reaches steady state at ts1MPC = 0.01 s, ts2MPC = 0.17 s, and ts3MPC = 0.27 s. By contrast, the PI response is characterized by sustained oscillations before finally settling at ts1PI = 0.07 s, ts2PI = 0.18 s, and ts3PI = 0.28 s. These traces highlight two clear MPC advantages: quicker convergence and complete suppression of the oscillatory ringing that plagues the PI controller. Overshoot amplitudes are likewise smaller under MPC, reinforcing its superior damping properties in this channel.
• For the q-axis grid current irq, the MPC controller achieves the reference value extremely rapidly under initial conditions, settling in ts1MPC = 0.01 s. During the river velocity step changes applied at tch1 = 0.1 s and tch2 = 0.2 s, MPC tracks the new references virtually instantly, with settling times of ts2MPC = 0.1 s and ts3MPC = 0.2 s. By comparison, the PI controller settles at ts1PI = 0.04 s, ts2PI = 0.15 s, and ts3PI = 0.25 s. These results clearly show that MPC reacts much more swiftly than PI and completely suppresses the oscillatory behavior PI exhibits as it approaches the setpoints. In terms of peak deviation, MPC outperforms PI by producing noticeable overshoots only during the startup phase and eliminating them during subsequent velocity disturbances.
• For the DC-link voltage vdc, MPC converges to the steady-state references almost immediately in all scenarios: ts1MPC = 0.1 μs from initial conditions, ts2MPC = 0.1 s after the first change, and ts3MPC = 0.2 s after the second change. In stark contrast, the PI controller requires ts1PI = 0.04 s, ts2PI = 0.15 s, and ts3PI = 0.25 s to reach the same targets. This highlights MPC’s markedly faster response and its ability to avoid the persistent oscillations generated by the PI regulator during reference tracking. Moreover, MPC exhibits superior overshoot performance, generating virtually no peak excursions under either initial conditions or during river-speed variations, whereas PI consistently produces noticeable overshoots.
Controller performance was further quantified using integral-based error metrics, specifically the Square Error Time Index (SETI) and the Absolute Error Time Index (AETI), defined as follows:
(20)
Where Δx represents the tracking error between each state variable x and its corresponding reference value.
Numerical evaluation of these indices reveals that, for the input currents igd and ird, the SETI values achieved by the MPC controller are 73.81 × 10⁶ and 25.85 × 10⁶, respectively, compared with 383.48 and 113.41 for the PI controller. As summarized in Table 2, the SETI figures for MPC are dramatically lower than those for PI, demonstrating substantially more accurate reference tracking and a much smaller accumulated squared error over the simulation period. The AETI indices follow the same pattern, reinforcing MPC’s clear advantage in minimizing overall tracking deviation.
Table 2. Performance indices comparison of MPC and PI controllers.
Metric | SETI (1×10⁶) | AETI (1×10⁶) |
Control | igq | ird |
MPC | 73.81 | 25.85 |
PI | 383.48 | 113.41 |
Metric | max{ts} (μs) | |
Control | igq | |
MPC | 0.26 | |
PI | 0.29 | |
Metric | max{%OS} (%) | |
Control | igq | |
MPC | −152.8 | |
PI | −352.3 |
It should be emphasized that, for a fair comparison in this section, the MPC controller parameters (specifically the weighting matrices Q and R) were re-tuned for the single-step prediction horizon h = 1. This adjustment was essential to reduce the computational effort required during the optimization phase.
The present work introduced an advanced model predictive control (MPC) strategy tailored for maximum power point tracking (MPPT) of the hydrokinetic turbine and precise regulation of the output voltage in a grid-connected hydrokinetic turbine (HKT) system. A complete nonlinear model was developed encompassing the hydrokinetic turbine, permanent magnet synchronous generator (PMSG), AC/DC rectifier, and DC/AC inverter. The resulting nonlinear optimal control problem was formulated and solved efficiently with the CasADi optimization framework. Extensive simulations were conducted across multiple prediction horizons, and a detailed benchmark was performed against a classical proportional-integral (PI) controller using key performance indicators, including settling time, overshoot magnitude, and integral error criteria such as ITSE and ITAE. The proposed MPC approach consistently outperformed the conventional PI method. The main findings of this investigation are summarized below:
• Incorporation of the full nonlinear dynamics of the integrated HKT system posed significant challenges during tuning of the MPC weighting matrices Q and R. The pronounced instability of the open-loop plant—driven primarily by the strong nonlinearity of the turbine characteristic (embodied in the Cp and Pm curves)—frequently caused the optimization problem to become infeasible under certain initial conditions or large river-velocity disturbances.
• The MPC controller delivered robust and satisfactory closed-loop performance across a range of prediction horizons. However, extending the horizon beyond one step did not yield meaningful improvement in either transient or steady-state behavior. Consequently, tuning the controller with a single-step prediction horizon (h = 1) proved sufficient to achieve effective and reliable system regulation.
• Longer prediction horizons provided negligible enhancement in overall control quality while substantially increasing the computational complexity and solution time of the optimization task. Adopting a horizon of one therefore represents the most practical choice, as it minimizes the real-time processing demand of the MPC implementation without sacrificing performance.
• The MPC strategy clearly surpassed the traditional PI controller in overall effectiveness. Regarding settling time, MPC exhibited substantially quicker convergence for the DC-link voltage vdc and the q-axis grid current irq. In contrast, the performance gap was negligible for the remaining variables (pm, ωm, igd, igq, ird). In terms of overshoot and oscillation suppression, MPC achieved markedly lower peak deviations and damping of transient ringing across all state variables when compared with PI, demonstrating particularly strong robustness against river velocity variations for vdc and irq. Quantitative evaluation using the SETI and AETI indices further confirmed MPC’s superiority, as it consistently produced lower accumulated error values than PI for both the direct- and quadrature-axis currents (idq and ird), even in the presence of river speed disturbances.
• The electrical state variables displayed significantly faster dynamic behavior than their mechanical counterparts, which respond more slowly. The MPC controller successfully accommodated this disparity by simultaneously regulating both the fast electrical and the slower mechanical quantities within a unified multivariable framework.
Λopt: Optimal tip speed ratio
Ωe: Angular electrical frequency of the PMSG (rad/s)
Ωm: Mechanical angular frequency of turbine(rad/s)
ωm0: Nominal angular frequency of turbine (rad/s)
ρ: Water density (kg/m3)
ξ: Damping coefficient of the shaft PMSG (Ns/m)
AETI: Absolute error time index
C: DC-link capacitor (F)
ci∈i=1,…,6: Turbine coefficients
Cp: Power coefficient
igd, igq: Current at stator terminals on dq-axes (A)
ird, irq: Inverter currents in the dq frame (A)
J: Total system inertia (kgm2)
L: Grid side inductance (H)
Lsd, Lsq: Inductances in the stator on the dq-axes (H)
mgd, mgq: Modulation indices of the converter in the dq frame
OS: Overshoot index (%)
P: Number of pole pairs
Pm: Mechanical power of the turbine (W)
Qref: Reference reactive power injected into the grid (VA)
r: Turbine radius (m)
rs: Stator resistance (Ω)
rr: Network side resistance (Ω)
SETI: Square error time index
Te: Mechanical torque of the PMSG (Nm)
Tm: Electromechanical torque of the PMSG (Nm)
Ts: Settling time index (s)
v: River speed (m/s)
vnd, vnq: Grid voltage in the dq frame (V)
vdc: Voltage at DC-link capacitor terminals (V)
vgd, vgq: Voltage at stator terminals of PMSG on dq-axes (V)
vrd, vrq: AC side voltage of the inverter VSC in the dq frame
This work was partially supported by the Minciencias (Becas Bicentenario Corte 2) and Universidad Tecnológica del Chocó. The authors also wish to thank the Vicerectoría de Investigaciones, Innovación y Extensión, Universidad Tecnológica de Pereira for the support provided to this research through the doctoral thesis titled Control predictivo en microrredes híbridas con generación hidroeléctrica y solar fotovoltaica para zonas no interconectadas.
The authors declare the following financial interests/personal relationships, which may be considered potential competing interests: Jhon Ronald Terreros Barreto reports that financial support was provided by Diego Luis Córdoba Technological University of Chocó. Jhon Ronald Terreros Barreto reports that financial support was provided by the Colombian Ministry of Science, Technology, and Innovation. If there are other authors, they declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
None
None
Open Access The author(s) retain copyright. This article is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. It may be shared and adapted for non-commercial purposes with appropriate attribution, an indication of changes, and distribution of adaptations under the same license. Third-party material may be subject to separate terms identified in its credit line. View the license at https://creativecommons.org/licenses/by-nc-sa/4.0/.