Abstract
To reduce fossil fuel consumption, carbon dioxide emissions, and greenhouse gas emissions, countries all over the world have been gradually directing their attention toward the development and application of microgrids (MGs) that run on renewable energy sources. The MG concept has been gaining increased interest, particularly with respect to distribution systems. On the other hand MGs are equipped with new technologies such as plug-in electric vehicles (PEVs) and plug-in hybrid electric vehicles, which have become viable alternatives to traditional combustion-engine cars. In this paper the novel optimization method for efficiency maximization in smart MGs in the presence of demand response, was proposed. This method combines a hybrid shuffled frog leaping algorithm (SFLA) and intelligent water drop optimization. In this situation, the EV energy storage system (ESS) state of health (SOH) model was considered to adjust the ESS temperature set point. SFLA is a new member of intelligent algorithms and a new member in the family of memetic algorithms. For this purpose, simulation results were made in MATLAB software environment to demonstrate the effectiveness of the proposed methodology. In order to verify proposed algorithm, simulations were made along with some conventional optimization methods. The results show that the proposed optimization method, can effectively improve the performance of MG power flow, when it is compared with other methods.
Keywords
Introduction
Motivated by environmental concerns, exacerbation of energy crisis, global warming and energy efficiency, the penetration of distributed generation (DG) from renewable resources is rapidly increased as small generators units connected to distribution grids. Among various types of renewable energy sources, wind and solar energy is the most rapidly growing one due to its attractive features such as efficiency and economic merit.
The microgrid (MG) concept has been gaining more attention worldwide, particularly for the distribution system, because MG not only provides a solution to manage local generations and loads as a single grid-level entity, but also this is an effective tool to aggregate and integrate smaller renewable energy generations and connect to the utility grid at a single point of interconnection. Furthermore, it has the potential to improve overall system efficiency, power quality, and energy surety for critical loads. MG is required to have the ability to operate interconnected with the main grid or isolated (which may be intentional or un-intentional), but in both the conditions MG must operate autonomously stable [1]. Isolated MGs have limited generation capacity and introducing new loads might lead to a demand-supply balance problem, and consequently a blackout or load shedding, so power supply and consumption is a key requirement of the MG management [2]. Unfortunately, the inherent significant uncertainty of renewable power presents a great challenge to achieve this balance. In view of this, in a MG, it is highly desirable to compensate the variation of wind power by some other means. The recent popularity of plug-in electric vehicles (PEVs) and plug-in hybrid electric vehicles (PHEVs) have offered the possibility to address this issue.
PEVs are rapidly gaining widespread use thanks to the possibility they offer of reducing reliance on and cost of fuel and improving quality of life for their users, so PEVs are significantly expected to be installed in the customer side [5 –10]. In this situation, various PEVs [3] have been developed during the past years. PEV fleets include a number of batteries connected to the grid during the periods when the vehicles are parked (for a few hours at a time) and required to reach specified energy levels at specific hours of the day (e.g., at the vehicle departure time). In order to improve the charging and discharging performance of PEV batteries, super-capacitors are connected in parallel with the batteries. In this context, the grid to vehicle (G2V) [4] and vehicle to grid (V2G) technologies [5] could be usefully exploited; in fact, if the charging process of PEVs is appropriately managed, for instance by an aggregator [6], PEV storages can be considered either as flexible loads (in G2V modes only) or distributed energy storage systems (ESSs) (in V2G modes).
Optimal PEVs power management for minimizing energy loss in a large-scale penetration of PEVs is a nontrivial task due to the large number of control variables. Therefore, some unrealistic assumptions (i.e., the size of power system and number of PEVs are assumed to be small) are made in order to simplify the problem in all previous studies. On the other hand, if smart charging strategies are implemented, PEVs could smooth the load curve by increasing demand in valley hours. They are also leading to a better utilization of system resources and contribute to a more efficient integration of intermittent renewable energy sources (RES) generation by offering storage capabilities to power systems [7].
There are many works in the literature focused on the technical definition and control of V2G systems. Modeling PEV, reducing distribution system loss, and designing infrastructure network for smart charging concepts have been independently introduced in [8] and [9]. In [10, 11], the economic dispatching of PEVs in the power system with high wind power penetration was studied. The objective in [10] was to minimizing the total generation cost of the whole system, while in [11], the objective was to achieve the minimum energy costs of PEVs. Ref. [12] analyzes the potential for regulation service supply by V2G in electricity markets and develops a decision support model for optimal bidding to the wholesale market. In some papers, significant effort has been devoted to reduce PHEV battery charging impacts through managing these loads [13, 14]. The charging impacts of PHEVs on the power distribution networks have been introduced in the literatures and have been widely investigated [15]. In Ref. [16], the progression of V2G aggregators for frequency regulation is proposed. In [17] topologies are presented to optimize charging time for V2G. Theoretical analyses for the integration of renewable generation using V2G can be found in [18]. In [19], a method for energy exchange between grids and EVs along with optimal scheduling in a smart parking has been presented. In these papers, uncertainties for renewable generation have not been taken into account. Ref. [20] proposed an algorithm for tracking the load frequency control signals by groups of PHEVs. A coordinated charging control issues for EVs in V2G mode at the residential transformer level is investigated in [21]. In [22], hierarchical control algorithms were proposed to integrate the PEV charging and wind power scheduling, with the goal of maintaining the frequency of the power system. In [23], the problem of coordination between wind and PEV in a MG to optimize the energy dispatch is examined. In order to reduce both the number of PHEVs and frequency fluctuation, smoothing of wind power production by pitch angle control and PHEV control using a model predictive control method proposed in [24]. Regarding the presence of electric vehicles, in [25] a multi-objective approach is proposed aimed at achieving optimal operation of a MG. Reference [26] presented comprehensive control of responsive loads at house area network for smart MG autonomous operation.
On the other hand all of the optimization methods can be potentially used in order to maximize the whole efficiency of MG. The shuffled frog leaping algorithm (SFLA) is a memetic meta-heuristic which is originally proposed in [27]. For combinatorial optimization problems. The concept of the SFLA is based on observing, imitating, and modeling the social behavior of a group of frogs when they search for the location of a rich source of food. Due to its effectiveness and suitability, the SFLA has been successfully applied to solve many power system optimization problems such as transient stability improvement of a grid-connected wind farm [28], unit commitment problem [29], harmonic distortion minimization in inverter systems [30], power system damping [31], optimal switch placement in a distribution system [32], and optimal reactive power dispatch [33].
In this paper, authors have developed a new algorithm based on hybridization of SFLA and intelligent water drops (IWD) optimization, for efficiency maximization in smart MGs. The most distinguished benefit of SFLA is its fast convergence speed. In the other hand, there is a gap in this algorithm when it is unable to find an improved set of variables. In such cases, a new set of variables is randomly generated which may be worse than the previous one. This drawback is eliminated by diverting to another optimization method instead of generating a random set of variables. In other words, whenever the SFLA could not generate a better set of variables, an auxiliary optimization method will be invoked to generate a new set of variables. In this context, IWD algorithm is employed as the auxiliary optimization method to improve the SFLA performance. IWD algorithm is a new swarm-based optimization algorithm inspired by observing natural water drops that flow in rivers [34]. In this situation, proposed algorithm used to optimize the selected multi-objective function. Also, optimization is implemented with consideration for the state of health (SOH) of a PEV energy storage system.
The rest of this paper is organized as follows. Section 2 introduces the configuration of MG, in Section 3, MG elements (i.e., battery, PEVs, photovoltaic (PV) and wind turbines (WTs)) are modeled. In Sections 4 and 5, objective function and proposed optimization method were presented respectively. In Section 6, typical MG with and without proposed optimization method considering SOH of PEV ESS is discussed due to simulation results and finally Section 7 concludes this paper.
The microgrid under study
PEV fleets include a number of batteries connected to the grid during the periods when the vehicles are parked and required to reach specified energy levels at specific hours of the day. The PEV aggregator is responsible for the charging of its vehicles on the basis of the drivers’ needs. In fact, the optimal coordination and control of the power transferred to/from each PEV enables the exchange of power among MGs with several benefits, such as the maximization of the self-consumption, the optimization of locally used RES production and the improvement of the global stability of the grid. On the other hand, the presence of PEVs with high power rating in isolated MG and the implementation of DR makes the generation scheduling problem more complex. Clearly, this requires a central management of MG energy consumption and production, dealing also with mobility needs; so, the MG is regulated and dispatched by the central control unit (CCN) to accommodate the power supply of distributed WTs and PVs to the power consumption of EVs and their chargers, BSS, interruptible loads users, and other load demands. In this situation based on drivers’ typical behavior, the aggregator is able to forecast its vehicles’ expected requirements and sends this information to the CCN (i.e., arrival and departure time of its vehicles, energy requests, and availability during this period). The CCN is also able to control the reactive power of DG units when they are connected to the grid through power converters. According to the proposed optimization, a set of constraints is integrated in the operation strategy in order to limit the battery temperature and therefore preserve the lifetime of the storage systems. The constraints differ depending on the use of the battery. As an example, the lifetime is preserved by imposing a limited number of charging/discharging cycles and a maximum depth of discharge. The system structure is depicted in Fig. 1.

Physical configuration of the MG under study.
In this section, mathematical models along with the dynamic models are described for parts of MG system, which consists of PEV with lithium-ion (Li-ion) battery bank, PV panels, WTs and DC-DC converters.
Electric vehicle
The most important aspects of the EV modelling are the battery performance (efficiency and temperature) together with user needs. The EV battery life depends on the charging-discharging cycles.
The current flowing into the battery is determined based on the charging voltage and the internal impedance of the battery [35]. The most common method of SOC calculation that also has been selected in this study is Coulomb-counting (Equations 1 and 2).
This method needs an accurate measurement of battery current (I) and also knowing the initial value of SOC (SOC 0).
Between the minimum SOC and a certain limit (a), the discharging power is limited by a linear function depending on the punctual SOC. Considering λ
w
as a set of periods where the EV w ∈ W is plugged to the charging point. Equations (3–5) define the power bounds for both of the charging and discharging processes:
Where P
EV
(t, w) is charging/discharging rate of the EV [kW],
Considering R EV (w) as the energy required by the vehicle while it is not connected i.e., the energy that will be used by the vehicle in the periods t ∈ T. This demand affects to the state of charge SOC (t, w), let be defined as:
Where, P EV,ch (t, w) is the charging rate of the EV [kW], P EV,dis (t, w) is the discharging rate of the EV [kW], β is the charge efficiency [% ], η is the discharge efficiency [% ] and Δt is the duration of the time intervals.
Then, the state of charge must be limited by:
Where, SOC max (t, w) is the maximum SOC for the EV and time interval [% ] and SOC min (t, w) is the minimum SOC for each EV and time interval [% ].
In order to evaluate the battery pack temperature, the lumped capacitance battery thermal model which initially developed at national renewable energy laboratory (NREL) has been used [36]. The governing formulas as explained in [37] are as follow. Figure 2 shows the configuration of battery thermal design and analysis.
Where H d is heat dissipate, T s is surrounding temperature (°C), T ess is energy storage system temperature (°C), R eff is effective thermal resistance, T amb is ambient temperature (°C), r air is air flow rate, C p,air is air heat capacity, m Batt is battery mass, C Batt is battery heat capacity, h is heat transfer coefficient, K is heat conductivity coefficient, a, b is battery pack geometry constants, A is area of battery pack (m 3), ρ is air density, t, γ is battery pack related parameters value, P r is request power of battery pack (w), P l,ess is battery power loss (w) and η c is columbic efficiency.

Configuration of the battery thermal analysis.
In this situation, temperature limit for battery pack is:
Where,
The MG contains some DC/DC boost converters for PV modules and wind system. The role of the DC/DC converter is converting the input voltage to a proper level in order to be feed to the DC bus. In a boost convertor, output voltage is larger than input voltage and they are related by Equation (16) [38].
The following constraints are associated with the PV storages: PV storage energy balance:
Where, E
St
(i, t) is the energy stored in PV storage connected to bus i at hour t [kWh], P
St,C
(i, t) is the power charge of PV storage connected to bus i at hour t [kW], P
St,D
(i, t) is the power discharge of PV storage connected to bus i at hour t [kW], η
St,C
(i) is the charging efficiency of PV storage connected to bus i, η
St,D
(i) is the discharging efficiency of PV storage connected to bus i and Δt is the duration of the time intervals. PV storage charge/discharge rates:
Where, PV storage capacity limits:
Where,
The model employed to calculate the power generated by WT as a function of wind speed is given below [39]:
Where P rate is the rated power of WT, V ci and V co are the cut-in and cut-out wind speed and the A, B and C coefficients are specified in the Plant’s datasheet provided by the manufacturer.
Equation (21) models the operational bounds for the wind resources in each period t ∈ T:
Where, P
w
(t) is the wind generation [kW] and
The MPPT not only enables an increase in the power delivered from the PV module to the load, but
also enhances the operating lifetime of the PV system. A variety of MPPT methods have been developed and implemented, such as the neural network method [40] and incremental conductance method [41], to control PV arrays to ensure maximum utilization efficiency. In this paper, in order to achieve maximum power point, methods article [42] is applied.
MPPT for wind system
MPPT is an essential requirement to maximize the utility of the natural wind energy and consequently the economics of the whole wind system. There are various methods of implementing MPPT for the wind imitation platform and mostly driven by a controllable DC motor. In this paper the method which proposed in paper [43], used for wind power system which that adopts direct power control of DC motor together with decoupled vector control of the permanent magnet synchronous generator (PMSG) rotor speed.
Objective function
The objective function imposed on MG is divided into five objectives (see Equation (22)). Under this circumstance, the power of PHEVs at each time step are considered as control variables. Therefore, the first objective is aimed at improving the energy efficiency of the grid by minimizing power losses. The price of charging PEVs (
From PEV customer’s point of view, minimizing the cost of charging the PEVs is the second objective. This objective can be utilized by the MG system operator to study the impact of PEV charging on the system, expecting rational behavior of customers. The third objective represents the fear of running out of energy before the destination has been reached, by means of a penalty parameter, the possible policies of this range anxiety effect.
Where, Y
ij
is admittance between bus-i and bus-j [PU], Pen
w
is the penalty associated with the EV range anxiety [$/kWh], Cap
w
is the battery capacity of the EV [kWh],
Shuffled frog leaping algorithm (SFLA)
The SFLA is a real coded population based meta-heuristic optimization method that evolves through the time loops in the form of memetic evolution. This algorithm, mimics the memetic evolution of a different groups which have different cultures of frogs when seeking for the location that has the maximum amount of available food, in the other word, Each frog improves its position according to the information from itself and other members of the group during the search for food. In this situation number of memetic evolution steps defined firstly, then ideas are passed among memeplexes in a shuffling process. A shuffling strategy allows to move toward a locality to a globality optimum. Both of the local search and shuffling process continues until the required convergence criteria are achieved. In essence, this algorithm
combines the benefits of the local search tool of the PSO [45] and mixing information from Parallel Local Searches to move toward a global solution [46]. PSO is an evolutionary optimization method which is based on the metaphor of social interaction and communication such as bird flocking and fish schooling.
In the SFLA, the frog position is the candidate solution. The initial population of F virtual frogs are randomly generated within the feasible search space at the beginning of the algorithm, so each frog is correlated with a position vector, X i = [x i1, x i2, …, x iN ], where N is the number of decision variables. The frogs are sorted in a descending order according to their fitness. As illustrated in Fig. 3, in this procedure, each frog moves to each memeplex, so, the first frog moves to the first memeplex, the second frog moves to the second memeplex and the mth frog moves to the mth memeplex, then (m + 1) th frog goes back to the first memeplex and so on [3]. Therefore, the whole population is divided into m memeplexes, each including n frogs (F = m × n).

Movement of frogs.
In each memeplex, the frogs position with the best and worst fitnesses are represented as X b and X w , respectively. Moreover, the frog position with the global best fitness is recorded as X g [27].
The local exploration is implemented in each submemeplex, thus, a memetic evolution is applied to improve only the worst frog in each cycle and changes its position by leaping action; the leaping step is computed by Equation 23 and the worst frog’s new position is determined by Equation 24.
Where step (i + 1) denotes the updated step size of the shuffled frog-leaping, Int means rounding, step max is the allowed maximum step size to be adopted by a frog after being affected, rand is a random number in the range [0,1], i is the evolution generation or iteration number.
After updating, if the solution
Where Bound Max and Bound Min are the maximum and minimum boundaries of frogs’ feasible location, respectively.
The IWD algorithm is a population based optimization algorithm which, mimics the dynamic process of river systems and the actions that water drops do in the rivers. This algorithm is inspired by the observation of natural water flow in the rivers formed by a swarm of water drops [34].
Depending on the force of the gravity and terrain covered, the swarm of water drops fined their own way to the lakes or oceans. However, being blocked by different kinds of obstacles and constraints, there exist lots of twists and turns in the real path of the river. During this movement, the water drops have to face with two important parameters such the amount of soil it carries and the velocity at which it movies; the more the velocity, the greater the amount of soil carried. So, the path with least amounts of soil will be more likely to be used by other water drops. In this situation, by mimicking the features of water drops and obstacles of the environment, the IWD algorithm uses a population of water drops to construct paths and obtain the optimal or near-optimal path among all these paths over time.
The steps of IWD algorithm scheme in each iteration might be outlined as follows.

Searching space of the problem.
Then add the newly visited node j to the state V C (IWD) . Where, ε is a small positive number to prevent a possible division by zero in the function f (.) and soil (i, j) refers to the amount of soil within the local path between nodes i and j.
Where v IWD (t + 1) is the updated velocity of the IWD, ∂, σ and δ are IWD velocity updating parameters which set by 1, 0.01 and 1, respectively.
Where the heuristic undesirability HUD (j) is defined appropriated for the given problem, α, β and γ are IWD soil updating parameters which set by 1, 0.01 and 1, respectively.
Where ρ n is the local soil updating parameter, which is a small positive number less than one, is set as ρ n = 0.9.
Where function q(.) gives the quality of the solution.
Where, N B is the number of nodes in the solution S B , ρ IWD is the global soil updating parameter, which is chosen from [0, 1] which is set as ρ IWD = 0.9.
As illustrated in Section 5.1 (SFLA algorithm), when evaluating worst frog position in each cycle (using (23), (24)) and changing its position by leaping action, does not lead to a better frog than the worst frog, it will be replaced with a new randomly generated frog. This replacement may cause a worst frog than the current frog. So, it is inferred that, behind the benefit of SFLA (fast convergence speed), there is a gap in this algorithm when it is unable to find an improved set of variables. In the other word, In the SFLA, updating of worst fitness is limited in the line segment between its current position and the position of best fitness, and the Xw could not jump over the Xb. Thus in SFLA local search space is restricted during each memplex evolution procedure and best frog has a less chance of evolution. This may lead to the improper learning process and results in prematured convergence. Because of this, the algorithm may be trapped to local optimum easily.
To prevent such problem and increase the capability of local search of SFLA, an auxiliary optimization method is invoked to generate a new set of variables. In this context, instead of generating a random set of variables, IWD algorithm is employed, so, the worst frog of current memeplex will be replaced with the output of IWD algorithm. Figure 5 illustrates the flowchart of the proposed algorithm. In this situation proposed algorithm iteratively updates position of the frog until user-defined number of generations are generated and last converges to the optimal solution.

Flowchart of the proposed algorithm.
The model proposed in Section 4 has been tested on a modified version of distribution system consist of three IEEE 33-bus radial distribution system given in [47] (see Fig. 6). For each aria, in different places, three kind of renewable energies (PV, wind and PV+wind) are considered as a DG capacity. Total active and reactive loads of each aria are same which considered, 3.72 MW and 2.30 MVar, respectively. The capacity of the system is Sbase = 100 MVA and Vbase = 12.66 kV. In this situation, the numerical results are organized and the MG model is tested with and without consideration of proposed algorithm.

Configuration of the MG under study.
It should be noted that the purpose of 55-h scheduling is to evaluate the performance of the proposed method in each areas, this planning horizon ranges from 0:00 h of a given day up to 7.00 h of the second day. Nevertheless, in practical analysis, the method can be extended to weekly, monthly or yearly analysis with similar method. In fact, there are no limitations or changes in the problem and solution structure by extending the time window of the analysis. The estimated hourly load demand of the test system for a 55-h period is shown in Fig. 7.

Hourly load demand.
Two renewable technologies are also considered: wind turbines and photovoltaic (PV) cells. It is worth mentioning that the proposed formulation is general enough to straightforwardly include other renewable technologies such as biomass or CSP (concentrating solar power) units. Observe that, in this study, the considered renewable sources constitute the 45.9% of the total installed capacity. The offering prices of wind and PV units are assumed to be equal to zero. In all scenarios, PV and WT available outputs are fully exploited.
This is a forcing and encouraging policy for supporting WT and PV since these devices have to generate after the first time capital investment. It is assumed that the wind speed and solar irradiance forecasts for areas of each aggregators are different from the ones for areas of the other aggregators.
The hourly wind speeds information for each area is shown in Fig. 8. All wind turbines installed in the test system are of the same type and of 1 MW, with cut-in speed of 5 m/s and cut-out speed of 25 m/s with nominal speed of 16 m/s. eleven 50 kW PV systems are installed in the test system; each of them is composed of 5*10 kW solar PV panels with 22.8% [48]. The average hourly solar irradiance is shown in Fig. 9.

Hourly wind speeds information.

Average hourly solar irradiance.
For this study, each PEV has an actual energy consumption of 0.18 kW/km and is equipped with a 22 kWh battery pack according to Yoshita PEV [49] (see Fig. 10). This vehicle has been built by our team and currently is under development. The efficiencies of the charger and the battery are 0.964 and 0.93, respectively. Thus, the efficiencies of charging and discharging processes are both considered to be 0.9. The charging voltage and the peak power transfer rate values depend on the technical characteristics of the charge coupler. For simplicity, the study assumes that PEVs are charged under a charging voltage of 230 V and a peak power transfer rate of 7.2 kW. The daily distance driven by PEVs is characterized using the expected daily driving distance from Yoshita PEV (see Ref. [49]). Also, the other driving patterns (expecting from rational behavior of customers) consists of trip duration of each type of customer, SOC, size and start and end time of their trip were extracted from statistical analysis in a real town, which represented in Table 1.

Yoshita PEV.
PEVs movement information
The PEVs are configured as an agglomeration of several distributed parking sites within a large area, which, their locations are determined by various scenarios. The stations are equipped with two charging plat-forms –400 V/32A–24 kW-3 phase for normal (2:30 h) charging, and 400 V/63A–43kW-3 phase for fast (25 min) charging.
In this paper, in order to minimize both energy loss and operating cost of charging the PEVs, a new hybrid algorithm for finding the location and capacity of PEVs was proposed. In this way, the load profiles of the network at each loading point are obtained by integrating the loads of customer and the connected PHEVs using MATLAB software. Then, general algebraic modeling system tool is used for solving the optimization problems. Six proposed scenarios are considered for simulations conducted in this investigation corresponding to different charging strategies of PEVs, along with an extra reference scenario without PEV. In this way, the MG under study is analyzed according to the flowchart as shown in Fig. 2 which identified as scenario 3. In order to verify proposed algorithm, the significance of the paper approach against conventional algorithms (genetic algorithm (GA), IWD optimization method and SFLA) can be discussed as following scenarios. It must be noted than in scenario 2–6 all PHEVs operating both in G2V and in V2G modes. Scenario 1: No PHEV connected to the network. Scenario 2: The scenario with unmanaged charging of PEVs. Scenario 3: The scenario with managed charging of PEVs base on proposed hybrid optimization (population size: IWD = 80, SFLA = 110). Scenario 4: The scenario based on managed charging of PHEVs using IWD optimization method (population size: 110). Scenario 5: The scenario based on managed charging of PHEVs using SFLA optimization method (population size: 130). Scenario 6: The scenario based on managed charging of PHEVs using GA optimization method (population size: 60, Binary mutation, normalized geometric selection, cross over: Simple Xover, Algorithm termination: Maximum number of generation (60)).
Since the main aim of the proposed optimization is to lower the total loss of system, As a result, scenario 3 (PEVs operating both in G2V and in V2G modes together which they are sited and sized with proposed optimization method) must represent the most favorable charging strategy of PEVs. In this situation, the scenario which modeling charge/discharge program of PEVs for each area is extracted (see Fig. 11). It must be considered that, all PEVs are forced to be totally charged at the end of the charging period defined for each PEVs. According to the second part of the objective function (cost minimization objective), it is obvious that EVs discharging when power demand is high. Also, this proses is carried out during the high electricity prices hours. On the other hand, charging them back when the peak is over during the low electricity prices hours. Furthermore as shown in Fig. 12, charging and discharging amounts of each PEVs are related to consumption growth. It is obvious that renewables should be utilized as much as possible.

Modeling charge/discharge program of PEVs.

Relation between charging and discharging amounts of each PEVs and consumption growth.
Figure 13 shows the average active power of all 33 buses of area 1 for the proposed scenarios along with scenarios 2, 5 and 6 during the time under study.

Average active power: a) scenario 2: unmanaged charging of PEVs, b) scenario 3: proposed algorithm, c) scenario 6: genetic algorithm, d) scnario 5: shuffled frog leaping algorithm.
From this figure, it can be observed that when EVs are in charging mode on distribution substation without any management, load profile belonging to scenario 2 confront the greatest peak as compared to the other scenarios and can leads to the greater evening peak. As PEVs can operate both in G2V and in V2G modes in scenarios 3–6, active power value during peak hours is lower as compared to scenario 1.
According to Fig. 13(b), proposed algorithm compared with other smart charging strategies (scenarios 2–6), leads to a decrease in active power demand in peak hours, so leads to an increase in demand in off-peak hours. Also in scenario 3, the active power of all substation is lower compared to the all scenarios.
In other words, managed charging and discharging of PHEVs is one of the DR approaches which can flatten the load profile out and minimize network energy loss.
To investigate how energy loss quantities may be affected depending on charging of PHEVs, the calculation is further performed for different size and places of PHEVs which determine by each scenarios. The network energy loss for the time under study, without presence of PEVs is equal to 121.12 KWh.
According to Table 2, it is discernible that the energy loss resulting from network operation over the time under study is within the range of 93.70–127.14 MWh for various size and places of PEVs which are determined with each scenarios. The most discernible point in Table 2 is that without smart charging of PHEVs, i.e., scenario 2, there is a unpredictable increase in the network energy loss value, as compared to other scenarios. This increase is in proportion to PEVs location and size.
Comparison of simulation results of 33-bus system
It should be noted that scenario 3 seems to have the most advantageous impact on the network energy loss reduction. In fact, as illustrated in Table 2 by comparing the information relating to scenario 3, with other scenario, it can be inferred that smart managing of PEVs location and size with proposed algorithm, has significant effect on MG energy loss (network energy loss reduces down to 19.98 percent).
Table 2 compares the information calculated by all scenarios. This table shows that the proposed method provided the lowest (best) values of Real power loss in all areas. As a result, the energy loss reduction is estimated to be in the range of 0%–19.98% for the network under study (see Fig. 14). For the best locations and size of PEVs which are possible with proposed algorithm, network energy loss can be reduced up to 19.98%. In compared to scenario 1, this reduction stems from the fact that active power in peak hours and over a day with best location and size can be injected by PEVs in smart charging scenarios. Similar results can be acquired by applying the proposed methodology to any given network, if the required data are available. Comparison between proposed hybrid optimization with some other optimization strategy in field of real power loss and total PEVs charging cost, are also shown in Fig. 14.

Comparison between proposed hybrid optimization with some other optimization strategy.
The hypervolume indicator was originally proposed and employed in Ref. [50] to numerically compare the outcomes of different multi objective optimization problem. In this way, to obtain better insight on how proposed algorithm converges to the pareto optimal front, we run each algorithm for a maximum of 1000 fitness evaluations and calculate the hypervolume values of the pareto approximation sets in each generation.
To visualize the convergence speed, we show the results in Fig. 15, where the horizontal axis denotes the number of fitness evaluations and the vertical axis records the hypervolume values with different algorithms. It is obvious from Fig. 15 that proposed algorithm is superior to the other three algorithms in that it quickly converges to reach the maximum hypervolume values.

Hypervolume values of the algorithms over 1000 fitness function evaluations.
In other words, proposed algorithm is more computationally efficient to reach pareto approximation sets with a certain quality compared with other algorithms for a constant number of fitness evaluations. These results indicate the benefits of proposed optimization method as an evolutionary scheme compared with other conventional optimization methods.
The MG concept has been gaining more attention worldwide, particularly for the distribution system, so it is necessary to improve overall system efficiency, power quality, and energy surety for critical loads. In this situation, this paper proposed the novel optimization method using hybrid SFLA and IWD optimization for efficiency maximization in smart MG considering SOH of PEV energy storage system. Behind the benefit of SFLA (fast convergence speed), there is a gap in this algorithm when it is unable to find an improved set of variables. To prevent such problem and increase the capability of local search of SFLA, an auxiliary optimization method is invoked to generate a new set of variables. In this context, instead of generating a random set of variables, IWD algorithm is employed. The purpose of the MG under study, consists of PV panels, WTs, PEV (which Li-ion battery pack is used as ESS) and DC-DC converters. The results showed that the proposed optimization method compared to other methods, can effectively improve the performance of MG power control and follow a desired output power value in accordance with the renewable energy scheduling instruction with a smooth power for the grid.
