Next Article in Journal
Tensor-Train Formulation and Numerical Study of the Peaceman–Rachford and Douglas–Rachford Splitting Schemes for Multidimensional Parabolic Evolution Equations
Next Article in Special Issue
A Mobility Priority Index for Data-Driven National Bridge Preservation Prioritization
Previous Article in Journal
Multi-Objective Optimization of Resource-Constrained Construction Scheduling for Power Transmission and Distribution Projects Considering Prefabricated Components
Previous Article in Special Issue
An Integrated Scheduling Model for Airport Apron-Bus Drivers Under Stochastic Demand
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Joint Location and Capacity Optimization of Electric Vehicle Charging and Battery-Swapping Stations Using Random Forest Surrogate-Assisted NSGA-III

1
Faculty of Science, Kunming University of Science and Technology, Kunming 650000, China
2
Faculty of Electric Power Engineering, Kunming University of Science and Technology, Kunming 650000, China
3
China Southern Power Grid Artificial Intelligence Technology Co., Ltd., Guangzhou 510000, China
4
Yunnan Electric Power Research Institute, Yunnan Power Grid Co., Ltd., Kunming 650000, China
*
Author to whom correspondence should be addressed.
Algorithms 2026, 19(9), 783; https://doi.org/10.3390/a19090783
Submission received: 3 August 2026 / Revised: 8 September 2026 / Accepted: 8 September 2026 / Published: 10 September 2026
(This article belongs to the Special Issue Transportation and Traffic Engineering)

Abstract

The increasing penetration of electric vehicles (EVs) creates new challenges for coordinated planning of charging and battery-swapping infrastructure. This study aims to develop a joint location and capacity planning framework for electric vehicle charging stations (EVCSs) and electric vehicle swapping stations (EVSSs) in an electric–traffic coupled system, considering infrastructure cost, user service requirements, and distribution-network performance. A multi-objective planning model is established based on spatial-temporal energy replenishment demand and traffic–grid coupling. To improve computational efficiency, a random forest surrogate-assisted NSGA-III (RF-SA-NSGA-III) is proposed, in which expensive user-service and voltage-related objective evaluations are selectively approximated by random forest models, combined with periodic true-model correction and final verification. Case studies show that the proposed method obtains competitive Pareto-optimal solutions and replaces 89.38% of expensive evaluations, reducing computational time from 45,706.3 s to 4689.4 s. The framework provides practical support for coordinated EVCS–EVSS siting and capacity allocation while balancing investment, user service quality, and voltage performance.

1. Introduction

The rapid development of electric vehicles (EVs) is creating an increasing need for reliable and well-planned charging infrastructure while also intensifying interactions between urban transportation systems and distribution networks [1,2]. The growing penetration of EV charging facilities further raises new requirements for infrastructure planning, grid integration, and coordinated energy management [3,4]. However, the increasing penetration of EVs also introduces new challenges to urban power systems due to the spatial and temporal uncertainty of charging demand and the concentration of charging loads [5,6]. Moreover, the increasing integration of renewable energy sources and flexible resources has further increased the complexity of power system operation, requiring more coordinated planning and optimization strategies [7,8,9]. Therefore, EV charging infrastructure planning is no longer a simple facility deployment problem. The planning must simultaneously consider user accessibility, investment cost, station service capacity, queuing performance, and distribution network operational security [10].
Considerable research has been conducted on the location and capacity planning of EV charging stations (EVCSs) [11,12]. Çelik and Ok reviewed models, algorithms, and simulation methods for EV charging station location and capacity planning, showing that facility location, charging demand allocation, and optimization algorithms are closely related in this field [13]. Recent studies have further refined charging station planning by incorporating charger type differentiation, queuing-theoretic models, dynamic electricity prices, and user experience [14,15]. Wang et al. developed a multi-objective siting and capacity planning model that distinguishes fast and slow chargers and accounts for congestion-adjusted travel distance, time-of-use pricing, and queuing delay [16]. Zhang et al. formulated a multi-objective bi-level programming model for EV charging station location planning by considering user preferences and waiting time, which demonstrated the importance of behavioral factors in charging infrastructure design [17]. Mehouachi et al. proposed a robust hybrid method for urban charging station planning and evaluated its performance in terms of demand satisfaction, grid utilization, and spatial deployment efficiency [18]. These studies indicate that EV charging station planning has gradually shifted from cost-oriented static siting models to multi-factor optimization models that integrate economic, service-related, and grid-related considerations [19].
However, charging stations alone may not be sufficient to satisfy diverse EV operation requirements [20]. Plug-in charging is suitable for general private EV users due to its scalability and compatibility, while battery swapping can significantly reduce energy replenishment time and is more suitable for high-frequency vehicles such as taxis, ride-hailing fleets, and logistics vehicles. However, the deployment of EV swapping stations (EVSSs) involves higher investment costs, battery inventory management, and additional requirements for battery standardization. Existing studies have demonstrated that charging and swapping facilities have complementary advantages and should be jointly considered in planning decisions [21]. Lai and Li investigated the coordinated planning of charging and battery-swapping stations for electrified ride-hailing fleets, while Qi et al. and Gull et al. further highlighted the coupling effects among swapping demand, battery inventory, charging operation, and power system constraints [22,23,24]. These studies indicate that EV charging and swapping infrastructures should be optimized within a unified framework rather than being independently planned.
The joint planning of EVCSs and EVSSs involves multiple conflicting objectives from operators, users, and power systems. Economic objectives require reducing investment and operation costs, whereas user-oriented objectives emphasize accessibility, queuing performance, and service convenience. Meanwhile, large-scale charging and swapping loads may introduce adverse impacts on distribution networks, including voltage fluctuations and capacity constraints. Therefore, an effective planning model should simultaneously consider economic benefits, user satisfaction, and grid security while satisfying constraints related to station deployment, capacity allocation, service coverage, and power system operation [25,26,27].
Multi-objective evolutionary algorithms have been widely used to solve such planning problems because they can generate a set of Pareto-optimal solutions rather than a single deterministic solution [28,29,30]. Non-dominated Sorting Genetic Algorithm II (NSGA-II) and Multi-Objective Teaching Evolutionary Optimization (MOTEO) are commonly used in EV infrastructure planning because of their simplicity and global search capability. NSGA-III introduces a reference-point-based environmental selection mechanism to maintain a well-distributed set of solutions in the objective space. Although the present problem involves three objectives, the annualized cost, user service quality, and voltage performance exhibit clear trade-offs. The reference-point mechanism can guide the search toward different trade-off regions and help preserve solution diversity, making NSGA-III suitable as the base algorithm for the proposed surrogate-assisted framework. Nevertheless, the application of NSGA-III to large-scale urban planning scenarios still faces a computational challenge [31,32]. During the evolutionary process, each candidate solution may require charging and swapping demand allocation, user service evaluation, and distribution network power flow calculation. When the population size and number of generations increase, the repeated evaluation of these time-consuming objectives can considerably reduce the efficiency of the algorithm.
Surrogate-assisted evolutionary optimization provides a feasible way to address this challenge [33,34,35]. The core idea is to train an approximate model using real evaluation samples and then use the surrogate model to replace part of the expensive objective evaluations during the search process [36]. Li et al. pointed out that surrogate-assisted evolutionary computation is especially suitable for expensive optimization problems where objective function evaluations are computationally intensive [37]. Wang and Jin proposed a random forest-assisted evolutionary algorithm for constrained multi-objective combinatorial optimization, showing that random forest models can be effectively integrated into evolutionary search for data-driven multi-objective problems [38]. Compared with some parametric regression models, random forest regression has advantages in capturing nonlinear relationships, handling mixed decision variables, and maintaining relatively stable performance under limited training samples. These characteristics make it suitable for approximating complex objectives such as user satisfaction and voltage fluctuation in charging and swapping station planning.
Motivated by the above considerations, this paper develops a joint planning framework for EVCSs and EVSSs in a coupled transportation–distribution system. The main contributions are summarized as follows:
  • Electric–traffic coupling mechanism
A systematic coupling mechanism between road-network nodes and distribution-network nodes is established by jointly considering spatial proximity, capacity compatibility, and node-importance information. The spatial coupling principle and capacity coupling principle are used to identify candidate coupling relationships, while node importance is introduced as an additional screening criterion to improve the rationality of the road–grid mapping.
  • Joint EVCS–EVSS planning considering spatiotemporal charging demand
A joint location-and-capacity optimization model for EVCSs and EVSSs is developed by incorporating the spatiotemporal characteristics of EV charging and swapping demand. The siting and sizing decisions of the two types of facilities are optimized simultaneously under transportation-service and distribution-network constraints, with annualized infrastructure cost, user dissatisfaction, and voltage fluctuation considered as the planning objectives.
  • RF surrogate-assisted multi-objective optimization
A random forest surrogate-assisted NSGA-III (RF-SA-NSGA-III) is developed to reduce the computational burden caused by repeated traffic-service evaluations and power-flow calculations. RF surrogate models are used to approximate computationally expensive evaluations, while periodic representative-solution correction and dynamic sample updating are introduced to mitigate surrogate prediction errors. The proposed strategy substantially reduces expensive true-model evaluations while maintaining competitive multi-objective optimization performance.
The remainder of this paper is organized as follows. Section 2 presents the formulation of the EVCS and EVSS joint location and capacity optimization model, including the travel behavior analysis, demand estimation, traffic–grid interaction, objective functions, and constraints. Section 3 introduces the proposed solution methodology, including the random forest surrogate model and the RF-SA-NSGA-III framework. Section 4 provides case studies to validate the effectiveness of the proposed method and compares its performance with several benchmark optimization algorithms. Finally, conclusions and future research directions are summarized in Section 5.

2. Model Formulation

2.1. Microscopic Road-Network-Based Path Optimization Model

The spatial distribution of charging and battery swapping demand is determined by the movement of electric vehicles in the urban road network. To obtain the travel path, driving speed, and travel time of each EV, the road network is modeled as a time-varying microscopic traffic network. Intersections are represented as road nodes, road sections are represented as edges, and the weight of each road section is updated according to real-time traffic conditions.

2.1.1. Dynamic Road State Representation

Let the road network be denoted by G R = N R , E R , where N R is the set of road nodes and E R is the set of road sections. For road section r E R , L r , v r 0 , v r t , s r t , q r t , and C r denote the road length, free-flow speed, actual speed, saturation, traffic flow, and basic traffic capacity, respectively. The saturation of road section r at time t is calculated according to its real-time traffic flow and basic traffic capacity:
s r t = q r t C r
To account for the differences in operating characteristics among road sections, the actual road speed is determined by the road-specific saturation and road-class parameters:
v r t = λ 1 , r v r 0 1 + [ s r t ] ξ r ( t )
ξ r ( t ) = λ 2 , r + λ 3 , r [ s r t ] 3
where λ 1 , r , λ 2 , r , and λ 3 , r are fitting parameters related to the road type and traffic condition. The free-flow speed v r 0 , basic traffic capacity C r , and the corresponding model parameters are assigned according to the road class. Therefore, road sections with different road classes and real-time traffic flows exhibit different time-varying speeds [39].

2.1.2. Generalized Road Weight and Vehicle Speed Update

To describe the route selection behavior of EV users, a generalized road weight is constructed by considering both road impedance and road length. The free-flow travel time of road section r is
t r 0 = L r v r 0
The road-section impedance can be calculated as
R r s e g t = t r 0 1 + ϕ s r t φ , 0 < s r t 1 t r 0 1 + ϕ 2 s r t φ , 1 < s r t 2
where ϕ and φ are impedance influence coefficients. Considering the delay caused by signalized intersections, the node impedance is expressed as
R r n o d e t = 9 10 κ 1 γ 2 2 1 γ s r t + s r t 2 2 ζ 1 s r t , 0 s r t 0.6 κ 1 γ 2 2 1 γ s r t + 1.5 s r t 0.6 1 s r t s r t , s r t > 0.6
where κ , γ , and ζ denote the signal cycle, green-light ratio, and vehicle arrival rate, respectively. The final road weight can be calculated by combining impedance-related cost and physical distance:
w r t = ω 1 R r s e g t + R r n o d e t + ω 2 L r
where w r t is the time-varying weight of road section r ; and ω 1 and ω 2 are the weight coefficients of road impedance and road length, respectively [40].
To reflect microscopic driving behavior, the vehicle speed is updated using the Krauss following model. For an EV traveling at time t , the actual speed at the next simulation step is determined by
v a c t t + Δ t = m a x 0 , v d e s t η v d e s t = m i n v m a x , v t + a m a x Δ t , v s a f e t v s a f e t = v p t + d t v p t t r v e t + v p t 2 b + t r
where v a c t t + Δ t is the actual speed after one simulation step; v d e s t is the desired speed; v m a x is the upper speed limit; a m a x is the maximum acceleration; v s a f e t is the safe speed; v e t and v p t are the speeds of the current EV and the preceding vehicle, respectively; d t is the distance between the two vehicles; b is the maximum braking deceleration; t r is the driver reaction time; η is a random disturbance term; Δ t is the simulation step size.

2.1.3. Dynamic Path Search

Since the road weight changes with traffic conditions, the travel route of each EV is dynamically updated rather than fixed at the departure time. For EV m , the initial departure node, destination node, departure time, and initial state of charge (SOC) are first generated. At each decision point, the road weight matrix is updated according to the current traffic state, and the minimum-impedance path can be calculated by Dijkstra’s algorithm:
P m t = a r g m i n P Ω o m , d m r P w r ( t )
where P m t denotes the optimal path of EV m at time t ; o m and d m are the current origin and destination nodes, respectively; Ω o m , d m represents the feasible path set between them. When the EV reaches a new road node, the impedance matrix is recalculated, and the remaining path is updated. This process continues until the destination is reached.
The microscopic road-network-based path optimization model provides the travel path, driving speed, and travel time of each EV. These outputs are further used to calculate SOC evolution and determine the spatiotemporal charging and swapping demand in the following section.

2.2. Charging and Swapping Demand Forecasting Model

2.2.1. Travel Behavior Characterization

The energy replenishment demand of EVs is generated from their daily travel chains. For each vehicle, the travel chain records the starting node, departure time, initial SOC, parking duration, destination, and selected path. These variables determine travel distance, travel time, SOC variation, and the location where charging or battery swapping demand occurs [40,41,42].
Considering the heterogeneity of vehicle operation patterns, EVs are divided into plug-in EVs (PEVs) and battery-swapping EVs (BSEVs). PEVs are mainly associated with private vehicles with relatively regular travel behavior, while BSEVs are mainly associated with taxis or high-frequency vehicles whose destinations and driving trajectories are more dispersed. The departure time, parking duration, initial SOC, and destination selection are generated according to the corresponding travel-characteristic distributions. The dynamic path optimization model in Section 2.1 is then used to determine the travel path of each vehicle under time-varying traffic conditions.
Based on the obtained travel chain, the energy consumption and SOC evolution of each vehicle can be further calculated. When the SOC falls below the preset threshold, PEVs generate charging demand for EVCS, while BSEVs generate battery swapping demand for EVSS.

2.2.2. EV Power Consumption Model

The SOC variation in each EV is determined by the power consumption along its travel path. The total power consumption consists of motor power consumption and air-conditioning power consumption [43]. The motor power consumption is related to vehicle mass, driving speed, rolling resistance, aerodynamic resistance, and drivetrain efficiency. For vehicle m traveling on road section r at time t , the driving power consumption is expressed as
P m , r D t = M m g C r r o l l 1000 c 1 v r t + c 2 + 1 2 ρ a i r A m C m d v r 2 t v r t
where P m , r D t is the driving power consumption; M m is the mass of vehicle m ; g is the gravitational acceleration; C r r o l l , c 1 , and c 2 are rolling resistance parameters; ρ a i r is the air density; A m is the frontal area of the vehicle; C m d is the aerodynamic drag coefficient; v r t is the driving speed on road section r .
Considering the drivetrain and motor efficiencies, the motor power consumption can be calculated as
P m , r M t = P m , r D t η m d r η m m o
where P m , r M t denotes the motor power consumption; η m d r and η m m o are the drivetrain efficiency and motor efficiency, respectively.
In addition to traction-related power consumption, air-conditioning power consumption is considered because ambient temperature may affect the energy consumption of EVs. The cooling and heating power can be calculated as
P C T = 1500 + T T m i n C P u n i t C P H T = 2000 + T m i n H T P u n i t H
where P C T and P H T are the cooling and heating power, respectively; T denotes the ambient temperature; T m i n C and T m i n H are the temperature thresholds for activating cooling and heating, respectively; P u n i t C and P u n i t H are the unit power consumption coefficients of cooling and heating, respectively.
To indicate whether cooling or heating is activated, binary variables are introduced:
χ C T = 1 , T > T m i n C 0 , T T m i n C
χ H T = 1 , T < T m i n H 0 , T T m i n H
The SOC decrease in vehicle m on road section r during time interval Δ t m , r is then given by
Δ S m , r t = P m , r M t + χ C T P C T + χ H T P H T Δ t m , r B m η m b a t
where Δ S m , r t denotes the SOC reduction; B m denotes the battery capacity of vehicle m ; η m b a t denotes the battery efficiency.
For a complete travel path P m t , the remaining SOC after the trip is updated as
S m t + Δ t = S m t r P m t S m , r t
where S m t and S m t + Δ t are the SOC values before and after the trip, respectively. This SOC evolution process provides the direct basis for judging whether a vehicle requires charging or swapping service.

2.2.3. Charging and Swapping Demand Determination

The energy replenishment decision is triggered when the remaining SOC of a vehicle falls below the preset threshold. Let S m i n and S m a x be the lower and upper SOC limits, respectively. To avoid deep discharge and overcharge, the SOC of EVs is usually maintained within S m i n , S m a x . When the SOC of vehicle m after a trip is lower than S m i n , the vehicle is assumed to generate an energy replenishment demand.
For PEVs, the required charging energy can be calculated as
E m c h t = S m a x S m t B m
where E m c h t represents the charging energy demand of PEV m . If the vehicle is served by a charging pile with charging power P c p , the corresponding charging duration is
τ m c h t = E m c h t P c p η c p
where τ m c h t represents the charging duration; η c p is the charging efficiency. According to the service type, P c p can represent the power of a fast charging pile or a slow charging pile.
For BSEVs, the vehicle is assumed to obtain service from an EVSS when the SOC is lower than the threshold. The swapping demand is converted into the required battery energy as
E m s w t = S m a x S m t B m
where E m s w t represents the battery energy demand corresponding to one swapping service. In the planning model, the accumulated BSEV demand is used to determine the required number of batteries and the service capacity of EVSS.
The charging and swapping demand at road node i during time interval t are aggregated as
E i , E V C S d e m t = m M P E V δ m , i t E m c h t
E i , E V S S d e m t = m M B S E V δ m , i t E m s w t
where E i , E V C S d e m t and E i , E V S S d e m t are the predicted demand assigned to EVCS and EVSS at road node i during time interval t , respectively; M P E V and M B S E V are the sets of PEVs and BSEVs, respectively; δ m , i t is a binary variable equal to 1 if vehicle m generates energy replenishment demand at node i during time interval t , and 0 otherwise.
During demand allocation, the service capacity of each candidate station is evaluated according to the current planning configuration. When a vehicle is assigned to a candidate station, the available service capacity of that station in the corresponding time interval is checked. If the allocated demand would exceed the capacity determined by the current station configuration, the vehicle is redirected to the next feasible candidate station.
The complete workflow of the proposed charging and swapping demand forecasting model is illustrated in Figure 1.

2.3. Electric-Traffic Coupling Model

The predicted charging and swapping demand in Section 2.2 is obtained at road-network nodes. However, the grid-side impact of EVCS and EVSS depends on the distribution network nodes to which these facilities are connected [44,45]. Therefore, an electric-traffic coupling model is required to map the road-network nodes to the corresponding power-grid nodes. The traffic–grid coupling strategy adopted in this study follows the established coupling framework in [40], in which the association between the transportation network and the distribution network is determined by considering their spatial relationship and the available grid-side capacity. This treatment aims to establish an engineering-feasible correspondence between the two heterogeneous networks while avoiding unreasonable connections between high-demand traffic nodes and heavily loaded grid nodes.

2.3.1. Spatial Coupling Principle

A charging or battery-swapping station located at a road node is generally expected to be connected to a nearby grid node to reduce connection cost and improve engineering feasibility. Let i denote a road-network node and k denote a power-grid node. The geographic distance between road node i and grid node k can be calculated as
D i , k s p = 2 R e a r c s i n s i n 2 Δ φ i , k 2 + c o s φ i c o s φ k s i n 2 Δ ψ i , k 2
Δ φ i , k = φ i φ k
Δ ψ i , k = ψ i ψ k
where N R and N G are the sets of road nodes and grid nodes, respectively; D i , k s p is the spatial distance index; R e is the equatorial radius of the Earth; φ i and φ k are the latitudes of road node i and grid node k , respectively; ψ i and ψ k are the corresponding longitudes; and Δ φ i , k and Δ ψ i , k are the latitude and longitude differences between the two nodes, respectively.

2.3.2. Capacity Surplus Principle

For grid-side evaluation, the energy replenishment demand obtained in Section 2.2 is converted into an equivalent average power according to the duration of the corresponding time interval. The capacity surplus index is introduced to describe whether grid node k has sufficient remaining capacity to accommodate the charging or swapping load transferred from road node i . It is expressed as
D i , k c a p = 1 P k b a s e + m a x t T P i d e m t P k m a x
where P k b a s e is the basic load of grid node k ; P k m a x is the maximum allowable power; P i d e m t denotes the equivalent average power corresponding to the energy replenishment demand at road node i during time interval t . The total equivalent power demand consists of the EVCS and EVSS components:
P i d e m t = P i , E V C S d e m t + P i , E V S S d e m t
where P i , E V C S d e m t and P i , E V S S d e m t denote the equivalent charging and swapping power demands at road node i during time interval t , respectively.

2.3.3. Node Importance Principle

In addition to spatial distance and capacity margin, node importance is introduced to avoid directly coupling high-load traffic nodes with critical or heavily loaded grid nodes. For the power grid, the mean value of the basic load over all grid nodes can be calculated as
μ G = 1 N G k = 1 N G P k b a s e
and the standard deviation of the basic load is
σ G = 1 N G k = 1 N G P k b a s e μ G 2
where N G is the total number of grid nodes. According to the basic load level, the importance grade of grid node k is defined as
G k G = h i g h , P k b a s e > μ G + σ G m e d i u m , μ G + σ G P k b a s e > 0 l o w , P k b a s e = 0
where G k G represents the importance grade of grid node k .
The importance of each road node is evaluated according to the average predicted energy replenishment demand. The mean demand of road nodes is expressed as
μ R = 1 N R i = 1 N R 1 T t = 1 T P i d e m t
and the standard deviation is
σ R = 1 N R i = 1 N R 1 T t = 1 T P i d e m t μ R 2
where N R is the total number of road nodes; T is the number of time intervals. The importance grade of road node i is defined as
G i R = h i g h , 1 T t = 1 T P i d e m t > μ R + σ R m e d i u m , μ R + σ R 1 T t = 1 T P i d e m t μ R σ R l o w , 1 T t = 1 T P i d e m t < μ R σ R
where G i R represents the importance grade of road node i .

2.3.4. Coupling Coefficient and Load Mapping

Based on the above principles, a comprehensive coupling coefficient is constructed to determine the association between road-network nodes and grid nodes. The coefficient combines the spatial distance index and the capacity surplus index:
Γ i , k = β s p D i , k s p β c a p D i , k c a p
where Γ i , k is the electric-traffic coupling coefficient between road node i and grid node k ; β s p and β c a p are the weighting factors of spatial distance and capacity surplus, respectively.
For each road node i , the coupled grid node is first selected as the candidate coupled node by minimizing the coupling coefficient:
k i * = a r g m i n k N G Γ i , k
The node-importance criterion defined in Section 2.3.3 is then applied as an additional screening condition. Road and grid nodes with simultaneously high importance grades are not allowed to be directly coupled; in such cases, the next eligible grid node according to the coupling coefficient is selected.
After the coupling relationship is determined, the charging and swapping loads generated at road node i are mapped to the corresponding grid node k i * . The total EVCS and EVSS loads connected to grid node k at time t are given by
P k , E V C S t = i N R λ i , k P i , E V C S d e m t
P k , E V S S t = i N R λ i , k P i , E V S S d e m t
λ i , k = 0 , k k i *   1 , k = k i *  
where P k , E V C S t and P k , E V S S t are the EVCS and EVSS loads connected to grid node k , respectively.
Through the electric-traffic coupling model, the road-side charging and swapping demand is transformed into grid-side nodal loads. It should be clarified that the purpose of this coupling model is to provide a physically and operationally reasonable mapping for the subsequent joint planning problem, rather than to formulate the road-to-grid association itself as an additional combinatorial optimization problem. Therefore, the present study does not claim that the resulting mapping represents the theoretical global optimum among all possible road–grid connection combinations. Incorporating the coupling relationship itself into the joint optimization variables could provide a more flexible representation for highly complex network topologies and will be considered in future work.

2.4. Joint Location and Capacity Optimization

The planning model considers three types of stakeholders: infrastructure investors, EV users, and the distribution network. The planning variables include the locations of EVCS and EVSS, the capacities of EVCS, the numbers of fast and slow charging piles, the numbers of batteries in EVSS, and the corresponding grid-connected nodes.

2.4.1. Objective Functions

  • Annual construction cost
The first objective is to minimize the annual construction and operation cost of EVCS and EVSS, which is expressed as
m i n F 1 = C E V C S + C E V S S
where C E V C S and C E V S S are the annual costs of EVCS and EVSS, respectively.
For EVCS, the annual cost is composed of land purchase cost, construction cost, and operation cost:
C E V C S = b = 1 N E V C S C b , l a E V C S + C b , c o E V C S + C b , o p E V C S r 0 1 + r 0 Y 1 + r 0 Y 1
C b , l a E V C S = x b , l a ψ f n b , f + ψ s n b , s + ψ o n b , o C b , c o E V C S = x f n b , f + x s n b , s + ξ c o J b E V C S C b , o p E V C S = C l a E V C S + C c n E V C S T b E V C S + ξ l o J b E V C S
where N E V C S is the number of EVCS; r 0 is the discount rate; Y is the service life; x b , l a is the land price of EVCS b ; n b , f , n b , s , and n b , o are the numbers of fast charging piles, slow charging piles, and auxiliary facilities, respectively; ψ f , ψ s , and ψ o are the corresponding area coefficients; x f and x s are the unit prices of fast and slow charging piles, respectively; J b E V C S is the capacity of EVCS b ; ξ c o and ξ l o are the construction and loss coefficients, respectively; C l a E V C S and C c n E V C S are the labor and connection costs, respectively; T b E V C S is the average operating time.
For EVSS, the annual cost is given by
C E V S S = c = 1 N E V S S C c , l a E V S S + C c , c o E V S S + C c , o p E V S S r 0 1 + r 0 Y 1 + r 0 Y 1
C c , l a E V S S = A c E V S S x c , l a C c , c o E V S S = ξ i n s A c E V S S + ξ a r m N c , a r m + ξ b a t N c , B J B C c , o p E V S S = C l a E V S S + C c n E V S S T c E V S S + ξ B N c , B J B
where N E V S S denotes the number of EVSS; A c E V S S is the occupied area of EVSS c ; x c , l a is the corresponding land price; N c , a r m and N c , B are the numbers of mechanical arms and batteries, respectively; J B is the capacity of a single battery; ξ i n s , ξ a r m , ξ b a t , and ξ B are the installation, mechanical arm, battery investment, and battery operation coefficients, respectively; C l a E V S S and C c n E V S S are the labor and connection costs, respectively; T c E V S S is the average operating time.
2.
User satisfaction
The second objective is to maximize user satisfaction. Considering the effects of queuing time and driving time, the satisfaction objective can be calculated as
m a x F 2 = f s a t = α w f w t w + α d f d t d
where f s a t is the comprehensive satisfaction; f w t w and f d t d are the waiting satisfaction and driving satisfaction, respectively; t w and t d are the waiting time and driving time, respectively; α w and α d are the corresponding weighting coefficients. The functional forms and parameter settings of the waiting satisfaction f w t w and driving satisfaction f d t d adopted in this study follow those reported in [40], where their detailed formulations are provided. For consistency with the minimization framework of the multi-objective algorithm, the user-oriented objective is implemented as user dissatisfaction, defined as 1 f s a t . For ease of interpretation, the corresponding user satisfaction is reported in the numerical results.
3.
Voltage fluctuation
The third objective is to minimize voltage fluctuation after the charging and swapping loads are connected to the distribution network:
m i n F 3 = k = 1 N g r i d t = 1 T V k t V ¯
where V k t is the voltage of grid node k at time t ; V ¯ is the average voltage of the distribution network; N g r i d is the number of grid nodes; T is the number of time intervals.
The voltage objective and voltage constraints play complementary roles. The voltage constraints ensure that all nodal voltages remain within the allowable operating range, whereas the voltage objective further minimizes nodal voltage dispersion within the feasible region. Thus, the constraints guarantee operational feasibility, while the objective improves voltage performance among feasible planning schemes.

2.4.2. Constraints

The following constraints are introduced to ensure that the obtained EVCS–EVSS planning scheme is feasible from the perspectives of spatial deployment, service capability, user service quality, and distribution-network operation.
  • Distance constraints of charging and swapping facilities
To avoid excessive concentration or unreasonable dispersion of charging and swapping facilities, the distance between any two EVCSs and the distance between any two EVSSs should satisfy the corresponding limits:
D m i n E V C S < D b , b E V C S < D m a x E V C S , b b D m i n E V S S < D c , c E V S S < D m a x E V S S , c c
where D b , b E V C S and D c , c E V S S are the distances between two EVCSs and two EVSSs, respectively; D m i n E V C S , D m a x E V C S , D m i n E V S S , and D m a x E V S S are the corresponding distance limits.
2.
Capacity constraints
The capacity constraints are introduced to ensure that the planned charging and swapping facilities provide sufficient energy replenishment capability for the predicted demand. Without these constraints, the optimization process may obtain economically favorable but practically infeasible solutions with insufficient service capacity. Therefore, the service capacity of EVCS and EVSS should satisfy the predicted charging and swapping demand:
i = 1 N r o a d t = 1 T P i , E V C S d e m t b = 1 N E V C S J b E V C S i = 1 N r o a d t = 1 T P i , E V S S d e m t c = 1 N E V S S N c , B J B
where P i , E V C S d e m t and P i , E V S S d e m t are the predicted charging demand of PEVs and swapping demand of BSEVs at road node i , respectively, N r o a d is the number of road nodes. The station-specific and time-dependent service-capacity limits are enforced during the demand-allocation process described in Section 2.2.3. Equation (46) therefore provides an additional system-level capacity adequacy requirement.
3.
Power constraints
To ensure the electrical feasibility of EVCS and EVSS integration, nodal power balance should be maintained, and the connected loads should remain within the allowable access limits of the distribution network. The nodal power balance should be maintained as follows:
k = 1 N g r i d t = 1 T P k s u p t P k l o s s t = k = 1 N g r i d t = 1 T P k b a s e t + P k , E V C S t + P k , E V S S t
P k , E V C S t P k , m a x E V C S P k , E V S S t P k , m a x E V S S
where P k s u p t , P k l o s s t , and P k b a s e t are the supplied power, network loss, and base load of grid node k , respectively; P k , E V C S t and P k , E V S S t are the EVCS and EVSS loads connected to node k , respectively; P k , m a x E V C S and P k , m a x E V S S are the corresponding access power limits. Equation (47) represents an aggregate system-level power-balance constraint rather than the detailed nodal power-flow equation. The detailed nodal active and reactive power-flow formulations are provided in [40].
4.
Waiting time constraint
To guarantee an acceptable level of user service quality, the waiting time of each EV user should not exceed the maximum allowable queuing time:
W f W m a x
where W f is the waiting time of EV user f ; W m a x is the maximum acceptable waiting time.
5.
Voltage constraint
The voltage constraint is introduced to maintain secure distribution-network operation after the integration of charging and swapping loads. Large and spatially concentrated EVCS/EVSS loads may cause excessive voltage deviations at weak or heavily loaded nodes. Therefore, the voltage magnitude of each distribution-network node should remain within the allowable operating range:
V k , m i n V k t V k , m a x
where V k , m i n and V k , m a x are the lower and upper voltage limits of grid node k , respectively.
Overall, the proposed optimization model consists of four interconnected components. First, the microscopic transportation-network model and EV travel characteristics are used to determine vehicle trajectories, energy consumption, SOC evolution, and the resulting spatiotemporal charging and swapping demand. Second, the electric–traffic coupling model maps the road-side replenishment demand to the corresponding distribution-network nodes by considering spatial distance, grid-side capacity margin, and node-importance screening. Third, the joint EVCS–EVSS planning model simultaneously determines station locations and capacities under station-deployment, service-capacity, waiting-time, power, and voltage constraints. Finally, the spatiotemporal demand and traffic–grid mapping results are used to evaluate each candidate planning scheme, and annualized infrastructure cost, user dissatisfaction, and voltage fluctuation are jointly optimized to obtain a set of feasible Pareto planning solutions. These components together form the overall structure of the proposed joint location-and-capacity optimization model.

3. Solution Methodology

3.1. Random Forest Surrogate Model

The joint location and capacity planning of EVCSs and EVSSs is formulated as a nonlinear multi-objective optimization problem. During the evolutionary search, each candidate planning scheme must be evaluated in terms of comprehensive annualized cost, user satisfaction, and voltage fluctuation. The cost objective can be calculated directly from the station locations, installed charging piles, battery inventories, land prices, and equipment parameters. By contrast, the evaluation of user satisfaction and voltage fluctuation requires repeated traffic-service analysis, demand allocation, and power-flow calculation. These procedures become computationally intensive when a large number of candidate solutions are evaluated over successive generations.
To improve the optimization efficiency, an RF-based surrogate model is introduced to approximate the computationally intensive objective evaluations. In the proposed framework, the economic cost objective is retained as an exact evaluation, whereas RF models are constructed for the user satisfaction-related objective and voltage fluctuation objective. In addition, considering that infeasible solutions may affect the evolutionary search, an auxiliary RF classifier is introduced to estimate constraint violation probability.
The accuracy of the RF regression models is evaluated using root mean square error (RMSE), mean absolute error (MAE), and R 2 :
R M S E = 1 N i = 1 N ( y i y ^ i ) 2
M A E = 1 N y i y ^ i
R 2 = 1 i = 1 N y i y ^ i 2 i = 1 N y i y ¯ 2
where y i and y ^ i are the true and predicted values, respectively.
The RF surrogate models are implemented using MATLAB R2025a TreeBagger. Each ensemble contains 100 bagged trees with out-of-bag prediction enabled. The user-dissatisfaction model is trained using all accumulated true-evaluation samples, whereas the voltage-fluctuation model uses only truly feasible samples. The auxiliary feasibility model is implemented as a class-balanced RF model that produces a continuous constraint-violation score. The trained RF models are subsequently embedded into the evolutionary optimization process. Through this strategy, expensive traffic allocation and power-flow calculations are avoided for most candidate solutions, while the original optimization model is retained for periodic correction and final verification.

3.2. RF-SA-NSGA-III Framework

Initially, 300 planning schemes are generated by independent uniform sampling within the prescribed bounds of the 34 decision variables, and the discrete variables are rounded upward before true-model evaluation. After surrogate activation, up to 20 representative solutions are evaluated using the full model every five generations. These solutions include predicted Pareto elites, samples close to the feasibility boundary, predicted feasible solutions with relatively low voltage fluctuation, and decision-space-diverse samples selected using a greedy farthest-point criterion. The newly evaluated true samples are then incorporated into the cumulative training dataset for surrogate updating.
The proposed RF-SA-NSGA-III algorithm retains the basic evolutionary framework of NSGA-III, including nondominated sorting, reference-point-based selection, crossover, and mutation operations. Instead of modifying the evolutionary operators, the proposed method focuses on improving the objective evaluation process.
To further improve search reliability, the predicted constraint information is considered during surrogate evaluation. A threshold of 0.5 is used for the predicted constraint-violation score. Solutions classified as infeasible are assigned a penalty value of 10 8 for all three objectives, thereby preventing them from dominating the evolutionary search. The overall procedure of the proposed RF-SA-NSGA-III algorithm is illustrated in Figure 2.
Different from directly accepting surrogate-based results, the proposed final verification eliminates the influence of surrogate prediction errors on the final planning decision. In the implementation, the entire retained population is reevaluated by the original model before the final Pareto front is obtained.
Compared with conventional NSGA-III, the proposed method reduces the number of expensive objective evaluations while maintaining the reliability of the final planning results through continuous surrogate correction and final real-model validation. During optimization, the algorithm records the number of true evaluations, surrogate predictions, training samples, and RF updates to quantitatively analyze the computational efficiency improvement.
To reduce the influence of subjective preferences on the selection of the final solution from the Pareto-optimal set, an improved gray target decision-making (IGTDM) method based on the entropy weight method (EWM) is adopted [46]. The Pareto objective values are first normalized, and the weights of the evaluation criteria are objectively determined according to their information entropy. A gray target decision matrix is then constructed, and the comprehensive target distance of each Pareto solution is evaluated. The solution with the minimum comprehensive target distance is selected as the final compromise solution. The IGTDM procedure is applied only after the Pareto-optimal set has been obtained and therefore does not affect the evolutionary search process or the generation of the Pareto front. Detailed formulations and computational procedures can be found in reference [46].

4. Case Studies

4.1. Case Description and Data Preparation

4.1.1. Case System Description

To verify the effectiveness of the proposed method, a simulation case is constructed using an actual urban road network of Dali and the IEEE 69-bus benchmark distribution system. The road network preserves the spatial topology of the studied urban area, while the benchmark distribution system is used to represent the grid-side operating characteristics for planning analysis. The road-node classification is determined based on OpenStreetMap road-network data processed in QGIS, with the study area divided into five functional zones. The topology of the transportation network and classified road nodes are illustrated in Figure 3.
Based on the coupling principle described in Section 2.3, the transportation network and distribution network of the studied area are integrated to establish the traffic-grid coupled system. The road nodes are mapped to the corresponding power network buses, and the resulting coupled topology is illustrated in Figure 4.

4.1.2. Charging Demand Forecasting Results

The energy replenishment demand forecasting results are presented in Figure 5 and Figure 6. Figure 5a presents the daily energy replenishment power profiles of private EVs, taxis, and buses. Total daily energy replenishment demand reaches 423.30 MWh, with buses contributing the largest proportion, followed by taxis and private EVs. The demand profiles of different vehicle categories exhibit distinct temporal characteristics. Private EVs mainly concentrate their replenishment demand in the morning period and reach the peak during 08:45–09:00. The battery swapping demand of taxis is distributed over a relatively longer period and reaches its maximum during 11:00–11:15. Compared with private EVs and taxis, buses maintain a higher replenishment demand throughout the day and achieve the maximum demand during 08:00–08:15. The detailed demand statistics of different vehicle categories are provided in Table 1.
Figure 5b presents the energy replenishment demand distribution among different functional areas, including residential, working, commercial, public service, and square areas. The working area has the largest daily demand of 104.57 MWh, accounting for 24.70% of the total demand, followed by the square area with 92.37 MWh. The demand proportions of public service, residential, and commercial areas are 18.90%, 17.56%, and 17.01%, respectively. The demand peaks of all functional areas occur mainly during 08:00–09:00, while the specific peak periods vary among different areas. These differences indicate that energy replenishment demand exhibits clear spatial characteristics associated with different functional areas.
Figure 6 further shows the spatiotemporal distribution of energy replenishment demand across the 61 road network nodes and 96 time intervals. The demand covers all road nodes but presents significant differences in both spatial distribution and temporal variation. A continuous high-demand period appears between 07:45 and 09:00, during which the system reaches the maximum aggregated replenishment load of 55.13 MW at 08:00–08:15. During this peak period, Node 54 has the highest replenishment demand among all nodes. This node is located in a working area and at the intersection of a trunk road and a subsidiary road, which corresponds to its high energy replenishment requirement. Besides Node 54, Nodes 60, 46, 57, and 56 also exhibit relatively high demand levels, forming the major spatial demand clusters during the morning peak period.

4.2. Optimization Results and Algorithm Comparison

4.2.1. Comparison of Optimization Performance

To evaluate the effectiveness of the proposed RF-SA-NSGA-III algorithm, three benchmark algorithms, including MOTEO, NSGA-II, and the standard NSGA-III, are selected for comparative analysis. The optimization performance is evaluated from two aspects: solution quality and computational efficiency. To ensure a consistent comparison, all algorithms are applied to the same EVCS–EVSS planning problem with identical model settings, input data, population size, maximum number of iterations, termination criteria, computational platform, result-statistics procedure, and compromise-solution selection method. Therefore, the algorithms are evaluated under an equivalent evolutionary search budget. The detailed search parameters of different optimization algorithms are listed in Table 2 The algorithm-specific crossover and mutation parameters are retained according to commonly adopted configurations for the corresponding search mechanisms rather than being forcibly unified across different algorithms. These settings are intended to provide practical benchmark configurations and are not claimed to be globally optimal. In particular, NSGA-III and RF-SA-NSGA-III use identical evolutionary operators and parameter settings, so that their performance difference mainly reflects the effect of the proposed surrogate-assisted evaluation strategy.
The proposed RF-SA-NSGA-III retains the original evolutionary operators and reference-point mechanism of NSGA-III, while introducing surrogate-assisted evaluation to reduce computational cost. The parameters of the random forest surrogate model adopted in RF-SA-NSGA-III are provided in Table 3.
The parameters in Table 3 were selected as practical settings to balance surrogate prediction reliability and the computational cost of true-model evaluations, rather than as globally optimized hyperparameters. In particular, the initial sampling size provides sufficient true-evaluation data for surrogate initialization, while the periodic update interval and number of true evaluations per update balance surrogate correction frequency against computational savings. The RF ensemble size was selected to provide stable prediction performance without introducing excessive training overhead.
The optimization results of different algorithms are summarized in Table 4, where the three objective values obtained by each algorithm are compared. In addition, the voltage fluctuation profiles corresponding to the optimal solutions obtained by different algorithms are illustrated in Figure 7 for further comparison.
The results indicate that different algorithms exhibit different optimization characteristics for the multi-objective EVCS–EVSS planning problem. NSGA-II achieves the lowest annualized cost among the compared algorithms, while NSGA-III obtains the highest user satisfaction value. However, both algorithms result in relatively higher voltage fluctuation values, indicating that solutions optimized mainly toward economic or service objectives may negatively affect distribution network operation.
In comparison, RF-SA-NSGA-III achieves the lowest voltage fluctuation value among all algorithms while maintaining comparable user dissatisfaction and annualized cost. Although its annualized cost is slightly higher than those of NSGA-II and MOTEO, the difference remains within an acceptable range, while voltage regulation performance is significantly improved. To complement the voltage profiles shown in Figure 7, Table 5 reports several quantitative voltage and network-loss indicators for the optimal solutions obtained by different algorithms.
Overall, the proposed RF-SA-NSGA-III algorithm preserves the optimization capability of the original NSGA-III framework and achieves competitive objective values among different optimization methods. Combined with the subsequent computational efficiency analysis, the proposed method demonstrates that the computational burden can be substantially reduced while maintaining competitive optimization performance for complex EVCS–EVSS planning problems.
To further evaluate the statistical robustness and overall Pareto-front quality of the compared algorithms, hypervolume (HV) and inverted generational distance (IGD) were calculated based on the results of 5 independent runs. The corresponding mean and standard deviation are reported in Table 6, where a larger HV and a smaller IGD indicate better multi-objective optimization performance.
As shown in Table 6, RF-SA-NSGA-III achieved the highest mean HV, indicating its strong ability to obtain high-quality Pareto solutions with a large dominated objective-space volume. However, its relatively large HV standard deviation and higher IGD suggest greater run-to-run variability and less uniform coverage of the empirical reference front. In comparison, MOTEO obtained the lowest mean IGD. These results indicate that RF-SA-NSGA-III provides strong solution quality, while further improvement in robustness and front coverage remains possible.
The Pareto optimal solutions obtained by RF-SA-NSGA-III are illustrated in Figure 8. The solution set presents the trade-off relationship among annualized cost, user dissatisfaction, and voltage fluctuation in the three-dimensional objective space. The selected compromise solution F1(7) achieves relatively low voltage fluctuation while maintaining competitive performance in economic cost and user service objectives. The corresponding objective values are consistent with those reported in Table 4.
To further evaluate the computational efficiency of the RF surrogate-assisted strategy, the evaluation statistics of RF-SA-NSGA-III are summarized in Table 7. During the 200-generation optimization, a total of 21,258 evaluation calls are recorded, including 2258 full-model evaluations and 19,000 surrogate evaluations, with the latter accounting for 89.38% of the total. Selected surrogate-assessed solutions are reevaluated using the full model during the correction and final verification stages, resulting in a slightly higher total number of evaluation calls. Compared with the approximately 20,100 full-model evaluations required by standard NSGA-III under the same population and iteration settings, RF-SA-NSGA-III reduces the number of computationally expensive full-model evaluations by approximately 88.77%. The final surrogate training dataset contains 2040 true samples, corresponding to 90.35% of the 2258 full-model evaluations, and the surrogate model is updated 39 times during the optimization process. Furthermore, computational time is reduced from 45,706.3 s for standard NSGA-III to 4689.4 s for RF-SA-NSGA-III, corresponding to a reduction of approximately 89.74%. The total runtime of 4689.4 s includes approximately 448.9 s for initial sample generation, 143.5 s for initial population evaluation, 3965.1 s for the main optimization loop, and 131.6 s for final true-model verification. Within the true-objective evaluations, traffic assignment and power-flow calculations require approximately 174.7 s and 3095.3 s, respectively, whereas RF training requires only 11.4 s, indicating that power-flow calculation remains the dominant computational component.
To evaluate the prediction reliability of the random forest surrogate models, MAE, RMSE, and R 2 are employed as evaluation metrics. The prediction performance of the surrogate models for objective 2 (user satisfaction) and objective 3 (voltage fluctuation) is summarized in Table 8.
The reported MAE, RMSE, and R 2 values are calculated from out-of-bag predictions of the random forest models using the dynamically accumulated true-evaluation samples collected throughout the optimization process. Objective 2 uses all accumulated true samples, whereas Objective 3 uses only truly feasible samples. For objective 2, the surrogate model achieves a relatively low prediction error and a satisfactory coefficient of determination. The surrogate model can effectively capture the variation trend of this objective and provide reliable guidance for the evolutionary search process. For objective 3, the surrogate model exhibits better fitting performance compared with objective 2. This is mainly attributed to the use of feasible samples for model training and the corresponding data processing strategy, which improves the prediction capability for grid-related objectives. Although a small number of samples may still exhibit relatively larger prediction deviations, the overall prediction results are sufficient to reflect the changing trends of the original objectives. Therefore, the trained surrogate models can provide effective approximate evaluations for RF-SA-NSGA-III and reduce the dependence on repeated true-model calculations.
To further examine the influence of surrogate uncertainty across the Pareto front, an RMSE-based error-band sensitivity analysis was conducted for five representative solutions. Objectives 2 and 3 were independently perturbed by R M S E , 0, and + R M S E . As shown in Table 9, the cost-extreme and final compromise solutions remained nondominated under all nine perturbation combinations, whereas the user-service-extreme, voltage-extreme, and middle-front solutions remained nondominated in six cases. The voltage-extreme region showed higher relative sensitivity because of its small baseline objective value. Overall, the final compromise solution exhibits satisfactory local stability at the observed surrogate-error level.
To examine the robustness of RF-SA-NSGA-III to changes in input data, the EV population was varied as a representative input factor, and the corresponding objective values and surrogate-model accuracy metrics are summarized in Table 10.
The sensitivity analysis shows that RF-SA-NSGA-III can consistently obtain feasible planning solutions when the EV population varies by ±10% from the baseline level. The three objective values change with the variation in EV population, reflecting the trade-offs among annualized cost, user satisfaction, and voltage performance under different demand levels. Meanwhile, the surrogate models maintain generally stable prediction accuracy across the three scenarios, with comparable MAE, RMSE, and R 2 values. These results indicate that the proposed method retains reasonable adaptability to changes in EV population.
Overall, the RF-SA-NSGA-III algorithm effectively integrates surrogate prediction and true-model correction to accelerate the optimization process of the EVCS–EVSS joint planning problem. The random forest surrogate models are capable of capturing the nonlinear relationship between planning variables and complex objective functions, providing reliable approximate evaluations during the evolutionary search. Although prediction errors inevitably exist in the surrogate-assisted optimization process, the proposed periodic correction mechanism, dynamic training dataset updating, and final true-model verification strategy effectively reduce the influence of surrogate inaccuracies on the reliability of the obtained Pareto solutions. These results demonstrate that the proposed surrogate-assisted mechanism can significantly improve computational efficiency while maintaining sufficient prediction accuracy, providing an effective solution for large-scale traffic–distribution network coupled planning problems.

4.2.2. Optimal Planning Results

The detailed planning results for EVCS and EVSS obtained from the compromise solution are summarized in Table 11 and Table 12. The proposed scheme determines eight EVCS locations and five EVSS locations in the studied transportation–distribution network, with their spatial distributions illustrated in Figure 9.
The selected EVCSs are distributed among multiple functional areas of the studied road network, including work areas (node 53), commercial areas (nodes 2, 11, and 23), public service areas (nodes 6 and 35), green park areas (node 46), and residential areas (node 21). The deployment results are consistent with the spatial characteristics of charging demand obtained from the demand forecasting analysis. Specifically, work areas and commercial areas exhibit relatively concentrated charging demands during the morning peak period due to commuting and activity accumulation, and EVCSs are accordingly deployed at representative nodes within these regions. Meanwhile, charging stations located in public service, residential, and green park areas provide additional service coverage for vehicles with different travel purposes and temporal demand characteristics.
The planning results also show that EVCS capacities are not uniformly allocated among different locations. Instead, the numbers of slow and fast charging piles, rated power, and daily energy replenishment capacity are jointly optimized according to the corresponding demand characteristics. For example, EVCSs located at nodes 21, 35, and 46 are assigned relatively higher charging capacities, corresponding to their larger daily replenishment demands. This indicates that the proposed method can achieve coordinated optimization of station location and capacity rather than only determining candidate locations.
For EVSS deployment, five battery-swapping stations are selected at nodes 35, 54, 37, 41, and 47, which are mainly distributed in public service areas, work areas, and green park areas. Compared with private EV charging demand, taxi battery-swapping demand presents a stronger relationship with continuous operation requirements and concentrated service periods. Therefore, the obtained EVSS locations are mainly concentrated in areas with intensive transportation activities.
Among the selected locations, node 54 is located in a work area and corresponds to the road-network node with the highest replenishment demand during the system peak period (08:00–08:15) identified in the demand forecasting results. The deployment of an EVSS at this node helps provide timely energy replenishment service for taxis during high-demand periods. In addition, EVSSs located at nodes 35, 37, and 41 in public service areas improve service accessibility by covering additional travel-demand regions, while node 47 in the green park area provides supplementary swapping capacity for surrounding traffic flows. Different swapping capacities are assigned to the selected EVSSs according to their daily replenishment requirements. This differentiated capacity configuration avoids excessive investment at low-demand locations while ensuring sufficient service capability at high-demand areas.
Overall, the obtained EVCS–EVSS planning scheme achieves coordinated deployment of charging and battery-swapping facilities. The selected locations and capacity configurations are jointly optimized according to the spatial distribution of energy replenishment demand and the operational requirements of the coupled transportation–distribution network. In particular, stations with relatively larger capacities are generally allocated to areas with higher energy replenishment demand, while the overall spatial distribution of the planned facilities provides balanced coverage across different functional areas. This consistency between the predicted demand characteristics and the resulting infrastructure deployment provides an additional indication of the rationality and practical feasibility of the proposed planning model.
From an electrical and energy perspective, the obtained results show that the system behavior is closely related to the temporal and spatial distribution of EV replenishment demand and the corresponding EVCS/EVSS capacity allocation. The daily simulation is divided into 96 intervals, and the aggregated replenishment load reaches a peak of 55.13 MW during 08:00–08:15, reflecting the concentration of charging and swapping demand in the morning period. These time-varying demands are mapped to the distribution network through the road–grid coupling relationship and directly affect nodal loading conditions. The power-flow results further indicate that the optimized station configuration maintains the bus voltages within the prescribed operating limits, while the voltage-deviation and network-loss indicators vary with the magnitude and spatial allocation of replenishment demand. Therefore, the final EVCS and EVSS capacities should be interpreted not only as infrastructure sizing decisions, but also as a means of coordinating transportation-side energy demand with distribution-network operating.

5. Conclusions and Future Work

This paper investigates the joint location and capacity optimization problem of EVCSs and EVSSs in a traffic–grid coupled system and proposes a surrogate-assisted evolutionary optimization framework. To address the high computational burden caused by repeated traffic demand evaluation, user service assessment, and multi-period power-flow calculations in conventional evolutionary algorithms, an RF-SA-NSGA-III algorithm is developed. By introducing RF surrogate models to approximate computationally intensive objective evaluations and adopting a periodic real-model correction strategy, the proposed method significantly reduces the dependence on expensive model evaluations. The case study shows that 89.38% of the evaluation calls are performed using surrogate predictions, while the computational time is reduced from 45,706.3 s to 4689.4 s compared with conventional NSGA-III, indicating a substantial improvement in computational efficiency.
A traffic–grid coupled planning scenario is constructed based on an urban transportation network and a distribution system to evaluate the proposed method for EVCS and EVSS joint planning. The repeated-run comparisons and Pareto-based performance indicators show that RF-SA-NSGA-III achieves competitive multi-objective optimization performance under the considered experimental setting while requiring substantially fewer full-model evaluations than conventional NSGA-III. Furthermore, the combination of surrogate prediction and periodic correction helps reduce the influence of surrogate approximation errors while limiting expensive objective evaluations. Overall, the results suggest that the proposed framework provides a favorable balance between computational efficiency and solution quality under the considered case-study conditions.
From a practical planning perspective, the proposed framework can support the coordinated siting and capacity allocation of EVCSs and EVSSs by linking spatiotemporal energy replenishment demand with distribution-network operating requirements. The obtained Pareto solutions provide alternative planning schemes under different priorities, allowing planners to balance investment cost, user service performance, and grid voltage performance. Although the present case study is based on a specific urban transportation network and benchmark distribution system, the overall framework can be extended to other cities or regions by replacing the corresponding transportation topology, EV travel characteristics, spatial demand distribution, distribution-network parameters, and traffic–grid coupling relationships. However, these inputs and coupling parameters must be recalibrated according to local conditions, particularly for highly meshed road networks, heavily constrained distribution systems, or substantially different demand patterns.
The present study adopts a representative daily scenario with 15 min temporal resolution to balance demand representativeness and computational burden. Seasonal temperature information is incorporated through its influence on auxiliary energy consumption and SOC evolution, but independent season-specific scenarios, weekday/weekend travel patterns, nighttime demand characteristics, and other sources of long-term demand variability are not modeled separately. Future work will therefore extend the framework toward multi-scenario planning with more diverse temporal and spatial operating conditions, as well as stochastic travel behavior and dynamic electricity-price information.
Further research will also focus on improving the robustness and validation of the surrogate-assisted optimization framework. In particular, systematic sensitivity analysis of the initial training sample size, surrogate update interval, number of true evaluations per update, and RF settings will be conducted to quantify their influence on prediction accuracy, computational efficiency, and optimization performance. In addition, the repeated-run results indicate that further improvement in run-to-run stability and Pareto-front coverage remains possible. Future studies may therefore investigate more adaptive sample-selection and surrogate-update strategies, together with more detailed operational validation using station utilization, demand-to-capacity ratios, waiting-time statistics, and real-world traffic and charging data.

Author Contributions

Conceptualization, Z.L. and B.Y.; methodology, Z.L. and Y.H.; software, Z.L.; validation, Z.L., B.Y., H.Z., X.Z., Y.H., J.L. and X.H.; formal analysis, Z.L., H.Z. and X.Z.; investigation, Y.H.; resources, B.Y.; data curation, H.Z., X.Z. and Y.H.; writing—original draft preparation, Z.L.; writing—review and editing, B.Y., H.Z., X.Z., Y.H., J.L. and X.H.; visualization, Z.L.; supervision, B.Y.; project administration, B.Y. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China, grant number 62663026, the Yunnan Province Major Science and Technology Project, grant number 202602AF08000, and the Optimal Configuration Technology for Distribution Automation Terminals Based on Dynamic Primary-Secondary Coordination, grant number 214300KC26060008.

Data Availability Statement

The data presented in this study are available on request from the corresponding author due to restrictions.

Conflicts of Interest

Author Junyu Liang and Xuehao He were employed by the company Yunnan Electric Power Research Institute, Yunnan Power Grid Co., Ltd. Huanming Zhang and Xiangyu Zhao were employed by the China Southern Power Grid Artificial Intelligence Technology Co., Ltd. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
BSEVBattery-swapping electric vehicle
EVElectric vehicle
EVCSElectric vehicle charging station
EVSSElectric vehicle swapping station
EWMEntropy weight method
HVHypervolume
IDGInverted generational distance
IDTDMImproved gray target decision-making
MAEMean absolute error
MOTEOMulti-Objective Teaching Evolutionary Optimization
NSGA-IINon-dominated Sorting Genetic Algorithm II
NSGA-IIINon-dominated Sorting Genetic Algorithm III
PEVPlug-in electric vehicle
POIPoint of interest
RFRandom forest
RF-SA-NSGA-IIIRandom forest surrogate-assisted Non-dominated Sorting Genetic Algorithm III
RMSERoot mean square error
SOCState of charge

References

  1. Kumar, B.V.; Farhan, A. Multi-Objective Optimization Framework for Strategic Placement of Electric Vehicle Charging Stations and Shunt Capacitors in a Distribution Network Considering Traffic Flow. Appl. Energy 2025, 397, 126284. [Google Scholar] [CrossRef] [Scilit]
  2. Ren, H.; Tseng, C.-L.; Wen, F.; Wang, C.; Chen, G.; Li, X. Scenario-Based Optimal Real-Time Charging Strategy of Electric Vehicles with Bayesian Long Short-Term Memory Networks. J. Mod. Power Syst. Clean Energy 2024, 12, 1572–1583. [Google Scholar] [CrossRef] [Scilit]
  3. Sawant, V.; Zambare, P. DC Fast Charging Stations for Electric Vehicles: A Review. Energy Convers. Econ. 2024, 5, 54–71. [Google Scholar] [CrossRef] [Scilit]
  4. Munusamy, N.; Vairavasundaram, I. Enhancing Grid Stability and V2G Integration by Optimizing Three-Phase Bidirectional EV Chargers Using ANFIS and FPGA-Based Control Systems. Glob. Energy Interconnect. 2025, 8, 1047–1061. [Google Scholar] [CrossRef] [Scilit]
  5. Jiang, C.; Lin, Z.; Liu, C.; Chen, F.; Shao, Z. MADDPG-based active distribution network dynamic reconfiguration with renewable energy. Prot. Control Mod. Power Syst. 2024, 9, 143–155. [Google Scholar] [CrossRef] [Scilit]
  6. Qiu, C.; Huang, S.; Hu, Y. Review of HVDC Tap. Chin. J. Electr. Eng. 2025, 11, 1–15. [Google Scholar] [CrossRef] [Scilit]
  7. Saxena, A.; Shankar, R. An Interactive Operating Demand Response Approach for Hybrid Power Systems Integrating Renewable Energy Sources. Prot. Control Mod. Power Syst. 2024, 9, 174–194. [Google Scholar] [CrossRef] [Scilit]
  8. Sarwar, F.A.; Hernando-Gil, I.; Vechiu, I. Review of Energy Management Systems and Optimization Methods for Hydrogen-based Hybrid Building Microgrids. Energy Convers. Econ. 2024, 5, 259–279. [Google Scholar] [CrossRef] [Scilit]
  9. Wu, W.; Wang, M.; Tu, L.; Cai, H.; Yan, G.; Qu, X.; Gu, H.; Chen, W. Control, Modeling and Stability Analysis of DRU-Based Grid-Forming Converter. Chin. J. Electr. Eng. 2025, 11, 83–92. [Google Scholar] [CrossRef] [Scilit]
  10. Wu, X.; Yang, W.; Zhang, N.; Zhou, C.; Song, J.; Kang, C. A Distributed Computing Algorithm for Electricity Carbon Emission Flow and Carbon Emission Intensity. Prot. Control Mod. Power Syst. 2024, 9, 138–146. [Google Scholar] [CrossRef] [Scilit]
  11. Hu, W.; Wang, S.; Du, P. An optimized distribution model for energy system in virtual power plants integrating electric vehicles based on TD3 and DQN. Prot. Control Mod. Power Syst. 2025, 10, 31–48. [Google Scholar] [CrossRef] [Scilit]
  12. Mostofa, K.Z.; Fokrul Islam, M.; Islam, M.A.; Basher, M.K.; Abedin, T.; Yap, B.K.; Nur-E-Alam, M. Data-Driven Insights for Optimizing EV Charging Infrastructure: A Case Study on Efficiency and Utilization. Glob. Energy Interconnect. 2025, 8, 997–1009. [Google Scholar] [CrossRef] [Scilit]
  13. Qin, W.; Li, X.; Jing, X.; Zhu, Z.; Lu, R.; Han, X. Multi-Temporal Optimization of Virtual Power Plant in Energy-Frequency Regulation Market under Uncertainties. J. Mod. Power Syst. Clean Energy 2024, 13, 675–687. [Google Scholar] [CrossRef] [Scilit]
  14. Kumar, B.V.; Farhan, M.A.A. Optimal Simultaneous Allocation of Electric Vehicle Charging Stations and Capacitors in Radial Distribution Network Considering Reliability. J. Mod. Power Syst. Clean Energy 2024, 12, 1584–1595. [Google Scholar] [CrossRef] [Scilit]
  15. Xiao, L.; Muttaqi, K.M.; Agalgaonkar, A.P. Reliability assessment of distribution systems under influence of stochastic nature of PV and spatial-temporal distribution of EV load demand. J. Mod. Power Syst. Clean Energy 2025, 13, 1287–1299. [Google Scholar] [CrossRef] [Scilit]
  16. Wang, Z.; Zou, J.; Tu, J.; Li, X.; Liu, J.; Wu, H. Towards Sustainable EV Infrastructure: Site Selection and Capacity Pla-nning with Charger Type Differentiation and Queuing-Theoretic Modeling. World Electr. Veh. J. 2025, 16, 600. [Google Scholar] [CrossRef] [Scilit]
  17. Zhang, B.; Zhao, M.; Hu, X. Location Planning of Electric Vehicle Charging Station with Users’ Preferences and Waiting Time: Multi-Objective Bi-Level Programming Model and HNSGA-II Algorithm. Int. J. Prod. Res. 2023, 61, 1394–1423. [Google Scholar] [CrossRef] [Scilit]
  18. Mehouachi, I.; Trojette, M.; Grayaa, K. Optimal Planning of Electric Vehicle Charging Stations Using a Robust Hybrid Method: A Tunisian Urban Case Study. Transp. Plan. Technol. 2025, 1–27. [Google Scholar] [CrossRef] [Scilit]
  19. Su, L.; Xu, Y.; Dong, Z. State-of-health estimation of lithium-ion batteries: A comprehensive literature review from cell to pack levels. Energy Convers. Econ. 2024, 5, 224–242. [Google Scholar] [CrossRef] [Scilit]
  20. Wang, H.; Chen, S.; Yuan, J.; Xia, M.; Chen, Z.; Li, G.; Folly, K.A.; Lin, Y.; Ma, Y.; Yang, J. Pricing-based Coordinated Scheduling for Multiple EV Charging Stations Considering Capacity Prediction and Service Radius. Energy Convers. Econ. 2025, 6, 225–236. [Google Scholar] [CrossRef] [Scilit]
  21. Zhang, Y.; He, P.; Ren, W.; Jiao, J.; Long, Z.; Jian, Y. A Customer Satisfaction-Based Optimization Model for the Charging and Discharging Path and Battery Swapping Stations’ Site Selection of Electric Vehicles. Front. Energy Res. 2024, 12, 1353268. [Google Scholar] [CrossRef] [Scilit]
  22. Lai, Z.; Li, S. Towards a Multimodal Charging Network: Joint Planning of Charging Stations and Battery Swapping Stations for Electrified Ride-Hailing Fleets. Transp. Res. Part B Methodol. 2024, 183, 102928. [Google Scholar] [CrossRef] [Scilit]
  23. Qi, W.; Zhang, Y.; Zhang, N. Scaling up Electric-Vehicle Battery Swapping Services in Cities: A Joint Location and Repairable-Inventory Model. Manag. Sci. 2020, 69, 6855–6875. [Google Scholar] [CrossRef] [Scilit]
  24. Gull, M.S.; Khalid, M.; Arshad, N. Multi-Objective Optimization of Battery Swapping Station to Power up Mobile and Stationary Loads. Appl. Energy 2024, 374, 124064. [Google Scholar] [CrossRef] [Scilit]
  25. Yu, Y.; Jiang, H.; Zhang, N.; Yong, P.; Teng, F.; Zhang, J.; Wang, Y.; Strbac, G. Revisiting capacity value of variable renewable energy generation in power systems with high renewable energy penetration. J. Mod. Power Syst. Clean Energy 2025, 13, 1593–1603. [Google Scholar] [CrossRef] [Scilit]
  26. Ji, Z.; Liu, X.; Tang, D. Game-theoretic applications for decision-making behavior on the energy demand side: A systematic review. Prot. Control Mod. Power Syst. 2024, 9, 1–20. [Google Scholar] [CrossRef] [Scilit]
  27. Zu, S.; Sun, L. Research on Location Planning of Urban Charging Stations and Battery-Swapping Stations for Electric Vehicles. Energy Rep. 2022, 8, 508–522. [Google Scholar] [CrossRef] [Scilit]
  28. EL-Qasery, M.; Abbou, A.; Laamim, M.; Id-Khajine, L.; Rochd, A. Comparative Analysis of GA and PSO Algorithms for Optimal Cost Management in On-Grid Microgrid Energy Systems with PV-Battery Integration. Glob. Energy Interconnect. 2025, 8, 572–580. [Google Scholar] [CrossRef] [Scilit]
  29. Jing, Y.; Liang, M.; Wang, H.; Yang, Z.; Li, G.; Márquez, F.P.G.; Yang, J.; Chen, Z. Optimal Economic and Low-carbon Scheduling in Integrated Energy System Considering Multi-level Thermal Energy Coupling and Integrated Demand Response. Energy Convers. Econ. 2025, 6, 83–100. [Google Scholar] [CrossRef] [Scilit]
  30. Yang, B.; Zhou, Y.M.; Yan, Y.F.; Su, S.; Li, J.; Yao, W.; Li, H.; Gao, D.; Wang, J. A critical and comprehensive handbook for game theory applications on new power systems: Structure, methodology, and challenges. Prot. Control Mod. Power Syst. 2025, 10, 1–27. [Google Scholar] [CrossRef] [Scilit]
  31. Wang, Z.; Pei, Y.; Li, J. Enhancing Non-Dominated Sorting Genetic Algorithm III Using Chaotic Dynamics and Estimated Convergence Point. In Proceedings of the 2025 IEEE International Conference on Systems, Man, and Cybernetics (SMC), Vienna, Austria, 5–8 October 2025; pp. 5540–5545. [Google Scholar] [CrossRef] [Scilit]
  32. Zhang, Z.; Ma, S.; Jiang, X. Research on Multi-Objective Multi-Robot Task Allocation by Lin–Kernighan–Helsgaun Guided Evolutionary Algorithms. Mathematics 2022, 10, 4714. [Google Scholar] [CrossRef] [Scilit]
  33. Chen, Z.; Dong, Z.Y.; Xu, Y. Anomaly-detection-based learning for real-time data processing in non-intrusive load monitoring. Energy Convers. Econ. 2024, 5, 146–155. [Google Scholar] [CrossRef] [Scilit]
  34. Gu, Q.; Wang, Q.; Xiong, N.N.; Jiang, S.; Chen, L. Surrogate-Assisted Evolutionary Algorithm for Expensive Constrained Multi-Objective Discrete Optimization Problems. Complex Intell. Syst. 2022, 8, 2699–2718. [Google Scholar] [CrossRef] [Scilit]
  35. Hong, Y.; Liang, S.; Lian, J.; Mai, G.; Zhao, L.; Xu, Y.; Xiang, Y.; Zhang, H.; Liu, F.; Hao, Z. Evolutionary Constrained Optimization Based on Causal Random Forest. Expert Syst. Appl. 2026, 312, 131417. [Google Scholar] [CrossRef] [Scilit]
  36. Li, W.; Qiu, Y.; Wang, Z.; Xu, B.; Hao, Z.; Zhang, Q.; Li, Y.; Fan, Z. Surrogate-Assisted Neural Learning and Evolutionary Optimization for Expensive Constrained Multi-Objective Problems. Swarm Evol. Comput. 2025, 97, 102020. [Google Scholar] [CrossRef] [Scilit]
  37. Li, J.; Zhan, Z.; Zhang, J. Evolutionary Computation for Expensive Optimization: A Survey. Mach. Intell. Res. 2022, 19, 3–23. [Google Scholar] [CrossRef] [Scilit]
  38. Wang, H.; Jin, Y. A Random Forest-Assisted Evolutionary Algorithm for Data-Driven Constrained Multiobjective Combinatorial Optimization of Trauma Systems. IEEE Trans. Cybern. 2018, 50, 536–549. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  39. Zhao, F.; Fu, L.; Zhong, M.; Liu, S.; Wang, X.; Huang, J.; Ma, X. Development and Validation of Improved Impedance Functions for Roads with Mixed Traffic Using Taxi GPS Trajectory Data and Simulation. J. Adv. Transp. 2020, 2020, 7523423. [Google Scholar] [CrossRef] [Scilit]
  40. He, B.; Yang, B.; Han, Y.; Zhou, Y.; Hu, Y.; Shu, H.; Su, S.; Yang, J.; Huang, Y.; Li, J.; et al. Optimal EVCS Planning via Spatial-Temporal Distribution of Charging Demand Forecasting and Traffic-Grid Coupling. Energy 2024, 313, 133885. [Google Scholar] [CrossRef] [Scilit]
  41. Hu, Y.; Yang, B.; He, B.; Li, H.; Gao, D.; Wang, J.; Jiang, L. Optimal Operation and Planning of Hydrogen Refueling Stations for Hydrogen Fuel Cell Vehicles: A Typical Techno-Economic-Environmental Paradigm. Renew. Energy 2026, 256, 124459. [Google Scholar] [CrossRef] [Scilit]
  42. Zhou, X.; Liu, X.; Liu, H.; Ji, Z.; Li, F. Optimal Dispatching Strategy for Residential Demand Response Considering Load Participation. Glob. Energy Interconnect. 2024, 7, 38–47. [Google Scholar] [CrossRef] [Scilit]
  43. Fiori, C.; Ahn, K.; Rakha, H.A. Power-Based Electric Vehicle Energy Consumption Model: Model Development and Validation. Appl. Energy 2016, 168, 257–268. [Google Scholar] [CrossRef] [Scilit]
  44. Chen, S.; Cheng, H.; Lv, S.; Wei, Z.; Li, P.; Jin, J. Learning-Aided Collaborative Optimization of Power, Hydrogen, and Transportation Networks. J. Mod. Power Syst. Clean Energy 2024, 13, 475–487. [Google Scholar] [CrossRef] [Scilit]
  45. Liu, G.; Wang, L.; Cui, K.; Guo, P.; Dai, H.; Guo, M.; Xin, L. Assessment of Flexible Interconnection Strategies for the Integration of Electric Vehicles and Renewable Energy in Load-Centric Distribution Networks. Glob. Energy Interconnect. 2025, 8, 447–459. [Google Scholar] [CrossRef] [Scilit]
  46. Li, J.; Yang, B.; Huang, J.; Guo, Z.; Wang, J.; Zhang, R.; Hu, Y.; Shu, H.; Chen, Y.; Yan, Y. Optimal Planning of Electricity–Hydrogen Hybrid Energy Storage System Considering Demand Response in Active Distribution Network. Energy 2023, 273, 127142. [Google Scholar] [CrossRef] [Scilit]
Figure 1. Framework of the charging and swapping demand forecasting process.
Figure 1. Framework of the charging and swapping demand forecasting process.
Algorithms 19 00783 g001
Figure 2. Flowchart of the proposed RF-SA-NSGA-III algorithm.
Figure 2. Flowchart of the proposed RF-SA-NSGA-III algorithm.
Algorithms 19 00783 g002
Figure 3. Road network topology and node classification diagram.
Figure 3. Road network topology and node classification diagram.
Algorithms 19 00783 g003
Figure 4. Schematic diagram of electric-traffic coupling network.
Figure 4. Schematic diagram of electric-traffic coupling network.
Algorithms 19 00783 g004
Figure 5. Energy replenishment demand characteristics under different classifications. (a) Daily energy replenishment power profiles of different EV categories. (b) Charging energy demand profiles of different functional areas.
Figure 5. Energy replenishment demand characteristics under different classifications. (a) Daily energy replenishment power profiles of different EV categories. (b) Charging energy demand profiles of different functional areas.
Algorithms 19 00783 g005
Figure 6. Spatiotemporal distribution of EV energy replenishment demand across road network nodes.
Figure 6. Spatiotemporal distribution of EV energy replenishment demand across road network nodes.
Algorithms 19 00783 g006
Figure 7. Voltage fluctuation profiles of the optimal solutions obtained by different algorithms.
Figure 7. Voltage fluctuation profiles of the optimal solutions obtained by different algorithms.
Algorithms 19 00783 g007
Figure 8. Three-dimensional Pareto-optimal solution set obtained by RF-SA-NSGA-III.
Figure 8. Three-dimensional Pareto-optimal solution set obtained by RF-SA-NSGA-III.
Algorithms 19 00783 g008
Figure 9. Spatial distribution of optimal EVCS and EVSS locations obtained by RF-SA-NSGA-III.
Figure 9. Spatial distribution of optimal EVCS and EVSS locations obtained by RF-SA-NSGA-III.
Algorithms 19 00783 g009
Table 1. Energy replenishment demand statistics of different vehicle categories.
Table 1. Energy replenishment demand statistics of different vehicle categories.
Vehicle TypeTotal NumberNumber of Vehicles
Requiring Replenishment
Replenishment Vehicle RatioDaily Energy Replenishment Demand (MWh)Energy Demand RatioPeak Power (MW)Peak
Period
Private EV220470431.94%51.5212.17%8.0908:45–09:00
Taxi1770170696.38%82.3619.46%13.0111:00–11:15
Bus102697494.93%289.4268.37%41.2908:00–08:15
Table 2. Search parameter settings of different optimization algorithms.
Table 2. Search parameter settings of different optimization algorithms.
ParameterMOTEONSGA-IINSGA-IIIRF-SA-NSGA-III
Population size100100100100
Maximum number of iterations200200200200
Crossover probability0.70.70.50.5
Mutation probability0.40.40.50.5
Variable mutation rate0.020.020.020.02
Table 3. Parameter settings of the RF surrogate model.
Table 3. Parameter settings of the RF surrogate model.
Surrogate Model ParameterSetting ValueFunction
Initial number of true samples300Construct the initial random forest training dataset
Surrogate model update interval5Perform true-model correction every 5 generations
Number of samples per update20Add 20 newly evaluated true samples in each update
Minimum number of training samples100Minimum training dataset size required to activate the surrogate model
Minimum number of feasible samples20Minimum number of feasible samples required for feasibility model training
Minimum feasible samples for objective 350The voltage fluctuation surrogate model is trained only using true feasible samples
Threshold for activating feasible samples50Determined by the larger value between 20 and 50
Minimum number of infeasible samples20Ensure sufficient samples for learning the feasibility boundary
Number of trees in random forest100Each surrogate model contains 100 regression trees
Table 4. Optimization results comparison among different algorithms.
Table 4. Optimization results comparison among different algorithms.
AlgorithmTotal Annualized Cost (CNY)User SatisfactionVoltage Fluctuation
MOTEO6,944,022.8880.618301.0589
NSGA-II6,867,567.3240.621362.7329
NSGA-III7,175,612.3930.615741.6199
RF-SA-NSGA-III7,079,752.7020.612521.0030
Table 5. Voltage-performance and network-loss indicators for different algorithms.
Table 5. Voltage-performance and network-loss indicators for different algorithms.
AlgorithmsMinimum System-Average Voltage (p.u.)Maximum Deviation of System-Average Voltage Profile (p.u.)Minimum Bus-Average Voltage (p.u.)Maximum Deviation of Bus-Average Voltage (p.u.)Active Power Loss of the Distribution Network
MOTEO0.9789240.0210760.9722870.0277130.040440
NSGA-II0.9363890.0636110.9693760.0306240.116396
NSGA-III0.9629260.0370740.9647080.0352920.078450
RF-SA-NSGA-III0.9794220.0205780.9754720.0245280.039166
Table 6. Statistical performance of different algorithms over independent runs.
Table 6. Statistical performance of different algorithms over independent runs.
AlgorithmHV (Mean ± Std)IGD (Mean ± Std)
MOTEO0.579045 ± 0.0535440.174850 ± 0.022865
NSGA-II0.540864 ± 0.0308610.189697 ± 0.018246
NSGA-III0.600242 ± 0.0753380.183135 ± 0.025223
RF-SA-NSGA-III0.694599 ± 0.2986820.240335 ± 0.054083
Table 7. Computational efficiency statistics of RF-SA-NSGA-III.
Table 7. Computational efficiency statistics of RF-SA-NSGA-III.
IndicatorValue
Total candidate evaluations21,258
True objective evaluations2258
Surrogate-based evaluations19,000
Surrogate evaluation ratio89.38%
Final training samples2040
Training samples/True evaluations90.35%
Surrogate model updates39
Computational time (s)4689.4
Table 8. Prediction performance of the RF surrogate models for Objectives 2 and 3.
Table 8. Prediction performance of the RF surrogate models for Objectives 2 and 3.
Surrogate ModelMAERMSE R 2
Objective 2: user satisfaction0.01820.02870.7590
Objective 3: voltage fluctuation0.09710.17550.8778
Table 9. RMSE-based sensitivity analysis of representative solutions across the final Pareto front.
Table 9. RMSE-based sensitivity analysis of representative solutions across the final Pareto front.
Pareto RegionSolutionObjective 2 ValueRelative RMSE Exposure of Objective 2 (%)Objective 3 ValueRelative RMSE Exposure of Objective 3 (%)Nondominated Cases Under RMSE Perturbations
Cost extremeF1(21)0.519805.971.2145814.459/9
User-service extremeF1(18)0.635677.871.809259.706/9
Voltage extremeF1(23)0.517095.940.2514269.816/9
Middle frontF1(17)0.543266.280.4151842.276/9
Final compromise solutionF1(7)0.612527.401.0030117.509/9
Table 10. Sensitivity of optimization performance and surrogate accuracy to EV population.
Table 10. Sensitivity of optimization performance and surrogate accuracy to EV population.
EV PopulationTotal Annualized Cost (CNY)User SatisfactionVoltage FluctuationMAE
(Objective2/3)
RMSE
(Objective2/3)
R 2 (Objective2/3)
45005,765,7660.519790.67420.0177/0.08780.0276/0.16480.6287/0.8954
50007,079,7520.612521.00300.0182/0.09710.0287/0.17550.7590/0.8778
55006,829,9280.537470.87380.0157/0.02980.0264/0.07450.6480/0.8845
Table 11. Optimal EVCS planning results obtained by RF-SA-NSGA-III.
Table 11. Optimal EVCS planning results obtained by RF-SA-NSGA-III.
No.Traffic NodeDistribution NodeSlow ChargersFast ChargersRated Power (kW)
1536617132070
211508152040
3214119162490
435386121620
523212121800
66298182400
7232886960
84638121680
Table 12. Optimal EVSS planning results obtained by RF-SA-NSGA-III.
Table 12. Optimal EVSS planning results obtained by RF-SA-NSGA-III.
No.Traffic NodeDistribution NodeBattery Swapping Capacity
135389
2543616
3376716
4413415
547336
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Li, Z.; Yang, B.; Zhang, H.; Zhao, X.; Hu, Y.; Liang, J.; He, X. Joint Location and Capacity Optimization of Electric Vehicle Charging and Battery-Swapping Stations Using Random Forest Surrogate-Assisted NSGA-III. Algorithms 2026, 19, 783. https://doi.org/10.3390/a19090783

AMA Style

Li Z, Yang B, Zhang H, Zhao X, Hu Y, Liang J, He X. Joint Location and Capacity Optimization of Electric Vehicle Charging and Battery-Swapping Stations Using Random Forest Surrogate-Assisted NSGA-III. Algorithms. 2026; 19(9):783. https://doi.org/10.3390/a19090783

Chicago/Turabian Style

Li, Zihan, Bo Yang, Huanming Zhang, Xiangyu Zhao, Yuanweiji Hu, Junyu Liang, and Xuehao He. 2026. "Joint Location and Capacity Optimization of Electric Vehicle Charging and Battery-Swapping Stations Using Random Forest Surrogate-Assisted NSGA-III" Algorithms 19, no. 9: 783. https://doi.org/10.3390/a19090783

APA Style

Li, Z., Yang, B., Zhang, H., Zhao, X., Hu, Y., Liang, J., & He, X. (2026). Joint Location and Capacity Optimization of Electric Vehicle Charging and Battery-Swapping Stations Using Random Forest Surrogate-Assisted NSGA-III. Algorithms, 19(9), 783. https://doi.org/10.3390/a19090783

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop