Multiobjective Optimization regarding Vehicles and Power Grids

Vehicle to Grid (V2G) refers to the optimal management of the charging and discharging behavior of electric vehicles through reasonable strategies and advanced communication. In the process of interaction, there are three stakeholders: the power grid, operators (charging stations), and EV users. In real life, the impact of peak-valley difference caused a lot of power loss when charging. At the same time, the loss of current is also a loss for power grid companies and EV users. In this paper, we propose a multiobjective optimization method to reduce the current loss and determine the relationship between the parameters and the objective function and constraints. This optimization method uses a genetic algorithm for multiobjective optimization. Through the analysis of the number of vehicles and load curve of AC class I and AC class II electric vehicles before and after optimization in each period, we found that the charging load of electric vehicles played a role of valley filling in the low valley price stage and played a peak-cutting role in a peak price period.


Introduction
Automobile energy consumption accounts for nearly a quarter of the world's total energy consumption. With the improvement of the economic level of developing countries [1], the number of automobiles is increasing sharply, and the energy and environmental problems caused are becoming more serious [2]. Governments around the world are actively promoting electric vehicles. In addition to a series of economic subsidy policies regarding production and sales, many countries, including China, have also proposed the agenda the formulation of a timetable to ban the sale of fuel-fired vehicles. Electric vehicles (EVS) are considered a solution to reduce air pollution and greenhouse gas emissions. As a result, their market share has increased exponentially in recent years [3]. The energy of electric vehicles mainly comes from the power grid, which brings challenges to the distribution network, such as the increase of the peak-valley load difference, voltage drop, and loss increase. However, electric vehicles have broad appli-cation prospects in peak shaving, valley filling, power system auxiliary services, and the coordinated absorption of new energy as a mobile energy storage [4]. The main tasks are allocating, setting up charging stations, and regulating the timing of the photovoltaic power generation and power supply, which can minimize user costs and the loss of the power grid.
Many scholars have proposed solutions to the problem of electric vehicles from different angles. Miao et al. [5] introduced and compared the key components of lithium-ion batteries and described the related battery management system and the methods for improving the overall battery efficiency, capacity, and life. Researchers [6,7] studied the energy management strategies and charging technology for pure electric vehicles, discussed the main challenges and corresponding solutions faced by pure electric vehicles, and introduced the latest developments in pure electric vehicles.
However, research and political interest in public charging has increasingly focused on fast charging options and high electricity prices, but few estimates of future demand.
Gnann et al. [8] contributed to the research field related to policy by determining the number of fast charging stations required for each electric vehicle in the queuing model and the potential additional electricity saved per kilowatt hour. Furthermore, Pei used the PSO of intelligent computing to solve the charging and discharging theory of electric vehicles earlier [9], which provided inspiration.
In this paper, our main contribution is to propose a multiobjective optimization method to reduce the current loss of electric vehicles during the charging process, which is of benefit to both electric power companies and electric vehicle owners. The work we have done is as follows: (1) Select the Monday charging record to arrange. As the charging connection time is the physical connection time between the electric vehicle and the charging pile, the charging power is divided by the charging connection time, and the maximum power in a week is regarded as the minimum power of the car, which is sorted by power from small to large (2) With the goal of minimizing user charging costs, the optimal allocation plan for 5000 vehicles in a 24-hour period is obtained. In addition to the power limit of the line, the vehicle's own charging and discharging power limit, the battery SOC limit, etc. are constraints, and the final power of each vehicle is 50 kWh

Problem Description
A new energy charging station provides charging service for electric vehicles by utilizing grid energy and new energy in the station and can send the new energy in the station back to the grid. Figure 1 shows the system structure of a new energy charging station. There are eight charging piles and photovoltaic power generation devices in the station. The charging power of each charging pile can be adjusted in the range of 50 kW [10]. Some symbol descriptions are shown in Table 1.
When electric vehicles are parked in residential areas, this often exchanges electricity directly with the distribution network through charging piles (i.e., charging or discharging), which may lead to a significant change in the distribution of power flow. Figure 2 shows the distribution network topology of a residential area.
Assuming that node 8 is connected to 100 electric vehicles, 10% of them are charged by AC level 1 and 90% are charged by AC level 2. The discharge power is not more than 5 kW. The battery capacity of the electric vehicle is 50 kWh, and the state of charge (SOC) of the battery is no less than 0.2 [11].
We must provide the optimal charging and discharging scheme to minimize the active power loss for the power grid and the total cost of electric vehicle owners by establishing an optimization model under the circumstance where the optimal period is 24 hours a day.

Classification Model of Electric Vehicle Charging Power
Level. Given the charging power meter of 100 electric vehicles in a city, we can calculate the minimum power of electric vehicles in a day. The function is as follows: We used an Excel function to process the data and used the automatic sorting function in Excel to ascend the minimum charging power and classify the top 10 vehicles into AC class 1 (1.4-1.9 kW). We, thus, obtained Table 2. 3.2. Drawing the 24-Hour Charging Load Curve. To more accurately calculate the actual charging time of electric vehicles according to the data of Table 2, the average value of the power interval is After substituting the data in Table 1, we can obtain the charging power of AC 1 at P 1 = 1:65 kW, the power of AC 2 is p 2 = 33:3 kW, and DC power is p 3 = 70 kW.
According to the energy formula, the actual charging time for each charging power class of electric vehicle is calculated, the actual charging time of AC 1 is The time of AC 2 is The time of DC is Thus, the actual charging start-stop time of the electric vehicles is in ½t s , t r .
If we divide a 24-hour and 15-minute period into 96 time periods and use the cyclic algorithm to distribute the starting and stopping charging time data of 100 vehicles into 96 intervals, each interval is calculated by summing up the charging power of the corresponding AC-grade electric vehicles, and the charging power of 100 vehicles in 24 hours is obtained. By using MATLAB to plot the charging power of 100 vehicles in 24 hours, the charging load curve is plotted by function and the result is shown in Figure 3.
According to the difference between the highest power point and the lowest power point in the figure, the peakvalley difference of the charging load of 100 vehicles in 24 hours is 4200 kWh when the proportion of electric vehicles charged by AC 1 is 10%, charged by AC 2 is 40%, and charged by DC is 50%.

3.3.
Optimizing the Ratio of the Charging Power Level. For 100 electric vehicles, the proportion of "AC 1," "AC 2," and "DC charging" electric vehicles after optimization is set to be x, y, and z, respectively, to redistribute their charging power levels and adjust their actual charging time to achieve the goal of modernization. To reduce the equipment investment and reduce the peak-valley difference, we used the actual charging time and cycle algorithm to distribute time and accumulate power. The weight of the equipment investment and the peak-valley difference is 1 : 1, and the objective function is as follows: In the process of optimizing the proportion of charging vehicles of different grades, we obtain the minimum objective function A min when the proportion of "AC 1," "AC 2," and "DC charging" electric vehicles is 46 : 53 : 1. Therefore, the minimum investment in equipment is The minimum peak-valley difference is Using MATLAB, the charging load curve of 10,000 electric vehicles in 24 hours after optimization is drawn as shown in Figure 4. Compared with Figure 3, it is clear that the optimized peak value diminishes in magnitude and the peakvalley difference decreases significantly.

Optimizing Method
4.1. Establishment of Model. Based on the above analysis and calculation, we can obtain the total power consumption, which is shown as formulation (11).

Wireless Communications and Mobile Computing
The parallel parts of I and U produces Joule heat and active power loss, while the orthogonal part is the conversion of the electric field and magnetic field, which does not produce active power loss. When T = i, the voltage values of the nine nodes are U ji , i = 1, 2, 3, ⋯, 9, respectively. When T = i, the number of two types of electric vehicles charged by charging piles is N 1i , N 2i , the number of two types of vehicles discharged by charging piles is N 3i , N 4i , the charge price is the CPI, and the selling price is the EPI.
The charging behavior optimization model of electric vehicles in a distribution network: Among them, i is the starting time of charging and discharging, j represents the AC 1 of electric vehicles, and j ′ represents the AC 2 of that. P c j, ðtÞ and P c j′ ðtÞ, respectively, indicate the charging power and discharging power of vehicle NO.J at time i.
4.2. The Solution of Optimal Algorithms. Taking N j,i as the optimization variable and making use of the genetic algorithm for multiobjective programming, we obtained the optimal peak and valley cost of the charging and discharging number about AC class 1 and AC class 2 in each period and the load curve of the power grid before and after optimization. The flow chart of the algorithm is shown in Figure 5.
The steps for solving the optimization algorithm are as follows: (Step 1) Initialize the load parameters and electric vehicle parameters of each node in the power grid, including the load value of the power grid, battery capacity, charging and discharging power, charging state, average energy consumption, and other parameters at each time of day (Step 2) Randomly generate peak and valley initial populations at each level and time, and then generate 200 initial populations within the range of devalues (Step 3) Compute the constraints of population, including equality constraints and inequality constraints. Populations that do not satisfy the constraints are discarded directly. The initial population that satisfies the constraints of the optimization model is obtained, and the discharge power and the number of EVs at all stages of charging and discharging are calculated (Step 4) Produce a progeny population by crossing and mutating in the survived individuals, under the circumstance where the crossover probability is P c = 0:8 and the mutation variable is P m = 0:2 [12] (Step 5) Optimize iteratively until the maximum genetic algebra equations have been reached, and calculate the discharge power of the electric vehicle and the number of electric vehicles at all stages of charging and discharging 4.3. Example Analysis. Taking Chengdu as an example, the parameters of electric vehicles are as follows in Table 3.
Under the guidance of changing electricity prices, some owners responded to the peak-valley price, charged and  Wireless Communications and Mobile Computing discharged according to the peak-valley price period, combined with the charging and discharging time. Finally, we found that orderly charging and discharging of electric vehicles indeed reduced the peak-valley difference and active power loss of the power grid. Based on the charging load curve of the Chengdu electric vehicles, the results before and after the peak-valley period optimization can be obtained. The results are shown in Table 4. Thus, in the valley price stage, the charging load of EV had a valley filling effect, and in the peak price period, the discharge load of EV played a peak cutting role. Optimizing distribution networks can effectively reduce the peak-valley differences and achieve cost-saving goals.

Conclusion
New energy vehicles have far-reaching social significance regarding sustainable development, alleviating the energy crisis, improving the utilization rate for new energy, and helping the environment. The development path of the new energy automobile industry supported by the government policy is broad, and the future market application prospects are immeasurable. Realizing the scale and industrialization of new energy vehicles requires the improvement of core technology and product performance as well as regarding consumers' awareness of environmental protection [13]. However, there are also many problems in the interactions between electric vehicles and power grids.
The construction of new energy charging stations is expensive, and the disorderly charging of electric vehicles further increases the peak-valley gap of the power grid [14]. Therefore, it is necessary to establish a reasonable proportion model of electric vehicle charging power level, reduce the equipment investment for new energy charging stations, reduce the peak-valley difference of power grids, and reduce the power system consumption.

Data Availability
To be frank, I derived the writing material from different journals as provided in the references. A MATLAB tool has been utilized to simulate our concept.