Next Article in Journal
Periodic Transformer Encoder for Multi-Horizon Travel Time Prediction
Next Article in Special Issue
Reinforcement Learning-Based Energy-Saving Path Planning for UAVs in Turbulent Wind
Previous Article in Journal
ICC-BiFormer: A Deep-Learning Model for Near-Earth Asteroid Detection via Image Compression and Local Feature Extraction
Previous Article in Special Issue
An Improved Genetic Method for Satellite Selection in Multi-Global Navigation Satellite System Positioning for Mobile Robots
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Optimal Voltage Recovery Learning Control for Microgrids with N-Distributed Generations via Hybrid Iteration Algorithm

1
School of Electrical Engineering, Northeast Electric Power University, Jilin 132012, China
2
School of Engineering, University of Strathclyde, Glasgow G1 1XJ, Scotland, UK
3
School of Automation and Electrical Engineering, University of Science and Technology Beijing, Beijing 100083, China
4
North China Electric Power Experimental Research Institute, China Datang Group Science and Technology Research Institute Co., Ltd., Beijing 100097, China
*
Author to whom correspondence should be addressed.
Electronics 2024, 13(11), 2093; https://doi.org/10.3390/electronics13112093
Submission received: 4 May 2024 / Revised: 21 May 2024 / Accepted: 23 May 2024 / Published: 28 May 2024
(This article belongs to the Special Issue Intelligent Mobile Robotic Systems: Decision, Planning and Control)

Abstract

:
Considering that the nonlinearity and uncertainty of the microgrid model complicate the derivation and design of the optimal controller, an adaptive dynamic programming (ADP) algorithm is designed to solve the model-free non-zero-sum game. By combining the advantages of policy iteration and value iteration, an optimal learning control scheme based on hybrid iteration is constructed to provide stringent real power sharing for the nonlinear and coupled microgrid systems with N-distributed generations. First, using non-zero-sum differential game strategy, a novel distributed secondary voltage recovery consensus optimal control protocol is built using a hybrid iteration method to realize the voltage recovery of microgrids. Then, the data of the system state and input are gathered along a dynamic system trajectory and a data-driven optimal controller learns the game solution without microgrid physics information, enhancing convenience and efficiency in practical applications. Furthermore, the convergence analysis is given in detail, and it is proved that the control protocol can converge to the optimal solution so as to ensure the stability of the voltage recovery of the microgrid system. Convergence analysis proves the convergence of the the protocol to the optimal solution, ensuring voltage recovery stability. Simulation results validate the feasibility and effectiveness of the proposed scheme.

1. Introduction

In recent years the ecological and environmental foundation of the world has been deteriorating and the demand for energy has become increasingly urgent. The utilization of renewable clean energy and the improvement of energy efficiency have become crucial for environmental protection, yet the structure and operational mode of traditional power distribution systems have proven inadequate in meeting the demands of large-scale renewable power integration [1,2,3]. In order to meet this challenge, it is imperative to transform and upgrade the traditional power distribution system. Furthermore, the advancement of smart technology has led to the gradual personalization of energy demand and electricity consumption patterns, accelerating the transition of the power system towards a smart grid. This transition has rendered the traditional large grid increasingly incapable of satisfying diversified power supply needs [4,5,6]. To address these challenges, the microgrid has emerged as a viable solution, playing a pivotal role in maintaining the smooth operation of power grids. A smart grid, as a new power system model, aims to achieve energy conversion and efficient use through advanced communication technology and control means. The goal is to improve the safety, reliability, economy and efficiency of the operation of the power system to meet the growing demand for energy while reducing the environmental impact of energy consumption. As an integral component of the smart grid, the microgrid represents a small-scale power system that effectively integrates distributed generators [7,8]. Traditional microgrid voltage restoration methods often rely on fixed control strategies and parameter settings, which is difficult to adapt to the changes of different microgrid structures and operating conditions. These methods often show poor adaptability and robustness in the face of complex and changeable power system environments. Therefore, the development of an appropriate frequency and voltage control strategy is crucial for ensuring the stable operation of the microgrid. Research on this topic holds considerable practical significance. This paper aims to address these challenges by exploring innovative control strategies tailored for the unique characteristics of the microgrid. By doing so, the advancement of smart grid technology and enhancements for the overall performance and reliability of power systems worldwide are given in this paper.
Over the past few years, numerous scholars have begun to explore innovative control strategies for microgrids, aiming to achieve stable operation and efficient utilization of microgrids by precisely controlling energy conversion, charge and discharge of energy storage devices and load management [9,10,11]. Shuai et al. conducted a comprehensive review of research on microgrid stability [12]. Specifically, ref. [13] highlighted the increasing replacement of distributed generators with diesel generators in standalone microgrids. To address this, a decoupled controller for frequency and voltage was introduced, enabling the maintenance of grid frequency and voltage magnitude stability. The high-order full drive model of a distributed generator microgrid is explored by using the large signal model of a microgrid, and the complex relationship and interaction between voltage and current are effectively captured in [14]. In Ref. [15] a moving target defense mechanism was proposed, which can effectively limit network attacks on smart microgrid systems. Furthermore, ref. [16] employed a robust passive control strategy to stabilize and regulate the DC bus voltage. These results represent significant contributions to the field, providing valuable insights into voltage/frequency recovery techniques for generation systems. However, despite these advancements, there remains a need for further research and development in this area, particularly in addressing the unique challenges posed by microgrids and their integration into smart grid systems. This paper wants to contribute to this ongoing effort by exploring innovative control strategies tailored to the specific requirements of microgrids, with a focus on enhancing their stability and performance.
The implementation of a nonlinear disturbance observer is proposed to enhance the stability of the system and mitigate steady-state errors resulting from CPL variations. In Ref. [17], mixed iterative adaptive dynamic programming is explored, providing a solution to the optimal control problem associated with battery energy management in smart residential microgrid systems. This method comprises two iterative processes: P-iteration and V-iteration, both grounded in reinforcement learning techniques. The P-iteration process follows a policy iteration approach, with iterative updates to the value function based on the sequence of iterative control laws. Conversely, the V-iteration process adheres to value iteration, enabling the derivation of iterative control laws in each iterative cycle. It is noteworthy that traditional centralized control strategies rely heavily on extensive communication systems to gather and process substantial amounts of information from distributed generators. These strategies primarily concentrate on data generation [18], energy management [19], state estimation [20], optimal scheduling [21] and reliability evaluation [22]. The nonlinear disturbance observer offers an innovative approach to enhancing system stability and eliminating steady-state errors, presenting a promising alternative to traditional centralized control strategies. This advancement holds significant potential for improving the performance and reliability of smart residential microgrid systems.
Inspired by the distributed and consistent control methods for nonlinear multi-agent systems, ref. [23] introduced the concept of distributed cooperative control and employed a hybrid iteration technique to design a nonlinear model controller for microgrids. This approach effectively bridges the performance gap between the well-known policy iteration and value iteration methods. In policy iteration, derived from the Newton–Raphson method, convergence to the optimal value occurs at a rate of quadratic convergence [24]. Conversely, value iteration differs as it does not require an initial admissible control policy, as is the case in policy iteration [25]. However, hybrid iteration combines the strengths of both methods, eliminating the need for the initial stability control strategy required in policy iteration while achieving a faster convergence rate than traditional value iteration. In recent years, the application of hybrid iterative technology in modern microgrids has gradually highlighted its importance and potential. In Ref. [26], an optimal output regulation method for islanded modern microgrids was presented. This method demonstrates that the hybrid iterative approach significantly reduces the convergence time of the deployed CPU, minimizes the number of learning iteration cycles and eliminates the need for an initial stability control strategy. However, although the application of hybrid iteration in modern microgrids has made remarkable progress, there remains a lack of research on the acquisition and analysis of optimal feedback control protocols for nonlinear N-distributed generations in microgrids. This research gap not only limits the further application of hybrid iteration in the field of microgrids, but also affects the further improvement of the overall performance of microgrids. By analyzing the nonlinear N-distributed generation in microgrids and combining it with the characteristics of hybrid iteration, this study introduces a novel feedback control protocol, which can not only effectively deal with the nonlinear problems, but also realizes the precise adjustment of the output voltage of a microgrid, thereby contributing to the enhancement of operational efficiency and stability.
With the emergence of novel optimization algorithms, the intelligent control optimization of microgrid systems has seen significant progress. The inherent randomness, dynamics and nonlinearity of microgrid operations pose challenges to traditional model-driven control strategies, limiting their accuracy and efficiency. Adaptive dynamic programming (ADP), an intelligent control approach, exhibits strong self-learning and adaptive capabilities, independent of prior system knowledge or models. ADP leverages iteration to derive control strategies, encompassing policy iteration and value iteration. Utilizing neural network approximations, ADP employs critic and action networks to approximate optimal performance indices and control strategies, respectively. Through continuous information feedback and transmission, the critic network evaluates and updates strategies, enabling the system to converge to an optimal control strategy and its corresponding value function [27]. Game theory, analyzing behavior prediction among competitive individuals and optimizing strategies for multi-agent decision-making, provides a theoretical foundation for the microgrid system’s behavior trajectory. Key elements in game theory include players, strategies and cost functions. Ref. [28] transformed the microgrid system with external interference into a zero-sum differential game model to design a robust control scheme. Ref. [29] simplified the distributed secondary voltage recovery consistency control to a general distributed zero-sum differential game and then solved it. Players aim to minimize their cost functions through strategic choices, aligning with the objectives of this study.
This study aims to explore the voltage recovery control problem of microgrid systems with N-distributed generations and proposes an innovative method for this purpose. The main contributions are as follows: (1) voltage recovery control in microgrid systems involves the interaction between multiple distributed power sources and loads, so this paper transforms it into a non-zero-sum game problem to effectively deal with the cooperative relationship between multiple participants. (2) An ADP method is adopted to obtain the optimal control scheme by iteratively solving the Hamilton–Jacobi (HJ) equation. The proposed hybrid iteration combines the advantages of value iteration and policy iteration and adaptively adjusts the step size to ensure the convergence and stability of the algorithm. A strict convergence proof is given to prove the effectiveness of the proposed method. (3) In practical applications, the mathematical models of microgrid systems are often uncertain and complex, making it difficult to model accurately. In order to meet this challenge, the algorithm proposed in this paper does not rely on mathematical models and gradually approaches the optimal solution through iteration and learning.
This paper addresses the optimal control problem for nonlinear N-distributed generations, introducing a novel hybrid iteration technique to derive an optimal policy without relying on the system model. Initially, the optimal control strategy and cost function value are defined, providing a foundation for subsequent analysis. Subsequently, the effectiveness of the proposed hybrid iteration algorithm is demonstrated in learning optimal controller laws for N-distributed generations. Notably, this strategy does not require a system model, relying solely on online state and input data. This approach is particularly useful for nonlinear microgrid systems, where establishing a precise dynamics model can be challenging. By leveraging the loci of these systems, our method offers a practical solution for real-time optimal control.
The remainder of this paper is structured into six sections. Section 2 introduces the optimal control problem statement and formulation for microgrids with N-distributed generations. Section 3 presents both model-based and data-driven hybrid iteration methods. Section 4 provides a rigorous convergence proof for the proposed methods. Section 5 presents simulation results for a microgrid system with two distributed generations, along with a technical discussion. Finally, Section 6 concludes the paper, summarizing the key findings and contributions.

2. Problem Formulation

The N-generation distributed microgrid system refers to a multi-level complex power grid system formed by multiple microgrids. Each generation of microgrids has a certain degree of autonomy and independence. Consider the microgrid system with N-distributed generations, let the state space variables of ith generation be s ˙ i = s ˙ i , 1 s ˙ i , 2 R n 1 + n 2 , which contains the key information of the generation of the whole microgrid. s i , 1 R n 1 shows the magnitude of v o , i and represents ith generation output voltage value and s i , 2 R n 2 is the derivative of the magnitude of v o , i .
To capture the continuous voltage changes and understand the dynamic behavior of the microgrids in the voltage recovery process more deeply, the state-space model pertaining to the voltage recovery layer of microgrids is formulated in the following differential form:
s ˙ i = g i , 1 ( s i ) s i , 2 f i , 2 ( s i ) + 0 g i , 2 ( s i ) w i
where g i , 1 R n 1 × n 1 is the nonlinear smooth function, w i R q is the control input and f i , 2 R n 2 and g i , 2 R n 2 × q are nonlinear uncertain smooth functions. For ease of analysis, let f i ( s i ) = g i , 1 ( s i ) s i , 2 f i , 2 ( s i ) , g i ( s i ) = 0 g i , 2 ( s i ) .
For each generation, the utility function is designed as
r i ( s i , w i , w i ) = Q i ( s i ) + w i T R i w i
where w i = { w 1 , w i 1 , w i + 1 , w N } denotes the control input set which does not contain w i . Q i ( s i ) = s i T Q i s i is positive definite, in which Q i > 0 . The weight association symmetric matrix R i > 0 .
Then, the cost function of the ith generation is
J i ( s i , w i , w i ) = 0 r i ( s i , w i , w i ) d t
The optimal control problem addressed in this paper aims to determine the control strategy that minimizes the performance index value for the microgrid system. Based on (3), the optimal cost function P * is presented by
P i * ( s i ) = min w i J i ( s i , w i , w i ) .
The optimization problem of the microgrid system, which is difficult to obtain the model for, is transformed into the solution of a non-zero-sum game problem in this paper. Considering the interaction of various components in the system, the stable operation of the system is achieved by optimizing the overall performance. The ADP algorithm is used to adapt to the uncertainties in the system, adjust the control strategy flexibly and improve the operating efficiency and reliability of the system.
Based on the stationary conditions and utilizing the optimal cost function (4), the optimal feedback control protocol can be formulated as follows [24]
w i * = 1 2 R i T g i T ( s i ) P i *
The aforementioned control law aims to achieve the Nash equilibrium solution of the game model, targeting the equilibrium of interests among multiple entities within the microgrid system. This is not only an important guarantee for system stability and reliability, but also the key to the efficient and sustainable operation of microgrid systems. Additionally, it is evident from the expression that the control law output of each player in the microgrid system is unaffected by other players, which aligns with the concept of a non-zero-sum game. Each player attains concordant interests through mutual promotion and coordination, thereby minimizing the designed value function.
In order to solve (4) and (5), the Hamiltonian function is defined as
H ( s i , P i , w i ) = P i T ( f i + g i w i ) + Q ( s i ) + w i T R i , i w i
According to optimal control theory, it has
inf w i H ( s i , P i , w i ) = 0 P i ( 0 ) = 0
From (4) and (5), the coupled equation of HJ can be expressed by
0 = 1 4 i = 1 N P i * T g i , 2 ( s i ) R i 1 R i , i R i 1 g i , 2 T P i * + P i * T f i , 2 ( s i ) + Q i ( s i ) 1 2 P i * T i = 1 N g i , 2 ( s i ) R i 1 g i , 2 T P i *
with the initial condition P i * ( 0 ) = 0 .
In the next section, the aforementioned coupled HJ equation is approximated using the ADP algorithm in a hybrid iterative manner. According to the above preparation, it becomes evident that each generation of the coupled HJ equation, as presented in (8), has a connection with the other control laws. Consequently, the multiple coupled generations are not entirely autonomous. Therefore, this paper aims to establish an adaptive and distributed consistent voltage recovery control strategy for the N-distributed game system (1). To tackle this problem, there have been studies on designing near-optimal control methods, including policy iteration and value iteration, which are all online learning techniques.
The implementation of policy iteration requires certain initial conditions. Specifically, the system must commence iteration with an admissible control strategy. Subsequently, the iteration performance index is approximated, the control law of the current iteration step is evaluated and then the strategy is updated. These evaluation and update steps are repeated until a termination condition, similar to the inequality in (12), is satisfied. Obviously, the advantage of this iterative method lies in its high computational efficiency, as policy iteration based on an initial control law can enable the system to quickly obtain the optimal control law. In contrast to policy iteration, the initial value of the iteration value function in value iteration can be arbitrary. In order to overcome these limitations, a hybrid iterative algorithm is used to solve the optimal control strategy. This algorithm combines the advantages of policy iteration and value iteration and not only does it not require the initially allowed control strategy, but it also has a high convergence speed.

3. Hybrid Iteration for the Microgrid Systems

In this part, by applying the hybrid iteration strategy and the reinforcement learning method, a recovery control protocol for adaptive distributed voltage is constructed. First, a hybrid iteration approach based on the system model is proposed and a convergence analysis is provided. Then, the implementation process of the hybrid iteration approach based on data is presented, along with proof of convergence.
The hybrid iteration is based on the execution of policy iteration and the hybrid iteration algorithm is presented as follows. First, choose positive semidefinite P ˜ i [ 0 ] C ( R n ) , select Q ^ i ( x ) satisfying Q ^ i ( x ) Q i ( x ) > 0 . It has the iterative update rule of the control policy, as follows
w ˜ i [ n + 1 ] = 1 2 R i , i 1 g i T P ˜ i [ n ]
The value function is renewed by
P ˜ i [ n + 1 ] = ε i [ n ] P ˜ i [ n ] T f i ( s i ) + Q ^ i ( x ) w ˜ i [ n + 1 ] T R i , i w ˜ i [ n + 1 ] + P ˜ i [ n ]
where ε i [ n ] is a deterministic sequence, which satisfies
ε i [ n ] > 0 n = 0 ε i [ n ] = lim n ε i [ n ] = 0
The cyclic search process (9) and (10) of the admissible control policy will stop until
P ˜ i [ n + 1 ] P ˜ i [ n ] ε i [ n ] ( Q ^ i ( x ) Q i ( x ) )
Then, based on the admissible control law (9), it obtains the exploring process of the optimal control policy based on the following two iterative equations. The iteration cost function P i [ n ] is solved from
H ( s i , P i [ n ] , w i [ n ] ) = 0
and the control policy can be updated according to the following equation
w i [ n + 1 ] = 1 2 R i , i 1 g i T P i [ n ]
Through the above two steps of policy evaluation and policy improvement, the optimal policy sequence and its corresponding value function are finally reached or converge.
Note that the hybrid iteration (9)–(14) still faces a strict requirement, since it still requires precise knowledge of system dynamics models. For many complex practical systems, it is not easy to acquire accurate knowledge of system dynamics models. Even when some degree of knowledge of system dynamics models can be obtained in some cases, it is a challenge to effectively apply this knowledge to hybrid iteration because, in practice, the model needs to be simplified or approximated in order to be able to perform effective iterative calculations. However, such simplifications or approximations may introduce errors that affect the accuracy of the iterative results. Hence, to avoid dependence on the system model, the hybrid iteration (9)–(14) will be improved, and the hybrid iteration based on state and input information will be developed and proposed.
Taking the derivative of the cost function P i has
V ˙ i ( s i ) = P i s ˙ i = H ( s i , P i , w i ) Q ( s i ) + Q ^ ( s i ) Q ^ ( s i ) w i T R i , i w i
Here, define H ¯ ( s i , P i , w i ) = H ( s i , P i , w i ) Q ( s i ) + Q ^ ( s i ) , then (15) is
V ˙ i ( s i ) = H ¯ ( s i , P i , w i ) Q ^ ( s i ) w i T R i , i w i
Since the system lacks a dynamical model, the system data are used to construct the approximated functions. Without loss of generality, we take the ith generation as an example, the approximated functions V ^ i ( s i ) and H ^ ( s i , P i , w i ) are given by
V ^ i ( s i ) = j = 1 M W ^ j ϕ j ( s i )
and
H ^ ( s i , P i [ n ] , w i [ n ] ) = j = 1 M 0 η ^ j φ j ( s i ) + j = 1 M 1 γ ^ j ψ j ( s i ) W i + w i T R i , i w i
where ϕ j ( s i ) , φ j ( s i ) and ψ j ( s i ) are linearly independent basis functions and W ^ j , η ^ j and γ ^ j are weight matrices. The differential equations are used to update the weight matrices.
d d s W ^ = 0 t f Φ Φ T d t 0 t f Φ H ^ ( s i , P i [ n ] , w ^ i [ n ] ) d t
where w ^ i [ n ] = 1 2 R i , i 1 j = 1 M 1 γ ^ j ψ j ( s i ) T and Φ = [ ϕ 1 ϕ 2 ϕ M ] T . Over the procedure, an essentially bounded input such as exploration noise is used to update the weights during a time interval. The iterative process from (17)–(19) are operated until an admissible control is gained. Based on the admissible control, the system (1) is rewritten as
s ˙ i = f i ( s i ) + g i ( s i ) w i [ n ] + g i ( s i ) ( w i w i [ n ] )
Then, along the solutions  (20) based on (13) and (14), it has
P ˙ i [ n ] ( s i ) = P i [ n ] T ( f i + g i w i [ n ] ) + P i [ n ] T ( g i ( s i ) ( w i w i [ n ] ) ) = Q ( s i ) w i [ n ] T R i , i w i [ n ] 2 w i [ n + 1 ] T R i , i ( w i w i [ n ] )
Over any time interval [ t k , t k + 1 ] , we integrate both sides of (21) and it has
P i [ n ] ( s i ( t k ) ) P i [ n ] ( s i ( t k 1 ) ) = t k 1 t k Q ( s i ) w i [ n ] T R i , i w i [ n ] 2 w i [ n + 1 ] T R i , i ( w i w i [ n ] ) d t
and
w ^ i [ n ] = 1 2 R i , i 1 j = 1 M 1 γ ^ j ψ ^ j ( s i ) T
From the expression of the above formula, it can be seen that the hybrid iteration scheme in terms of ADP is based on data and does not require accurate parameters of the microgrid model to ensure that the microgrid system reaches the Nash equilibrium situation.
Merge (22) with (23) and obtain
j = 1 M w ^ j [ n ] ( ϕ j ( s i ( t k ) ϕ j ( s i ( t k 1 ) ) = t k 1 t k ( Q ( s i ) w i [ n ] T R i , i w i [ n ] ) d t t k 1 t k 2 j = 1 M 1 γ ^ j ψ ^ j ( s i ) T R i , i ( w i w i [ n ] ) d t + e i , k [ n ]
where e i , k [ n ] is the error generated in the approximation process.
It can be seen that w ^ j [ n ] and γ ^ j are obtained from (24) in a least squares sense, which is making the j = 1 l e i , k 2 minimal.
For the microgrids with N-distributed generations, voltage recovery control is very important. In order to maintain the stability of the power system, it is necessary to adopt appropriate control algorithms to ensure that the voltage reaches the best situation. The hybrid iteration algorithm based on ADP proposed in this paper is an efficient learning control strategy for voltage recovery. It gradually adjusts the power output of the microgrid in an iterative manner to achieve optimal voltage recovery. Next, the learning process of the algorithm is demonstrated intuitively through Algorithm 1.
Algorithm 1 The hybrid iteration algorithm for microgrids with N-distributed generations
Initialization:
Select an initial system state s i ( 0 ) ;
Select a positive semidefinite P ˜ i [ 0 ] C ( R n ) ;
Select an iteration precision ε e > 0 ;
Main loop:
1:
while  | | w i n * w i * | | > ε e or | | P i n * P i * | | > ε e  do
2:
    Update the control policy in Equation (23)
3:
    Update the cost function in Equation (17)
4:
end while
5:
return  w i * and P i *
At the beginning, the hybrid iteration algorithm is initialized and the relevant parameters are set. The iterative process is then entered and in each iteration, the algorithm calculates the power output scheme of each microgrid according to the current parameters and the real-time operating state of the microgrid. These schemes are improved by the proposed optimization algorithm to ensure the effect of voltage recovery. As the number of iterations increases, algorithm 1 will continuously adjust the power output scheme of the microgrid to achieve voltage recovery. At the same time, algorithm 1 dynamically adjusts parameters and strategies according to the real-time operating state of the microgrid and changes in the external environment. When the algorithm meets the convergence condition, the final voltage recovery scheme is output and applied to the microgrid system to achieve the optimal voltage recovery situation.

4. Convergence of the Hybrid Iteration

In this section, the convergence of (9)–(14) is analyzed first. Then, we rigorously prove that the property of hybrid iteration with no need for the information with respect to the system physics.
Theorem 1.
For the state-space model (1), the value function P i [ n ] and the control policy w i [ n + 1 ] are given as in (13) and (14), then P i [ n ] is convergent to P i * at a quadratic convergence rate and w i [ n ] is convergent to w i * .
Proof. 
In [23] and [30], the proof of s u p s i | | P i [ n ] P i * | | E and s u p s i | | w i [ n ] w i * | | E has been given as i . Note that the conditions of (12) are sufficient to make the following two inequations hold.
P ˜ i [ n ] > 0
and
P i [ n 1 ] T ( f i + g i w i [ n ] ) u i [ n ] T R i , i u i [ n ] Q i < 0
Therefore, n e , such that an admissible control input law w i [ n e ] is obtained from (9)–(12) with respect to the microgrids with an N-distributed generation system (1). Let the system (1) be driven by the control input w i [ n e ] , then, according to (3), integrate (26) with respect to time and you can obtain
P i [ n 1 ] ( s i ) J ( s i , w i [ n e ] )
That means w i [ n e ] is an admissible control. Then, based on [31], it has { w i [ n ] } n = n e converge point-wise to w i * , as n , and { P i [ n ] } n = n e converges on P i * , as n .
Furthermore, according to (13) and (14), the above formula has
( P i [ n + 1 ] P i [ n ] ) T ( f i + g i ϑ i [ n ] ) + ( P i [ n ] ) T ( f i + g i ϑ i [ n ] ) + r i ( s i , ϑ i ) = 0
where ϑ i = arg inf w i { P i [ n ] T ( f i + g i w i ) + r i ( s i , w i ) } . It can be seen that (28) is a Newton–Raphson method and the target is to obtain P i from the nonlinear equation inf w i { P i [ n ] T ( f i + g i w i ) + r i ( s i , w i ) } . This explains that the P i [ n ] converges in a quadratic rate. This completes the proof. □
Theorem 2.
For the state-space model (1), ε e > 0 , from (17)–(19), there exist N * , M 0 * and M 1 * , if N > N * , M 0 > M 0 * and M 1 > M 1 * , then the control policy obtained by (23) satisfies | | w i n * w i * | | ε e and the cost function showed in (17) satisfies | | P i n * P i * | | ε e .
Proof. 
It has been proved in [23] that one can select a large t f which could make (19) have the uniqueness of the solution. Since w ^ i [ n e ] is an admissible control law, and on the basis of [31], the optimal control policy and the corresponding value function can be obtained approximately as n, M 0 and M 1 going to infinity. □
The non-zero-sum hybrid iteration mode devised in this paper, which is independent of the system model, does not need the system dynamics parameters at all and uses the collected data for training and learning to describe the optimal behavior trajectory under the interaction between individuals. Based on the rigorous analysis of the two theorems, it can be concluded that the control strategy attained through the model-free hybrid iteration scheme is convergent and can make the microgrid system stable.

5. Simulation Results

In this section, the microgrid system with two distributed generations is given to show the effectiveness of the proposed control method. The dynamics of the system are given as [32]
f i ( s i ) = cos ( s i , 1 ) s i , 2   0.8 sin ( s i , 1 )
and
g i ( s i ) =   0 cos ( s i , 2 )
In the simulation experiment, the initial states of the above system are given as s 1 ( 0 ) = [ 0.6 , 1.1 ] T and s 2 ( 0 ) = [ 1 , 1 ] T . In the networks, the activation functions are selected as ϕ j = φ j = ψ j = [ s i , 1 2 , s i , 1 s i , 2 , s i , 2 2 ] T . To indicate the effectiveness and feasibility of the presented hybrid iteration method, the optimal control protocols obtained by the value iteration and policy iteration are also considered. Then, the number costed by the learning iterations and the average CPU time are analyzed and summarized for the hybrid iteration as well as for the value iteration and policy iteration as in Table 1.
According to the results of Table 1, it can be seen that hybrid iteration spends less CPU time and iterations to obtain the same simulation result. Therefore, hybrid iteration is a more powerful tool, it uses less numbers for learning iterations required for convergence and costs less average CPU time until convergence. Furthermore, the previous information of the admissible control law is dispensable to initiate hybrid iteration.
The state trajectories of each generation are given in Figure 1 and Figure 2. The system state described in Figure 1 mainly represents the output voltage value of the microgrid system, and the stability of the output voltage is directly related to the normal operation of each device in the microgrid system and the user’s power consumption experience. The system state described in Figure 2 is the derivative of the amplitude, reflecting the rate of change of the system state, which is of great significance for the analysis of the dynamic performance and stability of the system. It can be seen that under the action of the algorithm designed in this paper, the system state converges to zero at a faster speed and finally reaches a steady situation. The results also show that the mathematical model established in this paper is very effective for the microgrid system. Based on the control strategy achieved through hybrid iteration, the model can guarantee the stability and realize the reliability of the microgrid system with relatively low computational costs.
The voltage recovery control protocol input trajectories by hybrid iteration are displayed in Figure 3. The designed controller can generate a continuous control input to the microgrid system, avoid chattering in the system state and make the system run stably. It is worth noting that the value function obtained by the convergent optimal control strategy applied to the microgrid system is also optimal. Combining Figure 1, Figure 2 and Figure 3, it can be found that the proposed method saves a lot of learning iterations required for convergence.
Figure 4 and Figure 5 depict the value function surfaces according to the hybrid iteration-based control law designed by this paper. These surfaces not only reflect the dynamic characteristics of the control law, but also show the evolution of the performance index function during the control process.The performance index function is affected by the punishment or reward generated by the controlled object in different stages and updates the parameters based on the principle of optimality. The critic network guides the action network to approximate the optimal control strategy; in other words, the approximation of the control law is carried out on the basis of the estimation of the performance index function, so the dynamic change of the value function is very important. It can be intuitively seen from these two 3D graphs that both sets of value functions are monotone and non-increasing, which means that after the finite times of hybrid iteration and strategy update designed in this paper, the value function gradually converges to the optimal.
The data statistics and simulation results in this section show that the ADP algorithm based on hybrid iteration designed in this paper can make the microgrid system reach the control target with fewer iterations and has the advantages of fast computing speed and low implementation cost. In general, the proposed optimal voltage recovery learning scheme can be applied to microgrid systems and the control effect is satisfactory.

6. Conclusions

In view of the complexity of the actual microgrid system structure and the sensitivity to external environmental interference, the uncertainty contained in it is often difficult to predict. This paper solves the optimal control problem of the microgrids with N-distributed generations system with unknown dynamics by means of a non-zero-sum differential game and a novel optimal control law has been put forward for dynamic optimization and adaptive regulation of microgrid systems by introducing an adaptive hybrid iteration algorithm. It is worth noting that the control strategy in this paper is not based on the unknown physical characteristics of the system, but is obtained in real time according to the system state and input information data. This makes the control strategy more targeted and practical, and it can be dynamically adjusted according to the actual operation. In the simulation result, it can be seen that the hybrid iteration algorithm has a much faster convergence process to the optimal solution than value iteration. Furthermore, it requires tremendously less consumption of time of CPU and less iterations number in the course of learning. In the future, we will further optimize the control strategy and improve the convergence speed and computational efficiency of the algorithm in order to solve more uncertainty problems that may be encountered in the actual operation of the microgrid system.

Author Contributions

Conceptualization, L.L.; methodology, R.S.; software, S.D.; validation, L.L., R.S. and S.D.; writing—original draft preparation, R.S.; writing—review and editing, L.L.; visualization, S.D.; supervision, L.L.; funding acquisition, R.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation grant number 62273036.

Data Availability Statement

Data is contained within the article.

Conflicts of Interest

Author Shuqing Dong was employed by the company China Datang Group Science and Technology Research Institute Co., Ltd. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

References

  1. Mu, C.; Zhang, Y.; Jia, H.; He, H. Energy-Storage-Based Intelligent Frequency Control of Microgrid with Stochastic Model Uncertainties. IEEE Trans. Smart Grid 2020, 11, 1748–1758. [Google Scholar] [CrossRef]
  2. Massenio, P.R.; Naso, D.; Lewis, F.L.; Davoudi, A. Assistive Power Buffer Control via Adaptive Dynamic Programming. IEEE Trans. Energy Convers. 2020, 35, 1534–1546. [Google Scholar] [CrossRef]
  3. Zhang, B.; Dou, C.; Yue, D.; Zhang, Z.; Zhang, T. Hierarchical Control Strategy for Networked DC Microgrid Based on Adaptive Dynamic Program and Event-Triggered Consensus Algorithm Considering Economy and Actuator Fault. J. Frankl. Inst. 2020, 357, 8631–8656. [Google Scholar] [CrossRef]
  4. Yin, L.; Yu, T.; Yang, B.; Zang, X. Adaptive Deep Dynamic Programming for Integrated Frequency Control of Multi-Area Multi-Microgrid Systems. Neurocomputing 2019, 344, 49–60. [Google Scholar] [CrossRef]
  5. Hu, J.; Sun, Q.; Wang, R.; Wang, Y. An Improved Privacy-Preserving Consensus Strategy for AC Microgrids Based on Output Mask Approach and Node Decomposition Mechanism. IEEE Trans. Autom. Sci. Eng. 2024, 21, 642–651. [Google Scholar] [CrossRef]
  6. Wang, R.; Li, J.; Sun, Q.; Wang, P. Current Edge-Control Strategy for Multiple Energy Routers Based on Cyber-Energy Dual Modulations. IEEE Trans. Ind. Electron. 2024, 71, 4079–4088. [Google Scholar] [CrossRef]
  7. Hirase, Y.; Abe, K.; Sugimoto, K.; Sakimoto, K.; Bevrani, H.; Ise, T. A Novel Control Approach For Virtual Synchronous Generators To Suppress Frequency And Voltage Fluctuations In Microgrids. Appl. Energy 2018, 210, 699–710. [Google Scholar] [CrossRef]
  8. Ma, D.; Cao, X.; Sun, C.; Wang, R.; Sun, Q.; Xie, X.; Peng, W. Dual-Predictive Control With Adaptive Error Correction Strategy For AC Microgrids. IEEE Trans. Power Deliv. 2021. Early Access. [Google Scholar] [CrossRef]
  9. Mehrizi-Sani, A.; Iravani, R. Online Setpoint Adjustment For Trajectory Shaping In Microgrid Applications. IEEE Trans. Power Syst. 2012, 27, 216–223. [Google Scholar] [CrossRef]
  10. Huang, B.; Zhao, T.; Yue, M.; Wang, J. Bi-Level Adaptive Storage Expansion Strategy for Microgrids Using Deep Reinforcement Learning. IEEE Trans. Smart Grid 2024, 15, 1362–1375. [Google Scholar] [CrossRef]
  11. Lee, S.; Seon, J.; Sun, Y.G.; Kim, S.H.; Kyeong, C.; Kim, D.I.; Kim, J.Y. Novel Architecture of Energy Management Systems Based on Deep Reinforcement Learning in Microgrid. IEEE Trans. Smart Grid 2024, 15, 1646–1658. [Google Scholar] [CrossRef]
  12. Shuai, Z.; Sun, Y.; Shen, Z.J.; Tian, W.; Tu, C.; Li, Y.; Yin, X. Microgrid stability: Classification and a review. Renew. Sustain. Energy Rev. 2016, 58, 167–179. [Google Scholar] [CrossRef]
  13. Joung, K.; Kim, T.; Park, J. Decoupled Frequency And Voltage Control For Stand-Alone Microgrid With High Renewable Penetration. IEEE Trans. Ind. Appl. 2019, 55, 122–133. [Google Scholar] [CrossRef]
  14. Yu, Y.; Liu, G.; Huang, Y.; Guerrero, J.M. Coordinated Predictive Secondary Control for DC Microgrids Based on High-Order Fully Actuated System Approaches. IEEE Trans. Smart Grid 2023, 15, 19–33. [Google Scholar] [CrossRef]
  15. Naderi, E.; Asrari, A.; Ramos, B. Moving Target Defense Strategy to Protect a PV/Wind Lab-Scale Microgrid Against False Data Injection Cyberattacks: Experimental Validation. In Proceedings of the 2023 IEEE Power & Energy Society General Meeting (PESGM), Orlando, FL, USA, 16–20 July 2023; pp. 1–5. [Google Scholar]
  16. Taghizadeh, S.; Karimi-Ghartemani, M.; Hossain, M.; Lu, J. A Fast and Robust DC-Bus Voltage Control Method for Single-Phase Voltage-Source DC/AC Converters. IEEE Trans. Smart Grid 2019, 34, 9202–9212. [Google Scholar] [CrossRef]
  17. Wei, Q.; Liu, D.; Lewis, F.L.; Liu, Y.; Zhang, J. Mixed Iterative Adaptive Dynamic Programming for Optimal Battery Energy Control in Smart Residential Microgrids. IEEE Trans. Ind. Electron. 2017, 64, 4110–4120. [Google Scholar] [CrossRef]
  18. Zhang, H.; Hu, X.; Ma, D.; Wang, R.; Xie, X. Insufficient Data Generative Model for Pipeline Network Leak Detection Using Generative Adversarial Networks. IEEE Trans. Cybern. 2022, 52, 7107–7120. [Google Scholar] [CrossRef]
  19. Wei, Q.; Liao, Z.; Shi, G. Generalized Actor-Critic Learning Optimal Control in Smart Home Energy Management. IEEE Trans. Onindustrial Inform. 2021, 17, 6614–6623. [Google Scholar] [CrossRef]
  20. Chen, L.; Li, Y.; Huang, M.; Hui, X.; Gu, S. Robust Dynamic State Estimator of Integrated Energy Systems Based on Natural Gas Partial Differential Equations. IEEE Trans. Ind. Appl. 2022, 58, 3303–3312. [Google Scholar] [CrossRef]
  21. Dong, W.; Zhang, L.; Zhang, D.; Cui, Q. Hierarchical Multi-objective Planning for Integrated Energy Systems in Smart Parks Considering Operational Characteristics. CSEE J. Power Energy Syst. 2022, 8, 1760–1771. [Google Scholar]
  22. Wang, S.; Zhai, J.; Hui, H.; Ding, Y.; Song, Y. Operational Reliability of Integrated Energy Systems Considering Gas Flow Dynamics and Demand-Side Flexibilities. IEEE Trans. Ind. Inform. 2023, 20, 1360–1373. [Google Scholar] [CrossRef]
  23. Qasem, O.; Gao, W.; Vamvoudakis, K.G. Adaptive Optimal Control Of Continuous-Time Nonlinear Affine Systems Via Hybrid Iteration. Automatica 2023, 157, 111261. [Google Scholar] [CrossRef]
  24. Bertsekas, D.P. Value and Policy Iterations in Optimal Control and Adaptive Dynamic Programming. IEEE Trans. Neural Netw. Learn. Syst. 2017, 28, 500–509. [Google Scholar] [CrossRef] [PubMed]
  25. Bian, T.; Jiang, Z.-P. Value Iteration And Adaptive Dynamic Programming For Data-Driven Adaptive Optimal Control Design. Automatica 2016, 71, 348–360. [Google Scholar] [CrossRef]
  26. Qasem, O.; Davari, M.; Gao, W.; Kirk, D.R.; Chai, T. Hybrid Iteration ADP Algorithm to Solve Cooperative, Optimal Output Regulation Problem for Continuous-Time, Linear, Multiagent Systems: Theory and Application in Islanded Modern Microgrids With IBRs. IEEE Trans. Ind. Electron. 2024, 71, 834–845. [Google Scholar] [CrossRef]
  27. Wei, Q.; Zhu, L.; Song, R.; Zhang, P.; Liu, D.; Xiao, J. Model-Free Adaptive Optimal Control for Unknown Nonlinear Multiplayer Nonzero-Sum Game. IEEE Trans. Neural Netw. Learn. Syst. 2022, 33, 879–892. [Google Scholar] [CrossRef] [PubMed]
  28. Tong, X.; Ma, D.; Wang, R.; Xie, X.; Zhang, H. Dynamic Event-Triggered-Based Integral Reinforcement Learning Algorithm for Frequency Control of Microgrid With Stochastic Uncertainty. IEEE Trans. Consum. Electron. 2023, 69, 321–330. [Google Scholar] [CrossRef]
  29. Liu, G.; Zou, L.; Sun, Q.; Wang, R.; Sui, Z. Multiagent-Based Consensus Optimal Control for Microgrid With External Disturbances via Zero-Sum Game Strategy. IEEE Trans. Control Netw. Syst. 2023, 10, 659–670. [Google Scholar] [CrossRef]
  30. Bian, T.; Jiang, Z. Reinforcement Learning and Adaptive Optimal Control for Continuous-Time Nonlinear Systems: A Value Iteration Approach. IEEE Trans. Neural Netw. Learn. Syst. 2022, 33, 2781–2790. [Google Scholar] [CrossRef]
  31. Jiang, Y.; Jiang, Z. Robust Adaptive Dynamic Programming And Feedback Stabilization Of Nonlinear Systems. IEEE Trans. Neural Netw. Learn. Syst. 2014, 25, 882–893. [Google Scholar] [CrossRef]
  32. Liu, G.; Sun, Q.; Wang, R.; Hu, X. Nonzero-Sum Game-Based Voltage Recovery Consensus Optimal Control for Nonlinear Microgrids System. IEEE Trans. Neural Netw. Learn. Syst. 2023, 34, 8617–8629. [Google Scholar] [CrossRef] [PubMed]
Figure 1. The state s 1 .
Figure 1. The state s 1 .
Electronics 13 02093 g001
Figure 2. The state s 2 .
Figure 2. The state s 2 .
Electronics 13 02093 g002
Figure 3. The control input w.
Figure 3. The control input w.
Electronics 13 02093 g003
Figure 4. The optimal value function V 1 * .
Figure 4. The optimal value function V 1 * .
Electronics 13 02093 g004
Figure 5. The optimal value function V 2 * .
Figure 5. The optimal value function V 2 * .
Electronics 13 02093 g005
Table 1. Comparison results of hybrid iteration, value iteration and policy iteration.
Table 1. Comparison results of hybrid iteration, value iteration and policy iteration.
Average CPU-Time Elapsed for ConvergenceNumber of Learning Iterations
Hybrid-iteration0.0014213%
Value-iteration0.00815390%
Policy-iteration0.0022114%
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Li, L.; Song, R.; Dong, S. Optimal Voltage Recovery Learning Control for Microgrids with N-Distributed Generations via Hybrid Iteration Algorithm. Electronics 2024, 13, 2093. https://doi.org/10.3390/electronics13112093

AMA Style

Li L, Song R, Dong S. Optimal Voltage Recovery Learning Control for Microgrids with N-Distributed Generations via Hybrid Iteration Algorithm. Electronics. 2024; 13(11):2093. https://doi.org/10.3390/electronics13112093

Chicago/Turabian Style

Li, Lüeshi, Ruizhuo Song, and Shuqing Dong. 2024. "Optimal Voltage Recovery Learning Control for Microgrids with N-Distributed Generations via Hybrid Iteration Algorithm" Electronics 13, no. 11: 2093. https://doi.org/10.3390/electronics13112093

APA Style

Li, L., Song, R., & Dong, S. (2024). Optimal Voltage Recovery Learning Control for Microgrids with N-Distributed Generations via Hybrid Iteration Algorithm. Electronics, 13(11), 2093. https://doi.org/10.3390/electronics13112093

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop