Two ‐ Step Intelligent Control for a Green Flexible EV Energy Supply Station Oriented to Dual Carbon Targets

: As China proposes to achieve carbon peak by 2030 and carbon neutrality by 2060, as well as the huge pressure on the power grid caused by the load demand of the energy supply stations of electric vehicles (EVs), there is an urgent need to carry out comprehensive energy management and coordinated control for EVs’ energy supply stations. Therefore, this paper proposed a two ‐ step in ‐ telligent control method known as ISOM ‐ SAIA to solve the problem of the 24 h control and regula ‐ tion of green/flexible EV energy supply stations, including four subsystems such as a photovoltaic subsystem, an energy storage subsystem, an EV charging subsystem and an EV battery changing subsystem. The proposed control method has two main innovations and contributions. One is that it reduces the computational burden by dividing the multi ‐ dimensional mixed ‐ integer program ‐ ming problem of simultaneously optimizing the 24 h operation modes and outputs of four subsys ‐ tems into two sequential tasks: the classification of data ‐ driven operation modes and the rolling optimization of operational outputs. The other is that proper carbon transaction costs and carbon emission constraints are considered to help save costs and reduce carbon emissions. The simulation analysis conducted in this paper indicates that the proposed two ‐ step intelligent control method can help green/flexible EV energy supply stations to optimally allocate energy flows between four subsystems, effectively respond to peak shaving and valley filling of power grid, save energy costs and reduce carbon emissions. upper limit of battery storage energy, adjustment coefficient; charging margin in disordered charging charging margin in disordered charging value of charging of at value of disorderly charging of mini mum margin battery changing margin replaced battery changing


Introduction
With the increasingly prominent problems of environmental pollution and fossil fuel depletion, countries all over the world have designed different low-carbon development routines. Among them, China proposed a dual-carbon target to achieve carbon peak by 2030 and carbon neutrality by 2060. In China, energy carbon emissions account for about 80% of total carbon emissions. Therefore, the core task of China's dual-carbon target is to promote low-carbon energy transition and revolutions, and the essential measures are to reduce fossil energy consumption and increase the proportion of renewable energy. In the field of transportation, the replacement of fuel vehicles is an inevitable trend for electric vehicles (EVs). In 2020, the stock of EVs in China was 4.5 million, more than twice the stock in 2018 [1]. The development of EVs in China is affected by mileage, cost and policy impact. Small electrical cars, E-vans and electric buses are three typical types of EV. Small electric cars are very much in line with people's daily travel needs, especially in rural markets and third-and fourth-tier cities in China. China's E-vans offer some leading advantages in terms of industrialization and have made great progress in their product development, market expansion and application. For example, the JD company proposes to replace all its trucks with pure electric vehicles in the next five years, and the self-built logistics industry, led by the e-commerce sector, is gradually replacing traditional fuel trucks with pure electric trucks. Therefore, with the guidance of national policies in relation to the satisfaction of end-market demand, E-vans will have a very large development space in the future. Electric buses are the main route of China's new energy vehicles. It is reported that Shenzhen, China took the lead in realizing 100% pure electrification of urban buses in 2017. At this stage, when the on-board power supply, power, driving range, charging speed and charging capacity tend to be mature, popularizing pure electric buses to the whole country is not only an important measure to help save energy and reduce emissions, but also a key step to promote the development of the urban public transport industry.
However, the daily energy supply demand of EVs has obvious peak-valley effects, which increases the difficulty of peak shaving and valley filling within the power grid. There are two options for the energy supply of EVs: charging and battery changing. In China, EVs' charging piles can be seen in both public parking lots and special charging stations, while shorter EVs' battery changing services can only be provided by special battery changing stations. In order to meet the needs of different EV users as well as increasing operational flexibility through low-carbon measures, some EVs' energy supply stations provide charging and battery changing services simultaneously, and are also equipped with photovoltaic systems and energy storage devices. These kinds of multifunctional green/flexible EV energy supply stations are referred to as EV "Photovoltaic-Storage-Charging-Change" stations.
The organic combination of photovoltaic-storage-charging-change systems can help solve the problem of the insufficient power distribution capacity of EVs' energy supply stations, reduce the impact on the power grid, and also increase renewable energy utilization. However, due to the system's complexity, the 24 h daily optimal control and regulation of the "Photovoltaic-Storage-Charging-Change" stations for EVs, considering additional carbon emission constraints, is relatively difficult, which is mainly shown in the following aspects: 1. The 24 h daily control and regulation problem of simultaneously optimizing operation modes and outputs for four subsystems is a mixed-integer programming problem [2], which should solve two issues. One is to determine the operation mode of each subsystem for all 24 h of a day, and the other is to determine the best output of each subsystem. 2. The dynamic characteristics of distributed energy sources including photovoltaic, energy storage, charging and battery changes in the EVs' "Photovoltaic-Storage-Charging-Change" stations are different from each other in terms of time-scale, and are mostly nonlinear and multi-dimensional. This increases the complexity of the optimization control and regulation problem. 3. There are coupling and restriction relationships between different subsystems, which also increases their complexity. 4. Additional carbon transaction costs and carbon emission constraints also increase the complexity.
Existing research studies that are relevant to the aforementioned optimization problem of regulation and control are generally divided into two categories: artificial intelligence algorithms and analytical methods.
On the one hand, artificial intelligence algorithms, including the particle swarm and genetic algorithm, are widely used to solve distributed energy control problems with nonconvex characteristics and nonlinearity [3]. Jha, M., et al. proposed a multiport converter for integrating the PV, charging docks, and energy storage device (ESD) with the grid, and proposed an intelligent energy management system by adapting particle swarm optimization for efficient switching between the sources [4]. Improved methods such as the swarm optimization searcher [5], gravitational search algorithm [6], and particle swarm algorithm [7], with time-varying acceleration constant iteration, etc., are also applied to the optimization of distributed energy sources. In addition, deep learning and other intelligent algorithms are used by some researchers to solve the problem. For example, Ndiaye, El Hadji Mbaye, et al. proposed an intelligent algorithm based on adaptive neuro-fuzzy inference system to control a photovoltaic generator (PVG) connected to a load and a battery, which allows the PV system to function normally by charging and discharging the battery whatever the weather conditions [8]. Qu Kaiping, et al. used the interior point method and the knowledge transfer Q algorithm to form a cascade algorithm to deal with the non-convex energy equation of the distributed energy network [9]. Liu Xiaokang took the generalized heterogeneous multi-agent system as the object, carried out research on two aspects of cooperative control and its application in the DC microgrid, and designed an optimal power control strategy based on reinforcement learning [10]. MyungJae Shin, et al. proposed a multi-agent-based energy management deep reinforcement learning method, established a distributed power generation model for EV charging stations containing photovoltaic systems and energy storage systems, and obtained a targeted power load dispatching plan to reduce operating costs [11].
One the other hand, two types of analytical methods are involved in this research field: the stepwise decomposition solution and the unified solution. The stepwise decomposition solution mainly optimizes and solves each independent subsystem, and then couples the information of each system, and finally iteratively solves the optimal solution that satisfies the conditions. The unified solution starts from the overall model, and uses linearization-related techniques to approximate the original optimization problem to a mixed integer programming or linear programming problem, which mainly includes methods such as 0-1 variables and convex relaxation techniques. Given that EV energy supply stations are connected to the power grid, some researchers used hierarchical control, improved droop control [12] or sequence arrangement control strategies [13], distributed algorithms, consensus algorithms [14], and heuristic algorithms [15] to guide the charging load of EV energy supply stations. Researchers who were focused on system frequency stability realized overall load variance and charging cost reduction in [16,17], and realized peak shaving and valley filling in [18,19]. Meng Chao, et al. aimed at the collaborative control problem of nonlinear multi-agent systems. They proved that followers can approach the leader's output infinitely, not only meeting the predetermined performance but also keeping the error within the specified range with high accuracy [20]. In the EV to grid(V2G) area, combined with the charging load model and the charging optimization model, some researchers formulated multi-agent charging management model [21], and built a dynamic multi-agent collaboration framework [22,23]. With the idea of aggregation, a model was constructed through dynamic programming algorithms [24] and probability statistics [25] to ensure an optimal balance between charging costs and grid revenue. Other researchers also focus on the configuration of multiple energy sources. In [26], Vavilapalli, S., et al. proposed a Power Balancing Control (PBC) method for the configuration of a grid energy storage system for photo voltaic (PV) applications with three different power sources to operate the system in three different modes of operation, and conducted a Hardware-In-the-Loop (HIL) simulation to prove the effectiveness of the proposed PBC algorithm.
To sum up, there have been many researches contributing to the optimization of configuration, energy management and real-time control of integrated energy systems with multiple energy sources. Generally, most studies focus on theoretical research, and the effectiveness of the proposed methods in these studies are mainly verified by simulations. In this paper, a real pilot green/flexible EV "Photovoltaic-Storage-Charging-Change" energy supply station in Shanghai, China is taken as the research object. To solve the realistic 24 h daily optimal control and regulation problem of the green/flexible EV "Photovoltaic-Storage-Charging-Change" station as well as supporting the dual carbon target, a twostep intelligent control method referred to as ISOM-SAIA is proposed in this paper. The proposed ISOM-SAIA algorithm is a combination of a data-driven intelligent classification method for improving a self-organizing map (SOM) proposed in [27] and a rolling optimization method for combining the simulated annealing method (SA) [28,29] and the immune algorithm (IA) [30][31][32]. It classifies the operation modes of all subsystems, for each hour, by ISOM in the first step, and then calculates the optimal operation outputs of all subsystems for each hour over a day by SAIA in the second step. The performance of the peak shaving and valley filling of the power grid, as well as the energy costs and carbon emission reduction of the proposed two-step ISOM-SAIA control method, are verified by simulation studies.
The paper is organized as follows. Section 2 presents the system architecture and control model description of EVs' "Photovoltaic-Storage-Charging-Change" stations. Section 3 gives the formation law of the proposed two-step intelligent control method for EVs' "Photovoltaic-Storage-Charging-Change" stations, in terms of its orientation to the dual carbon target. In Section 4, the proposed two-step intelligent control is illustrated by a numerical case study. The conclusions are given in Section 5.

"Photovoltaic-Storage-Charging-Change" System Architecture
The system architecture of an EV "Photovoltaic-Storage-Charging-Change" station discussed in this paper is shown in Figure 1. It mainly includes four parts: the photovoltaic system, the energy storage system, the charging system, and the battery changing system. Detailed information of these parts is given as follows:  (a) Photovoltaic system The photovoltaic system mainly includes photovoltaic modules, photovoltaic inverters, and other major equipment. The electricity generated by photovoltaics can be transmitted to the energy storage system, charging piles, and the battery changing system, as well as to the main power grid. In this paper, the photovoltaic power generation model only considers the impact of light intensity and ambient temperature, as shown in Formulas (1) and (2) [33].

1000
(2) where -photovoltaic system power generation at time i, kW; -rated output power of a single photovoltaic panel in a standard test environment, kW; -rated temperature of a single photovoltaic panel in a standard test environment, °C; -light intensity at time i, kW/m 2 ; -the light intensity under the standard test environment, which is 1 kW/m 2 ; -photovoltaic system temperature at time i, °C; -environmental temperature at time i, °C.
(b) Energy storage system The energy storage system includes devices such as energy storage converters and Lithium iron phosphate battery systems. It is mainly responsible for absorbing photovoltaic power generation as well as providing a backup energy source to satisfy peak energy demands. The energy storage system model, as shown in Formula (3), only considers system states such as current charging and discharging modes, and the residual power of each item of energy storage equipment, while ignoring the internal power electronic control. The limitation of the charging and discharging processes of the lithium iron phosphate battery pack in the energy storage system is that its maximum charging and discharging power cannot exceed its maximum rate. (3) where -total charging and discharging power of the energy storage system at the time i, kW; -charging power of the energy storage system at the time i, kW; -discharging power of the energy storage system at the time i, kW; -charge state of the energy storage system at the time i, if charging, 1; -discharge state of the energy storage system at the time i, if discharging, 1.
(c) Charging system Charging piles in the charging system are used as energy interactions between EVs and the power grid. Under normal conditions, EVs take power from grid through charging piles. When the power grid is short of power, EVs can also be used as an adjustable load to transmit electric energy to the power grid through V2G technology. The remaining electricity and charging demand of EV at any time of the day are represented by Formula (4) [34].
where 1 -remaining EV battery power at time i + 1, %; -remaining EV battery power at time i, %; -charging efficiency of the EV; -time interval, min; , -the power consumption of the EV at the time i, kW. (d) Change system Battery changing is a supplementary option for EV charging. At present, the shortest charging time by high-power fast charging piles for EVs is about 30 min to 2 h, which is too long for general EV users. However, an automatic battery changing process includes removing the low-power battery from EVs and loading a fully charged one. The whole process only takes 3 to 5 min based on the operation experiences of a pilot station in Shanghai, China. Therefore, battery changing is an important supplementary option for EV users, in addition to charging.
In the battery changing system, there is a certain amount of fully charged batteries in stock to ensure that EV users can exchange fully charged batteries at any time. The lowpower batteries replaced from EVs are charged on the battery rack and can be reused for changing after it is fully charged. Therefore, the batteries in the battery changing system can be used as backup energy storage to relieve energy supply tension. The model of the battery changing system is described in Formulas (5)-(8): , , 1 (8) where -total charging power of the battery changing system at time i, kW; -the number of chargers in the battery changing system; , -the charging power of the nth charger at time i, kW; -the charging efficiency of the charging compartment to the battery to be replaced; , -the state of the nth charger at time i, charging is 1 and discharging is −1, otherwise it is 0; -the number of EVs that need to be replaced; , -the EV's electric quantity that is replaced at time i; -initial power; total power of the EV that is replaced at time i; 1 -total amount of change electricity required by the EV at time i + 1; -total amount of change electricity required by the EV at time i; -time interval, .

Control Model of "Photovoltaic-Storage-Charging-Change" Integrated System
The "Photovoltaic-Storage-Charging-Change" integrated system is a comprehensive green/flexible EV energy supply system that integrates the photovoltaic subsystem, the energy storage subsystem, the charging subsystem, and the battery changing subsystem. The 24 h daily control objective of this integrated system is to meet the EVs' energy demands by coordinating different subsystems at the lowest cost. The control model of the "Photovoltaic-Storage-Charging-Change" integrated system includes regular operation constraints, carbon emissions constraints, as well as the optimization objective function.
A. Regular operation constraints In the operation of the "Photovoltaic-Storage-Charging-Change" integrated system, the internal constraints of each subsystem need to be met.
(a) Photovoltaic output constraints: , , (b) Energy storage system constraints [35]: (c) Charging system constraints [36]: , , where -the power generation of the photovoltaic system at the time i, kW; -the discharge power of the energy storage system at the time i, kW; charging power of the energy storage system at the time i, kW; -charge efficiency of the energy storage system; -discharge efficiency of the energy storage system; -capacity of the energy storage system at the time i, kWh; , -maximum capacity of the energy storage system, kWh; -rated capacity of the lithium iron phosphate battery pack of the energy storage system, kWh; -maximum allowable charge rate of the lithium iron phosphate battery pack of the energy storage system; -maximum discharge rate of the lithium iron phosphate battery pack of the energy storage system; where is the carbon transaction cost, is the carbon transaction price of the sub system at time i, is subsystem carbon emissions at time i, is subsystem's carbon emission allowance at time i.
On the basis of Formulas (9)-(17), the maximum carbon emission quota constraints of the "Photovoltaic-Storage-Charging-Change" integrated system are considered in this paper, as shown in Formulas (19) and (20) [38]: where , are the average proportion of carbon-containing power sources in the distribution network and the carbon emission coefficient per kWh.
C. Optimization objective function The optimization objective function considers energy costs, carbon transaction costs, and the net balance of energy supply and demand, as shown in Formulas (21)-(24): where -net power of the integrated system of "Photovoltaic-Storage-Charging-Change" at the time i, kW; -power provided by the distribution network to the system at time i, kW; -transmission efficiency of photovoltaic system, %; -the discharge efficiency of the storage system, %; -the transmission efficiency of the charging system, %; -the power generated by the charging system at the time i, kW; -the number of power generation units in the photovoltaic system; -the number of energy storage units in the energy storage system; -the number of AC/DC charging piles in the charging system; -the number of batteries in the battery changing compartment; -charging efficiency of the energy storage system, %; -charging efficiency of the battery in the battery exchange system, %; -the charging power of the battery at the time i, kW; -total load in the integrated urban "Photovoltaic-Storage-Charging-Change" system at the time i, kW; -the conventional power load of the charging pile in the integration of urban "Photovoltaic-Storage-Charging-Change" at the time i, kW; , -the power generation cost of the nth type of power generation unit; , -the maintenance cost of the nth type of power generation unit; -the cost for motivating users to participate in the dispatch; -the cost for the power station to purchase electricity from the grid; , -the weighting factors, 1.
In order to overcome the possible error of subjective experience in weighting, the entropy weight method is applied to the weight in this paper. For a detailed description of the entropy weight method, please refer to the literature [39].

Overall Architecture of Two-Step Intelligent Control ISOM-SAIA
The overall architecture of two-step intelligent control (ISOM-SAIA) for the integrated EV "Photovoltaic-Storage-Charging-Change" system is shown in Figure 2. The tasks of the two-step intelligent control are to classify the operation modes of all subsystems for each hour using a data-driven intelligent classification method known as the improved self-organizing mapping neural network (ISOM) in the first step, and then calculate the optimal operation outputs of all subsystems for each hour over a day using a rolling optimization method, called simulated annealing immune control (SAIA), in the second step.

Sample initialization Antigen library generation
SAIA-based rolling optimization control photovoltaic output, energy storage system output, charging power, system load ……

Optimal operation outputs hourly over a day
Step 1: Operation modes identification based on ISOM neural network Step 2: Optimal operation outputs derived by SAIA-based rolling optimization control

Step 1: Classification of Operation Modes Based on ISOM
The first step of the two-step intelligent control for the integrated EV "Photovoltaic-Storage-Charging-Change" system is to classify the operation modes of all subsystems in each hour of a day based on a data-driven intelligent clustering method known as the improved self-organizing map neural network (ISOM). The ISOM neural network consists of three layers: the input layer, the competition layer and the output layer. The nodes in all layers are connected by weights: 1, . . . , ; 1, . . . , . The input data of ISOM neural network include the system time, EV charging quantity, energy storage SOC, and changed battery SOC, etc. The outputs of the ISOM neural network are the matching operation modes (charging, discharging, optional, not working) of all subsystems in three special time periods of the day (peak periods, flat periods, valley periods). As shown in Figure 3, the ISOM neural network classification procedure is given as follows:  Figure 3. ISOM-based operation mode classification process.

Operation modes classification results
(a) Perform normalized clustering processing on input data sample , , ⋯ , . The state variables, represented by , are the system time, EV charging quantity, energy storage system, battery SOC, etc.; (b) Initialize the connection weights of ISOM neural network and locate it in the middle area of the input data, set the time count t = 0, determine the learning rate, and the learning radius r; (c) Calculate the Euclidean distance between the input sample processed in step (a) and the neurons in the competition layer according to Equation (25); (d) Select the neuron of the competition layer with the smallest Euclidean distance as the winning neuron to replace the original neuron; (e) Adjust the weights between the input layer and the competition layer, and the weights between the competition layer and output layer according to Equations (26) and (27); where is the category of different control modes (k = 1, 2, 3, …).
(f) If there are still input data samples, then t = t + 1, and return to step (c), otherwise go to (g).
(g) Output the matching operation modes (power output, power input, optional, and not working) of all subsystems in three special time periods of the day (peak periods, flat periods, valley periods).

Step 2: SAIA-Based Rolling Optimization Control
The second step of the two-step intelligent control for the integrated EV "Photovoltaic-Storage-Charging-Change" system is to derive the optimal operation outputs of all subsystems in each hour of a day with a rolling optimization process based on a simulated annealing immune algorithm (SAIA) combined with a simulated annealing (SA) and immune algorithm (IA). Figure 4 shows the flow chart of SAIA-based rolling optimization control procedure, which has three main procedures-(a), (b) and (c)-as follows. (a) Based on the classification results from Step 1 in Section 3.2, the operation modes of four subsystems in each time period of peak, flat, and valley are obtained. (b) Starting from t = 1, check which special time period t belongs to, and derive the optimal operation output of all subsystems using the SAIA algorithm based on the objective function and constraints given in Formulas (9)- (24). The SAIA optimization calculation process is given from (1) to (8) as follows: (1) Let the total population be , the number of memory cell antibodies be , the crossover probability be , the mutation probability be , the temperature cooling coefficient be , the number of memory cells be g, and the initial annealing temperature be ; (2) The system time, EV energy supply loads, and system operating status are used as antigens to initialize the parameters; (3) Randomly generate antibodies, mainly using photovoltaics, energy storage, charging piles, etc. as the initial antibody group objects, and form the initial population together with antibodies in the memory unit; if the memory unit is empty, randomly generate antibodies to form the initial population, make 0; (4) Calculate the actual load value of each antibody (photovoltaic system output, energy storage system output, electric vehicle charging power, rechargeable battery charging power, etc.), according to Formulas (3) and (4) to determine the current temperature of the system operation requirements and control output Affinity TF P between each other, save antibodies in the memory unit ; TF P e / ∑ e / (28) (5) Implement the immune selection, crossover, and mutation operations to determine the type of control strategy; (6) Perform the simulated annealing operation of fixed-step sampling on the parameters of energy equipment, such as the photovoltaic, energy storage, charging and swapping parameters, in the population, and new antibodies are generated. If the result satisfies Formulas (3)-(5), it is updated and the new load value is calculated; Otherwise, it remains unchanged; where -annealing temperature in k. (7) Determine whether the algorithm convergence criterion is satisfied. If it is satisfied, perform the de-temperature operation, output the control strategy result, and end the algorithm; otherwise, return to step (5); (8) Let 1, input the Formulas (3)-(6) to the de-temperature operation.
, ∈ 0,1 (c) If t < 24 h, t = t + 1; otherwise, the algorithm ends and derives the optimal operation modes of all subsystems in each hour of a day.

Data Source and System Parameters of "Photovoltaic-Storage-Charging-Change" System
The data source of the simulation analysis in this section comes from a demonstration project of an EV "Photovoltaic-Storage-Charging-Change" station in Shanghai, China. It is equipped with four subsystems: photovoltaic, energy storage, charging, and battery changing. In addition, it provides both fast charging and battery changing services for EVs. The installed capacity, power generation costs, and maintenance costs of each subsystem are shown in Table 1. The typical daily EV charging and battery changing load curves of the green/flexible EV energy supply station in summer and winter are shown in Figure 5.

Tests for Step 1: Classification of Daily Operation Modes Based on ISOM Neural Network
In this section, the EVs' daily energy demands and the system parameters of the EVs' "Photovoltaic-Storage-Charging-Change" system, as shown in Section 4.1, are used in the tests of the first step of two-step intelligent control method proposed in this paper. Each subsystem of the EVs' "Photovoltaic-Storage-Charging-Change" system has four operation modes. They are, respectively, the power output state (indicated by 2), the power input state (indicated by −1), the power output or input state (indicated by 1), and the notworking state (indicated by 0).
Based on the method for the classification of ISOM-based operation modes given in Section 3.2, the hourly operation modes of all subsystems in the "Photovoltaic-Storage-Charging-Change" system are derived and shown in Figure 6. From Figure 6, the operation modes of all subsystem during different time periods are basically clear: the photovoltaic subsystem can only output electric power during the daytime; the energy storage system can output power to relieve the high EV energy demand during some peak periods, and can input power during normal and valley periods; the battery changing subsystem is optional for power output or input during the entirety of the day; the charging subsystem is optimal for power output or input during most hours of the day, and can only input power during several normal and valley periods.

Tests for Step 2: Optimal Daily Operation Outputs by SAIA-Based Rolling Optimization
In this section, the second step of the two-step intelligent control method proposed in Section 3.3 of this paper is tested based on the operation mode classification result derived from Section 4.2.1.
The optimal operation outputs of each subsystem and the total power of the integrated system purchased from grid for all hours of a typical summer day and a typical winter day are derived via the SAIA-based rolling optimization control method, and are shown in Figure 7. In order to test the performance of the proposed two-step intelligent control method in terms of the peak shaving and valley filling of a power grid, as well as energy costs and carbon emission reduction, the following simulation analysis is carried out. A. Simulation analysis of power grid peak shaving and valley filling performance In Figures 8 and 9, the operation outputs of the battery changing subsystem and the energy storage subsystem derived by the proposed two-step intelligent control ISOM-SAIA are compared with original operation records. Both subsystems contribute to the peak shaving and valley filling of the grid. Figure 10 provides more detailed statistics on the performance of peak shaving and valley filling of power grid: the peak load reduction can reach 2387.57 kWh and the valley filling is 2132.68 kWh on a typical day in summer; the peak load reduction can reach 1663.18 kWh and the valley filling 2346.73 kWh on a typical day in winter.

B. Simulation analysis of carbon transaction costs and carbon emission constraints
In order to test the performance of the carbon transaction cost and carbon emission constraints (Formulas (18)- (20)) considered in the proposed ISOM-SAIA two-step intelligent control method, Figure 11 compares the power purchased from power grid of the EV "Photovoltaic-Storage-Charging-Change" station on a typical day with and without carbon constraints. It indicates that after considering the carbon transaction costs and carbon emission constraints, the total electricity purchased by the EV energy supply station from the grid is reduced from the original 15,738.32 kWh to 12,629.64 kWh on a typical summer day, and it drops from 23,215.62 kWh to 18,428.3 kWh on a typical winter day, while meeting the same daily EV energy demand. It can save 17,634.68 yuan on a typical summer day, and 10,453.82 yuan on a typical winter day.
Due to the high proportion of fossil-fuel fired power generation in the power grid, the carbon emissions per kilowatt hour of power purchased from grid are higher than those of photovoltaic power generation in the EV energy supply station. Therefore, when meeting the same EV energy demand, reducing the proportion of the grid-source power in the EV energy supply station can reduce both the energy costs and carbon emissions. Therefore, the carbon transaction costs and carbon emission constraints considered in the proposed two-step intelligent control method can help to achieve both economic and environmental benefits. In addition, to further study the sensitivity of the maximum carbon emission limit, the overall operation benefits of the EV "Photovoltaic-Storage-Charging-Change" station, under different carbon emission limits, are analyzed and shown in Figure 12. It indicates that different carbon emission limits can have a significant effect on the benefits of the system. Therefore, it is necessary to select an appropriate carbon emission limit when implementing the proposed two-step intelligent control ISOM-SAIA for the EV "Photovoltaic-Storage-Charging-Change" station to ensure both high environmental and economic benefits.

Conclusions
A two-step intelligent control method, ISOM-SAIA, is proposed in this paper to solve the problem of the 24 h control and regulation of a green/flexible EV energy supply station including four subsystems such as a photovoltaic subsystem, an energy storage subsystem, an EV charging subsystem, and an EV battery changing subsystem, under China's Dual Carbon Target. The innovations and contributions of this paper are listed as follows: (1) The two-step intelligent control method, ISOM-SAIA, proposed in this paper effectively reduces the computation burden of solving the multi-dimensional mixed-integer programming problem of the simultaneous optimization of 24 h operation modes and outputs of four subsystems in the green/flexible EV energy supply station into two steps: step 1 for the data-driven classification of operation modes, and step 2 for the rolling optimization of operation outputs.
(2) Proper carbon transaction costs and carbon emission constraints are considered in the proposed control method, and the simulation results indicate that the added carbon transaction costs and carbon emission constraints can help to save costs and reduce carbon emissions for the green/flexible EV energy supply station.
In conclusion, the two-step intelligent control method, ISOM-SAIA, proposed in this paper is a useful control method for the 24 h control and regulation of integrated green/flexible EV energy supply stations. It can help the stations to optimally allocate energy flows between four subsystems, effectively respond to the peak shaving and valley filling of the power grid, save energy costs, and reduce carbon emissions.