Keywords

13.1 Introduction

Worldwide, there is a rapid growth of renewable power generations, especially wind and solar PV, which have made inroads into the existing electricity grids. According to the International Energy Agency Photovoltaic Power Systems Programme (IEA-PVPS), this growth rate in installed capacity is ranging from 35% to 85% in Organisation for Economic Co-operation and Development (OECD) countries. The IEA-PVPS has shown that 40 GW of solar capacity has already been installed around the world. The energy from installed solar PV would increase to 600 GW in 2035 due to decrease in expenses and government aids. In 2035, the expected solar capacity would reach 113 GW in China, 85 GW in India, and 54 GW in Japan [1].

Furthermore, IEA-PVPS has analyzed that hybrid PV system configuration such as PV and BESS are economical and clean [2]. The hybrid PV system is basically a microgrid in which DC link can be shared between PV system and BESS [3]. During recent years, installed price of solar PV system has decreased due to decrement in the hardware cost. Expected financial returns and concerns about operations and maintenance are the major other determining factors in the adoption of solar PV system [4]. The storage systems paired with solar plants can overcome the risks, faced by the solar power producer, due to uncertain production of solar plant [5]. The variability and uncertainty feature in solar PV power and wind power generation must be analyzed in order to develop a mechanism for evaluating both the economic and reliability impacts of solar PV and wind power variability and uncertainty at multiple scales [6].

Possibilities of uncertainty in forecasting may be due to different factors. In various literatures, different models are developed for forecasting, but these methods are based on a number of assumptions of the future. Forecasting may not be accurate due to collection of bad input data found from either measurement or estimation. It is impossible to perfectly develop the relationships among all possible factors and output of a system. Reliability and security will be the new challenges in the development of a smart grid with the penetration of more and more renewable sources which are uncertain in nature in terms of power generation. In the presence of uncertainties, the grid can be made more secure and reliable by deploying energy storage devices as new technology in the system. With both grid-connected and islanded operations, intelligent energy management schemes are developed while deciding the capacity and charging rate of storage devices, residential load variations, and distribution network electricity price [7, 8].

A solar photovoltaic (PV) unit consists of a number of solar cells. In solar power generation of each cell, modeling has been done for two parts such as the solar irradiation function and the power generation function in which solar irradiation is linked to the power output of the solar PV generator. In different literatures, it is found that, generally, the beta PDF is being used in the modeling of the random behavior of the solar irradiation for each day. The parameters beta PDF can be inferred from the estimates of mean and variance values of historical irradiance data [9,10,11]. Based on the model of irradiation distribution, the output of a solar generator is decided by the function of power generation [12]. Similarly, in wind turbine generation modeling, two parts are considered as wind speed modeling and the turbine generation function. For modeling of wind speed randomness, the Weibull distribution is generally used. Forecast values and associated uncertainties of wind power are important to the utilities. These information help in optimal scheduling of energy storage and distributed generations [13]. At substations, load patterns are uncertain as compared to that at large system. Several qualitative and quantitative variables influence the electrical load demand. Some of these variables are random in nature, and, hence, the load demand is uncertain. The shape of curve representing the typical load pattern can be expressed in a group of deterministic variables which show the qualitative characteristic of the load pattern. Some groups of load patterns may be based on weekdays, weekends, or holidays. Others may consider the seasons such as autumn, winter, spring, and summer [14, 15]. A new empirical method is developed to model the prediction uncertainty of the solar irradiance forecast on numerical weather prediction. The predicted and measured solar irradiances are transformed into Gaussian random variables with past observed data, and a multivariate normal joint distribution model is estimated using this data [16]. A periodic optimization method is developed that determines an optimum periodic solution for any load profile over a 24-h period. The cyclic solution for the battery state of charge is represented by Fourier coefficients. The optimization process is embedded in a receding horizon battery control system [17].

In smart grid infrastructure, the distributed multi-step optimal scheduling is introduced for energy storage devices and distributed generation. This algorithm is based on the local communications with neighbors [18]. In order to reduce generation cost, in microgrid, the distributed optimal strategy is proposed for the resource management [19]. The computationally tractable distributed optimal control strategy, which includes AC optimal power flow, for batteries is proposed in a microgrid [20]. Multi-agent-based optimal distributed charging rate scheme is proposed for numerous plug-in electric vehicle (PEV). In this scheme, an agent for a PEV decides optimal charging rate based on remaining charging time and state of charge along with other battery parameters [21]. In smart grid, an adjustment cost is considered for dynamic adjustment of distributed generations and loads. In distributed control algorithm, this cost is minimized to achieve generation-demand balance [22]. A multi-agent-based dynamic optimal power flow is suggested for microgrid with energy storage devices and distributed generations [23].

13.2 Multi-agent System

A multi-agent system is a group of interacting agents that acts in a concurrent way existing in the distributed environment. They have cooperation as well as competition among themselves, and they are conjunct in some common infrastructure. In MAS local goals of individual agents are more important to be accomplished as compared to the overall system goal [24,25,26,27,28].

13.2.1 MAS for Power System: An Overview

The penetration of various distributed generations into the electric network and liberalization of electricity markets with new business models pose the new challenges to the power industries such as enhancement of complexity in distribution network, problems in power system management, disturbance of power system protection, and frequency stability [26, 29]. Present power system equipped with old legacy SCADA system does not suffice to cater aforementioned challenges in highly decentralized system [26, 30]. Market-based MAS is proposed in [31] for reconfiguration of radial shipboard power system, developed with Java Agent Development Framework (JADE) which conforms to FIPA standards for intelligent agents. MASCEM, a multi-agent simulator system, is a framework which deals with new rules, new behavior, and also new actors involved in various electricity markets within liberalized and competitive environment [32]. ABMS, agent-based modeling and simulation system, based on traditional game theory, is able to perceive and analyze the complexities of power market (e.g., repeated auctions, fluctuating supply and demand, non-storability of electricity, etc.) and interactions among all entities involved [33]. In multi-agent approach to power system, each bus agent (BAG), which possesses local information, tends to restore load after fault occurrence, directly connected to its associated bus interacting with other numerous BAGs, and a single facilitator agent (FAG) acts as a manager for the negotiation process [34].

Multi-agent system is developed for monitoring of transformer condition [35] and industrial gas turbine start-up sequence [36]. An agent-based automation system is developed for substation, while the information is gathered by control/monitoring agents over Ethernet network [37]. A multi-agent system is also capable in efficient operation of microgrids with minimum operation cost [24, 38]. PEDA (Protection Engineering Diagnostic Agents), a multi-agent system, which complies FIPA standards, integrates legacy intelligent systems SCADA and digital fault recorder data and can interpret intelligently and manage data online [30, 39]. As virtual power plant (VPP) is scattered in a decentralized system, multi-agent system facilitates virtual power point to take decisions at local level so that the main goal is achieved [24, 25].

13.2.2 Preliminaries

Let V = {1,…,n} be a set of nodes and E ⊆ V × V be a set of edges of a weighted digraph (or directed graph) G = {V,E,A}. A = [aij] be the adjacency matrix with non-negative adjacency elements aij and aii = 0 for i = 1, 2, …, n. The edij is the directed edge, from node i to node j, of digraph G. The adjacency elements of an edge edji are positive, i.e., aij > 0 if and only if edji ∈ E. A digraph is undirected if aij = aji for ∀i,j ∈ {1,2,…,n}.

A group of agents represents the nodes in a digraph G and unidirectional information exchange links among agents correspond to edges of the graph. An interaction topology among the battery agents shows the communication pattern at some particular time and is designed by using the digraph G. In adjacency matrix A, an element aij is greater than zero, if and only if node i gets information from node j. A directed tree is defined as a directed graph in which every node except the root has exactly one parent. A directed (rooted) spanning tree of the digraph G is a subgraph such that this subgraph is a directed tree and consists of all the nodes of G. A spanning tree of G consists of n nodes and n − 1 edges and a path exists from root node to every other node. Thus, root node can send information to every other node.

The n × n Laplacian matrix Ln = (lij), associated with the adjacency matrix A of a digraph G, is defined as given below:

$$ {l}_{ij}=-{a}_{ij},i\ne j\kern1em \mathrm{and}\kern1em {l}_{ii}={\sum}_{j=1,j\ne i}^n{a}_{ij} $$

According to the definition of Ln, it is ensured that in any row, \( {\sum}_{j=1}^n{l}_{ij}=0 \), and it is the asymmetric matrix of a digraph. There is an aim to control all the nodes such that information state of all agents of a group converges to one single state [40,41,42].

In the uncertain power distribution system, the objectives are to develop a robust optimal distributed control protocol such that the battery agents of respective BESSs should communicate to achieve the consensus for abovementioned goals during charging and discharging cycles and, furthermore, find global stability in the overall dynamic system. The control objective is to cater the imbalance in active power and uncertainty in the power distribution system with different BESSs and transforms this imbalance into the design of distributed control scheme. Two leader-follower pinning control schemes are designed for distributed control of the BESS to achieve their fair participations. These battery agents decide and control the power exchange to and from the respective BESSs. These agents exist at the BESS installation. These agents can receive information from the virtual leader to be pinned and to start distributed consensus control while communicating with neighboring battery agents, locally.

13.3 Robust Optimal Control

Briefly, the basics of robust optimal control are given as follows. Let the linear uncertain system be

$$ x\left(k+1\right)= Ax(k)+ Bu(k)+ Ew(k) $$
(13.1)

where x(k) ∈ Rn and u(k) ∈ Rm are the state and input vectors, respectively. The sets X and U are polytopes, and w(k) is the additive uncertainty present in the system. The Eq. (13.1) may be subject to constraints

$$ x(k)\in X,\kern1em u(k)\in U $$
(13.2)

Now define the cost function for the given uncertainty w ∈ W and the u(k) ∈ U.

$$ {J}_w(k)=q\left(x(k),u(k)\right) $$
(13.3)
$$ q\left(x(k),u(k)\right)={x}^T Qx+{u}^T Ru $$
(13.4)

The cost Jw(k) is evaluated for the given uncertainty w(k) and input u(k) and with Eq. (13.1).

In case the probability density function is considered for the uncertainty w(k) then

$$ \mathrm{Probability}\ \left[w(k)\in W\right]=1=\underset{w\in W}{\int }f(w) dw $$
(13.5)

The expected value of a function g(w) of the uncertainty is defined as

$$ {E}_w\left[g(w)\right]={\int}_{w\in W}g(w)f(w) dw $$
(13.6)

The expected cost with admissible uncertainty is given as

$$ {J}_w={E}_w\left[{x}^T Qx+{u}^T Ru\right] $$
(13.7)
$$ \mathrm{where}\ \left\{\begin{array}{l}x\left(k+1\right)= Ax(k)+ Bu(k)+ Ew(k)\\ {}x(k)\in X,\kern1em u(k)\in U\end{array}\right. $$
(13.8)

Now, the worst-case cost is defined as given below:

$$ {J}_w={\max}_w\left[{x}^T Qx+{u}^T Ru\right] $$
(13.9)
$$ \mathrm{where}\ \left\{\begin{array}{l}x\left(k+1\right)= Ax(k)+ Bu(k)+ Ew(k)\\ {}x(k)\in X,\kern1em u(k)\in U\end{array}\right. $$
(13.10)

In all cases, the robust optimal control is given below while minimizing the cost function:

$$ {J}_w^{\ast }={\min}_u{J}_w $$
(13.11)
$$ \mathrm{where}\ \left\{\begin{array}{l}x\left(k+1\right)= Ax(k)+ Bu(k)+ Ew(k)\\ {}x(k)\in X,\kern1em u(k)\in U\end{array}\right. $$
(13.12)

13.4 BES System Modeling

The different scattered battery energy storage (BES) systems are considered to be connected to an AC system using bidirectional AC/DC converters. In this power distribution system, the BES systems are assumed to achieve reliable operation, in real time, at the distribution substation [15]. As the demand changes, the BES systems come into action. During off-peak hours, these systems can be charged, and in peak hours, these can be discharged. Therefore, the BES system can operate as a load during charging and as generator during discharging. Controlling and managing scattered BES systems with different ratings is a challenging task. The charging and discharging of a BES unit can be expressed as follows:

$$ {E}_{es}\left(k+1\right)={E}_{es}(k)-\frac{P_{es}(k)}{\eta_d}\Delta t,\mathrm{for}\ {P}_{es}>0 $$
(13.13)
$$ {E}_{es}\left(k+1\right)={E}_{es}(k)-{\eta}_c{P}_{es}(k)\Delta t,\mathrm{for}\ {P}_{es}<0 $$
(13.14)

where Ees is the stored energy in BES system, Pes is the power to be exchanged by BES system during charging and discharging, Δt is the time duration of k. ηd, and ηc are the discharging and charging efficiencies of BES system, respectively. The upper and lower limits of stored energy are as given below:

$$ {E}_{es}^{\mathrm{min}}<{E}_{es}(k)<{E}_{es}^{\mathrm{max}} $$
(13.15)

where \( {E}_{es}^{\mathrm{max}} \) and \( {E}_{es}^{\mathrm{min}} \) are, respectively, the maximum and minimum bounds of the energy in the BES system.

The Eqs. (13.13) and (13.14) for BES system are modified as below:

$$ \frac{E_{es}\left(k+1\right)}{E_{mm}}=\frac{E_{es}(k)}{E_{mm}}-\frac{P_{es}(k)}{E_{mm}\cdot {\eta}_d}\Delta t,\mathrm{for}\ {P}_{es}>0 $$
(13.16)
$$ \frac{E_{es}\left(k+1\right)}{E_{mm}}=\frac{E_{es}(k)}{E_{mm}}-{\eta}_c\frac{P_{es}(k)}{E_{mm}}\Delta t,\mathrm{for}\ {P}_{es}<0 $$
(13.17)

where \( {E}_{mm}={E}_{es}^{\mathrm{max}}-{E}_{es}^{\mathrm{min}} \) .

The power balance equation in an AC system at a time instant k

$$ {P}_{grid}(k)+{P}_{ren}(k)+{P}_{es}(k)={P}_{dem}(k) $$
(13.18)

where Pgrid is grid supply, Pren is the renewable power generation, Pes is power exchange by BES unit, and Pdem is the electrical demand.

The power balance equation incorporating uncertainties present in renewable power generation and electrical demand while dropping k for simplicity.

$$ {P}_{grid}+\left({P}_{ren}+\Delta {P}_{ren}\right)+\left({P}_{es}+\Delta {P}_{es}\right)=\left({P}_{dem}+\Delta {P}_{dem}\right) $$
(13.19)

where ΔPren and ΔPdem represent uncertain parts of renewable power generation and electrical demand, respectively. The ΔPes is the power exchange by BES unit to cater the uncertainties in an AC power distribution system.

On considering uncertainties in the system, the Eqs. (13.13) and (13.14) are modified as given below:

$$ {\displaystyle \begin{array}{l}\frac{E_{es}\left(k+1\right)+\Delta {E}_{es}\left(k+1\right)}{E_{mm}}=\frac{E_{es}(k)+\Delta {E}_{es}(k)}{E_{mm}}\\ {}-\frac{P_{es}(k)+\Delta {P}_{es}(k)}{E_{mm}\cdot {\eta}_d}\Delta t,\mathrm{for}\ {P}_{es}>0\end{array}} $$
(13.20)
$$ {\displaystyle \begin{array}{l}\frac{E_{es}\left(k+1\right)+\Delta {E}_{es}\left(k+1\right)}{E_{mm}}=\frac{E_{es}(k)+\Delta {E}_{es}(k)}{E_{mm}}\\ {}-{\eta}_c\frac{P_{es}(k)+\Delta {P}_{es}(k)}{E_{mm}}\Delta t,\mathrm{for}\ {P}_{es}<0\end{array}} $$
(13.21)

where ΔEes represents the uncertain part of Ees .

For expected uncertainty, the (13.20) and (13.21) are modified as

$$ {\displaystyle \begin{array}{l}\frac{E_{es}\left(k+1\right)+E\Delta {E}_{es}\left(k+1\right)}{E_{mm}}=\frac{E_{es}(k)+E\Delta {E}_{es}(k)}{E_{mm}}\\ {}-\frac{P_{es}(k)+E\Delta {P}_{es}(k)}{E_{mm}\cdot {\eta}_d}\Delta t,\mathrm{for}\ {P}_{es}>0\end{array}} $$
(13.22a)
$$ {\displaystyle \begin{array}{l}\frac{E_{es}\left(k+1\right)+E\Delta {E}_{es}\left(k+1\right)}{E_{mm}}=\frac{E_{es}(k)+E\Delta {E}_{es}(k)}{E_{mm}}\\ {}-{\eta}_c\frac{P_{es}(k)+E\Delta {P}_{es}(k)}{E_{mm}}\Delta t,\mathrm{for}\ {P}_{es}<0\end{array}} $$
(13.23a)

For worst-case uncertainty, the (13.20) and (13.21) are modified as

$$ {\displaystyle \begin{array}{l}\frac{E_{es}\left(k+1\right)+\underset{\Delta {E}_{es}\left(k+1\right)}{\max }f\left(\Delta {E}_{es}\left(k+1\right)\right)}{E_{mm}}=\frac{E_{es}(k)+\underset{\Delta {E}_{es}(k)}{\max }f\left(\Delta {E}_{es}(k)\right)}{E_{mm}}\\ {}-\frac{P_{es}(k)+\underset{\Delta {P}_{es}(k)}{\max }f\left(\Delta {P}_{es}(k)\right)}{E_{mm}\cdot {\eta}_d}\Delta t,\mathrm{for}\ {P}_{es}>0\end{array}} $$
(13.22b)
$$ {\displaystyle \begin{array}{l}\frac{E_{es}\left(k+1\right)+\underset{\Delta {E}_{es}\left(k+1\right)}{\max }f\left(\Delta {E}_{es}\left(k+1\right)\right)}{E_{mm}}=\frac{E_{es}(k)+\underset{\Delta {E}_{es}(k)}{\max }f\left(\Delta {E}_{es}(k)\right)}{E_{mm}}\\ {}-{\eta}_c\frac{P_{es}(k)+\underset{\Delta {P}_{es}(k)}{\max }f\left(\Delta {P}_{es}(k)\right)}{E_{mm}}\Delta t,\mathrm{for}\ {P}_{es}<0\end{array}} $$
(13.23b)

On consideration of many BES systems, the aforementioned equations are generalized and used for ith BES system. Hence, the simplified model of ith BES system is

$$ {\displaystyle \begin{array}{l}{x}_i\left(k+1\right)={A}_{x,i}{x}_i(k)+{B}_{x,i}{u}_i\ \mathrm{where}\ {x}_i={E}_{i, es}/{E}_{i, mm},\\ {}{u}_i={P}_{i, es},{A}_{x,i}=1,{B}_{x,i}=\Delta t/\left({E}_{i, mm}\cdot {\eta}_{i,d}\right)\ \mathrm{for}\ {P}_{i, es}>0,\\ {}{B}_{x,i}=\left({\eta}_{i,c}\cdot \Delta t\right)/{E}_{i, mm}\ \mathrm{for}\ {P}_{i, es}<0\end{array}} $$
(13.24)

The model pertaining to uncertainty

$$ {\displaystyle \begin{array}{l}{y}_i\left(k+1\right)={A}_{y,i}{y}_i(k)+{B}_{y,i}{v}_i\mathrm{where}\ {y}_i=\Delta {E}_{i, es}/{E}_{i, mm},\\ {}{v}_i=\Delta {P}_{i, es},{A}_{y,i}=1,{B}_{y,i}=\Delta t/\left({E}_{i, mm}\cdot {\eta}_{i,d}\right)\ \\ {}\mathrm{for}\ {P}_{i, es}>0,{B}_{y,i}=\left({\eta}_{i,c}\cdot \Delta t\right)/{E}_{i, mm}\mathrm{for}\ {P}_{i, es}<0\end{array}} $$
(13.25)

The abovementioned Eqs. (13.24) and (13.25) form the basis for development of the multi-agent system.

13.5 Agent-Based Robust Optimal Control Scheme

The multi-agent-based system deals with two control schemes which are optimal and incorporate uncertainties. Two leader-follower control schemes are given below.

$$ {x}_i\left(k+1\right)={A}_{x,i}{x}_i(k)+{B}_{x,i}{u}_i(k) $$
(13.26)

And

$$ {y}_i\left(k+1\right)={A}_{y,i}{y}_i(k)+{B}_{y,i}{v}_i(k) $$
(13.27)

i = 1,…,n where n is number of agents. The x0,y0 are the variables associated with leader agents. The abovementioned leader-follower schemes get consensus on following conditions:

$$ {x}_i\to {x}_0\ \mathrm{and}\ {y}_i\to {y}_0 $$
(13.28)

The linear consensus protocols are defined as given below:

$$ {u}_i(k)=\sum \limits_{j=1,j\ne i}^n{a}_{ij}\left[{x}_j(k)-{x}_i(k)\right]-{b}_i\left[{x}_i(k)-{x}_0\right] $$
(13.29)

And

$$ {v}_i(k)=\sum \limits_{j=1,j\ne i}^n{w}_{ij}\left[{y}_j(k)-{y}_i(k)\right]-{d}_i\left[{y}_i(k)-{y}_0\right] $$
(13.30)

The optimal control problem for the system (13.26)

$$ {\displaystyle \begin{array}{l}\underset{U(k)}{\min }\ {J}_x\left(U(k),X(0)\right)\kern0.5em \\ {}\mathrm{subject}\ \mathrm{to}\ (13.26)\ \mathrm{and}\ (13.28)\end{array}} $$
(13.31)

where

$$ {J}_x\left(U(k),X(0)\right)=\sum \limits_{k=0}^{\infty}\sum \limits_{i=1}^n{q}_{x,i}{\left({x}_i-{x}_0\right)}^2+{r}_{x,i}{u}^2 $$
(13.32)

Similarly, the robust optimal control problem for the system (13.26) with expected cost function

$$ {\displaystyle \begin{array}{l}\underset{V(k)}{\min }\ {EJ}_y\left(V(k),Y(0)\right)\kern0.5em \\ {}\mathrm{subject}\ \mathrm{to}\ (13.27)\ \mathrm{and}\ (13.28)\end{array}} $$
(13.33)

where

$$ {E}_{\Delta E(k)}{J}_y\left(V(k),Y(0)\right)=\sum \limits_{k=0}^{\infty}\sum \limits_{i=1}^n{q}_{y,i}{\left({y}_i-{Ey}_0\right)}^2+{r}_{y,i}{v}^2 $$
(13.34)

where qx > 0, qy > 0, rx > 0, ry > 0 and Ey0 is the expected value of y0.

Similarly, the robust optimal control problem for the system (13.26) with worst-case cost function

$$ {\displaystyle \begin{array}{l}\underset{V(k)}{\min }\ {J}_y\left(V(k),Y(0)\right)\ \mathrm{where}\ \\ {}\mathrm{subject}\ \mathrm{to}\ (13.27)\ \mathrm{and}\ (13.28)\end{array}} $$
(13.35)

where

$$ {J}_y\left(V(k),Y(0)\right)={\max}_{\Delta E(k)}\sum \limits_{k=0}^{\infty}\sum \limits_{i=1}^n{q}_{y,i}{\left({y}_i-{wy}_0\right)}^2+{r}_{y,i}{v}^2 $$
(13.36)

where qx > 0, qy > 0, rx > 0, ry > 0, and wy0 is the worst-case value of y0.

Theorem

For the joint optimal control problem, the optimal topology is star topology in which the follower i is only connected to the leader with the control gains \( {d}_{x,i}=\frac{B_{x,0}}{2}\left(\frac{q_i}{r_i}\right) \) and \( {d}_{y,i}=\frac{B_{y,0}}{2}\left(\frac{q_i}{r_i}\right) \) with the following assumptions:

Assumption 1:

Bx,1 = Bx,2 = … = Bx,n = Bx,0 and By,1 = By,2 = … = By,n = By,0

Assumption 2:

Let \( {B}_{x,0}=\frac{2}{\sqrt{3}}\sqrt{\frac{r_i}{q_i}} \) and \( {B}_{y,0}=\frac{2}{\sqrt{3}}\sqrt{\frac{r_i}{q_i}} \)

The proof of this theorem is given in appendix.

13.5.1 Generation of x0 and y0

The x0 is the desired value for all xi and this value is provided to all agents from the leader agent. The leader agent knows the expected and worst case that may be associated with yi, i = 1,…,n, and y0 is set to this expected and worst case. In consensus-based robust optimal control scheme, all yi track to this Ey0 and wy0, which are set to expected or worst-case value, respectively, as given below.

For expected value,

$$ {Ey}_0={f}_e\left(\Delta E\right) $$
(13.37)

where fe is the probability density function (pdf). Let, for any pdf,

$$ {Ey}_0={f}_e\left(\Delta E\right)={\mathrm{G}}_E{g}_E\le {p}_E $$
(13.38)

where GE and gE are two different values which satisfy (13.37), and pE is fixed constant value.

In worst case

$$ {wy}_0={\max}_{\Delta E}{y}_i,\kern1em \forall i\in \left[1,\dots, n\right] $$
(13.39)

Let, on maximizing the worst case

$$ {wy}_0={\max}_{\Delta E}{y}_i={G}_w{g}_w\le {p}_w,\kern1em \forall i\in \left[1,\dots, n\right] $$
(13.40)

Similar to (13.37), Gw and gw are two different values which satisfy (13.39), and pw is fixed constant value. The (pE,GE, gE) and (pw,Gw, gw) are identified and set to the values based on past data.

With the allowed uncertainty in the system, the Eq. (13.34) is rewritten as

$$ {E}_{\Delta E(k)}{J}_y\left(V(k),Y(0)\right)=\sum \limits_{k=0}^{\infty}\sum \limits_{i=1}^n{q}_{y,i}{\left({y}_i-{p}_E\right)}^2+{r}_{y,i}{v}^2 $$
(13.41)
$$ {E}_{\Delta E(k)}{J}_y\left(V(k),Y(0)\right)=\sum \limits_{k=0}^{\infty}\sum \limits_{i=1}^n{q}_{y,i}{\left({e}_E\right)}^2+{r}_{y,i}{v}^2 $$
(13.42)

where eE = (yi − pE).

Similarly, on maximizing the worst case in the uncertainty, the equation is modified as

$$ {J}_y\left(V(k),Y(0)\right)=\sum \limits_{k=0}^{\infty}\sum \limits_{i=1}^n{q}_{y,i}{\left({y}_i-{p}_w\right)}^2+{r}_{y,i}{v}^2 $$
(13.43)
$$ {J}_y\left(V(k),Y(0)\right)=\sum \limits_{k=0}^{\infty}\sum \limits_{i=1}^n{q}_{y,i}{\left({e}_w\right)}^2+{r}_{y,i}{v}^2 $$
(13.44)

where ew = (yi − pw).

13.6 Results and Discussions

The test microgrid is shown in the Fig. 13.1. The sizes of the battery energy storage devices are 0.2 MW/0.8MWh, 0.15 MW/0.75MWh, 0.1 MW/0.4MWh, 0.15 MW/0.45MWh, and 0.4 MW/1.6MWh with charging and discharging efficiencies ηc = ηd = 80%, and the size of solar PV system is 1MWp. The maximum and minimum allowed energy on energy storage devices are Emax1 = 0.8MWh and Emin1 = 0.35MWh, Emax2 = 0.75MWh and Emin2 = 0.40MWh, Emax3 = 0.4MWh and Emin3 = 0.1MWh, Emax4 = 0.45MWh and Emin4 = 0.1MWh, and Emax5 = 1.6MWh and Emin5 = 1.25MWh, respectively. In order to satisfy assumptions 1 and 2, the discharging efficiencies of these energy storage devices are assumed as 0.70, 0.85, 0.95, 0.82, and 0.85, and charging efficiencies are assumed as 0.86, 0.89, 0.91, 0.89, and 0.89, respectively.

Fig. 13.1
figure 1

Test microgrid

The considered load profile of electrical demand and solar PV generation profile with added uncertainty are shown in Figs. 13.2 and 13.3, respectively. The included uncertainty remains within the permissible range as per Eqs. (13.38) and (13.40). The optimal energy and power are shared based on given power generation and electrical demand as shown in Figs. 13.4, 13.5, and shared optimal uncertain energy and power are shown in 13.6, and 13.7, respectively. Assume qi = ri = 1 for i = 1,...,5 then dx,i = dy,i = 1.73.

Fig. 13.2
figure 2

Forecasted PV generation (blue) and PV generation with uncertainty (red)

Fig. 13.3
figure 3

Electrical demand

Fig. 13.4
figure 4

Energy stored shared by different BESSs

Fig. 13.5
figure 5

Power exchange shared by different BESSs

Fig. 13.6
figure 6

Uncertain energy shared by different BESSs

Fig. 13.7
figure 7

Uncertain power exchange shared by different BESSs

13.7 Conclusions

This chapter has discussed agent-based distributed robust optimal control scheme. This scheme considers two objective functions out of which second objective function pertains to the uncertainties which are present in the power distribution system integrated with renewable power generation along with energy storage devices. Distributed multi-agent system works for deciding the charging and discharging of the batteries in the presence of uncertainties. In two expected and worst cases, all the agents get consensus and be driven to the values decided by the leader agent. In this distributed robust optimal control scheme, the optimal topology for communication is the star topology as proved in the theorem.