#### Abstract

According to the mobile storage characteristic of electric vehicles, an emergency power supply model about the electric vehicles is presented through analyzing its storage characteristic. The model can ensure important consumer loss minimization during power failure or emergency and can make electric vehicles cost minimization about running, scheduling, and vindicating. In view of the random dispersion feature in one area, an emergency power supply scheme using the electric vehicles is designed based on the -means algorithm. The purpose is to improve the electric vehicles initiative gathering ability and reduce the electric vehicles gathering time. The study can reduce the number of other emergency power supply equipment and improve the urban electricity reliability.

#### 1. Introduction

Power energy as the modern major energy has irreplaceable function in human daily life [1]. But the stability of the power system is affected by natural disasters and extreme weather. It is significant to prevent accidental large area blackout from happening [2, 3].

Urban power grid has its own particularity on the emergency power supply processing. Once the urban power grid crisis happens, the power supply security of hospitals and other important users will be severely affected inevitably [4–6]. Because the emergency power supply (EPS) equipment is expensive, there is a lack in the configuration quantity in most cities in China. So, to enhance the urban power grid supply emergency capacity, it is particularly important to provide an optimal emergency power allocation scheme [7].

With the increasing size of the electric vehicles in China, they have been applied in EPS as a mobile energy storage device [8–12]. Electric vehicles have many advantages as EPS; for example, users do not need to buy other EPS systems to reduce investment; they ensure uninterrupted power system operation and electric vehicles demand. Besides, as EPS, electric vehicles also can supply power for private houses and public buildings through storing new energy power including wind power and solar power. The application has already been started and the systems V2H (vehicle to home), V2B (vehicle to building), and V2G (vehicle to grid) have been formed and the systems can reduce power outage losses when emergency peak occurs [8]. In addition, electric vehicles are used as battery and can also become critical back-up facilities in optimizing the family electricity home energy management system and realizing intelligent buildings [9]. The advantages and disadvantages and applicable scope of electric vehicles as EPS have been studied in power grids [10]. EV as an urban mobile EPS has been studied [11]. Reference [8] explored the EPS function realization of V2G and has given the power mode of EV as EPS. Reference [9] established the EPS optimal matching model based on V2G, with the objective function including the loss in restored power area and the investment costs of V2G as EPS. Reference [12] analyzed the feasibility and the economics of EV as a standby power supply.

In this paper, a regional capacity model of electric vehicles is given by referring to the model in [11], the feasibility of electric vehicles as EPS is analyzed, and a higher precision emergency power supply model is proposed with reference to the optimal matching model in [8]. The emergency power supply model contains important user power loss, electric vehicles running, scheduling, and minimum maintenance cost. Based on the emergency power supply model, a kind of EPS scheme is designed for scattered electric vehicles. In the EPS scheme, the -means algorithm is adopted and the electric vehicle users actively participating in the emergency power supply project are assumed. At last, the feasibility and effectiveness of the emergency power supply model as well as the scheme are proven through the electric vehicles and the important load in one city power grid. Compared to the research results in [10] and in [11], the active aggregation function of the electric vehicles in the area is improved, and the mobile storage advantage of city electric vehicles is fully realized. The research results show other EPS equipment number and the loss of user power, and the urban electricity reliability should be improved.

#### 2. Analysis on EV Capacity

The most important feature of EPS is power-hold supply for important load if the power blackout occurs. For different users, corresponding size of EPS needs to be configured. Considering the movement storage capacity of EV, the discharge capacity model of the region electric vehicles is given.where is the affordable supply of all electric vehicles, is the important load power, is the affordable supply of EV, is the electricity of important user, is the discharge power of EV, is actual demand important loads, is the area electric vehicles sum, is the area important users sum, is expected power supply time for EV, and is the actual emergency power supply time for important load.

The capacity model needs to satisfy the constraint conditions as follows:where is the single EV maximum discharge power, is the th EV actual voltage, is EV maximum discharge current, and is EV charged state [13].

If the capacity model in (1) meets the constraints in (2) and can achieve discharge at the same time through the scheduling control, the large-scale electric vehicles in the area can be used as a kind of EPS and provide uninterrupted power supply for important users when the urban power grid breaks down.

#### 3. Model Design of EV as EPS

The emergency power supply model of electric vehicles is established based on the minimum total consumption cost as the objective function. The optimal matching model in [10] is referred to; the electric capacity configuration and emergency power demand conditions are considered.

##### 3.1. Objective Function

The objective function for emergency power supply is the total consumption costs minimum, including important user power minimal loss, and the EV operation and maintenance costs minimum [8, 10, 12, 14]. The important user power loss minimum function is consulted from [8], and the operation and maintenance costs minimum function is referred to in [12]. Its expression is given combined with (1):where is important load loss cost in a unit time and is the unit capacity cost of EV as EPS. is the emergency power supply optimal matching decision variable; if = 1, that means EV emergency supplies power for important load and the value of is decided by State of Charge (SOC) of the batteries in the battery management system (BMS); if the battery SOC value is greater than 60% and the EV is closer to the emergency place, the regional electric vehicle emergency power supply model in Figure 1 will send command to the BMS, and the BMS will remind the EV owner to attend emergency power supply. is EPS decision variable; if , that means ESP emergency supplies power for important load and the value of is decided by the EPS capacity, the location information, and the importance of the outage load; this information is also in the regional electric vehicle emergency power supply model. is EPS total quantity, is the power outage loss comprehensive index of important load, is important load allowing maximum duration outage, and is the providing capacity of EV for important load. is the fatigue coefficient of EV as EPS and is acquired according to empirical estimates, is the reserved power scaling factor of EV to ensure normal operation, and usually is decided by the SOC [8, 13]. is the operation, scheduling, and maintenance fee scaling factor of EV as EPS; the value of it is determined from the experience in the operation and maintenance processes of EV [8]. , , and are life safety, economy, and special weight values, respectively [14]; is the life safety coefficient, having .

##### 3.2. Constraints

###### 3.2.1. Time Constraint

The specific time constraint inequality is given combined with (2) and (3) [15]:where is the maximum time between EV and user and is the maximum preparing time (time wiring or starting to power supply time) after EV arriving emergency area; this time is decided by the empirical value in daily EV charging work.

###### 3.2.2. User Demand Capacity Constraint [16]

Considerwhere is the number of electric vehicles as EPS for important load.

#### 4. Emergency Power Supply Schema Design

Because of its own particularity, particularly there are many important user loads in the region; the city power grid emergency power supply process should be different with previous large area blackout emergency treatment [17, 18]. The designed electric vehicle emergency power supply scheme in this paper is based on emergency power supply dispatching platform and can provide emergency power supply work through actively concentrating randomly dispersed electric vehicles in the region. Figure 1 shows the execution process of the electric vehicle emergency power supply scheme.

The emergency power supply dispatching platform in Figure 1 is a tool to ensure that the electric vehicles quickly respond emergency power supply for the important loads and collect the city power grid accident information. The information includes the current load of power grid, the positions of scattered electric vehicles and important loads, the numbers of electric vehicles and other EPS, traffic, weather, and incentive subsidy measures information, where the incentive subsidy measures include selling power price incentive of electric vehicles and the number of subsidies and consumption subsidies. The effective electric vehicle emergency power supply scheme is formulated according to the flowchart in Figure 1.

The number of of the electric vehicles location information vector () is divided into fuzzy clusters using fuzzy -means algorithm, and the similarity index of the objective function should be minimum. The objective function can be defined aswhere is the objective function of the fuzzy cluster , is the Euclidean distance from fuzzy cluster clustering center to EV, is the clustering center location information, having , the clustering center is consistent with the important load position, is two-dimensional matrix, having , is the similarity index between EV and important load, and is the location information of EV.

The existence necessary condition of (7) iswhere is the subsidy for EV consuming electricity when moving, is the relationship coefficient between Euclidean distance and the actual transport distance, is the unit distance transportation subsidies, is the important load capacity in cluster , is the total capacity of all electric vehicles in cluster , and is the EV minimum power supply time in cluster .

The fuzzy -means algorithm is an iterative learning process by above eight conditions. The clustering center and the membership matrix can be determined through the following steps.

*Step 1. *The clustering center is initialized, and the membership matrix is determined by (9) and (10).

*Step 2. *The clustering centers are calculated using (11); here .

*Step 3. *The objective function in (7) is counted; if it is less than a certain threshold, the algorithm stops.

*Step 4. *The user enthusiasm is aroused using (12), and EV’s capacity is estimated by (13) and (14). If the judgment meets demand, the cluster ends; otherwise, Step 5 is executed.

*Step 5. *The matrix is recalculated using (15); then return to Step 2.

#### 5. Example Analysis

Assume that there are 30 electric vehicles in one city power grid. The battery capacity of each EV is 60 Ah, the power supply voltage is 400 v, and the corresponding electricity is 24 kWh. The 30 electric vehicles as EPS offer services to 5 important loads, respectively. The traffic network configuration information is established in Figure 2 through the grid statistical computing and combining with geographical information.

In Figure 2, the number in each branch is the shortest possible time of EV to the near important load; the unit of is minute. Besides, the expected power supply time is assumed as 75 min of every electric vehicle. The restore important load properties and index values are shown in Table 1.

According to the parameters such as capacity and weight coefficient in Table 1, the power outage loss comprehensive index is computed by (4) and shown in Table 2; here, the value of is 3.

In Figure 2, the five important loads are assumed as five fuzzy centroids, and the thirty electric vehicles are considered clustering objects. The clustering using -means algorithm is programmed about the five important loads and the thirty electric vehicles; the clustering important information of comprehensive performance index and shortest possible time is given in Table 2 and Figure 2 separately. Figure 3 shows the clustering results using -means algorithm.

After clustering, the capacity constraints in (2), (6), and (13) for the electric vehicles power supply capacity are greater than important load demand capacity. For example, assuming that every EV can provide 75% of the maximum capacity, it can provide 126 kWh maximum capacities according to the seven electric vehicles clustering results in ; because the demand load power in important load is 120 kW, the seven electric vehicles can provide more than an hour continuous power supply time for the important load . The demand of several other important loads can also be verified according to the clustering results in Figure 3.

The total consumption cost of the emergency power supply model in (3) is calculated; the parameters selection is as follows: is configured to be 0.68, is 500 yuan, is 0.8, is 0.3, comprehensive weighting index is given in Table 2, and important load capacity , maximum outage duration , and important load loss per unit time are shown in Table 1. The minimum total consumption cost is 7.79625 million yuan according to the clustering results in Figure 3 and the model in (3), including the user power outage loss costing 6.36187 million yuan and the electric vehicles operation, scheduling, and maintenance costing 1.34438 million yuan. If electric vehicles do not participate in the emergency power supply, the minimum total cost is about 22.56762 million yuan, including the user power outage loss costing 18.87553 million yuan and other EPS costing 3.69209 million yuan. When using the optimization scheme in [10], the minimum total consumption cost is 9.65396 million yuan, including the user power outage loss costing 7.19863 million yuan and the electric vehicles operation, scheduling, and maintenance costing 2.45633 million yuan.

In view of the above-mentioned results, if the electric vehicles participate in the emergency power supply, the user outage loss cost is decreased to 33.7% of the original, the minimum total consumption cost is decreased to about 34.5% of the original, and other EPS investments can also be reduced. Compared with [10], the user power loss reduction is 88.4%.

#### 6. Conclusion

In this paper, considering the EV random dispersion characteristics, one kind of actively gathered emergency power supply scheme is proposed based on -means algorithm. The scheme can produce corresponding number of clustering centers according to the important load and the electric vehicles location information, ensure the electric vehicles arrive at the clustering centers in the shortest possible time, and achieve emergency power supply. The study helps to improve the active aggregation capabilities of the electric vehicles in the area, fully tap the electric vehicles movement storage advantages, reduce the investment cost of other EPS and the user outage costs, and improve the urban electricity reliability.

#### Conflicts of Interest

The authors declare that they have no conflicts of interest regarding the publication of this paper.

#### Acknowledgments

This work is supported by the Southern Power Grid Company of Science and Technology Projects of China (GZKJXM20160004) and the National Key Research Projects of China (2016YFB0101800).