Electrical Market Management Considering Power System Constraints in Smart Distribution Grids

Rising demand, climate change, growing fuel costs, outdated power system infrastructures, and new power generation technologies have made renewable distribution generators very attractive in recent years. Because of the increasing penetration level of renewable energy sources in addition to the growth of new electrical demand sectors, such as electrical vehicles, the power system may face serious problems and challenges in the near future. A revolutionary new power grid system, called smart grid, has been developed as a solution to these problems. The smart grid, equipped with modern communication and computation infrastructures, can coordinate different parts of the power system to enhance energy efficiency, reliability, and quality, while decreasing the energy cost. Since conventional distribution networks lack smart infrastructures, much research has been recently done in the distribution part of the smart grid, called smart distribution grid (SDG). This paper surveys contemporary literature in SDG from the perspective of the electricity market in addition to power system considerations. For this purpose, this paper reviews current demand side management methods, supply side management methods, and electrical vehicle charging and discharging techniques in SDG and also discusses their drawbacks. We also present future research directions to tackle new and existing challenges in the SDG.


Introduction
The base existing electrical system in most countries was developed when energy production was relatively cheap.As a result, conventional power systems usually have large centrally dispatched power plants, long transmission lines, and unidirectional distributed systems with extra capacity to improve reliability [1].Although the conventional power system structures had many problems such as the large amount of technical and nontechnical losses (10% up to 52% [2]) and environmental pollution (40% of CO 2 coming from power generation [3]), it has been used in the same way for the last century.
Recently, the rapid technology advancement has been changing people's lifestyle and accordingly, the electricity demand, resulting in about a 2% increase in the electrical energy consumption per year, a trend that is predicted will continue [4].This rising demand, climate change, growing fuel costs, outdated power system infrastructures, and new power generation technologies have motivated changes in the power system architecture [5].The most important factor is the large number of distributed generations (DGs) being installed on the distribution network.The amount of renewable energy resources (RERs) installed globally as of 2012 reached 15% [6].This large amount of DGs can help to decrease power loss and price of energy, and increase the reliability of power.On the other Energies 2016, 9, 405 2 of 30 hand, the technical issues, such as stability constraints, limit the penetration of RERs in the power system [7].
In order to overcome this limitation, the microgrid (MG) concept was developed.A MG is defined as a cluster of small generation systems, storage devices, and associated combined heat and power (CHP) loads [8] able to operate in both grid connected and autonomous (islanding) modes to increase power quality and reliability [9].Controlling, maintaining the stability, especially in the autonomous mode, and implementing demand and resource side management of MGs without communication systems is a very complicated and low efficiency process [10].As a solution, the smart distribution grid (SDG) concept was proposed.
The smart grid (SG) can be defined as an electrical system that uses two-way, cyber-secure communication methods and computational intelligence across an integrated electricity generation, transmission, substations, distribution and consumption to achieve a system that is clean, safe, secure, reliable, resilient, efficient, and sustainable.This description covers the entire spectrum of the electricity energy system from generation to consumption [11].The concept of SGs in large-scale generators or transmission line is not a new idea and has been evolving and improving for a long time because the components have been under the control of utility companies [12].Large-scale generators [13] or transmission lines [14,15] use two-way communication and intelligent computational systems; however, as there are not always smart connections between them and distribution networks (loads), the conventional network could not solve the aforementioned challenges.
Since the electrical distribution systems are spread over wide geographical areas with numerous clients including electrical power consumers, DGs, and different kind of energy storage systems (ESSs), implementation of SDG is much more complicated than for other parts of SGs.Integrating many DGs into the SDG, on the one hand, can increase the power generation flexibility, but on the other hand, also can makes the power flow control and maintenance of stability much more complicated [16].
SDG still is in early stages of development and based on the authors' best knowledge, there is no large commercial implementation of a complete SDG to date.Nonetheless, some research centers have designed and installed small size SDGs.For example, the Illinois Institute of Technology (IIT), after facing many power quality problems and outages between 2002 and 2006, decided to change their power system topology.Finally in 2010, by installing two Allison gas-fired turbines, they changed the power system of their campus to a simple SDG.A multi-agent control system gave this SG the ability of real-time reconfiguration and power supply optimization [17].Santa Clara University (SCU) has been developing its SDG since 2011 by installing smart sub-meters in buildings and energy sources, such as solar, fuel cells, and micro-turbines, in its campus electrical network [18].West Virginia University (WVU) developed a SDG in a small city called Etown based on six integrated inter-related aspects of community life and economic enterprise: Energy, Environment, Ecology, Electronics, Experimentation, and Education.Researchers in WVU can perform tests in a controlled environment of Etown before integrating it into a larger network [19].These SDGs are used as power supply systems for real consumers; therefore, they have some limitations for testing new methods.Because of these limitations, some research centers have preferred to build SDG testbeds.
As an example of such a SDG testbed, the Consortium for Electric Reliability Technology Solutions (CERTS) formulated CERTS MG in 1998, primarily operated by American Electric Power, as a test facility in Columbus, Ohio [20].The CERTS MG, which includes a 1 MW fuel cell, 1.2 MW of solar photovoltaic panels, two 1.2 MW diesel generators, a 2 MWh to 4 MWh storage system, a fast static switch, and a power factor correcting capacitor bank, is used for the development of a SG control architecture [21].With the same idea, researchers at the University of Texas at Arlington (UTA), have installed a 1 MW experimental MG test bed that can be operated either in AC or DC mode and can be connected to or disconnected from the grid.This grid can be used to validate simulated models and permits one to explore conditions such as faults and instabilities that would not be intentionally imposed on an operational MG [22,23].European research centers are also actively conducting research on SGs.The total investment in SG projects in Europe was about 3.15 billion EUR until 2014 and Energies 2016, 9, 405 3 of 30 between them 578 projects have implementation sites.However, most of them do not have a SDG with complete components such as smart metering, smart demand management, and smart source management [24].
Pacific Northwest Smart Grid (PNSG) is a large and commercial SG project that began in 2010 and has about 60,000 customers across five US states: Idaho, Montana, Oregon, Washington, and Wyoming.This project is designed to help to validate new SG technologies, quantifying SG costs and benefits, and advancing standards for interoperability and cyber security approaches of SG.In addition to Bonneville Power Administration and eleven utilities, University of Washington and Washington State University are involved in this 178 million USD project [25].Table 1 summarizes the major global SG implementations.
However, none of these surveys pays enough attention to the inter-workings of power systems and their limitations.Converting the conventional power system into a smart one changes the penetration level of DGs, the load curve, and the electricity price.As a result, the power flow, power loss, critical route, stability, protection, and reliability also change.Therefore, our survey focuses on the electrical market considering the power system constraints in the SDG.We complement the existing surveys by: (1) Providing a comprehensive review of the state of the art literature on SDG.(2) Categorizing papers from the perspective of the electrical market, considering power system constraints.(3) Discussing challenges and proposing future research directions in SDG.
The rest of this paper is organized as follows: Section 2 describes the demand side management (DSM): definition, different types, and drawbacks.The supply side management (SSM) in the presence of RERs is reviewed in Section 3. EVs and the effects of high penetration level of EVs in power system are discussed in Section 4. Finally, Section 5 concludes this survey.

Demand Side Management
The idea of demand side management (DSM) and demand response (DR) are not new.DSM and DR methods emerged in electrical systems in the 1970s and have evolved over the past four decades [34].However, because of the lack of proper electrical network infrastructures, they did not fully prosper and many customers still see only flat, average-cost based electricity rates which give them no indication that electricity values change over time [35].In this section, first, DR and DSM are defined and their benefits are reviewed.Then, the load modeling requirements for DR, classifications of DR models, and a review of recently published papers in this area are presented.Finally, the future research directions are proposed.

Definition and Benefits
The U.S. Department of Energy defined DR as "changes in electric usage by end-use customers from their normal consumption patterns in response to changes in the price of electricity over time, or to incentive payments designed to induce lower electricity use at times of high wholesale market prices or when system reliability is jeopardized" [35].Under this definition, the DSM includes all activities which aim to alter the consumer's demand profile, in time and/or shape, to match the supply profile [34].
Implementing DSM leads to economic and technical benefits for utilities and customers, including both participants and none participants.Participating customers in DSM programs change their consumption pattern to decrease their electricity bill.If the number of participants is large enough, the peak load of power system can be shaved and the electricity price of peak load can be reduced.In this situation, non-participating customers pay less for their consumption as well [28].In addition, lowering peak load quenches the power system thirst for new infrastructures and decreases power system investment cost.Furthermore, DSM can help improve the system reliability, stability, and power losses [36].The most important drawback of DSM is its deployment cost.The participants need to be equipped with new electrical meters, control and monitoring systems, generation units, and communication systems.To analyze the feasibility of DSM, [37] proposes a market model with a new independent company called DR provider (DRP) to participate in long-term power market by providing price-based DR resources.The proposed long-term market model formulates DSM investments and its profit as a constrained dynamic multi-period optimization problem and solves it with a genetic algorithm.By using this method, utilities can understand how much they should invest in DSM to maximize their profit.

Load Modeling
In order to manage customer demand, knowing the exact load behavior is necessary.Much research has been done to understand and model the load.A Markovian model of home electricity for distribution grid studies is proposed in [38].This study validates the proposed model with measurements of electricity load of 20 homes over four months and categorizes different loads based on the house size, type of heating system, and the time of day, without considering the number of occupants or house appliance details.This kind of load modeling can be used to predict the consumption of a distribution network to plan for DSM, but cannot be used to study the DR of each customer.Since DSM changes or shifts the consumption of some appliances over time, the appropriate load model should use the electrical consumption of each home appliance, such as TVs, vacuum cleaners, and so on, as its basic building block.Richardson et al. [39] monitored 1693 houses in Belgium for around three years and proposed "wet" appliances (washing machines, tumble dryers, and dishwashers) as shiftable loads using a clustering algorithm.This research shows that Belgium has the potential of reducing 96 MW of peak demand in its residential sector (from 2.3 GW) by shifting the wet appliances.Richardson et al. [40] presented a detailed model of domestic lighting based on modeling the operation of individual bulbs and using a time-series representation for the number of active occupants within a dwelling.This model, which was developed as a part of the CERTS project, can provide one-minute resolution lighting electricity demand profiles for individual dwellings.They further developed a model of a dwelling with different appliances [41].They used a comprehensive time-use survey of how people spend their time in the UK to model the probability of dwelling residents' behavior.This model considers the energy profile of different home appliances, the maximum number of home residents, temperature of the day, etc. to stochastically model a house load for DR study.This load model, which is implemented in Microsoft Excel, can be downloaded from [42].

Classification of DSM Models
The authors of [29] surveyed different papers in this area up to 2013 and categorized them based on control mechanism, method of motivation offered, and decision variables.Among them, the motivation method has a major influence on DSM success in SG.This subsection updates the motivation-based categories reported in [29] by surveying recent papers in this area.
Figure 1 shows the percentage of each customer type in electricity consumption during 2015 in the USA [43].Each sector has special characteristics and responds differently to motivation methods.Although the industrial sector uses less electrical energy than the residential and commercial sectors, each industrial customer is a high energy consumer, with typical peak loads of tens to hundreds of MWs, and has a significant impact on the power system [44].In addition, as most large industry consumers have supervisory control and data acquisition (SCADA) systems, the implementation of DSM in industry is much simpler than in traditional power systems.There are many works in this area, for instance, [45] assesses the potential of DSM in the meat industry.The customers in the commercial sector consume a large portion of the electricity and typically have a similar energy consumption pattern.The main source of power consumption of this sector is from heating, ventilation and air conditioning, lighting systems, and electronic equipment.Therefore, the implementation of DSM in this sector is easier than that of the residential sector.In [46] the authors propose several common methods to decrease the electricity load and DSM of commercial buildings and [47] provides a method for validating the DSM for commercial buildings.
The implementation of DSM in the residential sector is much more complicated than in other sectors because it has a large number of customers and numerous different factor affecting their loads.The DSM motivation methods can be categorized into two main programs: incentive based, which is usually more appropriate for the industrial sector, and time based, which is more useful for the residential sector. Figure 2 depicts the different DSM schemes based on motivation method.The implementation of DSM in the residential sector is much more complicated than in other sectors because it has a large number of customers and numerous different factor affecting their loads.The DSM motivation methods can be categorized into two main programs: incentive based, which is usually more appropriate for the industrial sector, and time based, which is more useful for the residential sector. Figure 2 depicts the different DSM schemes based on motivation method.

Retail price
Critical pick pricing (CPP)

Incentive-Based Programs
Incentive-based programs offer fixed or time-varying payments to customers who reduce their electricity usage during periods of system need or stress [72].Incentive-based programs can be divided into classical methods and market-based methods.In classical methods, consumers receive incentives in the form of bill credits or discount rates.On the other hand, in market-based methods, customers are rewarded depending on their contribution.
One of the classical methods is direct load control (DLC) where the power utility can remotely turn off some customers' electrical equipment [48].This method needs a real-time communication system and can reduce the power consumption during critical times.In [49], loads of customers are divided into scheduling loads and vital loads.Utilities can directly control scheduling loads to reduce the peak demand but they cannot control vital loads.Although this method can severely decrease human comfort, some companies still use this type of program.For example, Idaho Power Company pays incentive credits to residential customers who allow their air conditioners to be switched on less frequently during the afternoon in June, July, and August [50].The authors of [73] developed a general model for a domestic electrical heater and a method to identify the model's parameters based on measuring the power consumption of the heater with or without the water temperature.This paper proposes a DLC method based on the proposed model, which negligibly decreases comfort levels.Another classical method is an interruptible load method, where customers receive an upfront  The implementation of DSM in the residential sector is much more complicated than in other sectors because it has a large number of customers and numerous different factor affecting their loads.The DSM motivation methods can be categorized into two main programs: incentive based, which is usually more appropriate for the industrial sector, and time based, which is more useful for the residential sector. Figure 2 depicts the different DSM schemes based on motivation method.

Incentive-Based Programs
Incentive-based programs offer fixed or time-varying payments to customers who reduce their electricity usage during periods of system need or stress [72].Incentive-based programs can be divided into classical methods and market-based methods.In classical methods, consumers receive incentives in the form of bill credits or discount rates.On the other hand, in market-based methods, customers are rewarded depending on their contribution.
One of the classical methods is direct load control (DLC) where the power utility can remotely turn off some customers' electrical equipment [48].This method needs a real-time communication system and can reduce the power consumption during critical times.In [49], loads of customers are divided into scheduling loads and vital loads.Utilities can directly control scheduling loads to reduce the peak demand but they cannot control vital loads.Although this method can severely decrease human comfort, some companies still use this type of program.For example, Idaho Power Company pays incentive credits to residential customers who allow their air conditioners to be switched on less frequently during the afternoon in June, July, and August [50].The authors of [73] developed a general model for a domestic electrical heater and a method to identify the model's parameters based on measuring the power consumption of the heater with or without the water temperature.This paper proposes a DLC method based on the proposed model, which negligibly decreases comfort levels.Another classical method is an interruptible load method, where customers receive an upfront incentive payment to reduce their load to a predefined value but pay a penalty if they do not respond

Incentive-Based Programs
Incentive-based programs offer fixed or time-varying payments to customers who reduce their electricity usage during periods of system need or stress [72].Incentive-based programs can be divided into classical methods and market-based methods.In classical methods, consumers receive incentives in the form of bill credits or discount rates.On the other hand, in market-based methods, customers are rewarded depending on their contribution.
One of the classical methods is direct load control (DLC) where the power utility can remotely turn off some customers' electrical equipment [48].This method needs a real-time communication system and can reduce the power consumption during critical times.In [49], loads of customers are divided into scheduling loads and vital loads.Utilities can directly control scheduling loads to reduce the peak demand but they cannot control vital loads.Although this method can severely decrease human comfort, some companies still use this type of program.For example, Idaho Power Company pays incentive credits to residential customers who allow their air conditioners to be switched on less frequently during the afternoon in June, July, and August [50].The authors of [73] developed a general model for a domestic electrical heater and a method to identify the model's parameters based on measuring the power consumption of the heater with or without the water temperature.This paper proposes a DLC method based on the proposed model, which negligibly decreases comfort levels.Another classical method is an interruptible load method, where customers receive an upfront incentive payment to reduce their load to a predefined value but pay a penalty if they do not respond [28].
This method is widely used in the industrial sector, where power consumption is reduced during specific periods with one hour in advance alerts [55].
In market-based programs, a customer bids on a specific load reduction in the electricity market and it is accepted if it is less than the market price.When the bid is accepted, the customer must curtail his/her load by the amount specified in the bid or otherwise receives penalties.In a demand binding program, consumers bid on the wholesale market.In the emergency binding program, utilities permit customers to reduce more than the bid and pay additional incentives proportional to the amount of load reduction during an emergency.In a capacity market program, customers participate in a day-ahead (DA) market and reduce their power when a system contingency arises.Lastly, the ancillary service program allows customers to participate in spot markets and provide their power reduction as a reserve [28].O'Brien et al. in [56] designed a fair compensation mechanism for DSM participants based on game theory.They assume that there are some aggregators in the electrical market to manage the DSM program, such as selling spinning reserve in the wholesale market, and use a Shapley value based on reinforcement learning algorithm estimation to fairly distribute the DSM profit between the participants.In all of these methods, in order to determine the amount of reduction, the baseline load threshold must be calculated for each customer, which is a complicated procedure.In addition, it is possible for some customers to receive rebates for the reduction of their power loads for other reasons that are coincident with the system emergency [74].

Time-Based Programs
In this category, the price of consumption is varied based on the time of usage.In general, a time-based (pricing-based) DSM encourages self-interested customers to make the required decisions by giving monetary incentives instead of other incentive methods [75].In other words, this method informs customers about the varying cost of generation at different times and makes them participate in the program to reduce the overall cost.The time-based programs can be divided into two subcategories: retail price-based programs where the customers do not participate in the determination of price and customer participation programs where the price is varied based on a customer's behavior [29].
One of the retail price-based programs is the flat pricing program where the energy price is fixed as in the common traditional programs, although utilities can still change the energy price for different seasons.In this program, reducing the energy usage is the only way to decrease the total energy bill.This method does not need any modern system and therefore it is still used in some areas [35].In order to have consumers participate in DSM, the time of use (TOU) program applies different prices for different periods of the day or different days of the week.For example, CSGC offers a TOC program, which charges customers 4 cents per KWh during the off-peak period and 6 cents during the peak period of the non-summer season, and 17 cents for the peak period in summer.In this program, 82% of a year is off-peak period [26].TOU usually does not help reduce the overall energy consumption, but rather mostly helps to shift the peak amount to off-peak periods.The implementation of TOU does not need communication infrastructure and only requires meters that can record the time of energy usage.The authors of [58] investigated the response of New Zealand household demand to TOU and estimated the short-run elasticity of consumers.The experimental performance of different TOU programs and the customers' behavior in response to an in-home display are reviewed in [59].
In contingency situations, the cost of production increases considerably and TOU program cannot help to reduce customers' demand.In order to solve this problem, the critical peak pricing (CPP) method uses the idea of TOU and also changes the peak price in contingency situations.The participants usually receive a notification of the new energy price one day in advance.This method, which selects one price for critical periods or alters it in different events, can be divided into two subcategories: fixed price and variable price.For example, CSGC offers a fixed price CPP with an off-peak price similar to the proposed TOU program (4 cents per kWh for 82% of year) and decreases the peak price to 5 cents and 12 cents per KWh in non-summer and summer season in normal periods, respectively.However, it charges a high price of 33 cents and 51 cents per kWh for non-summer and summer, respectively, during 1% of the year (peak energy events).Customers are notified of these peak energy events one day-ahead and can plan for them [26].CPP implementation requires an unidirectional communication link to inform about the peak events.In peak load pricing (PLP), one day is divided into multiple periods having different prices determined based on the power consumption of previous periods [61].In [62], one day is divided into 5-minute periods and the price of each period is determined based on the difference between the real and the desired value of electricity demand in previous periods.This method can adjust the consumption into the desired value in some time intervals.
The retail price model has a critical drawback.Since the price of each time period is independent from customers' behavior and each customer decides individually, it is possible that all customers may decide to simultaneously use power during the same off-peak period and, consequently, a new "rebound" peak may occur [76,77].In order to mitigate this problem, the customer participation methods real-time pricing (RTP) and day-ahead RTP (DA-RTP) are proposed.In RTP, retailers determine the price of the next time period (e.g. 15 min) based on the power requested by customers.Implementation of this method requires two-way real-time communication and a complicated computational process for determining the optimum price [29].Here, the accurate prediction of electricity price is necessary for scheduling.A real-time forecasting of electricity price in SG is developed in [78] using genetic optimal regression and relevance vector machines.
In order to alleviate these problems, DA-RTP determines the price of different periods of the next day based on the day-ahead requests of customers [69].Further, the authors in [79] use the DA-RTP and try to shift the demand curve to match the desired curve.The authors suggest that the desired curve can be a curve with the minimum energy cost for customers; however, they do not propose anything about how to find this curve.The disadvantage of DA-RTP is that customers must plan for their next day electrical loads.Planning for the next day electricity consumption is not only inconvenient, but also may become a source of error.Deng et al. [80] proposed a method to supply electrical load in both the DA market and the spot market.This paper formulates DSM as a convex optimization problem with linear constrains and uses dual decomposition and a stochastic gradient method to solve the price uncertainty.The authors of [70] use a similar idea and apply a penalty function for DA prediction errors based on the price difference of the spot market and the DA market.The basics of convexity, Lagrange duality, distributed sub-gradient, and Gauss-Seidel iterations methods for solving optimization problems are reviewed in [81].We can observe from these results that realizing the DSM considering the power system constraints as a convex optimization problem is not always possible.
In addition to these DSM techniques, there are some other methods which are combinations of the abovementioned techniques.Eksin et al. in [63] implemented a method that combines TOU and RTP.In this method, a system operator uses a temporal linear function of total real-time demand profile and total real-time production of RERs in each time period, and customers use a complicated game theory-based method to maximize their own profit considering uncertainty in total demand and renewable production.Furthermore, it is important to focus on the method and not the name used to represent the method.For example, some literatures use the term RTP, but the price does not change with respect to the real-time consumption [82].The method used in this paper is actually TOU with multiple time periods.

Cost Minimization of Each Customer (D1)
Most of previous DSM programs aim to decrease the total cost of the distribution power grid.For this purpose, three different objective functions are generally chosen: minimization of the retailers' cost function [70], maximization of social welfare [69,83], and minimization of the total energy cost of customers [80], considering customer discomfort [84].The authors believe that these goal functions are not commonly accepted by the customers.These objective functions do not directly benefit customers, and as a result, customers tend to contribute less in these DSM program.
If the DSM programs can help each customer maximize his/her own profit, customers would participate more in this program.A similar trend can be observed in the power system.Prior to deregulation, the cost of the whole system was optimized using optimal power flow methods.However, in the deregulated electrical market having different generation companies, each company optimizes its own profit rather than the whole system cost [85].Therefore, considering the benefit of each customer should be one of the important goals of future research.

Decision Authority of Customers (D2)
Some papers [30,83,86] propose DLC methods that centrally control each appliance.These methods decrease the security and comfort of customers, and based on the authors' opinion, it is another reason that discourages the customers' participation in DSM.Consequently, DSM programs should increase the liberty of customers to permit each customer to make their own decisions.

Prevent Rebound Peak (D3)
In order to overcome the rebound peak problem, a multi-agent framework considering the piecewise linear function for each customer's cost is proposed in [64].However, this method neglects the correlation of loads with each other and assumes that the price of each customer depends only on its own load.Therefore, different customers still can make the same decision.In other words, this method cannot always prevent the rebound peak.The RTP method is a good solution for preventing rebound peaks.

Technical Constraints (D4)
In order to prevent the rebound peak, a central algorithm is used in [76].This algorithm changes the load profile to minimize the energy bill of each customer.However, this method cannot guarantee an optimized solution, nor does it consider power constraints.As observed from [76], another limitation of existing research in DSM is that most of them do not consider the power system limits such as the maximum capacity of distribution lines, power stability, power losses, and so on.For example, a game-theoretic real-time price market is proposed in [65] to maximize the profit of each participant and uses a dual decomposition technique to solve this problem in a decentralized manner.By neglecting power loss and the corresponding non-linear power flow equations, the proposed optimization method satisfies Slater's condition and the dual decomposition can be implemented.
In other words, this method does not have the ability to consider the power loss and the nonlinear power system constraints.The authors of [70] show that a varying electricity price can help satisfy the power system constraints.However, implementation details are not presented.Therefore, a practical DSM program must consider all power system constraints.

Different Kinds of Load (D5)
A practical DSM program should manage different type of loads including electrical loads and heating loads.The heating loads have extensive potential to shift over time and they are highly correlated with the electrical demand, particularly, in systems that have CHP generation systems.Table 2 lists some other recent research projects on DSM of SDG with their specifications.

Supply Side Management
The power consumed in SG is mainly supplied from four sources: (1) power generated from RERs, (2) power generated from small thermal generators or CHP sources, (3) power stored in ESSs, and (4) power purchased from other grids.Scheduling these sources such that the system has a minimum cost and satisfies all constraints is called supply side management (SSM).
There are two main different directions in SSM.Some of them focus on an isolated grid that only have the first three of the abovementioned sources and cannot purchase/sell electrical power from/to somewhere outside the grid.These works minimize the generations cost in addition to satisfying the technical requirements of the system.For this purpose, they develop different kinds of unit commitment (UC), power dispatch, and optimal power flow (OPF).On the other hand, there are literatures that study interconnected distribution grids having a reliable source of power supply.However, their distribution grids have DGs that have to be adequately scheduled to decrease the cost of operation.As a result, they aim to develop mechanisms to maximize the profit of the distribution system.Figure 3 categorizes recent literature on SSM.In the following two subsections, the literature on SSM in isolated and interconnected SDGs is reviewed.

Supply Side Management
The power consumed in SG is mainly supplied from four sources: (1) power generated from RERs, (2) power generated from small thermal generators or CHP sources, (3) power stored in ESSs, and (4) power purchased from other grids.Scheduling these sources such that the system has a minimum cost and satisfies all constraints is called supply side management (SSM).
There are two main different directions in SSM.Some of them focus on an isolated grid that only have the first three of the abovementioned sources and cannot purchase/sell electrical power from/to somewhere outside the grid.These works minimize the generations cost in addition to satisfying the technical requirements of the system.For this purpose, they develop different kinds of unit commitment (UC), power dispatch, and optimal power flow (OPF).On the other hand, there are literatures that study interconnected distribution grids having a reliable source of power supply.However, their distribution grids have DGs that have to be adequately scheduled to decrease the cost of operation.As a result, they aim to develop mechanisms to maximize the profit of the distribution system.Figure 3 categorizes recent literature on SSM.In the following two subsections, the literature on SSM in isolated and interconnected SDGs is reviewed.

SSM in Isolated Systems
UC is a process of scheduling the states (on or off) of generators and determining the output power of each generator such that the total cost over specific time duration, typically one day, is minimized.Usually, UC decisions are made a day-ahead of the system operation and the generators unavailability or loads uncertainty are unknown in advance.In the conventional power system, UC finds the minimum cost generation schedule in order to meet the forecasted demand for each hour (deterministic UC) and the uncertainty is handled by imposing conservative reserve requirements.Since the deterministic method cannot obtain accurate solution in the presence of high uncertainty, such as the high penetration level of RERs, it is not appropriate for SGs.However, the deterministic UC is often used in the SG literature to simplify computation [87,88].
In order to consider the carbon emissions of power generators including thermal generators, DGs, and EVs in SGs, a novel deterministic UC model is proposed in [87].Typically, UC models consider carbon emissions in two ways: their weighted value is added to the goal function or the value is limited as an optimization constraint.However, this paper uses carbon emission trading (CET) an emissions permit or allowance, which is equivalent to one metric ton of carbon dioxide (CO2) emissions and can be sold privately or in the international market at the prevailing market price, to model the carbon emission cost.For this purpose, first, UC without considering carbon emissions is implemented by an improved PSO algorithm to calculate the total output and emissions of each unit in advance.Then, a heuristic method is used to decrease the emission.In [88] Macedo et al. presented a mixed-integer nonlinear programing model to solve the optimal operation problem of a radial distribution network simultaneously considering dispatchable DGs, switchable capacitor banks, voltage regulators, on-load tap-changers, RERs, and ESSs.This method also can model the

SSM in Isolated Systems
UC is a process of scheduling the states (on or off) of generators and determining the output power of each generator such that the total cost over specific time duration, typically one day, is minimized.Usually, UC decisions are made a day-ahead of the system operation and the generators unavailability or loads uncertainty are unknown in advance.In the conventional power system, UC finds the minimum cost generation schedule in order to meet the forecasted demand for each hour (deterministic UC) and the uncertainty is handled by imposing conservative reserve requirements.Since the deterministic method cannot obtain accurate solution in the presence of high uncertainty, such as the high penetration level of RERs, it is not appropriate for SGs.However, the deterministic UC is often used in the SG literature to simplify computation [87,88].
In order to consider the carbon emissions of power generators including thermal generators, DGs, and EVs in SGs, a novel deterministic UC model is proposed in [87].Typically, UC models consider carbon emissions in two ways: their weighted value is added to the goal function or the value is limited as an optimization constraint.However, this paper uses carbon emission trading (CET) an emissions permit or allowance, which is equivalent to one metric ton of carbon dioxide (CO 2 ) emissions and can be sold privately or in the international market at the prevailing market price, to model the carbon emission cost.For this purpose, first, UC without considering carbon emissions is implemented by an improved PSO algorithm to calculate the total output and emissions of each unit in advance.Then, a heuristic method is used to decrease the emission.In [88] Macedo et al. presented a mixed-integer nonlinear programing model to solve the optimal operation problem of a radial distribution network simultaneously considering dispatchable DGs, switchable capacitor banks, voltage regulators, on-load tap-changers, RERs, and ESSs.This method also can model the upper distribution substation as a local generator and purchase power from that.Despite considering different devices of distribution network and nonlinear constraints, the RERs are modeled as deterministic and it is not accurate in SDGs with a high RER penetration level.
When an optimization problem faces high uncertainty, non-deterministic methods can give more secure and economical solutions.Non-deterministic UC can be divided into four different categories depending on the way in which they address the uncertainty: stochastic programming [90][91][92][93], robust optimization [99,100], interval optimization [101], and risk-based optimization [102,103].
Firstly, stochastic programming optimizes the expected cost over the probability distribution of uncertainties.Markovian chains and the Monte Carlo method are two common methods to calculate the probability distribution used in stochastic programing.The states or scenarios in a stochastic programing increase exponentially with the number of uncertainty sources and hours.Therefore, it is difficult to select an appropriate number of scenarios to balance modeling accuracy, solution feasibility, and computational efficiency.Secondly, in a robust optimization method, in order to reduce the calculation burden and ensure solution feasibility against all possible realizations, the optimal solution of the worst-case in a given uncertainty set is calculated.However, the worst-case scenario should be carefully chosen to provide a reasonable tradeoff between the uncertainty and the cost-effectiveness of UC [102].The robust optimization method can work with a set of moderate information about the underlying uncertainty, such as the mean and the range of the data [99].Thirdly, in an interval optimization method, which can be regarded as a special type of the robust optimization, bounds of uncertainty are considered and UC decisions should be feasible for all these bounds.Lastly, in a risk-based optimization technique, the risk is formulated by multiplying the cost of the uncertain events by their occurrence probability.The risk-based optimization methods consider the operational risks of the power system, by adding the operational risks multiplied by the cost of their occurrence to the objective function and/or limit the risks values within the bounds of constraints [102].In other words, the risk-based UC is a deterministic UC with probability reserve management.
Specifically, for stochastic programing, a stochastic UC considering the generators unavailability and loads uncertainty is proposed in [90].This method uses discrete scenarios for modeling generators unavailability according to a two-state Markov process model and a continuous distribution function and predefined amount of reserve as constraints for load uncertainty.The authors of [91] model a wind generation as a discrete Markov process with state transition matrices established based on historical data instead of scenarios.Since the mean absolute error of DA load forecast is much less than that of the DA wind forecasts, the uncertainty of load forecasting is ignored for simplicity.A stochastic UC based on Markovian transition probability matrix considering two sources of uncertainty is proposed in [92].The uncertainties are from lack of knowledge about energy production of RERs (demand is modeled as negative generation) and N-1 contingencies (events that happen because of loss of any one of power system components).They formulate their UC as a mixed-integer nonlinear optimization problem and solve it using a decomposition method.Still, the abovementioned stochastic methods aggregate wind generations from different places as one Markovian process and so the transmission constraints cannot be considered.A DA OPF considering Renewable Energy Certificate (REC) value is proposed in [93] where it uses a probabilistic real-time adjustment cost to calculate the uncertainty of demand and supply and solves the optimization problem using a genetic algorithm.A REC is a paper or electronic certification which represents the property rights to the environmental, social, and other non-power attributes of renewable energy generation, and traded in market to expand the RERs.This method considers RERs with internal ESS in order to make them dispatch-able and reduce uncertainty.
For the robust optimization method, a two-stage adaptive robust UC model in the presence of a nodal net injection uncertainty set (combination of non-dispatchable generation uncertainty and real-time demand variation) is proposed in [99].The first-stage makes commitment decisions and the second-stage calculates dispatch actions by minimizing the sum of the UC cost and the dispatch cost under the worst-case realization of the uncertain nodal net injection or, i.e., minimizing the maximum cost of nodal net injection.a robust optimization approach to maximize the total social welfare under the worst-case wind power output and demand response scenario is developed in [100].The problem is formulated as a multi-stage robust mixed-integer programming problem.Both of these robust method use Benders' decomposition to solve their robust optimization problems.Using an interval optimization method, the model in [91] is extended to [101] so that each wind node is modeled as a separate Markovian chain to consider the transmission constraints.Here, a synergistic combination of Markov-based optimization and interval optimization is developed to reduce the dimension of the pure Markov-based stochastic UC problem.
For the risk-based optimization method, a risk-based DA UC method by considering the risks of load loss, wind curtailment, and branch overflow caused by wind power uncertainty in both objective function and constraints in isolated distribution system is proposed in [102].This method linearizes the nonlinear terms and uses a mixed integer linear program to solve the proposed risk-based UC.Using the conditional expectation of the risk value instead of its actual value is proposed by [103] to magnify the events having higher probabilities.This method defines a condition value at risk (CVAR) commitment with respect to a certain probability level as the lowest dispatch cost such that the dispatch cost is not exceeded.In addition, this paper formulates the reserve requirements in isolated systems based on overall demand and penetration of renewable technologies instead of selecting a predefined value.
In addition, it is possible that DR participation in UC decisions can improve the efficiency of the power generation scheduling and DR.Since UC is usually performed a day-ahead, it can be blended with DA-RTP or the capacity market.The security constrained UC method proposed in [72] considers DR as a source of reserve power.In this method, DR provider, which participates in electricity markets as a medium between ISO and retail customers, considers the load curtailing as an ancillary service to decrease the price of supplying power reserve.A stochastic UC method with uncertain DR is proposed in [94] based on the price elasticity where the dependency of prices between different time intervals is ignored.This paper solves the problem in two stages, the generators are scheduled in the event of generation contingency in the first stage and the optimum DR and real-time power generations are determined in the second stage.Furthermore, the cross price elasticity is considered in [95] to propose a method to calculate the penalty and incentive for DR participants.
In conclusion, it can be observed that, although the sharp rise in the penetration level of RERs calls for non-deterministic methods instead of deterministic methods, the main idea of UC in an isolated SDG and a conventional power system is quite similar.In the next subsection, SSM methods in interconnected SDGs are surveyed.

SSM in Interconnected Distribution Grids
The MG concept creates an opportunity to increase the penetration level of DGs in distribution power systems.Management of these DGs and ESSs along with the transmitted power between other MGs or upstream networks is one of the important issues of SDGs.A multi agent-based SSM is developed in [104] to reduce the system peak and cost, and facilitate power trading among MGs having ESSs and incentive-based DR.It considers an agent for any loads, generation units, storage systems, MG, DR, and the network; and proposes virtual local markets, which allow customers to participate in DR and trading with each other.The energy exchange among MGs and a power plant is formulated in [105] using a prospect theory-based static game and the impact of MG subjectivity on MG energy exchange is investigated.It shows that subjective MGs at low (high) battery levels request more (less) energy from the power plant.Then, this paper provides criteria on the energy price in the local energy market for avoiding the impact of user subjectivity in the trade.
A stochastic SSM in an interconnected MG having EVs and RERs is formulated in [106].This method minimizes the expected operational cost of the interconnected MG and power losses over the next 24 h, while accommodating the intermittent nature of RERs.Also the battery degradation cost is considered in the goal function and minimized.Although power loss is considered in the constraints, there is no strategy to consider the power system constraints.The authors of [83] consider a MG with a centrally shared wind turbine, an ESS, and several micro CHPs with different owners.This study proposes a hierarchical optimization method using Q-learning to minimize the cost for the whole community (all micro CHPs cooperate to generate power for the whole community) and applies an algorithm to determine the house bill based on their consumption and generation.Yet, there is no guarantee that this method is the best solution for all customers.Yang et al. in [107] modeled various devices, e.g., appliances, batteries, thermal generators, and wind turbines, in a MG and develop a large-scale mixed-integer programing with coupling constraints to minimize the total economic cost of the MG.To solve the problem more efficiency, the problem is decoupled using Benders' decomposition into a set of sub-problems, which can be solved distributedly on each device.
These papers all study active power management.However, there are also some papers that study reactive power management.A decentralized reactive power management based on s Nash bargaining solution to control voltage locally is proposed in [113].This method ignores the power losses of the system and pays incentives for DGs' reactive power based on the cost reduction of utilities in reactive power compensators.

Future Research Directions
This subsection discusses the future research directions for a practical SSM program.Although the SSM in the isolated SG seems similar to that of the traditional power system, the SSM in the interconnected SDG is a new idea and many challenges still remain to be solved.Like the DSM methods, the existing SSM in the interconnected SDG has several drawbacks that need to be resolved.Since a practical SDG needs a competitive market to attract more investment in RERs, any SSM program should consider each generator's profit instead of the system-wide profit.Furthermore, at high RER penetration levels, stochastic modeling of energy production becomes very important due to the uncertainty of the power output of RERs.In this case, the SSM program should use non-deterministic optimization methods while working in harmony with the DSM program to decrease the cost and improve the reliability and quality of the power system.
The importance of coordination between demand and supply management program using transactive energy (TE) techniques is described in [114].The research shows that TE mechanisms can considerably reduce the balancing energy requirements of the network using the real-time supply and demand management.The Gridwise Architecture Council defines TE as "a set of economic and control mechanisms that allows the dynamic balance of supply and a demand across the entire electrical infrastructure" [115].In other words, the TE mechanism is described in [116] as a decentralized real-time, dynamic pricing method considering the influence of the supply and demand using two way communication techniques.Consequently, TE mechanisms are one of the important requirements of future SSM programs.
Another important requirement of a practical SSM program is improving the technical issues of power systems.Most of research in this area neither proposes methods to improve the power system constraints such as power loss or stability, nor considers these constraints in their optimizations.Since power system equations are intensively nonlinear, some papers try to simplify them.Three neural networks are used in [108] to model the behavior of power systems to quickly calculate power loss, dynamic behavior of reactive power, and battery life degradation.This paper focuses on a stochastic optimal control of MG having multiple RERs, but does not consider the economic details.The main specifications of a practical SSM program in a SDG are as follows: In sum, SSM has attracted many researchers in recent years employing similar ideas.Table 3 lists some other recent research in SSM, along with their drawbacks.A modified TOU to reduce the voltage rise problem of rooftop PV panels

Minimize modified cost function
Linear and mixed-integer programing Determine the optimal demand under uncertainty using a stochastic programming model

Minimize energy bill of customers
The first-order optimality condition   Determine the optimal demand under uncertainty using a stochastic programming model

Minimize energy bill of customers
The first-order optimality condition   A modified TOU to reduce the voltage rise problem of rooftop PV panels

Minimize modified cost function
Linear and mixed-integer programing Determine the optimal demand under uncertainty using a stochastic programming model

Minimize energy bill of customers
The first-order optimality condition

Electrical Vehicles
The transportation system and electric power generation have many issues in common and can be linked together.They consume more than 60% of the global primary energy demand and are primarily responsible for the greenhouse gas problem [119].Recently, the growth of the EV industry is making this link much stronger.Generally, an EV can be defined as any vehicle that uses batteries as some part or all of its energy source.However, this paper only investigates EVs that can plug into the power grid to charge their batteries.
It is now a well-known fact that EVs use energy much more efficiently than conventional internal combustion engine vehicles.The efficiency of EVs can reach up to 65%, while conventional vehicles have efficiencies of less than 20% [120].In other words, the combination of EVs and SG with high penetration of RERs has a high potential to reduce the greenhouse gas emissions, in addition to decreasing the energy cost.However, supplying power for a large number of EVs would have a significant impact on the power grid and the electricity demand.Consequently, many research efforts have been made recently in this area.In this section, after briefly reviewing different types of EVs and their evaluations, the total cost of ownership (TCO), grid to vehicle (G2V) concept, and vehicle to grid (V2G) concept are presented.Finally, the future directions of EV research from a SG perspective are discussed.

EV Types and Evolution
Plug-in EVs (PEVs) are generally classified into battery EVs (BEVs), extended-range EVs (EREVs), and plug-in hybrid EVs (PHEVs).There is no internal combustion engine in BEVs.They have a large battery bank as the energy source, which is charged by a cord from the power grid.On the other hand, EREVs and PHEVs use an internal combustion engine and have a relatively smaller battery bank.In EREVs, the combustion engine, which is coupled with an electricity generator, only produces the electricity needed to charge the battery and vehicle is driven only by electrical motor, while in PHEVs, the combustion engine operate in parallel with an electrical motor [121].A good review of different EV architectures, their energy storages, their chargers and power convertor technologies, and their internal control systems are presented in [122].Since BEVs do not have combustion engines, they have many advantages.They have much fewer moving parts, do not need regular oil changes, regenerate better breaking loss, and have much less maintenance cost.However, the size, weight, and the cost of their battery bank limits the vehicle's miles of travel (VMT) with one charge.Under this circumstance, one of the most important challenges of EVs, especially BEVs, is their urgent need for fast charging infrastructures for long-distance travel.
Based on the US standards for electrical vehicles, there are three kinds of chargers: level one, which works with a single phase 120 V, 12-16 A; level two, which works with a single phase 240 V, 40 A; and level three or fast charging methods, which use three phase 480 V, 60 to 150 kW off-board charging systems.In [123] researchers estimated that the charging infrastructures for level one and two in residential and commercial buildings cost around 900 USD and 1800 USD, respectively.Since a typical medium sized BEV-100, (with VMT of 100 miles) consumes 0.36 kWh per mile and has 40 kWh battery energy [124], a full charging cycle takes more than 20 h, 4 h, and 15 min with level one, level two, and level three chargers, respectively.However, the average VMT per day is around 25 miles and it is likely that EVs do not always need to be fully charged every day.
Due to the charging challenges of EVs, exact information about driving behavior is needed.A review of driving patterns including daily traveling distance, the number of daily trips, and the departure and arrival times of each household in the US was performed in [125].The authors of [126] studied the behavior of drivers and their traveling distance in the Western Australia Electric Vehicle trial to determine the specifications of public charging infrastructures based on drivers' charging preferences.This paper uses advanced discrete choice models and shows that drivers prefer to charge EVs at home or work, and they are sensitive to charging cost and duration.Xi et al. in [127] optimized the locations of public charging infrastructures using a linear integer programming method that first, predicts where EVs' owners live and then simulates the relationship between the service rates and the chargers deployed.They applied the model to the US central-Ohio region and demonstrate that a combination of level one and two chargers maximizes the available charging energy.
The price of EVs is another challenge of EVs' popularity.An overview of commercial EVs with their specifications and prices is presented in [121].It can be seen in this overview that the price of EVs is higher than that of conventional vehicles.However, the maintenance and energy cost of EVs are much less than that of the conventional one.In order to help customers to choose a vehicle type, TCO of EVs is investigated in [124,[128][129][130].In [128], TCO for annual VMT is developed based on a large data set of driving profiles from Germany.Regarding the high price of fossil fuel in Europe, this paper shows that PHEVs are a cost effective solution for many drivers as PHEVs have relatively low variable costs, unlimited total range, and their initial investment is not so high compared to a conventional vehicle.The sensitivity of BEV economics to charging strategy, vehicle range, and driving pattern is studied in [124].This paper shows that the cost of unachievable VMT has a significant impact on the TCO modeling, such that if another low cost vehicle (e.g., second conventional vehicle in house) is available, the BEV-75 is more cost effective than having another conventional vehicle.A TCO model of PHEVs with details such as maintenance costs, and salvage value are formulated in [129].This paper compares the proposed model with previous studies in this area and demonstrates using a sensitivity analysis that the results are very sensitive to the value of uncertain parameters like fuel cost.A 20% rise in gasoline prices decreases payback period of mid-size PHEV-20 in comparison to a conventional vehicle to around 30%.All of these research show that TCO of EVs and conventional vehicles is almost the same and depends on uncertain values, such as fuel cost, initial cost, and taxes.A TCO model for EVs is developed in [130] and hypothesizes that the provision of TCO information on fuel economy labels could increase the consumer demand for hybrid and plug-in vehicles.A comprehensive summary of the literatures that predict the penetration rate of EVs in the future is presented in [131].These literatures use three different forecasting methods: agent-based, consumer choice, and time series.As in the TCO model, the future penetration rate of EVs depends on the uncertain values.Most of the forecasting results show a penetration level of more than 20% and some of them of more than 60% by 2040.
There are many factors, which are not quantified in TCO models, that may also affect customers' willingness to pay more for PHEVs, such as fewer trips to gas stations, lower CO 2 and greenhouse gas emissions, less noise and vibrations, better acceleration, cabin preconditioning, better handling due to balanced weight distribution, and lower center of gravity [129].Rezvani et al. in [132] presented a comprehensive overview of how consumers perceive EVs and why they purchase EVs.
The evolution of EVs in four generations is reviewed in [133].In the first generation, manufacturers agreed on some common standards, such as conductive charge coupler [134].In the second generation, the efficiency is improved and the EVs are equipped with communication system and connected to smart meters in order to improve the charging process (G2V).In the third generation, which could be implemented after at least 5 successful years of the second generation, EVs connect to loads, houses, or isolated networks, and the level three chargers are extended into public areas.Finally, in the fourth generation, the two-way communication between SGs and vehicles is implemented and vehicles can inject active and reactive power to the power grid to improve the stability and controllability of the SG (V2G).In the following two subsections, existing work on G2V and V2G are presented.

Grid to Vehicle (G2V)
Increasing the penetration level of EVs imposes new stress to the existing power systems.Based on market forecasting theories, the penetration level of EVs will reach at least 20% in the near future, and it means that there will be more than 25 million EVs in the US alone.Then, if each EV needs 10 kWh per day on average (driving about 25 miles), the daily energy demand will increase by 250 GWh (about 8% of the total demand of the US [43]).In order to anticipate this problem, many research focus on EVs' load prediction.A load profile database for EVs was built in [135] based on car-use profiles of current conventional vehicles in six European countries (Germany, Spain, France, Italy, Poland, and the United Kingdom).This study determined the load profile between different weekdays for each country based on car traveling distance and speed using a simple charging mechanism.A methodology to estimate the electric energy and power consumed by light-duty EVs is proposed in [136] and [137] using the travel patterns of US surveys (National Household Travel Survey) from 2003 and 2009, respectively.The method proposed in [137] calculates the expected values and the standard deviations of EV electricity energy consumption, and shows that since the standard deviations are large compared to the expected values, the daily electricity energy consumption of an individual EV cannot be precisely predicted.However, the results can be utilized to estimate the overall energy consumption of an EV fleet.The authors of [138] developed a tool, which estimates the additional demand of EVs using Monte Carlo simulations performed on a large fleet of EVs over several days, and demonstrated that the electrical load of this group at each hour of the day can be modelled by a normal distribution to simplify the estimation procedure.
Preliminary results of a survey among 1,754 new EV buyers between April and October 2013 are summarized in [139].This study obtained some interesting results: (1) many customers have charging infrastructures (level one) at their homes; (2) consumers are much more likely to purchase a PHEV than a BEV; (3) without incentives or policies to control charging behavior, EV electricity demand will likely peak at around 6-8 pm in residential areas and between noon and 2 pm in commercial areas [136].In [140] the authors also point out that the peak amount from uncontrolled charging of EVs will be a serious problem for California's old power grid in the near future.
The influence of EV charging on the power system is briefly reviewed in [141].Generally, uncontrolled charging of EVs has many adverse effects on the power system.In addition to overloading of system elements, other adverse effects of a high EV penetration level include: (1) current and voltage imbalance due to a large number of high power stochastic single phase loads [142]; (2) power quality problem due to high total harmonic distortions of battery chargers [143]; (3) adverse effects on power system devices, such as decrease in the life expectancy of transformers [144,145] and cables [143], or circuit breakers and fuse blowouts [146]; (4) increased voltage deviations [147]; (5) increased power losses [148]; and (6) economic influence, which has not been completely analyzed yet.A huge amount of electricity demand is added to the power system, that even during off-peak periods, changes the balance between supply and demand.Hence, more comprehensive studies are needed.
In detail, a method for determining residential distribution transformer life in the presence of EVs is investigated in [144] and shows that a simple charging method can reduce transformer lifespan by 37%.A method for estimating the impact of EVs charging on overhead distribution transformers is presented in [145] based on detailed travel demands.This paper proposes a new smart charging algorithm that manages EV charging based on estimated transformer temperatures to prolong the transformer lifespan.The authors of [148] propose a comprehensive approach for evaluating the impact of different levels of EV penetration on distribution network investment and incremental energy losses.This paper shows that with 60% penetration of EVs in two large scale real distribution networks, energy losses can increase by 40% from the nominal load in off-peak hours (based on whole electrical loads excluding EVs) and investment costs can increase by 15% from the total actual distribution network value.
Charging strategies have a significant influence on the EV affecting the power system.Table 4 shows the different types of charging strategies and a list of the literature on each type with their specifications (which will be described in Section 4.4).In the non-smart charging method, chargers operate without considering the real-time conditions.In a simple (or unconstrained) charging method, as soon as an EV connects to the grid, the charging procedure with nominal power starts, whereas in a delayed charging method, it starts after a predefined delay.This delay can be set manually in such a way that the EV's charger uses the lower tariff of off-peak periods.However, a PHEV total fueling cost model presented in [149], demonstrates that in many situations, delaying the PHEV charging until the off-peak periods rather increases the fuel consumption and energy price.

Minimize energy bill of customers
The first-order optimality condition The adverse impacts of EVs will arise, if the charging procedures are not controlled.Therefore, a simple central controller method for EVs is proposed in [138] to prevent the peak demand.In the smart charging methods, vehicles are charged only when it is most beneficial.For this purpose, algorithms should measure some parameters, analyze and predict the energy price and driving behavior, and decide on the amount and time of EV charging.This is the link that connects EVs and SGs.In the direct control, retailers or aggregators control all the EVs of their region and determine when and how much they can charge.However, in the indirect control, the control is applied by changing the energy price or giving incentives.
In real systems, since many uncertainties are associated with the planning of the EV charging procedure, such as the time of departure or arrival, the state of charge (SOC), and the size of their battery, most of the existing research works employ the direct control or centralized methods.In [150] a direct smart charging mechanism, which optimally allocates available charging capacity considering network constraints and EVs' preferences, was presented.In this method, EVs owners can pay more to have a higher preference for faster charging.However, the proposed preference algorithm cannot manage the whole power system capacity and needs an upper optimization mechanism to allocate the remaining capacity.Most of the research in DSM considers EVs as a curtailable load and controls them like other loads.For example, a direct control method for EVs charging for their DSM programs is proposed in [67,106].Although considering the power system issues, which are mentioned above, is essential, when the penetration level of EVs increases, most of the existing research in this area only studies the economic issue or technical issues without considering their influence on each other.In an attempt to address this issue, a direct method to design a measurement-based, real-time, and distributed charging algorithm using a dual-decomposition approach is used in [86].This method applies an approximated calculation to consider the maximum limitation of power system components.
Using the direct control method is another weakness of these studies.Direct methods are suitable for public places such as parking lots and do not motivate for house charging.Based on realistic vehicular mobility/parking patterns, a centralized EVs recharge scheduling system for parking lots is proposed in [151].In order to show the performance of the method, the authors compared the proposed method with two different scheduling mechanisms, first-come-first-served and earliest deadline first, using two objective functions, maximizing the total parking lot revenue and maximizing the total number of EVs.However, indirect charging methods are a more promising concept as they are more likely to be accepted by customers than direct control methods, as suggested in [152].This paper develops an agent-based electricity market equilibrium model with variable electricity prices as an incentive for EVs to consume electricity when the supply of renewable generation is high.This method uses a stochastic model to determine mobility behavior and an optimization model to minimize vehicle charging costs.However, it has two drawbacks: (1) the variable electricity prices are calculated based on marginal generation costs and do not change based on real-time loads, and (2) power system issues are neglected.Fortunately, most of the adverse effects of EVs on the power system can be compensated by the V2G concept, which is reviewed in the next subsection.

Vehicle to Grid (V2G)
The idea of discharging a parked EV to a power grid or V2G concept was first presented in 1997 [153].Here, each EV has a bidirectional charger, which can charge the battery from the grid or discharge the battery for supplying power to the grid.Since vehicles are in use for only about 4% of the time and parked during the other 96% of the time [30], a bidirectional charger and EVs' batteries can provide almost all the benefits of ESSs for the power grid.Therefore, this new extra load can rather benefit the SG.The V2G concept can benefit the SG by: (1) providing peak demand; (2) providing ancillary service; and (3) supporting RERs.

Providing Peak Demand
The initial idea behind using a storage device in the power system was to buy energy during off-peak periods at a low price and sell it during peak periods at a high price.Based on this basic idea, the influence of EVs discharging during peak periods is more effective than the DLC method [153].However, there are two important issues that need to be considered.First, a large number of EVs causes the power demand in the peak and off-peak period to be closer to each other, and therefore, the energy price difference between the peak and off-peak (incentive) decreases.Second, battery degradation during the charging and discharging periods translates into costs, possibly even more than the incentive amount.Providing peak demand under different conditions is investigated in [154] and it is shown that with perfect forecasting and without considering the battery degradation factor, the incentive is around 200 USD annually and it is not sufficient to motivate owners to participate in this service.EV parking lots participating in the energy market are simulated in [82].This paper proposes a method for maximizing the profit of parking lot owners and compares the results with different DSM methods, such as TOU, CPP, and incentive methods.The results with one thousand parking lots, participating in the Spanish electricity market considering battery degradation, show that the expected profit could amount to 200 EUR per day.However, the number of charging cycles and the amount of SOC have negative influences on the battery life [155].When an EV wants to sell active power during peak periods, the average SOC of battery, in addition to the number of charging cycles, is increased, resulting in a significant reduction of battery life.Simulation results demonstrate that the cost related to the battery life reduction are about twice as high as the benefits of providing peak demand, while other papers, which consider battery degradation factor, do not model the effect of high SOC.

Providing Ancillary Service
Since in any given time, many EVs could be connected to the power grid, aggregated EVs can provide ancillary services without significantly influencing their main duty.EVs with a proper bidirectional convertor can supply active and reactive power for power systems and better control the system than a central controller as they are distributed over the grid.The aggregated EVs can offer ancillary services, such as providing active power balancing and frequency regulation [136], spinning and non-spinning reserves [156], and reactive power, voltage control, and loss minimization [157].
In detail, the active power balancing markets in Germany and Sweden are investigated in [136] and the possible EVs' profits under different conditions are obtained.The study concludes that each EV can earn 30-80 EUR per month in Germany, whereas no profits are possible in Sweden.Here, the spinning reserve can be described as a specific amount of additional generating capacity, which must respond immediately and reach full capacity within 10 min after requests.Therefore, the spinning reserve providers must have the ability of decreasing or increasing the active power to regulate frequency.For this reason, EV aggregators are paid for having a given available and synchronized capacity and receive additional payments for energy delivered to the network.Since the response speed of EV is between 4 s and 1 min, participation of EV aggregators in the spinning reserve is appropriate from the network perspective.Moreover, the battery will typically only charge and discharge slightly and oscillate around the initial charge state.A study on the participation of EVs in reserve provision in [156] states that the average net income from this service can reach up to 700 USD for BEVs and more than 3000 USD for PHEVs or EBEVs that do not always need to be fully charged.A novel two-stage optimization method is proposed in [157] to minimize the network energy losses using smart charging and discharging of PHEVs.This method employs a Monte Carlo method to simulate the uncertain nature of customers' loads and PHEV charging profile to demonstrate that a 22.5% reduction in nominal power loss can be expected with 90% of PHEV penetration.

Supporting RERs
RERs have uncertain outputs, and therefore their penetration level in the power system is limited by the ability of system controllers.Since EV aggregators in V2G can work as controllers in the power system, they can help to increase the penetration level of RERs in the power system.On the other hand, increasing the penetration level of RERs can decrease the energy price [152] so it can also help to increase the penetration level of EVs.Conversely, EVs can help RERs to grow as well.Some literature proposes EVs as controllable loads, which can change their consumption in order to compensate the fluctuations of RERs output [158,159].Some works [160] categorize EVs with controllable load as a V2G concept.Injecting the stored energy of EVs into the grid for smoothing the output of RERs is another way to help increase the penetration level of RERs [161][162][163][164].
It is shown in [158] that a surface around 15 m 2 , about the size of a parking lot space, can produce an average daily energy of about 12 kWh, and represents a solar to vehicle concept for large parking lots.A two-stage charging scheme for an EV aggregator is proposed in [159] to minimize the charging cost of each individual participator, while taking uncertain renewable generation and aggregator's capacity into account.This study uses a Nash equilibrium to minimize the cost of each EV, and the charging amount is change based on the RERs' outputs.
V2G could stabilize a large-scale (one-half of US electricity) wind power plant with 3% of the EV fleet being dedicated to the regulation of output power of RERs [161].A simple strategy for an effective utilization of EV battery capacity for mitigating the impact of PVs based on V2G concept is proposed in [162].This method develops a controllable charging/discharging pattern to optimize the use of the limited EV battery capacity to control voltage rise when PVs produce more power than they can consume.However, this paper does not directly consider the economic issues and the battery degradation factor.A hierarchical stochastic control scheme is presented in [163] to coordinate of EV charging and wind power in a MG.This scheme, consisting of two layers, minimizes the power exchange between the MG and the main grid while ensuring that all EVs are almost fully charged before their use.Minimizing the power exchange reduces the uncertainty of RERs and the demand from the main grid, and may help to increase the penetration level of RERs.However, this method also does not consider the economic benefits.A stochastic UC method based on the Monte Carlo technique is presented in [164] to integrate a large-scale wind power and EVs in V2G mode.This paper emphasizes that the aggregated EVs can improve the system condition and analyzes the dynamic process of stored energy in aggregated EVs based on the distribution pattern of user trips.The paper also proposes an EV aggregator model considering time-varying storage capacity and develops a day-ahead security constrained UC for EVs and wind power.

Future Research Direction
High penetration level of EVs in the near future is expected to change the power system in many aspects.EVs have different working modes, and there are many uncertainties when planning their uses.They behave like controllable loads in G2V mode and dispatchable small sources in V2G mode.Under these circumstances, most of the existing research treats EVs like other load elements and controls them with direct strategies.However, a practical SDG management system should consider the EVs charging and discharging process as a new element and indirectly control their power to prevent many adverse effects, while giving the decision authority to EV owners.Ideal EVs charging mechanisms should let each customer maximize his/her own profit and implement a reasonable incentive method to encourage EVs to operate in V2G mode.The main specifications of an ideal smart charging mechanism for EVs in a SDG are as follows: (E1) Use the smart indirect charging control to allow owners to maintain their own authority.(E2) Maximize the profit of each individual EV to increase the motivation of using EVs.(E3) Consider all the technical constraints of the power system in G2V mode.(E4) Propose incentive methods to improve the power system conditions in V2G mode.(E5) Work in coordination with practical DSM and SSM (Sections 2.4 and 3.3).

Conclusion
In this paper, we have reviewed recent literature on SDGs from economic and power technical perspectives.A SDG includes the loads, distributed generations, storage devices and EVs, distribution lines, communication system, and control mechanism.We first presented challenges of SDGs and different SDG implementations around the world.Then, we investigated different electrical market management schemes in DSM, SSM, and EVs.For each category, we critically evaluated the existing work by discussing their limitations, and identified future directions for developing a practical SDG management system for the future SG.Finally, we conclude that the practical SDG management system should meet some specifications as follows:

‚
Controlling different loads, generations, and EVs, while considering their and the grid uncertainty; in other words, the management system must connect the DSM program, SSM program, and EVs charging/discharging method together.

‚
Using indirect methods to give decision authority to participants: planning demand and generation on a distribution grid under high uncertainty can be easily done by using centralized methods but it can also decrease the popularity and security of SDGs.

‚
Creating a competitive market to attract more participants: the benefits to individual customers should be valued more than minimizing the total cost of the system.

‚
Considering the technical issues of the power system: many existing works simplify calculations by neglecting the nonlinear power system equations, such as power loss, stability, voltage, and current constraints.

‚
Considering the limitations of communication and computational resources.

Figure 2 .
Figure 2. Category of DSM schemes based on motivation methods.

Figure 2 .
Figure 2. Category of DSM schemes based on motivation methods.

Figure 2 .
Figure 2. Category of DSM schemes based on motivation methods.

(
S1) Consider the profit of each generator instead of all generators and encourage different owners to participate.(S2) Model the probabilistic distribution of output power for different RERs.(S3) Consider the contingency scenarios and uncertainty of loads.(S4) Consider the power system constraints and a strategy to improve them.(S5) Work in coordination with practical DSM (TE mechanisms).

54 ]
using DLC by adjusting the temperature setting instead of on/off control Minimize maximum load (peak load) Evaluate the possible cost reduction under different flat pricing techniques in Sweden Minimize daily electricity cost of customers to reduce the voltage rise problem of rooftop PV panels Minimize modified cost function Linear and mixed-integer programing -

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 3 .
List of recent research in SSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 4 .
Category of EV charging strategies with their specifications.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.

Table 2 .
List of recent research on DSM.