Optimal Outage Management Model Considering Emergency Demand Response Programs for a Smart Distribution System

In this paper, a novel smart outage management system considering Emergency Demand Response Programs (EDRPs) and Distributed Generations (DGs) denoted as SOMSDGsEDRPs is proposed. The EDRPs are provided to decrease the cost of load shading in a time of emergency. The objective function of the problem is proposed to minimize the load shading cost, the DG dispatch cost, the demand response cost and the repair dispatch time for crews. The SOMSDGsDERPs solves an optimization problem that is formulated as Mixed Integer Linear Programming (MILP) taking into account the grid topology constraints, EDRP constraints, DG constraints and crew constraints. The MILP formulation was demonstrated in the GAMS software and solved with the CPLEX solver. The proposed method was tested on the IEEE 34 bus test system as well as an actual Iranian 66 bus power distribution feeder. The results show that the EDRPs and DGs can be effective in decreasing the outage cost and increasing the served load of the distribution power system in a crisis time.


Motivation
Power distribution grids are becoming more intelligent due to the opportunities that are provided by today's information and communication technologies [1]. These so-called smart grids consist of several parts, features and functions. A smart outage management system is an essential part of smart power distribution grids [2]. Distributed Generations (DGs) play an important role in outage management. In a time of crisis, the outage management system can effectively use the output power of the DGs to restore the power more effectively, to minimize the affected area and, consequently, to decrease the cost of the outage. For this, the output power of DGs should be dispatched by the outage management system considering economic aspects. Moreover, the integrated distribution system is divided into multiple areas [3]. In some areas, the customers' demand is not satisfied with the output power of DGs. Consequently, the Distribution System Operator (DSO) is inevitably forced to choose load shading to balance the generation and demand of consumers. The load shading is costly; therefore, DSOs prefer not to go for such a solution unless it is necessary. In this regard, if the sum of the generation power capacity is lower than the sum of the demand of each area, then load shedding is chosen.
Appl. Sci. 2020, 10 To address this issue, the Emergency Demand Response Program (EDRP) contract can be used to decrease the load shading cost by the DSO [4]. The EDRP is an incentive type of demand response program. There are three types of demand response, namely, an emergency demand response, economic demand response and ancillary service demand response. An emergency demand response is employed to avoid involuntary service interruptions during times of supply scarcity (such as outages in the power system). An economic demand response is employed to allow electricity customers to curtail their consumption when the productivity or convenience of consuming that electricity is worth less to them than paying for the electricity. An ancillary service demand response consists of a number of specialty services that are needed to ensure the secure operation of the transmission grid and which have traditionally been provided by generators. In summary, the demand response programs can be implemented in optimal energy management or other operation problems without any outage occurrence in the power system.
The EDRPs can be an effective solution for reducing the operation cost of the power system when the energy market price of the deregulated power market is high [4]. Furthermore, the main target of the EDRP contracts is in crisis times.
In a crisis time, crews of each depot try to repair the outages of the distribution system. The operation performance of each crew affects the load restoration time and the value of the pickup loads. The topology of the power system will be changed in each repair time interval. Furthermore, the optimal output power of each DG and the number of EDRPs in each load point and repair time interval depend on the performance of the crews. Hence, an optimal outage management system is needed to integrate the DG dispatch problem, reduce the EDRP cost, minimize the operation time of crews and minimize the load shading cost.

Literature Review
A smart power distribution system consists of different units such as a smart protection unit [5], a smart energy management unit [6], a demand response aggregator unit [7] and a smart outage management unit [8]. The smart outage management unit is one of the important units in the smart power distribution system. Many papers are published in the field of outage management. In [9], a smart outage management system based on probabilistic and fuzzy membership functions has been provided. In [10], the role of the outage management system in the reliability index of the multi-microgrid system has been investigated. In [11], a hierarchical outage management scheme to enhance the resilience of a smart distribution system comprised of multi-microgrids against unexpected disaster events has been proposed.
Several algorithms have been presented providing solutions for outage management problems, including heuristic techniques [12], dynamic programming [13] and multi-agent systems [14].
Recent studies show that the DG and the Micro Grids (MGs) have some potential to increase the flexibility of the outage management systems. The authors in [3] believe that the sectionalizing of the smart power distribution system into the smart MGs is a useful option for increasing the stability of the power system in crisis times. In this paper, DGs have an important role in the proposed outage management system. Although [3] proposes an interesting method for increasing the reliability of the MGs, the EDRPs, as an essential part of the smart microgrid, have been neglected.
Demand Response Programs are used to reduce the cost of operation of the smart microgrids. In [15], a Demand Response Program model has been provided for use in energy management. In this paper, the role of Demand Response Programs in the self-healing smart microgrid is addressed. One type of Demand Response Program is the Emergency EDRP that is usually used when the power distribution system faces a natural disaster and outage [16]. In [17], it is shown that the EDRP can reduce the line congestion index in the smart distribution system. This is a valuable effect of the EDRP for times of crisis.
In [18], a safe and reliable framework for normal operation and self-healing MGs (with multiple DGs and EDRPs) has been proposed. In this study, two-layer communication between each MG and the common bus is considered. In the initial state, all the MGs are in the normal mode (self-supply). In crisis times, all the MGs are connected to a common bus. This paper investigates the outage management system considering the EDRPs and DGs; however, it has not provided a plan for the crews to repair the outages.
Some recent papers propose a framework to integrate repair and restoration in the power system. In [19], a Mixed Integer Linear Programming (MLIP) model is proposed for post-hurricane outage management without routing the crews. In this paper, a three-stage framework is developed such that in the first stage, the outage is modeled to indicate the impact of hurricanes on power system components, and in the second stage, a stochastic pre-hurricane crew mobilization is provided for managing resources before the event; further, in the third stage, a deterministic post-hurricane recovery is presented for managing resources after the event. In [20], the Routing Repair Crew (RRC) problem in the transmission system has been discussed. In this paper, a four-stage model based on constraint injection has been proposed. This approach decouples the power-restoration and vehicle-routing optimizations.
Combining the RRC problem with distribution system power flow results in a complex optimization problem. To remedy this, one way is to consider them as two independent problems [21]. However, considering the RRC problem and distribution problem as two independent problems cannot provide an optimal solution because the mentioned problems are not independent of each other. The authors in [8] propose a framework to integrate the RRC problem and restoration problem. In this paper, the DG dispatch, crew dispatch and reconfiguration problem have been considered to reduce the time and size of a system outage. In [22], a two-stage stochastic program is developed to manage the smart MG operation and repair crew routing for outage restoration after extreme weather events. In this paper, the uncertain demand and the repair time have been considered to increase the reality of the problem, but the EDRP cost and the load shading cost have been neglected.

The Proposed Approach and Contributions
The EDRP and DGs help the DSOs in a crisis time. Since the power system topology in each repair time interval is changeable, the optimal values of the DGs and EDRPs in each load point will be changed. Unfortunately, this has not been addressed in previous studies. In this paper, a novel smart outage management system considering EDRPs and DGs denoted by SOMS EDRPs DGs is proposed. The SOMS EDRPs DGs works in a two-stage process. In the first stage, the optimization problem is solved to cluster the outages in each depot. In this stage, the ability of each crew, the capacity of each crew vehicle, the limitations of the depot resource and the distance between the outages and depots are considered. In the second stage, the multi-objective cost function is provided to optimize the DG cost, EDRP cost, load shading cost and RRC time. In summary, the contributions of this paper are the following: • A novel two-stage multi-objective optimization is provided for outage management.

•
The EDRP, as an essential program to decrease the cost of an outage in a smart distribution system, has been considered.

•
The combination of the RRC problem, DG dispatch problem and EDRPs considering topological power system constraints are investigated.

•
The proposed method is tested on an IEEE 34 bus test system as well as an actual Iranian 66 bus power distribution feeder.

Paper Organization
The rest of the paper is organized as follows. The EDRP concepts and effects on the outage management problem are described in Section 2. The framework of SOMS EDRPs DGs is presented in Section 3. The formulation of the proposed framework is provided in Section 4. The numerical studies Appl. Sci. 2020, 10, 7406 4 of 19 on the IEEE 34 bus test system and the actual Iranian 66 bus power distribution feeder are provided in Section 5. Finally, the conclusion is presented in Section 6.

Program
The EDRP can play an important role in a time of crisis when the power system has been damaged by storms and floods. In the EDRP, the DSO should sign contracts with subscribers before the crisis. Usually, the incentive cost of the EDRP, which is paid to the customers, is much lower than the outage penalty cost that is paid by the DSO to customers when the DSO is forced to implement load shedding. In the following, an example is provided to show the potential of EDRP in a crisis. A sample section of the power system that is affected by faults is shown in Figure 1.

The Role of EDRPs in the Program
The EDRP can play an important role in a time of crisis when the power system has been damaged by storms and floods. In the EDRP, the DSO should sign contracts with subscribers before the crisis. Usually, the incentive cost of the EDRP, which is paid to the customers, is much lower than the outage penalty cost that is paid by the DSO to customers when the DSO is forced to implement load shedding. In the following, an example is provided to show the potential of EDRP in a crisis. A sample section of the power system that is affected by faults is shown in Figure 1.
In Figure 1, the loads are included in demand response loads and constant loads, and three faults occurred in the right and left sides of the distribution system. The value of each load is assumed to be 250 kW, and the variable loads in each demand response point are considered to be 50 kW. The maximum capacity of the microturbine generator at the top of the distribution system is assumed to be 900 kW.

Decreasing the Outage Cost
In the example, the summation of the generation is lower than the loads (without the EDRP). In this situation, the EDRP is used by the DSO to meet the demand. Furthermore, the DSO pays incentives to customers that have an EDRP contract with the DSO for reducing 50 kW of electrical demand. The incentive value in the EDRP is lower than the penalty factor (in the load shading).

Increasing the Served Load
In Figure 1, Faults 1, 2 and 3 isolate the section of the distribution system. In this situation, line congestion has occurred, and the constant loads are turned off. However, the EDRP is a very effective program that can help in retaining the loads in the system by decreasing the partial value of demand considering the capacity of the lines.

SOMS Framework
In this section, the SOMS framework is described and the important features of the proposed structure are presented. The important goals of the proposed structure for outage management system are:


To classify the outages optimally according to the depots and crews' constraints.  To reduce the outage cost of the distribution system.  To reduce the DG cost of the distributed energy resources. In Figure 1, the loads are included in demand response loads and constant loads, and three faults occurred in the right and left sides of the distribution system. The value of each load is assumed to be 250 kW, and the variable loads in each demand response point are considered to be 50 kW. The maximum capacity of the microturbine generator at the top of the distribution system is assumed to be 900 kW.

Decreasing the Outage Cost
In the example, the summation of the generation is lower than the loads (without the EDRP). In this situation, the EDRP is used by the DSO to meet the demand. Furthermore, the DSO pays incentives to customers that have an EDRP contract with the DSO for reducing 50 kW of electrical demand. The incentive value in the EDRP is lower than the penalty factor (in the load shading).

Increasing the Served Load
In Figure 1, Faults 1, 2 and 3 isolate the section of the distribution system. In this situation, line congestion has occurred, and the constant loads are turned off. However, the EDRP is a very effective program that can help in retaining the loads in the system by decreasing the partial value of demand considering the capacity of the lines.

SOMS Framework
In this section, the SOMS framework is described and the important features of the proposed structure are presented. The important goals of the proposed structure for outage management system are: • To classify the outages optimally according to the depots and crews' constraints.

•
To reduce the outage cost of the distribution system.

•
To reduce the DG cost of the distributed energy resources.

•
To reduce the EDRP cost of the smart distribution system.

•
To reduce the RRC's time to obtain the health of the power distribution system.
Usually, the optimization problems have some constraints. In this paper, the important constraints that are considered are as follows: • The capacity limit of crews' vehicles and the limits of the resources in each depot.

•
The operation limits such as the power flow limit of the distribution system, EDRP limits and DG limits.

•
The RRC limit.

•
The repair of damaged components.
The proposed outage management system should be an integrated system considering all the goals and constraints. The proposed structure of the outage management system is shown in Figure 2.  To reduce the EDRP cost of the smart distribution system.  To reduce the RRC's time to obtain the health of the power distribution system.
Usually, the optimization problems have some constraints. In this paper, the important constraints that are considered are as follows:


The capacity limit of crews' vehicles and the limits of the resources in each depot.  The operation limits such as the power flow limit of the distribution system, EDRP limits and DG limits.  The RRC limit.  The repair of damaged components.
The proposed outage management system should be an integrated system considering all the goals and constraints. The proposed structure of the outage management system is shown in Figure  2.
As shown in Figure 2, the proposed structure for system outage management is categorized into two stages. In the first stage, all the outages are clustered considering the distance between depots and the damaged component. In this stage, all the above-mentioned constraints are addressed. This clustering causes a decrease in the processing time for the DSOs in crisis times. The first-stage results are very important in the case studies where the numbers of outages and depots are high. In the second stage, the multi-objective function is provided to optimize the outage cost, DG cost, EDRP cost and RRC time.  This paper considers some novel aspects of the outage management problem (in comparison with previous work) that are mentioned as follows: 

The load shedding cost is considered in the objective function of the proposed framework:
Previous work only considered the maximum served load in the outage management problem. However, this paper considers the load shedding cost in the novel structure. Additionally, the load importance is considered, to prioritize high-priority loads.  The EDRP costs are considered in the proposed framework: The role of the EDRP was not considered in previous work in the smart outage management field.  The dispatch cost for the DGs is considered in the objective function of the proposed problem: As shown in Figure 2, the proposed structure for system outage management is categorized into two stages. In the first stage, all the outages are clustered considering the distance between depots and the damaged component. In this stage, all the above-mentioned constraints are addressed. This clustering causes a decrease in the processing time for the DSOs in crisis times. The first-stage results are very important in the case studies where the numbers of outages and depots are high. In the second stage, the multi-objective function is provided to optimize the outage cost, DG cost, EDRP cost and RRC time.
This paper considers some novel aspects of the outage management problem (in comparison with previous work) that are mentioned as follows: • The load shedding cost is considered in the objective function of the proposed framework: Previous work only considered the maximum served load in the outage management problem. However, this paper considers the load shedding cost in the novel structure. Additionally, the load importance is considered, to prioritize high-priority loads.

•
The EDRP costs are considered in the proposed framework: The role of the EDRP was not considered in previous work in the smart outage management field. • The dispatch cost for the DGs is considered in the objective function of the proposed problem: DGs plays an important role in the smart outage management system. The operation cost for the DGs was not considered in previous work.

SOMS Framework
In this section, the mathematical formulation of SOMS DRPs DGs is presented. The mathematical formulation for the first stage and the second stage is described in the following sections.

The First Stage
Outage clustering is the main target in the first stage of the proposed structure. The basic and main idea of outage clustering is relating the outage to the nearest depot. However, each outage should be clustered in only one cluster (depot). Additionally, the constraints of the resources and the proficiency of each depot should be considered. The input data of the first stage are as follows: • The estimated distance between the outages and each depot. • The number of resources in each depot.

•
The required resources for outage clearing.

•
The proficiency of each depot.
This stage causes a decrease in the processing time for the problem. The objective function of the first stage is defined as Equation (1): In Equation (1), the variable s(σ, m) is defined to decide which outage m is assigned to the depot σ. Additionally, d(dep σ , m) is the distance between the outages and each depot.
The main target of the objective function is to assign the outages to their closest depots. After solving Stage One, all the outages should be clustered into one depot using Equation (2): It is clear that each damaged component needs some equipment for repair. Regarding the issue, Equation (2) shows that the damaged component (outage) should be clustered into the depot that has adequate equipment for repairing the outage.
In Equation (3), the parameter Res(σ, p) and Res N (m) indicates the number of resources in each depot and required resources for outage clearing, respectively. Furthermore, Equation (4) shows that each outage should be assigned to a depot that has proficiency in repairing the damaged component: In Equation (4), the parameter TD(σ, m) shows the proficiency of each depot in clearing the outages. In this equation, the binary parameter TD(σ, m) is considered higher than the clustering binary variable s(σ, m). Therefore, if the amount of TD(σ, m) is considered equal to zero, then the amount of s(σ, m) is determined as equal to zero. Therefore, the intended outage will not be clustered in a depot that does not have adequate proficiency.

The Second Stage
The objective function of the first stage is defined as Equation (5): In Equation (5), the first section is defined to consider the cost of load shedding and system outage. In this regard, the parameter Pen(b) is defined to show the difference between various buses. The second section is provided to decrease the RRC time. Moreover, the third term is considered to minimize the DG cost in crisis times, and the final section of the objective function is presented to minimize the demand response cost. In Equation (5) a 1 , a 2 , a 3 and a 4 are defined as coefficient parameters for the objective function. One of the important constraints in the power system is the balance of generations and loads, which is defined in Equation (6): Sus(b, bp) indicates the susceptance between bus b and bp. Additionally, δ(b, t) shows the angle of the bus b in time t.
Equation (6) shows that the sum of the DG output power and transmission power should be equal to the demand in each time interval. The capacity of the distribution lines is limited to P max Line . Therefore, Equation (7) is introduced as: where the variable Z(m, t) is defined as the status of the damaged component after the crews visit and fix the damaged component. The status of the damaged component at each time is lower than or equal to Z(m, t), which is introduced in Equation (8): In Equation (9), the power of each DG is forced to be lower than or equal to P max DG .
Appl. Sci. 2020, 10, 7406 If a load is energized, it should be remain energized, which is enforced by Equation (10): Equation (11) shows that if a crew cth visiting an outage leaves it after finishing the repair, then [8]: Equations (12) and (13) force all crews to start from the depot and, after the finishing task, return to the depot [8].
If the cth crew is moved from a damaged component m to n, then y(m, c, σ) = 1. Equation (15) relates the binary variables y(m, c, σ) and x(m, n, c, σ): Crews have different abilities and specialties for repairing the damaged components. Regarding the expertise, crews that cannot fix the damaged component should not visit that component. The mentioned issue is addressed in Equation (16) as follow: The sum of the damaged components that crew c visits should be lower than or equal to the number of pieces of equipment that are assigned to crew c by using Equation (17) [8]: The sum of the resources that are assigned to crew c in depot σ should be lower than or equal to the resources of the depots according to Equation (18): The capacity of the crew vehicle is limited to CAP(c) according to Equation (19): Equation ( Crews visit the outage area to repair the components, and the binary variable f (m, t) is equal to 1 when m is fixed at the time t by using Equation (21): In Equations (22) and (23), the outage repair time is defined. If crew c does not repair the mth damaged component, the time of arrival and the time of repair for this crew should not affect Equations (22) and (23), so AT(m, c) = 0 by applying Equation (24) [8].
If the damaged component m is repaired by crew c in time t, this section (or repaired component) is available in time t + 1 according to Equation (25) [8].

Implementation and Results
In this section, the implementation of the proposed model and the results are presented. The problem of the first and the second stages is modeled as a MILP problem. The proposed model is solved by the CPLEX solver in the GAMS software [23]. It should be mentioned that the main advantage of the GAMS platform in comparison with other heuristic algorithms is finding the most optimal solution, while heuristic algorithms do not guarantee finding the optimal solution. Furthermore, all the reported results in this section are the most optimal ones, and the "Absolut Gap" of the solutions is obtained as equal to "zero", which shows the preferability of the GAMS solver in comparison with heuristic solvers. The solver is used to find the solution until the "Absolut Gap" is obtained as equal to zero and lasts for a few minutes. It should be mentioned that a computer (Intel Core I5 2.8 GHz, 6 GB RAM) was utilized to solve the proposed framework.
In the following, the implementation of the proposed framework in the IEEE 34 bus test system and an actual Iranian power distribution feeder, which has 66 buses, are presented.

IEEE 34 Bus Test System
In this case study, seven faults are assumed in the IEEE 34 bus test system. The structure of the IEEE 34 bus test system is shown in Figure 3. In this case, two depots (each depot has two crews) are considered.
As shown in Figure 3, four DGs are considered in the case study. The important parameters of the DGs are presented in Table 1. and an actual Iranian power distribution feeder, which has 66 buses, are presented.

IEEE 34 Bus Test System
In this case study, seven faults are assumed in the IEEE 34 bus test system. The structure of the IEEE 34 bus test system is shown in Figure 3. In this case, two depots (each depot has two crews) are considered. As shown in Figure 3, four DGs are considered in the case study. The important parameters of the DGs are presented in Table 1. Regarding the load type, the penalty factor for the load shading programs and unwilling outages for each load point is assumed to be between 10 and 14 USD/kWh. Electricity supply interruptions have financial and social impacts on customers that can vary by season, time of day, customer type and customer load. Furthermore, it can be said that industrial customers are very sensitive customers Regarding the load type, the penalty factor for the load shading programs and unwilling outages for each load point is assumed to be between 10 and 14 USD/kWh. Electricity supply interruptions have financial and social impacts on customers that can vary by season, time of day, customer type and customer load. Furthermore, it can be said that industrial customers are very sensitive customers from an economic point of view in comparison with other types of customers. In this regard, the penalty factor for industrial-load-type supply interruption was considered to be equal to 14 USD/kWh. Additionally, the penalty factor for commercial and residential loads was considered to be equal to 12 and 10 USD/kWh, respectively. The indexes of public hazard for Outages 2 and 7 are assumed to be 2 and for other outages are considered to be 1. The resources and time to repair the outages are listed in Table 2. The capacity of Crews 1, 2, 3 and 4 to carry the resources is assumed to be 20, 20, 30 and 20, respectively. In this paper, the EDRP cost was considered in four steps. The step cost of the EDRP is shown in Table 3. Table 3. EDRP step cost. Step Demand Response Price Block (USD/kW) The total maximum capacity of the demand response in each demand response bus is assumed to be 30% of each demand response load. The maximum travel time between damaged components (outages) is considered to be 2.3 (time step). In this case study, the first stage of the proposed framework is neglected because the numbers of outages and buses are low.
One of the important outputs of the implementation of the outage management system is the RRC scheduling, which is shown in Figure 4. Step Demand Response Price Block ( The total maximum capacity of the demand response in each demand response bus is assumed to be 30% of each demand response load. The maximum travel time between damaged components (outages) is considered to be 2.3 (time step). In this case study, the first stage of the proposed framework is neglected because the numbers of outages and buses are low.
One of the important outputs of the implementation of the outage management system is the RRC scheduling, which is shown in Figure 4.  Regarding Figure 4, four crews are dispatched in the distribution system to repair the damaged components, and all of them start from depots and are returned to the depots. The optimal RRC problem is a very effective problem for decreasing the time and cost of the system outages. According to the ability of the crews for repairing the outages, the resource capacity of the vehicle crews and the other constraints, the RRC problem is provided. Figure 5 shows sensitivity analyses of the effects of the number of faults and location in the routing process. In this figure, the number of outages and the location of them are different from the base assumptions. The result shows that the proposed outage management system changes the tasks of crews to access the optimal solution.
Appl. Sci. 2020, 10, x FOR PEER REVIEW 11 of 19 Regarding Figure 4, four crews are dispatched in the distribution system to repair the damaged components, and all of them start from depots and are returned to the depots. The optimal RRC problem is a very effective problem for decreasing the time and cost of the system outages. According to the ability of the crews for repairing the outages, the resource capacity of the vehicle crews and the other constraints, the RRC problem is provided. Figure 5 shows sensitivity analyses of the effects of the number of faults and location in the routing process. In this figure, the number of outages and the location of them are different from the base assumptions. The result shows that the proposed outage management system changes the tasks of crews to access the optimal solution. One of the important problems in a time of crisis is the problem of the assignment of the optimal resource number to each crew for repairing the damaged component in the distribution system. The optimal resource number for each crew is shown in Figure 6. The results show that the tasks of Crew 2 are very low. Hence, a lower number of resources is assigned to Crew 2. One of the important problems in a time of crisis is the problem of the assignment of the optimal resource number to each crew for repairing the damaged component in the distribution system. The optimal resource number for each crew is shown in Figure 6. The results show that the tasks of Crew 2 are very low. Hence, a lower number of resources is assigned to Crew 2.
```` One of the important problems in a time of crisis is the problem of the assignment of the optimal resource number to each crew for repairing the damaged component in the distribution system. The optimal resource number for each crew is shown in Figure 6. The results show that the tasks of Crew 2 are very low. Hence, a lower number of resources is assigned to Crew 2. Figure 6. The optimal number of resources is assigned to each crew in the 34 bus case.
Regarding Section 2, the EDRP can effectively reduce the outage cost in the outage management problem. In this paper, the effects of the EDRP on the outage management problem were investigated, and the results are compared with each other. The results for the outage management cost with and without the EDRP are shown in Figure 7. Regarding Section 2, the EDRP can effectively reduce the outage cost in the outage management problem. In this paper, the effects of the EDRP on the outage management problem were investigated, and the results are compared with each other. The results for the outage management cost with and without the EDRP are shown in Figure 7. Referring to Figure 7, the outage cost of the distribution system is affected by the EDRP, and the outage cost is significantly decreased. In this study, the outage load points that are directly affected by faults are not considered in the EDRP. Some damage components are repaired by crews, and the load points in that area are permitted to contribute to the EDRP. According to this fact, the comparison of with-and without-EDRP scenarios shows that the decrease in outage cost in Step Times 4 and 5 is much higher than that in Step Times 1, 2 and 3.
An important goal of the outage management system is to return outage loads to the grid. The served load in each time step is shown in Figure 8. Referring to Figure 8, it can be concluded that the EDRP is a very effective program for increasing the served load. Referring to Figure 7, the outage cost of the distribution system is affected by the EDRP, and the outage cost is significantly decreased. In this study, the outage load points that are directly affected by faults are not considered in the EDRP. Some damage components are repaired by crews, and the load points in that area are permitted to contribute to the EDRP. According to this fact, the comparison of with-and without-EDRP scenarios shows that the decrease in outage cost in Step Times 4 and 5 is much higher than that in Step Times 1, 2 and 3.
An important goal of the outage management system is to return outage loads to the grid. The served load in each time step is shown in Figure 8. Referring to Figure 8, it can be concluded that the EDRP is a very effective program for increasing the served load. load points in that area are permitted to contribute to the EDRP. According to this fact, the comparison of with-and without-EDRP scenarios shows that the decrease in outage cost in Step Times 4 and 5 is much higher than that in Step Times 1, 2 and 3.
An important goal of the outage management system is to return outage loads to the grid. The served load in each time step is shown in Figure 8. Referring to Figure 8, it can be concluded that the EDRP is a very effective program for increasing the served load. The optimal priority list of the damaged components for repair by crews is shown in Table 4. The optimal priority list of the damaged components for repair by crews is shown in Table 4. Table 4. The optimal priority list of the damaged components in the 34 bus case.
Step Times Damaged Component Referring the Table 4, crews can't repair any outage in the first step time (This is shown by "*" in the first row of Table 4). Also, M4 is the priority damaged component that is repaired, and, in the end, all the faults are cleared from the distribution power system.

Iranian 66 Bus Power Distribution Feeder
In this section, the proposed framework for outage management is implemented on the Iranian 66 bus power distribution feeder. The topology of the Iranian distribution feeder is shown in Figure 9. In Figure 9, two depots and ten faults are considered. Furthermore, eight DGs are provided in the power distribution feeder. The important parameters of the DGs are presented in Table 5. The minimum and maximum of the penalty factor are considered for load shading programs like the first case study. The indexes of public hazard for Outages 2 and 7 are assumed to be 2 and for other outages are considered to be 1. The resources and time to repair the outages are listed in Table 6. The capacity of Crews 1, 2, 3 and 4 to carry the resources are assumed to be 30, 40, 30 and 30, respectively. The total maximum capacity of the demand response in each demand response bus and the step cost of the EDRP are assumed to be similar to in the first case. The maximum travel time between damaged component (outages) is considered to be 2.6 (step time).  The minimum and maximum of the penalty factor are considered for load shading programs like the first case study. The indexes of public hazard for Outages 2 and 7 are assumed to be 2 and for other outages are considered to be 1. The resources and time to repair the outages are listed in Table 6. The capacity of Crews 1, 2, 3 and 4 to carry the resources are assumed to be 30, 40, 30 and 30, respectively. The total maximum capacity of the demand response in each demand response bus and  In this case study, the bus numbers and outages are high, and the first-stage optimization is important. The results of the outage clustering are shown in Figure 10.
According to Figure 9, the outages are clustered into two groups. Groups 1 and 2 are shown by green and blue, respectively. The important target of this stage is clustering the nearest outage to the depot. This target is considered besides the resources and expertise limitations of the crews. The results of the first stage are provided to the second stage to solve the SOMS DRPs DGs problem. In the first stage, the SOMS DRPs DGs optimization problem is solved to minimize the RRC time, DG cost, load shedding cost and EDRP cost. Furthermore, each cluster of the Iranian distribution feeder (green and blue color) is related to one depot. In this case study, two crews are assumed in each depot and the outages in each cluster should be repaired by crews of the targeted depot. The results of the RRC problem are shown in Figure 11.
Appl. Sci. 2020, 10, x FOR PEER REVIEW 14 of 19 the step cost of the EDRP are assumed to be similar to in the first case. The maximum travel time between damaged component (outages) is considered to be 2.6 (step time). In this case study, the bus numbers and outages are high, and the first-stage optimization is important. The results of the outage clustering are shown in Figure 10. According to Figure 9, the outages are clustered into two groups. Groups 1 and 2 are shown by green and blue, respectively. The important target of this stage is clustering the nearest outage to the depot. This target is considered besides the resources and expertise limitations of the crews. The results of the first stage are provided to the second stage to solve the problem. In the first stage, the optimization problem is solved to minimize the RRC time, DG cost, load shedding cost and EDRP cost. Furthermore, each cluster of the Iranian distribution feeder (green and blue color) is related to one depot. In this case study, two crews are assumed in each depot and the outages in each cluster should be repaired by crews of the targeted depot. The results of the RRC problem are shown in Figure 11.   According to Figure 9, the outages are clustered into two groups. Groups 1 and 2 are shown by green and blue, respectively. The important target of this stage is clustering the nearest outage to the depot. This target is considered besides the resources and expertise limitations of the crews. The results of the first stage are provided to the second stage to solve the problem. In the first stage, the optimization problem is solved to minimize the RRC time, DG cost, load shedding cost and EDRP cost. Furthermore, each cluster of the Iranian distribution feeder (green and blue color) is related to one depot. In this case study, two crews are assumed in each depot and the outages in each cluster should be repaired by crews of the targeted depot. The results of the RRC problem are shown in Figure 11.  According to Figure 10, each fault is assigned to only one crew. The optimal dispatch of the tasks has been performed, and the outages in bus 50 and 34 are assigned to Crew 1. Additionally, the outage in buses 3, 60 and 66 are referred to Crew 2. Furthermore, Crews 3 and 4 should repair the outage in buses 7, 36, 45, 62 and 63. The priority of the faults for repairing is determined by the public hazard value of the fault, the fault location, the number of loads that are affected by the fault, the crew expertise and other parameters and indexes.
As mentioned in the above case study, the optimal number of resources that is assigned to each crew is important in the distribution system. Furthermore, assigning numerous resources to the crews is not a good strategy and causes the optimal crew performance to decrease. Therefore, the optimal number of resources to assign to each crew is shown in Figure 12.
expertise and other parameters and indexes.
As mentioned in the above case study, the optimal number of resources that is assigned to each crew is important in the distribution system. Furthermore, assigning numerous resources to the crews is not a good strategy and causes the optimal crew performance to decrease. Therefore, the optimal number of resources to assign to each crew is shown in Figure 12.
One of the important outputs of the model is the priority list of the outages for repair by crews. The priority list of the outages is listed in Table 7. Figure 12. The optimal number of resources is assigned to each crew in the 66 bus case. Table 7. The optimal priority list of the damaged components in the 66 bus case.
Step Time Damaged Component (After Table 7) Referring the Table 4, crews can't repair any outage in the first step time (This is shown by "*" in the first row of Table 4). As mentioned above, the DSO should pay the penalty price to customers affected by the outage. Furthermore, in this paper, ..... One of the important outputs of the model is the priority list of the outages for repair by crews. The priority list of the outages is listed in Table 7. Table 7. The optimal priority list of the damaged components in the 66 bus case.
Step Time Damaged Component Referring the Table 4, crews can't repair any outage in the first step time (This is shown by "*" in the first row of Table 4).
As mentioned above, the DSO should pay the penalty price to customers affected by the outage. Furthermore, in this paper, the EDRP solution has been suggested to reduce the outage cost of the load shading program and forced outage loads from faults. This suggestion is tested in the outage management framework. Consequently, in a crisis time, optimal outage management causes a decrease in the outage cost of the power system. The effects of the EDRP on the decrease in the outage cost are shown in Figure 13. In each time step, the outages are repaired and the outage cost and the served load value are affected. The served load in each time step is shown in Figure 14.
Appl. Sci. 2020, 10, x FOR PEER REVIEW 16 of 19 As mentioned above, the DSO should pay the penalty price to customers affected by the outage. Furthermore, in this paper, the EDRP solution has been suggested to reduce the outage cost of the load shading program and forced outage loads from faults. This suggestion is tested in the outage management framework. Consequently, in a crisis time, optimal outage management causes a decrease in the outage cost of the power system. The effects of the EDRP on the decrease in the outage cost are shown in Figure 13. In each time step, the outages are repaired and the outage cost and the served load value are affected. The served load in each time step is shown in Figure 14.    According to Figures 13 and 14, the served load is increased, and consequently, the outage cost is reduced in each step time. Furthermore, the outage cost is decreased impressively in the demand response scenario compared to without the demand response program scenario. Referring to Figure  14, it can be said that the EDRP causes an increase in the social welfare of the customers by increasing the served load value.

Conclusions
In this paper, a new smart outage management system denoted by is provided. The EDRPs and the DGs are considered in the proposed framework to optimize the operation of the outage management system. In the first stage of the proposed framework, the clustering method is Step Time (h) 0 500 1000 Figure 14. The effect of the EDRP on the served load in the 66 bus case.
According to Figures 13 and 14, the served load is increased, and consequently, the outage cost is reduced in each step time. Furthermore, the outage cost is decreased impressively in the demand response scenario compared to without the demand response program scenario. Referring to Figure 14, it can be said that the EDRP causes an increase in the social welfare of the customers by increasing the served load value.

Conclusions
In this paper, a new smart outage management system denoted by SOMS EDRPs DGs is provided. The EDRPs and the DGs are considered in the proposed framework to optimize the operation of the outage management system. In the first stage of the proposed framework, the clustering method is used to cluster the outages. In the second stage, the multi-objective function is provided to optimize the RRC time, the outage cost and the EDRP cost. Two case studies were used to show the efficiency of the proposed framework: the IEEE 34 bus test system and an actual Iranian 66 bus power distribution feeder. The results show that the outage clustering method is an effective solution for clustering the outage into each depot. Furthermore, the processing time is a very important parameter in a crisis time, and also, the outage clustering in the first stage causes a decrease in the optimization time. Additionally, the results show that the optimal operation of the crews (the output of the model) decreases the outage cost and increases the served load in each time interval. Furthermore, it can be concluded that the EDRP is a very effective program for decreasing the outage cost of the distribution system. Additionally, the EDRP is a useful problem for increasing the served load, and consequently, social welfare is increased. One of the important outputs of the proposed framework is the priority list of the outages for repair by crews. The priority of the outages is dependent on various factors such as the distance, needed resources and public hazard. Furthermore, the results show that the location of the outage is a very important feature for prioritization by the proposed framework to clear. In this regard, the importance of the outage location, which causes the highest impact on customers, is more than that of others. Additionally, the results show that the location of the load point demand response contracts plays an important role in the proposed outage management system. Therefore, EDRP contract allocation based on the probability of a crisis occurring in a location is an interesting topic for future research in the smart outage management system research field.

Conflicts of Interest:
The authors declare no conflict of interest.  A binary variable that shows the status of each load bus f (m, t)

Nomenclature
Indicates the time that outage m is repaired