Abstract
Battery swapping stations can shorten the charging service time of electric vehicles, but the value of their operation depends on the coordination between high-power battery charging and renewable generation, on one hand, and storage dispatch and tariff-driven grid exchange, on the other. This paper develops a linear programming-based optimal power flow model for a grid-connected Battery Swapping Station incorporating photovoltaic generation, wind turbines, and a battery energy storage system. The proposed model manages eight power flow paths among the photovoltaic array, wind turbine system, battery energy storage system, utility grid, and battery swapping station demand. Its objective is to minimize the combined cost associated with electricity purchased from the grid and battery degradation while simultaneously maximizing revenue obtained through feed-in tariffs from surplus renewable generation. A 24-h case study was conducted by integrating high- and low-demand season scenarios with a heavy-duty battery swapping station demand profile, alongside Cape Town renewable resource data and South African time-of-use tariffs, to examine seasonal demand variations under both weekday and weekend operating conditions. The optimization results reduce the daily grid electricity expenditure from ZAR 7676.39 to ZAR 564.81 during high-demand weekdays, from ZAR 4093.28 to ZAR 1330.89 during low-demand weekdays, and from ZAR 3256.88 to ZAR 380.89 during low-demand weekends. Based on the analyzed operating conditions, the proposed energy management strategy yields estimated annual savings of approximately ZAR 1.389 million, with an expected discounted payback period of about five years. These findings demonstrate that coordinated dispatch of renewable generation and battery storage can substantially reduce dependence on grid electricity for Battery Swapping Station operation, although the overall economic performance remains strongly influenced by electricity tariff structures, demand characteristics, and assumptions regarding capital investment and operating costs.
1. Introduction
The global transportation sector is experiencing a profound transformation as governments and industries seek effective strategies to reduce greenhouse gas (GHG) emissions, improve energy security, and achieve long-term climate objectives. This transition is critical, as transportation remains one of the largest contributors to energy-related carbon dioxide (CO2) emissions, accounting for nearly 23% of global emissions from the energy sector [1,2,3,4]. Consequently, the widespread adoption of electric vehicles (EVs) has become an important pathway toward achieving the carbon neutrality goals established under the Paris Agreement. As EV deployment continues to accelerate worldwide, the growing demand for electricity presents new operational challenges for existing power systems. Uncontrolled charging activities can increase peak electricity demand, create voltage instability, and raise operating costs for electricity suppliers [5,6,7,8,9,10]. These challenges highlight the importance of developing intelligent charging infrastructure supported by advanced energy management techniques.
Among the available EV charging technologies, Battery Swapping Stations (BSSs) have emerged as an attractive alternative to conventional plug-in charging systems. Unlike direct charging, which requires users to wait for the EV battery to recharge, the BSS model decouples the charging process from vehicle usage. This allows for the rapid replacement of a depleted EV battery with a fully charged one in a matter of minutes, which directly and effectively addresses user concerns regarding range anxiety and long charging durations [11,12,13]. From a grid perspective, BSSs offer unique advantages as flexible loads. The aggregated EV batteries within a battery swapping station can be charged during periods of low electricity prices, allowing the charging process to be decoupled from vehicle arrival times. This operational flexibility enables charging schedules to be shifted away from high-price periods, while the integrated battery energy storage system and renewable energy sources support battery swapping demand when electricity prices are high or renewable generation is limited. Consequently, the coordinated operation of these energy resources improves operational flexibility, reduces dependence on the utility grid, and enhances the overall economic performance of the battery swapping station [14,15,16].
Despite these operational advantages, the sustainability and economic performance of BSSs depend heavily on the energy sources used to charge the batteries. A station supplied primarily by fossil-fuel-based electricity cannot fully realise the environmental benefits associated with electric mobility [17,18]. Integrating renewable energy technologies, particularly photovoltaic (PV) and wind turbine (WT) systems, offers an effective approach for reducing carbon emissions and lowering dependence on conventional electricity generation. Nevertheless, renewable energy resources are inherently intermittent and weather-dependent, making reliable station operation more challenging. Variations in renewable generation, together with uncertain battery swapping demand, may increase renewable energy curtailment or require additional electricity imports from the utility grid [19,20].
To address these challenges, Battery Energy Storage Systems (BESSs) are increasingly incorporated into renewable-powered BSSs. A stationary BESS stores surplus renewable electricity during periods of excess generation and releases the stored energy when renewable production is insufficient or swapping demand increases. Besides enhancing system reliability, the BESS enables energy arbitrage by charging during low-tariff periods and discharging when electricity prices are high, thereby reducing operating costs while improving renewable energy utilisation [21,22,23,24,25]. Consequently, the operation of a grid-connected BSS integrating renewable generation and battery storage represents a complex optimisation problem involving multiple, often competing, objectives. Effective operation requires coordinated management of renewable generation, battery storage, electricity market tariffs, and battery swapping demand while maintaining acceptable battery state-of-charge (SoC) limits.
Existing research on battery swapping stations has evolved along several complementary directions. One of the strands focuses on the siting of facilities, network planning and capacity allocation, where the major issue is the spatial distribution of swapping infrastructure and its interaction with highway or distribution-network constraints [26,27,28,29,30,31]. A second strand looks at scheduling and operational control, both including the effects of queues, real-time energy management, response to tariffs, and coordination with microgrids or distribution networks [32,33,34,35,36,37]. A third body of research associates EV charging or BSS operation with renewable energy and storage, which demonstrate that photovoltaic, wind, and battery resources can decrease grid reliance when their dispatch is synchronized with demand and tariffs [15,16,19,20,23].
These contributions are technically useful, yet to some extent they indicate a gap in modelling. Siting models tend to be too aggregate to describe the hour-by-hour interaction of renewable availability, storage state, grid purchase, and feed-in revenue [27,30]. Scheduling studies provide more operation detail, although many focus on either grid-connected BSS dispatch, photovoltaic integration, or demand response as individual problems but not as a coupled power-flow problem across PV, wind, BESS, grid import, and grid export paths [33,35,36]. Renewable-assisted EV infrastructure studies further suggest that storage can enhance the utilization of renewables, yet the economic worth of that storage is dependent on the tariff asymmetry, the form of charging demand, and when renewable is generated [15,38,39]. The implication here is that a BSS cannot be considered as simply a load, a storage asset, or a renewable off-taker but rather as a functioning node with these roles being concurrent.
Although several studies have applied linear programming for the operational management of renewable-powered electric vehicle charging stations and battery swapping stations, most existing approaches primarily focus on minimizing electricity procurement costs through the coordination of photovoltaic generation, battery storage, and utility grid interaction. Relatively limited attention has been given to modelling the complete energy exchange among multiple renewable sources, battery storage, utility grid, and battery swapping stations using a unified multi-path power flow framework while simultaneously incorporating South African time-of-use electricity tariffs, feed-in tariff mechanisms, battery degradation costs, and long-term economic performance assessment. Furthermore, many previous studies evaluate only short-term operational cost reduction without linking the optimized dispatch strategy to investment-oriented economic indicators such as discounted payback analysis. These limitations motivate the development of the optimal power flow management framework proposed in this paper.
In response to these research gaps, this paper develops a deterministic linear programming-based optimal power flow management framework for a grid-connected electric vehicle battery swapping station integrating photovoltaic generation, wind turbines, a battery energy storage system, and the utility grid. The proposed model explicitly coordinates eight independent power-flow pathways among these energy resources to determine the optimal hourly dispatch strategy that minimizes electricity procurement costs and battery degradation costs while maximizing feed-in tariff revenue from surplus renewable electricity. Unlike many existing formulations that consider only selected energy interactions or require mixed-integer programming to model operational decisions, the proposed framework employs a continuous linear programming formulation that maintains computational efficiency while capturing the principal operational characteristics of the hybrid renewable energy system. The physical interpretation of the eight power-flow pathways, together with the associated decision variables, operational assumptions, and mathematical formulation, is presented in detail in Section 2.
The main contributions of this paper are summarized as follows.
- A unified optimal power flow management framework is developed for a grid-connected battery swapping station that integrates photovoltaic generation, wind turbines, a battery energy storage system and the utility grid. Unlike previous studies that typically consider only selected energy interactions, the proposed framework explicitly coordinates eight independent power-flow pathways, enabling comprehensive energy exchange among all components of the system.
- A computationally efficient linear programming formulation is proposed to minimize electricity procurement costs and battery degradation costs while maximizing revenue obtained from surplus renewable electricity exported through the feed-in tariff mechanism. The optimization incorporates South African time-of-use electricity tariffs, operational constraints, battery state-of-charge management, and terminal storage requirements within a unified mathematical framework.
- The operational optimization is linked with long-term economic assessment by combining the optimal dispatch strategy with discounted cash flow analysis to evaluate annual operating savings and the discounted payback period of the optimally sized hybrid renewable energy system. This provides a direct connection between short-term operational scheduling and long-term investment performance.
The remainder of this paper is organised as follows. Section 2 presents the mathematical formulation of the proposed optimisation model. Section 3 describes the case study, input data, and modelling assumptions. Section 4 discusses the simulation results and their implications. Finally, Section 5 summarises the main findings and outlines recommendations for future research.
2. Mathematical Model Formulation
This section defines the deterministic dispatch model used to evaluate the integrated BSS–PV–WT–BESS–grid system. The formulation is written for an hourly horizon because the available BSS load, renewable-resource, and TOU tariff data are hourly. The decision variables are the controllable power flows – shown in Figure 1; the model therefore represents operational dispatch rather than long-term component sizing or stochastic planning.
Figure 1.
Schematic layout of the proposed system.
2.1. Schematic Model Layout Description
Figure 1 illustrates the configuration of the proposed grid-connected hybrid renewable energy system designed to supply power to an electric vehicle battery swapping station (BSS). The system consists of photovoltaic (PV) panels, vertical-axis wind turbines (WTs), a battery energy storage system (BESS), the utility grid, and the EV battery swapping station. Within the BSS, depleted EV batteries are recharged while fully charged batteries are made available for vehicle battery replacement. The energy exchange among the system components is represented by eight power flow pathways, denoted as –. Specifically, denotes the power supplied from the PV system to the BSS, represents the power transferred from the PV system to the BESS for energy storage, and corresponds to the surplus PV power exported to the utility grid. Similarly, is the power delivered by the wind turbines to the BSS, is the wind-generated power stored in the BESS, and represents excess wind power injected into the utility grid. The discharge power supplied from the BESS to the BSS is represented by , while denotes the electricity imported from the utility grid to satisfy the remaining charging demand. The proposed energy management strategy prioritizes renewable energy utilization to maximize operational efficiency and reduce dependence on the utility grid. Under normal operating conditions, electricity generated by the PV and wind systems is first allocated to satisfy the charging demand of the battery swapping station. When renewable generation exceeds the instantaneous load demand, the excess energy is directed to the BESS until its storage capacity is reached. Once the BESS is fully charged, any remaining surplus renewable energy is exported to the utility grid through the feed-in tariff (FIT) mechanism. Conversely, when renewable generation is insufficient to meet the charging demand, the BESS supplies the required deficit provided that its state of charge remains above the minimum allowable limit. If the available stored energy is inadequate, the utility grid provides the remaining power required to maintain uninterrupted battery swapping operations. This coordinated power dispatch strategy enables efficient utilization of renewable energy resources, enhances the operational flexibility of the BSS, and minimizes electricity procurement costs under the adopted optimal power flow management framework.
2.2. Sub-Models of the Proposed System Components
The following sections provide a detailed overview of the proposed system by presenting the mathematical models and operational characteristics of its various components.
2.2.1. Wind Turbine System
The wind turbine (WT) converts the kinetic energy contained in the movement of air into electrical energy. In the proposed system, the WT is modeled as an alternating-current (AC) power source whose output depends primarily on the prevailing wind speed at the turbine hub. Electricity generation begins once the wind velocity reaches the cut-in wind speed (). As the wind speed increases beyond this threshold, the generated power increases until the rated wind speed () is attained. Between the rated and cut-out wind speeds, the turbine continues to operate at its rated power output. When the wind speed exceeds the cut-out value (), the turbine is automatically disconnected to prevent mechanical damage and ensure safe operation. The resulting power output of the wind turbine is described by Equation (1) [40].
where denotes the wind speed at time interval t, is the cut-in wind speed, is the rated wind speed, represents the cut-out wind speed, and is the rated electrical power of the WT. The rated electrical power generated by the wind turbine is calculated using the classical aerodynamic power conversion equation, which relates the available wind power to the turbine swept area, air density, power coefficient, and drivetrain efficiencies [40]. The resulting rated output power is given by Equation (2).
In Equation (2), and denote the efficiencies of the turbine’s gearbox and the electrical generator, respectively. The parameter represents the air density (kg/m3), is the turbine power coefficient that quantifies the fraction of available wind power converted into useful mechanical energy, is the area swept by the turbine rotor and corresponds to the rated wind speed.
Because the wind speed varies with elevation, the installation height of the turbine significantly influences the available wind resource and, consequently, the electrical power that can be generated. Wind speeds measured at one elevation can therefore be adjusted to another hub height using the power-law relationship expressed in Equation (3) [40].
where is the measured wind speed at the reference height (), V is the wind speed measured at the height of the center (h), and denotes the surface roughness exponent, whose value depends on the characteristics of the surrounding terrain. Typically, exceeds 0.25 in densely vegetated or forested environments and is generally below 0.10 on smooth surfaces such as open water or flat terrain [41].
Within the proposed hybrid energy system, the electrical power generated by the WT is distributed among three destinations: the battery swapping station through , the battery energy storage system through , and the utility grid through . The power balance governing these energy flows is given by Equation (4).
To ensure physically realistic operation, the WT output is restricted within its allowable operating range. The minimum output power is zero when the wind speed is below the cut-in threshold or exceeds the cut-out limit, whereas the maximum output cannot exceed the turbine’s rated capacity. This operating constraint is represented by Equation (5).
2.2.2. Solar Photovoltaic System
The solar photovoltaic (PV) system converts incident solar radiation directly into direct-current (DC) electrical energy and is modeled as a renewable generation source with output that varies according to environmental conditions. Since the availability of solar energy changes throughout the day, the electrical power produced by the PV array is inherently intermittent. The generated power is primarily influenced by the intensity of solar irradiation, the conversion efficiency of the PV modules, the operating temperature, and the total effective surface area of the installed panels. The instantaneous electrical power produced by the PV array is determined using Equation (6) [42].
where denotes the electrical power generated by the PV array, is the total surface area of the PV modules exposed to solar radiation, represents the incident solar irradiance, and is the overall energy conversion efficiency of the PV system. The conversion efficiency is calculated using Equation (7) [42].
In Equation (7), represents the reference conversion efficiency of the PV module under standard test conditions at the reference cell temperature , typically 25 °C, while denotes the temperature coefficient that accounts for the reduction in efficiency as the cell temperature increases (typically 0.004–0.005 per °C). The parameter corresponds to the average hourly solar irradiance under nominal operating conditions (0.8 kWh/m2), while (typically 45 °C) and (typically 20 °C) denote the cell and ambient temperatures under nominal test conditions, respectively.
The amount of solar irradiation received by a PV array continuously varies with meteorological and geographical conditions. Factors such as time of day, seasonal variation, installation orientation, panel tilt angle, site latitude, and the proportions of direct and diffuse solar radiation all influence the total incident irradiance. The total solar irradiance incident on the inclined photovoltaic surface is determined using the isotropic sky model, which combines the beam and diffuse radiation components through a geometric correction factor [42]. The corresponding irradiance model is expressed by Equation (8).
where and denote the beam and diffuse components of solar irradiation at the time interval t, respectively, while is the geometric correction factor that relates the beam radiation incident on the inclined PV surface to that received on a horizontal plane.
The overall electrical output of the photovoltaic system depends not only on the power generated by an individual module but also on the total number of PV panels installed. The total electrical power generated by the PV array is obtained by multiplying the power generated by an individual PV module by the total number of installed modules, as commonly adopted in the modelling of PV system [21,22]. This relationship is given by Equation (9).
Within the proposed hybrid renewable energy system, the electrical power generated by the PV array is distributed among three possible destinations. Power supplies the battery swapping station, charges the battery energy storage system, and exports surplus electricity to the utility grid. The corresponding power balance relationship is given by Equation (10).
The operating output of the photovoltaic system is limited by its installed capacity. Consequently, the generated power cannot be negative and must remain within the maximum rated capacity of the PV installation. This operational constraint is represented by Equation (11).
2.2.3. Battery Energy Storage System
The battery energy storage system (BESS) is incorporated into the proposed EV battery swapping station to improve operational flexibility, enhance the utilisation of renewable energy, and reduce dependence on electricity supplied by the utility grid. By storing surplus energy generated from the photovoltaic (PV) and wind turbine (WT) systems, the BESS can supply electricity whenever renewable generation is insufficient or when battery swapping demand exceeds the available renewable power. In addition to improving system reliability, the BESS enables peak-load management, energy arbitrage under time-of-use (TOU) tariffs, and uninterrupted operation during grid outages or scheduled load-shedding events. Consequently, integrating energy storage enhances both the economic and operational performance of the hybrid renewable energy system.
The operating condition of the BESS is characterised by its state of charge (SoC), which represents the amount of stored energy available at any given time. The SoC continuously changes according to the balance between charging and discharging processes. During periods of surplus renewable generation, electrical energy from the PV and WT systems is stored in the BESS, increasing its SoC. Conversely, when renewable generation is insufficient to satisfy the charging requirements of depleted EV batteries, the stored energy is discharged, causing the SoC to decrease. The temporal evolution of the BESS SoC therefore depends on the initial storage level together with the charging and discharging power exchanged during each sampling interval.
In practical battery energy storage systems, energy losses occur mainly during the charging and discharging processes due to conversion inefficiencies. In the present study, the self-discharge loss over the 24-h optimization horizon is assumed to be negligible and is therefore not explicitly included in the state-of-charge formulation. Considering the charging and discharging efficiencies of the BESS, the state of charge at time (t + 1) is determined using Equation (12) [38].
where denotes the battery state of charge at sampling interval t, and are the charging and discharging efficiencies of the BESS, respectively, and is the nominal energy capacity of the storage system. The charging powers supplied by the PV array and WT are represented by and , respectively, while denotes the power discharged from the BESS to satisfy the battery swapping station demand. The parameter represents the duration of each sampling interval.
Equation (12) describes the recursive evolution of the BESS state of charge between two consecutive sampling intervals. By successively applying Equation (12) from the beginning of the optimization horizon, the state of charge at any sampling interval can be expressed directly in terms of the initial state of charge (). The resulting cumulative formulation is given by Equation (13) [38].
where represents the initial state of charge of the battery energy storage system at the beginning of the optimization period.
To ensure reliable operation and extend battery service life, the BESS must operate within its permissible state-of-charge limits. Excessive charging may accelerate battery degradation, whereas excessive discharging can shorten battery lifespan and reduce system reliability. Therefore, the SoC is constrained to remain between predefined minimum and maximum operating limits throughout the scheduling horizon, as expressed by Equation (14).
The minimum allowable state of charge is determined from the specified depth of discharge (DoD), which defines the maximum proportion of stored energy that may be safely withdrawn from the battery. The relationship between the minimum SoC and the depth of discharge is given by Equation (15).
where denotes the maximum allowable depth of discharge of the battery, expressed as a percentage of its nominal energy capacity.
2.2.4. Utility Grid
The utility grid serves as the supplementary electricity source within the proposed hybrid renewable energy system, ensuring that the battery swapping station (BSS) continues to operate whenever the combined output from the photovoltaic (PV) system, wind turbine (WT), and battery energy storage system (BESS) is insufficient to satisfy the charging demand. Consequently, the grid provides operational support by maintaining a reliable electricity supply during periods of low renewable energy generation or high battery swapping demand.
Besides supplying electricity, the utility grid also enables bidirectional energy exchange. When the renewable generation exceeds the immediate demand of the BSS and the BESS has reached its available storage capacity, the surplus electricity generated by the PV and WT systems can be exported to the utility network. This capability allows the system operator to benefit from feed-in tariff (FIT) schemes while improving the utilization of renewable energy resources and reducing energy curtailment.
The total electrical energy imported from the utility grid over the optimization horizon is determined from the accumulated grid power supplied to the battery swapping station during each sampling interval. This relationship is expressed by Equation (16).
where denotes the electrical power imported from the utility grid to supply the battery swapping station at time interval t, and represents the duration of the sampling interval.
The cost associated with purchasing electricity from the utility grid depends on the applicable time-of-use (TOU) electricity tariff. Since electricity prices vary throughout the day, the optimization model schedules grid power purchases according to the prevailing tariff structure to minimize operating costs. The total expenditure on imported grid electricity is therefore calculated using Equation (17).
where represents the electricity tariff applicable during the sampling interval t, expressed in Rand per kilowatt-hour (ZAR/kWh).
Similarly, the total electrical energy exported from the hybrid renewable energy system to the utility grid is obtained by adding the surplus power generated by the photovoltaic and wind turbine systems over the optimization horizon, as represented by Equation (18).
where represents the electrical power exported from the photovoltaic system to the utility grid, while denotes the corresponding power exported from the wind turbine system.
Revenue generated from exporting renewable electricity is determined according to the feed-in tariff applicable to each renewable energy technology. The total income obtained from electricity sales is therefore evaluated using Equation (19).
where and denote the feed-in tariff rates for photovoltaic and wind-generated electricity, respectively, during the sampling interval t. Incorporating both electricity purchase costs and export revenue enables the optimization model to identify the most economically advantageous operating strategy while improving renewable energy utilization.
Finally, the power imported from the utility grid is constrained to remain within its permissible operating limits. Although the utility grid is assumed to have sufficient capacity to satisfy the required demand under normal operating conditions, the imported power must remain non-negative throughout the optimization period. This operating constraint is represented by Equation (20).
2.2.5. Battery Swapping Station Power Demand
A battery swapping station (BSS) is an EV charging facility that enables drivers to replace depleted batteries with fully charged ones in a short period, thus eliminating the long waiting times associated with conventional plug-in charging methods [43,44]. A typical BSS consists of several battery charging units and swapping bays that allow multiple battery exchange operations to be performed simultaneously. The power demand of the battery swapping station is governed primarily by the charging requirements of depleted batteries that await future swapping operations [45]. Consequently, accurate modeling of the charging demand is essential to ensure that an adequate inventory of fully charged batteries is continuously available while maintaining efficient utilization of available energy resources.
The total electrical demand of the BSS depends on several factors, including the number of batteries that require charging, their energy capacities, battery technologies, initial state of charge (SoC), and the selected charging strategy. Since multiple batteries may be charged concurrently, the overall charging and discharging power of the station is obtained by summing the contributions of all batteries undergoing the charging process. The aggregate charging and discharging powers of the battery swapping station are expressed by Equations (21) and (22), respectively.
where n denotes the total number of EV batteries depleted available for charging, represents the total charging power of the station at the sampling interval t and is the corresponding total discharging power. Furthermore, and denote the charging and discharging powers associated with the EV battery, respectively.
Each battery stored within the swapping station undergoes charging and, where applicable, discharging processes in accordance with its operating characteristics. The state of charge of an individual battery varies throughout the charging cycle and provides a measure of the remaining stored energy relative to its nominal capacity. Taking into account the charging efficiency and energy exchange during each sampling interval, the SoC of the EV battery is determined using Equation (23) [37].
where represents the duration of the sampling interval, while denotes the charging efficiency of the EV battery. The battery charging efficiency is calculated using Equation (24).
During the battery swapping operation, a fully charged battery is removed from the charging inventory and immediately exchanged with a depleted battery received from an arriving electric vehicle. At the instant of battery exchange, the battery participating in the swapping process is considered unavailable for charging or discharging, and its associated charging power, discharging power, and state of charge are therefore reset in accordance with the operational conditions defined in the optimization model. The total charging demand of the BSS is evaluated by aggregating the discretized charging power of all depleted EV batteries connected to the station. Based on the charging capacity of the BSS, the total power required to recharge the n depleted EV batteries at time t can be calculated using Equation (25).
where is the cumulative charging power demand associated with all depleted EV batteries undergoing charging at the battery swapping station at time .
2.3. Optimization Problem Formulation and Proposed Algorithm
The proposed optimization framework aims to determine the optimal power dispatch strategy that minimizes the total operational energy cost while ensuring that the battery swapping station demand is fully supplied through the coordinated scheduling of utility grid power, photovoltaic generation, wind energy, and EV battery storage. In addition, the optimization model considers the cost of battery degradation resulting from EV battery discharge, thereby enhancing the long-term economic performance of the system.
2.3.1. Objective Function
The objective function is formulated as a weighted multi-objective optimization problem. It combines three economic performance indicators into a single objective, namely: (i) minimization of the electricity procurement cost from the utility grid, (ii) minimization of battery degradation resulting from charging and discharging operations, and (iii) maximization of the revenue generated from exporting excess renewable energy. Appropriate weighting coefficients are introduced to balance the relative importance of these competing objectives according to the operational priorities of the system. The mathematical formulation of the objective function is presented in Equation (26).
where , and are weighting factors, is the TOU grid-purchase tariff, and are the PV and WT feed-in tariffs, respectively, is the grid-to-EV BSS power flow from, is the BESS-to-EV BSS discharge power flow, is the PV-to-grid export power flow, is the WT-to-grid export power flow, is the sampling time, N is the number of sampling intervals, is the BESS wearing cost coefficient, and a is the hourly auxiliary operating cost. The weighting factors satisfy .
2.3.2. System Constraints
The optimization model is subject to several operational constraints that guarantee the feasible operation of the proposed battery swapping station. These include the power balance constraint, renewable energy generation limits, battery state-of-charge constraints, power flow limits, and the terminal state-of-charge requirement. The corresponding mathematical formulations are given in Equations (27)–(32).
- Power balance: The total charging demand at each sampling interval must be supplied by the available energy sources, as expressed in Equation (27).
- Wind turbine power supply: The combined wind power supplied to the battery swapping station and the battery energy storage system cannot exceed the available wind power generation, as given in Equation (28).
- Solar PV power supply: The photovoltaic power allocated to the battery swapping station, battery energy storage system, and utility grid is limited by the available PV generation, as described by Equation (29).
- State of charge of the BESS: The state of charge of the battery energy storage system is maintained within its prescribed operating limits throughout the optimization horizon, as defined in Equation (30).
- Power flow limits: The power exchanged through each energy pathway is restricted by its corresponding minimum and maximum operating limits, as shown in Equation (31).which defines the upper and lower bounds for each source power output and where i = 1, 2, 3, …, 8 is the index of power flows, and is the maximum limit for each decision variable at the sampling time t.
- Fixed-final state condition for the BESS: To ensure sustainable battery operation, the battery energy storage system is required to satisfy the fixed-final state condition at the end of the optimization period, as formulated in Equation (34).
2.3.3. Algorithm for Solving the Optimization Problem
The dispatch problem manages the hourly power-flow vector to minimize the objective function in (26), subject to the balance, generation, SoC, power-flow, and terminal-storage constraints. Because the objective function and constraints are linear in the decision variables, the problem is solved as a linear programming model in MATLAB R2025a using the OPTI toolbox with SCIP (https://www.mathworks.com/help/optim/ug/intlinprog.html (accessed on 18 February 2026)). If future versions introduce binary charger-status, import/export exclusivity, or unit-commitment variables, the formulation will become a mixed-integer linear program; these binary variables are not imposed in the present dispatch model. The canonical form is given as follows:
subject to:
where represents the objective function, A and b represent the coefficients corresponding to the inequality constraints, and represent the coefficients corresponding to the equality constraints, and and are the lower and upper bounds of the decision variables. In this optimization problem, the control variables are , , , , , , and , which are contained in vector x, written as follows:
Then, the objective function defined in Equation (26) can be written from the vector in the canonical form in Equation (36) as follows:
The power balance constraint given by Equation (27) and the fixed-final state-of-charge constraint given by Equation (32) are formulated as equality constraints and incorporated into the matrix equation
We denote:
where denotes the identity matrix and denotes the zero matrix. The identity matrices correspond to the decision variables , , , and appearing in the power balance constraint, while the remaining variables do not contribute to the equality constraint.
Then, the canonical linear equality constraint becomes:
The linear inequality constraints represented by Equations (28)–(30), comprising the wind turbine generation limit, photovoltaic generation limit, and battery state-of-charge constraints, are reformulated and assembled into the canonical matrix form
We denote:
with
and
Then, the canonical linear inequality constraint becomes:
Finally, the limits of the control variables are restricted between the lower and upper bounds, as given in Equation (31). The bounds of vector x given in canonical form become:
where the lower bounds correspond to zero power flow and the upper bounds are determined from the maximum capacities of the PV system, WT system, BESS, and utility grid.
3. Case Study Data
The case study is designed to evaluate the operational performance of the proposed optimal power flow management framework under a representative heavy-duty battery swapping station (BSS) demand profile together with South African renewable energy resources and electricity market conditions. The analysis considers a deterministic day-ahead scheduling horizon of 24 h, which is commonly adopted for operational planning under time-of-use (TOU) electricity tariffs. This scheduling horizon captures the hourly variations in battery swapping demand, photovoltaic generation, wind power generation, electricity prices, and battery state of charge while maintaining computational efficiency for day-ahead dispatch. The BSS demand profile is adopted as a representative high-power commercial battery swapping profile, whereas the renewable resource data, electricity tariffs, and economic parameters correspond to Cape Town and Eskom TOU pricing. Consequently, the present case study should be interpreted as a techno-economic transfer case rather than as the historical reconstruction of a specific battery swapping station. The charging demand is supplied through coordinated operation of the wind turbine system, photovoltaic system, battery energy storage system, and utility grid, while surplus renewable energy is either stored in the battery energy storage system or exported to the utility grid through the feed-in tariff mechanism.
3.1. EV BSS Power Demand Load Profile
The EV BSS demand profile adopted in this paper is based on the operational data of a heavy-duty truck battery swapping station located at the Shanghai Port logistics hub, China. This data set was selected because publicly available high-resolution operational demand data for commercial heavy-duty battery swapping stations are currently unavailable in South Africa. Consequently, the Shanghai Port demand profile provides a representative benchmark for evaluating the proposed optimal power flow management strategy under realistic high-power battery swapping operating conditions. Heavy-duty BSS demand is particularly suitable for this study because commercial battery swapping stations generally exhibit higher charging power requirements and lower demand flexibility than private light-duty EV charging systems, making coordinated renewable energy utilization, battery storage dispatch, and time-of-use (TOU) tariff management more critical for efficient system operation [24,30,33].
Although the battery swapping demand profile is adopted from a Chinese case study, the operational optimization presented in this paper is entirely based on South African operating conditions. Specifically, the renewable energy resource data (solar irradiance, wind speed, and ambient temperature), Eskom time-of-use electricity tariffs, feed-in tariff structure, economic assumptions, and component costs correspond to South African conditions. Therefore, the Shanghai Port demand profile is used solely as a representative electrical load for evaluating the proposed energy management framework, whereas the technical, economic, and environmental characteristics reflect the intended South African application.
The primary objective of this study is to evaluate the effectiveness of the proposed optimal power flow management framework for a representative heavy-duty battery swapping station rather than to reproduce the operation of a specific South African facility. The proposed optimization model is therefore independent of the geographical origin of the load profile and can be directly applied to locally measured battery swapping demand data as such datasets become available in South Africa.
Figure 2 and Figure 3 present the representative demand profiles of an EV BSS on a weekday and weekend as the charging load in the optimization model. These demand profiles are employed to assess the capability of the proposed hybrid PV-WT-BESS system to satisfy high-power battery swapping demand while minimizing grid electricity procurement costs under South African TOU electricity tariffs.
Figure 2.
Charging patterns of EV BSS on a weekday.
Figure 3.
Charging patterns of EV BSS on a weekend.
3.2. Renewable Energy Power Supply
The renewable-resource inputs are derived from Cape Town wind-speed, solar-radiation, and ambient-temperature data [46]. Cape Town is used because South African EV infrastructure is exposed to tariff volatility and grid-reliability concerns that make local renewable generation and storage economically relevant [47,48,49]. Figure 4 and Figure 5 present hourly wind-speed profiles for the high- and low-demand seasons, respectively. The high-demand profile has an average wind speed of 2.54 m/s, with the highest values between 14:00 and 16:00; the low-demand profile has an average wind speed of 3.27 m/s, with the highest values between 09:00 and 10:00. Figure 6 and Figure 7 present corresponding short-wave solar-power profiles, with peak values of approximately 0.67 kW/m2 in the high-demand season and 0.79 kW/m2 in the low-demand season. Figure 8 and Figure 9 provide annual wind and solar-resource profiles used to contextualize the seasonal cases.
Figure 4.
Average hourly wind speed under HD.
Figure 5.
Average hourly wind speed under LD.
Figure 6.
Daily average shortwave solar power under HD.
Figure 7.
Daily average shortwave solar power under LD.
Figure 8.
Monthly average wind speed.
Figure 9.
Monthly average shortwave PV power.
3.3. Hybrid Renewable Energy System Configuration
The hybrid renewable energy system investigated in this study consists of a PV array, a WT system, a BESS, an inverter, and a utility grid supplying an EV BSS. Unlike the previous study [22], which focused on the optimal sizing of the hybrid system, the present work considers these subsystem capacities as fixed design parameters and optimizes only the hourly power dispatch. The capacities of the major subsystems were adopted from the optimal techno-economic sizing study reported in [22]. These optimized capacities satisfy the required reliability constraints while minimizing the overall life-cycle cost of the hybrid renewable energy system. Consequently, they provide the baseline configuration used throughout the operational optimization presented in this paper.
The principal design parameters of the simulated hybrid renewable energy system are summarized in Table 1. These parameters define the installed generation, storage, and power conversion capacities used in all simulation scenarios presented in this study.
Table 1.
Optimized subsystem capacities and technical specifications of the hybrid renewable energy system adopted from [22].
3.4. Time-of-Use Electricity Tariff
The electricity pricing structure considered in this study follows the 2023/2024 Eskom Megaflex time-of-use (TOU) tariff, which is regulated by the National Energy Regulator of South Africa (NERSA). The TOU tariff provides economic incentives for shifting electricity consumption to lower-cost periods while reducing demand during peak-price intervals. It also allows surplus renewable energy to be exported to the utility grid after meeting the battery swapping station demand. Electricity prices are classified into off-peak (), standard (), and peak () periods, with separate tariff schedules for the high-demand (June–August) and low-demand (September–May) seasons. The corresponding weekday and weekend TOU tariff functions used in the optimization model are given in Equations (55)–(58) (https://www.eskom.co.za/distribution/wp-content/uploads/2023/03/Schedule-of-standard-prices-2023_24-140323.pdf (accessed on 6 November 2025)).
High-demand season for weekdays and weekends:
Low-demand season for weekdays and weekends:
Here, ZAR denotes South African Rand, t denotes hour of day, and denotes the tariff applied to grid imports. The weekend tariffs in (56) and (58) include only off-peak and standard periods. Feed-in tariffs for distributed renewable energy are regulated through South African electricity-market rules administered by NERSA (https://www.nersa.org.za/ (accessed on 27 August 2026)). The case study uses feed-in values of 1.12 ZAR/kWh for PV export and 1.0398 ZAR/kWh for WT export. In the optimization model, export is permitted only after BSS demand and BESS charging priorities have been considered through the power-balance and storage constraints.
3.5. Verification and Validation of the Optimization Model
To ensure the reliability and correctness of the proposed optimal power flow framework, both verification and validation procedures were performed before analysing the operational performance of the battery swapping station. Verification was undertaken to confirm that the mathematical formulation was correctly implemented in the MATLAB R2025a optimization environment using the OPTI Toolbox with the SCIP linear programming solver (https://www.mathworks.com/help/optim/ug/intlinprog.html (accessed on 18 February 2026)) [50]. During each optimization run, the solver successfully converged to an optimal feasible solution while satisfying all operational constraints, including the renewable power generation limits, battery state-of-charge (SoC) limits, power flow limits, and the fixed-final SoC condition. Furthermore, the hourly power balance constraint was verified throughout the optimization horizon, confirming that the total electricity supplied by the photovoltaic system, wind turbine system, battery energy storage system, and utility grid exactly matched the battery swapping station demand at every time interval within the prescribed numerical tolerance [51].
Model validation was performed by comparing the operational behaviour of the proposed energy management strategy with established findings reported in previous studies on renewable-powered electric vehicle battery swapping stations and hybrid microgrid energy management systems [15,22]. The obtained dispatch results exhibit the expected operational characteristics reported in the literature, namely the prioritization of renewable energy utilization, charging of the battery energy storage system during periods of surplus renewable generation, strategic battery discharge during high electricity tariff periods, and reduced dependence on utility grid electricity under time-of-use pricing. Unlike many previous studies, the proposed model simultaneously coordinates eight interconnected power flow pathways between the photovoltaic system, wind turbine system, battery energy storage system, utility grid, and battery swapping station within a unified linear programming framework, thereby providing a more comprehensive representation of the operational energy management problem while maintaining computational efficiency [15,22].
4. Simulation Results and Discussion
This section evaluates the performance of the proposed optimization framework under different operating conditions and examines its effectiveness in managing energy flows within the grid-connected hybrid renewable energy system. The analysis focuses on the coordinated operation of the photovoltaic (PV) system, wind turbine (WT), battery energy storage system (BESS), and utility grid in supplying the electrical demand of the battery swapping station (BSS). Particular attention is given to the influence of renewable energy availability, electricity tariff structures, and seasonal demand variations on the overall operational cost and system performance. The optimization model was implemented in MATLAB using the SCIP solver available through the OPTI Toolbox. Simulations were performed over a 24-h scheduling horizon with an hourly sampling interval ( = 1 h), beginning at 00:00. The optimization determines the optimal hourly power dispatch among all available energy sources while satisfying the operational constraints described in the previous section. The complete set of simulation parameters adopted in this study is summarized in Table 2. To demonstrate the robustness of the proposed energy management strategy, four representative operating scenarios are investigated. These scenarios capture the combined effects of seasonal electricity demand, renewable energy availability, and weekday/weekend TOU electricity tariffs. The comparative analysis provides valuable insight into how different operating conditions influence renewable energy utilization, battery dispatch, grid energy consumption, electricity expenditure, and the overall economic performance of the battery swapping station.
Table 2.
Simulation parameters used in this paper.
To evaluate the effectiveness of the proposed optimal power flow management strategy, a baseline operating scenario is adopted in which the demand for the battery swapping station is supplied exclusively by electricity imported from the utility grid without coordinated utilization of the photovoltaic system, wind turbine system, battery energy storage system, or feed-in tariff operation. Under this reference operating strategy, the battery swapping station purchases all the required electricity directly from the utility grid according to the applicable Eskom time-of-use electricity tariff schedule. Consequently, the electricity cost savings, the utilization of renewable energy, and the reductions in grid dependency reported throughout Section 4 are evaluated relative to this baseline conventional grid-dependent operating strategy.
4.1. High-Demand Electricity Pricing Season
4.1.1. Scenario 1: Optimal Operational Strategy During a Representative Weekday in the High-Demand Season (June–August)
Figure 10 illustrates the optimal hourly power dispatch of the proposed grid-connected PV–WT–BESS hybrid energy system for a representative winter weekday during the high-demand electricity pricing season. The figure shows the respective contributions of the photovoltaic system (), wind turbine (), BESS (), and utility grid () to supplying the charging demand of the BSS. The optimization strategy dynamically allocates power among these sources according to renewable energy availability, electricity tariff periods, and battery operating conditions to minimize the overall operating cost. During the off-peak tariff periods (00:00–06:00 and 22:00–24:00), the optimization primarily utilises electricity imported from the utility grid to satisfy the BSS charging demand. This operating strategy is economically advantageous because electricity prices are at their lowest during these hours, while renewable energy generation is either unavailable or extremely limited. Consequently, importing low-cost grid electricity during off-peak periods reduces operating expenses while preserving the stored energy in the BESS for periods when electricity becomes more expensive. Following sunrise, increasing solar irradiance progressively enhances the contribution of the photovoltaic system. As PV generation rises throughout the morning, dependence on grid electricity decreases substantially. In contrast, wind power exhibits natural fluctuations during the day because of variations in wind speed. Despite this variability, wind generation complements photovoltaic production and contributes additional renewable energy that improves supply reliability and reduces the need for electricity imports. The BESS plays a key role in balancing the hybrid energy system. During periods of surplus renewable generation, excess electricity produced by the PV and WT systems is stored in the BESS instead of being wasted. The stored energy is subsequently discharged during high-tariff periods, particularly between 06:00–09:00 and again when renewable generation declines during the evening (17:00–19:00). This charging and discharging strategy effectively shifts renewable energy from periods of abundance to periods of high electricity prices, thereby lowering grid energy purchases while maintaining a reliable supply to the battery swapping station. Although renewable generation and battery storage satisfy most of the station demand during expensive tariff periods, limited grid support remains necessary during certain morning intervals when the combined output of the PV system, WT system, and BESS is insufficient to meet the instantaneous charging demand. Nevertheless, the optimization significantly reduces reliance on the utility grid compared with a conventional grid-only charging strategy. During the standard tariff periods (09:00–17:00 and 19:00–22:00), renewable generation becomes the dominant energy source supplying the battery swapping station. In addition to meeting the charging demand, surplus renewable electricity is directed to the battery energy storage system whenever additional storage capacity is available. This operating strategy increases renewable energy utilization while preparing the storage system to support the evening demand period.
Figure 10.
Charging-demand-side power flows.
Figure 11 presents the optimal power exchange associated with the battery energy storage system. The charging power supplied by the photovoltaic array () and the wind turbine (), together with the battery discharge power (), clearly demonstrates the coordinated operation achieved by the optimization algorithm. Whenever renewable generation exceeds the instantaneous charging demand of the battery swapping station, the excess energy is stored in the BESS. Conversely, during periods of reduced renewable generation or elevated electricity tariffs, the stored energy is released to support the charging demand, thereby reducing the requirement for expensive electricity imports from the utility grid. This coordinated charging and discharging behaviour highlights the important role of the BESS in improving both system flexibility and operational economics.
Figure 11.
BESS-side power flows.
The corresponding state-of-charge (SoC) profile of the battery energy storage system is illustrated in Figure 12. The dashed line represents the BESS SoC. The SoC increases steadily during the daytime, particularly between 13:00 and 17:00, when photovoltaic generation reaches its highest output and sufficient renewable energy is available for battery charging. As solar production decreases later in the day and electricity prices remain relatively high, the BESS begins to discharge to support the battery swapping station, resulting in a gradual reduction in the stored energy level. Throughout the simulation period, both the minimum and maximum SoC limits, together with the terminal SoC requirement, are fully satisfied. This confirms that the optimization algorithm successfully maintains feasible battery operation while ensuring long-term operational reliability and battery health.
Figure 12.
BESS SoC.
The hybrid renewable energy system produces considerably higher electricity output during daylight hours than during night-time due to the contribution of solar photovoltaic generation. As illustrated in Figure 13, any renewable energy remaining after satisfying the BSS demand is exported to the utility grid, with the majority of the exported electricity originating from the PV system. Under the Eskom TOU tariff, operating the battery swapping station without the proposed hybrid renewable energy system results in a daily electricity expenditure of ZAR 7676.39. By applying the proposed optimal power flow management strategy, the daily electricity cost is reduced substantially to ZAR 564.81. In addition, the export of surplus renewable electricity during the selected weekday generates a feed-in tariff (FIT) revenue of ZAR 129.00, predominantly from photovoltaic generation. These results demonstrate that the coordinated operation of the utility grid, renewable energy sources, and battery storage effectively minimizes electricity procurement costs while ensuring compliance with the TOU pricing framework.
Figure 13.
Hybrid power to the Grid.
Overall, the results demonstrate that the proposed optimization framework effectively coordinates renewable energy generation, battery storage, and utility grid interaction to minimize electricity procurement costs during the high-demand season. By strategically storing surplus renewable energy and discharging it during expensive tariff periods, the proposed approach substantially reduces dependence on the utility grid while maintaining uninterrupted operation of the battery swapping station.
4.1.2. Scenario 2: Optimal Operational Strategy During a Representative Weekend in the High-Demand Season (June–August)
Figure 14 presents the optimal hourly power dispatch of the proposed PV–WT–BESS hybrid energy system for a representative winter weekend during the high-demand electricity pricing season. The figure illustrates the contributions of the PV system (), WT (), BESS (), and utility grid () to satisfying the charging demand of the BSS. Compared with the weekday scenario, the weekend electricity tariff structure modifies the optimal dispatch strategy, resulting in a different balance between renewable energy utilization, battery operation, electricity imports, and renewable energy exports. During the off-peak tariff periods, the optimization relies primarily on electricity imported from the utility grid to supply the battery charging demand. At these times, renewable generation remains limited because of low solar irradiance and naturally varying wind conditions, while the relatively low electricity price makes grid imports economically preferable. This operating strategy also preserves the stored energy in the BESS for periods when renewable resources become less available or when electricity prices increase. As solar irradiance increases after sunrise, photovoltaic generation progressively becomes the dominant energy source supplying the battery swapping station. Wind generation continues to complement the photovoltaic system throughout the day, although its contribution varies according to the prevailing wind conditions. The coordinated utilization of both renewable resources substantially reduces the requirement for electricity imported from the utility grid during daylight hours.
Figure 14.
Charging-demand-side power flows.
Figure 15 illustrates the corresponding power flows associated with the BESS. Excess renewable electricity generated by the PV and WT systems is directed to the BESS whenever the instantaneous charging demand has been satisfied. The stored energy is subsequently discharged during the standard tariff periods, particularly between 07:00–12:00 and 18:00–20:00, when renewable generation alone cannot fully satisfy the battery charging demand. This charging and discharging strategy enables the BESS to smooth the fluctuations in renewable generation while reducing electricity purchases from the utility grid.
Figure 15.
BESS-side power flows.
The SoC profile of the BESS is presented in Figure 16. The dashed line represents the BESS SoC. The BESS gradually accumulates energy during periods of high renewable generation, particularly around midday, when PV output reaches its maximum. As renewable generation decreases later in the day, the stored energy is released to support the BSS, leading to a controlled reduction in the SoC. Throughout the optimization period, the SoC remains within its prescribed operating limits, and the terminal SoC constraint is fully satisfied, confirming that the proposed energy management strategy maintains technically feasible BESS operation without excessive charging or deep discharge.
Figure 16.
BESS SoC.
Figure 17 shows the renewable electricity exported to the utility grid through PV and WT generation. Most of the exported energy occurs around midday, when photovoltaic production exceeds both the battery swapping demand and the charging capacity of the battery energy storage system. Under weekend tariff conditions, the economic advantage of avoiding grid electricity purchases is lower than during weekdays because of the reduced electricity price differential. Consequently, exporting surplus renewable energy through the feed-in tariff mechanism becomes a more attractive operating strategy, increasing the financial contribution of electricity sales to the overall system performance. The economic performance of the proposed optimization strategy further demonstrates these operational differences. A conventional grid-supplied BSS incurs a daily electricity cost of ZAR 4093.28, whereas the proposed hybrid dispatch reduces the grid electricity expenditure to ZAR 1330.83 while simultaneously generating ZAR 643.56 through renewable electricity exports. Compared with the weekday case, the direct savings achieved from reducing grid electricity purchases are smaller because weekend tariff rates are generally lower. However, the increased export of surplus renewable energy compensates for part of this reduction, illustrating the ability of the optimization framework to adapt its operating strategy according to prevailing electricity market conditions.
Figure 17.
Hybrid power to the Grid.
Overall, the results indicate that the proposed optimization model effectively coordinates renewable generation, battery storage, and utility grid interaction under weekend operating conditions. Unlike the weekday scenario, where the primary economic benefit is obtained by avoiding expensive peak-period electricity purchases, the weekend strategy derives a greater proportion of its economic value from exporting surplus renewable energy. This adaptive operating behaviour demonstrates the flexibility of the proposed optimization framework and its ability to maximize economic performance under varying tariff structures and renewable resource conditions.
4.2. Low-Demand Electricity Pricing Season
4.2.1. Scenario 3: Optimal Operational Strategy for a Representative Weekday During the Low-Demand Electricity Pricing Season (September–May)
Figure 18 illustrates the optimal hourly power dispatch of the proposed PV–WT–BESS hybrid energy system during a representative weekday in the low-demand electricity pricing season. The figure shows the respective contributions of the PV system , WT , BESS , and utility grid to supplying the charging demand of the battery swapping station. The optimization algorithm schedules these energy sources according to renewable energy availability, battery operating conditions, and the applicable TOU electricity tariffs to minimize the daily operating cost. During the off-peak tariff periods (00:00–06:00 and 22:00–24:00), the battery swapping station is supplied mainly by electricity imported from the utility grid. This operating strategy is economically justified because electricity prices are lowest during these periods, while renewable generation remains limited owing to the absence of solar irradiation and relatively low wind power availability. Consequently, the optimization preserves the stored energy in the BESS for later use when renewable generation decreases or electricity prices become comparatively higher. Following sunrise, PV generation increases steadily as solar irradiance intensifies throughout the morning. The additional solar power progressively replaces electricity imported from the utility grid, thereby reducing dependence on conventional electricity supply. Wind generation complements PV generation during the day, although its contribution varies according to the prevailing wind conditions. The combined utilization of these renewable resources enables the BSS to satisfy a large proportion of its charging demand without relying heavily on the utility grid.
Figure 18.
Charging-demand-side power flows.
Figure 19 presents the corresponding power flows associated with the battery energy storage system. The charging power supplied by the PV system and the WT , together with the BESS discharge power , demonstrates the coordinated operation achieved by the optimization model. Whenever renewable generation exceeds the instantaneous charging demand, surplus electricity is stored in the BESS. The stored energy is subsequently discharged during periods when renewable generation decreases, thereby maintaining a continuous supply to the battery swapping station while reducing electricity purchases from the utility grid.
Figure 19.
BESS-side power flows.
The SoC profile shown in Figure 20 confirms this operating behaviour. The dashed line represents the BESS SoC. The SoC gradually increases during periods of abundant renewable generation, particularly around midday, when photovoltaic output reaches its maximum. As renewable production declines later in the day, the stored energy is discharged to supplement the battery swapping demand, resulting in a controlled decrease in the SoC. Throughout the optimization period, both the upper and lower SoC limits, together with the fixed-final state condition constraint for the BESS SoC requirement, remain fully satisfied, demonstrating that the proposed energy management strategy maintains technically feasible battery operation without excessive charging or deep discharge.
Figure 20.
BESS SoC.
Figure 21 illustrates the surplus renewable electricity exported to the utility grid through the PV and WT systems. Most of the exported energy occurs during midday, when renewable generation exceeds both the battery swapping demand and the available charging capacity of the BESS. Rather than curtailing excess renewable production, the optimization exports the surplus electricity to the grid, thereby generating additional revenue through the applicable feed-in tariff programme. This operating strategy improves both renewable energy utilization and the economic performance of the proposed hybrid energy system.
Figure 21.
Hybrid power to the Grid.
Overall, the weekday results for the low-demand season demonstrate that the optimization framework effectively balances renewable generation, battery storage, and utility grid interaction. Although electricity prices are lower than those observed during the high-demand season, the coordinated utilization of renewable energy and battery storage continues to reduce grid electricity consumption while maximizing the financial benefits associated with surplus renewable energy.
4.2.2. Scenario 4: Optimal Operation Strategy of the Proposed System in Low-Demand Season for One Day on the Weekend (September to May)
Figure 22 presents the optimal power dispatch for the proposed hybrid renewable energy system during a representative weekend in the low-demand electricity pricing season. Similarly to the previous scenarios, the optimization coordinates the PV system (), WT (), BESS (), and utility grid to satisfy the charging demand of the BSS while minimizing the overall operating cost. However, the weekend tariff structure produces a different operating strategy because the difference between off-peak and standard electricity prices is smaller than during weekdays. During off-peak periods, the optimization imports electricity from the utility grid whenever this represents the most economical operating option. At the same time, renewable generation from the PV and WT systems is utilized whenever available to reduce unnecessary grid dependence. As solar irradiance increases during the morning, photovoltaic generation becomes the primary energy source supplying the battery swapping station, while wind generation provides supplementary renewable power throughout the day.
Figure 22.
Charging-demand-side power flows.
Figure 23 illustrates the charging ( and ) and discharging power flows associated with the BESS. Surplus renewable energy produced during periods of high PV and wind generation is directed to the BESS whenever additional storage capacity is available. The stored energy is subsequently discharged during periods of lower renewable generation to maintain a reliable electricity supply to the battery swapping station. This coordinated charging and discharging strategy improves renewable energy utilization while reducing fluctuations in grid electricity imports.
Figure 23.
BESS-side power flows.
The corresponding SoC profile of the BESS is shown in Figure 24. The dashed line represents the BESS SoC. The BESS accumulates energy during periods of abundant renewable generation and gradually releases the stored energy as renewable production decreases later in the day. Throughout the optimization horizon, the SoC remains within the prescribed operating limits and satisfies the required fixed-final state condition, confirming that the optimization successfully maintains reliable BESS operation while preserving BESS health.
Figure 24.
BESS SoC.
Figure 25 presents the renewable electricity exported to the utility grid through the PV and WT systems. Compared with the weekday scenario, a greater proportion of surplus renewable electricity is exported because the economic benefit associated with avoiding grid electricity purchases is reduced under the weekend tariff structure. Consequently, the optimization allocates more excess renewable energy to grid export, thereby increasing feed-in tariff revenue while maintaining reliable operation of the battery swapping station.
Figure 25.
Hybrid power to the Grid.
The simulation results demonstrate that the proposed optimization framework automatically adapts its dispatch strategy to changing electricity tariff conditions. Under the low-demand weekend scenario, the algorithm places greater emphasis on maximizing renewable energy utilization and electricity export while continuing to minimize operating costs through coordinated scheduling of the photovoltaic system, wind turbine, battery energy storage system, and utility grid. These findings confirm the flexibility and robustness of the proposed energy management strategy across different seasonal and tariff conditions.
4.3. Baseline and Optimal Cost Savings
To quantify the economic benefits of the proposed energy management strategy, the operating performance of the hybrid renewable energy system is compared with that of a conventional grid-connected battery swapping station. In the baseline case, the entire charging demand is supplied directly by the utility grid according to the applicable TOU electricity tariff, without support from renewable generation or battery energy storage. In contrast, the proposed optimization framework coordinates the operation of the PV system, WT, BESS, utility grid, and renewable electricity exports to minimize the overall operating cost while maximizing the utilization of locally generated renewable energy. The comparative results for the four operating scenarios are summarized in Table 3, which presents the baseline electricity cost, optimized grid electricity cost, feed-in tariff revenue, daily energy savings, and total daily cost savings.
Table 3.
Different case scenarios with daily optimal energy and cost savings.
The results demonstrate that the proposed optimization strategy consistently reduces electricity expenditure across all operating scenarios. However, the magnitude of the savings varies according to the seasonal tariff structure, renewable energy availability, and weekday or weekend operating conditions. These variations confirm that the economic performance of the hybrid renewable energy system is strongly influenced by the interaction between electricity pricing policies and the temporal availability of renewable resources. Among the four scenarios, Scenario 1, representing a representative weekday during the high-demand electricity pricing season, achieves the largest daily cost saving of ZAR 7111.58. This substantial reduction is primarily attributed to the high peak-period electricity tariffs, which make electricity purchased from the utility grid considerably more expensive. Under these conditions, the optimization effectively exploits PV generation, wind power, and stored battery energy to minimize costly grid electricity imports, thereby producing the greatest economic benefit. For Scenario 2, corresponding to a representative weekend during the high-demand season, the optimization reduces the daily electricity expenditure by ZAR 2762.45 while simultaneously generating ZAR 643.56 through renewable electricity exported to the utility grid. Although the overall savings are lower than those achieved during weekdays, the contribution of feed-in tariff revenue becomes more significant because weekend electricity tariffs reduce the financial incentive for avoiding grid electricity purchases. During the low-demand electricity pricing season, the optimization continues to provide substantial economic benefits. Scenario 3 records a daily saving of ZAR 3560.81, demonstrating that coordinated dispatch of renewable generation and battery storage remains economically advantageous even when electricity tariffs are lower. The combined utilization of PV generation, wind energy, and battery storage substantially decreases the amount of electricity imported from the utility grid while maintaining uninterrupted operation of the BSS. Similarly, Scenario 4, representing weekend operation during the low-demand season, achieves a daily cost reduction of ZAR 2062.18 together with ZAR 1194.70 in feed-in tariff revenue. Compared with the corresponding weekday case, a larger proportion of the economic benefit originates from exporting surplus renewable electricity rather than reducing electricity purchases from the utility grid. This behaviour reflects the lower weekend electricity prices, which shift the optimization strategy towards increased renewable energy export whenever local demand and battery charging requirements have been satisfied.
Overall, the comparative analysis clearly demonstrates that the proposed optimization framework adapts its operating strategy according to seasonal electricity tariffs and daily demand patterns. During weekdays, where electricity prices are highest, the optimization prioritises reducing grid electricity consumption through coordinated dispatch of renewable generation and battery storage. In contrast, weekend operation places greater emphasis on exporting surplus renewable energy to increase feed-in tariff revenue. This adaptive behaviour enables the proposed energy management strategy to maximize economic performance while improving renewable energy utilization under a wide range of operating conditions. The economic benefits of the proposed configuration, expressed as weekly and annual cost savings, are presented in Table 4.
Table 4.
Weekly and Annual cost savings.
4.4. Economic Analysis for the Payback Period
The economic feasibility of the proposed hybrid renewable energy system is assessed by determining whether the annual operating cost savings are sufficient to recover the initial capital investment. This analysis compares the conventional grid-only operation of the battery swapping station with the proposed optimal power flow management strategy and converts the resulting daily operating savings into annual economic benefits. The evaluation incorporates investment costs, operating and maintenance expenses, electricity cost savings, and revenue generated through the feed-in tariff over the project lifetime. To account for the time value of money, a discounted cash flow (DCF) approach is adopted, which is widely used in techno-economic assessments of energy systems [52,53]. Accordingly, the discounted present value (DPV) of the future cash flow in year z is determined using Equation (39).
where denotes the discounted present value of the future cash flow, represents the projected cash flow in year z, and d is the annual discount rate. The variable z denotes the project year in which the cash flow occurs. The discount rate reflects the opportunity cost of capital by accounting for the combined effects of inflation and interest rates. In this study, the annual interest rate (https://tradingeconomics.com/south-africa/interest-rate (accessed on 20 November 2025)) and inflation rate (https://tradingeconomics.com/south-africa/inflation-cpi (accessed on 20 November 2025)) are taken as 8.25% and 4.6%, respectively. Based on these parameters, the net present value (NPV) of the project is calculated using Equation (40) [52].
where is the cumulative discounted cash flow (or net present value) over the project lifetime and is the total initial capital investment. The discounted payback period (), which represents the time required for the cumulative discounted cash flow to equal the initial investment cost, is then obtained from Equation (41) [52].
where denotes the last year with a negative NPV.
It should be emphasized that the objective of the present study is not to determine the optimal capacities of the PV system, WT system, BESS, or inverter. The optimal sizing of these major subsystems was previously determined in our earlier study [22], where a techno-economic optimization framework was developed to minimize the total life-cycle cost while satisfying the required reliability constraints. Consequently, the subsystem capacities adopted in this study are treated as fixed design parameters rather than optimization variables. The present work therefore focuses exclusively on the optimal operational power flow management of the previously optimized hybrid renewable energy system by determining the optimal hourly energy dispatch among the PV system, WT system, BESS, utility grid, and battery swapping station under South African time-of-use electricity tariffs and feed-in tariff conditions.
To improve the transparency and reproducibility of the economic assessment, the optimized subsystem capacities reported in [22] are summarized in Table 5. These capacities constitute the basis for estimating the total capital investment of the proposed hybrid renewable energy system and are consistently used throughout the discounted cash flow analysis. Accordingly, the economic performance presented in this section should be interpreted as the financial performance of the optimally sized system operating under the proposed optimal power flow management strategy rather than as the outcome of a new sizing optimization.
Table 5.
Capital cost breakdown of the optimized hybrid renewable energy system.
The total capital investment presented in Table 5 was calculated directly from the optimized subsystem capacities obtained in [22]. The investment cost comprises the PV array, WT system, BESS, inverter, installation costs, and ancillary equipment, with component prices obtained from current South African market data (https://www.sustainable.co.za/ (accessed on 14 December 2025)). The resulting total capital investment is estimated to be ZAR 5,866,490. This investment forms the initial capital cost () used in the discounted cash flow analysis described by Equations (59)–(61).
The discounted economic assessment evaluates whether the operational savings achieved by the proposed optimal power flow management strategy are sufficient to recover the initial investment over the project lifetime. The present economic assessment focuses on the operational viability of the previously optimized hybrid renewable energy system by considering the principal cost components that directly influence day-ahead operational performance, namely the initial capital investment, annual operation and maintenance costs, electricity cost savings, and feed-in tariff revenue. The initial capital investment includes the photovoltaic array, wind turbine system, battery energy storage system, inverter, installation costs, and ancillary equipment, while inflation and interest rates are incorporated through the discounted cash flow analysis. Other economic factors, such as land acquisition, financing structure, taxation, component replacement schedules, salvage value, and residual asset value, were not explicitly considered because they are highly project-specific and depend on the ownership model, financing arrangements, and regulatory framework of the installation. Annual electricity cost savings, feed-in tariff revenue, and annual operation and maintenance costs are discounted to their present values before computing the cumulative net present value (NPV). As summarized in Table 6, the cumulative discounted cash flow becomes positive after approximately five years, corresponding to the discounted payback period of the proposed hybrid renewable energy system. These results demonstrate that, when operated using the proposed optimal power flow management strategy, the previously optimized hybrid renewable energy system is capable of recovering its capital investment within a reasonable period while providing sustained long-term economic benefits. It should be noted that the obtained payback period remains dependent on the adopted assumptions regarding electricity tariffs, renewable energy availability, inflation, interest rates, and battery degradation costs. Consequently, the reported discounted payback period should be interpreted as an indicative economic performance measure for the proposed operational strategy under the adopted techno-economic assumptions rather than as a comprehensive financial investment appraisal. Although the selected assumptions are representative of current South African market conditions, variations in electricity tariffs, feed-in tariff policies, component costs, financing conditions, and other economic parameters may influence the resulting payback period. Therefore, sensitivity analysis of these economic parameters represents an important extension of the present work and will be considered in future research.
Table 6.
Payback period of the proposed system with total investment capital cost of ZAR 5,866,490.
Although the proposed deterministic optimization framework provides encouraging operational and economic results, the reported performance should be interpreted within the scope of a day-ahead scheduling problem based on representative operating conditions. In practical battery swapping stations, renewable energy generation, battery swapping arrivals, electricity demand, and long-term battery degradation are inherently uncertain and may influence the optimal dispatch decisions as well as the resulting economic performance. Consequently, the present deterministic optimization model should be regarded as a baseline operational strategy that establishes the technical and economic feasibility of the proposed hybrid renewable energy system. The incorporation of uncertainty-aware optimization techniques, renewable generation forecasting, stochastic battery arrival modelling, and long-term battery degradation models represents an important direction for future research to further improve the robustness and practical applicability of the proposed optimal power flow management framework.
4.5. Discussion, Limitations and Practical Implications
The simulation outcomes reveal that the economic worth of the proposed system depends not on renewable generation itself but on the time at which renewable generation occurs in relation to the TOU prices and the BSS demand. This follows other studies of PV-battery demand-side control and renewable-assisted EV charging, where storage contributes value by shifting energy across tariff periods, instead of simply increasing total renewable penetration [38,39]. In the current work, the BESS will be most useful when it prevents the opportunity cost of grid purchase in peak periods, whereas feed-in revenue will be more prominent when the tariff conditions during weekends increase the opportunity cost of exporting excess renewable energy.
The weekday/weekend dichotomy is thus of primary concern in the connotation of the results. Weekdays with high demand give rise to the greatest absolute daily savings due to peak tariffs being high and grid-only operation being costly. Weekdays with low demand result in the highest proportional decrease since renewable and storage dispatch are able to cover a higher portion of the charging need. The cost-avoidance potential of hybrid renewable systems is lower, but relative feed-in activity is higher during weekends, which implies that BSS operators cannot assess the hybrid systems based on their annual average tariffs. Granularity of tariff periods is needed since given PV, WT, and BESS capacities can yield different economic results under different daily price structures [35,36].
There are certain limitations that should be taken into account. To begin with, the case study is a combination of a heavy-duty BSS demand profile and South African renewable-resource and tariff inputs. This can be useful to determine transferability when using South African energy-market conditions, but it does not supersede a locally measured South African BSS demand dataset. Second, the model is not endogenously optimized, and there is uncertainty in the arrival of EVs, renewable prediction, battery decay, and tariff changes. Third, the formulation considers dispatch variables as continuous power flows (per hour). This would be suitable for system-level energy management, but a station-level controller would need more integer constraints to manage charger availability, battery inventory states, and mutually exclusive import/export decisions [24,30,37]. These constraints characterize the most significant extensions of the work: stochastic or robust dispatch, validation of the demand profile using South African BSS data, and degradation-aware mixed-integer scheduling.
5. Conclusions
This paper developed a linear programming-based optimal power flow management framework for a grid-connected electric vehicle battery swapping station integrating photovoltaic generation, wind turbines, a battery energy storage system, and the utility grid. The proposed optimization model coordinates energy exchange among these resources to satisfy the charging demand of depleted EV batteries while simultaneously minimizing electricity procurement costs, reducing battery degradation costs, and maximizing revenue from surplus renewable energy exported to the utility grid through the feed-in tariff mechanism.
The simulation results demonstrate that the proposed optimization strategy effectively adapts to varying operating conditions, including high-demand and low-demand electricity pricing seasons as well as weekday and weekend tariff structures. Across all investigated scenarios, the coordinated scheduling of renewable generation, battery storage, and utility grid interaction substantially reduced electricity expenditure compared with conventional grid-dependent operation. Daily electricity costs of ZAR 7676.39, ZAR 4093.28, ZAR 3883.59, and ZAR 3256.88 were reduced to ZAR 564.81, ZAR 1330.83, ZAR 380.89, and ZAR 1456.11, respectively. These results confirm the effectiveness of the proposed optimal power flow strategy in improving the economic performance of battery swapping station operation under South African time-of-use electricity tariffs.
The analysis further revealed that maximizing feed-in tariff revenue is not always the primary contributor to overall cost savings. Instead, greater economic benefits are achieved when the battery energy storage system stores surplus renewable electricity during periods of high renewable generation and subsequently supplies energy during high-price tariff periods. This operating strategy reduces dependence on utility grid electricity while increasing the utilization of locally generated renewable energy.
The discounted cash flow analysis demonstrated that the proposed hybrid renewable energy system is economically viable, achieving an estimated discounted payback period of approximately five years under the adopted investment costs and electricity tariff assumptions. These findings indicate that integrating renewable generation with intelligent energy management and battery storage can significantly improve the financial performance of battery swapping infrastructure while supporting the transition toward sustainable electric mobility.
A limitation of the present study is that the battery swapping station demand profile was adopted from a representative heavy-duty truck battery swapping station at Shanghai Port, China, due to the limited availability of publicly accessible high-resolution operational datasets for commercial battery swapping stations in South Africa. Nevertheless, the operational optimization framework was evaluated using South African renewable energy resource data, Eskom time-of-use electricity tariffs, feed-in tariff policies, and local economic parameters. Consequently, the proposed optimization model should be regarded as a transferable operational framework rather than a site-specific model and can be readily applied to locally measured battery swapping demand profiles as such datasets become available. Furthermore, the present study employs a deterministic day-ahead optimization strategy over a 24-h scheduling horizon using representative renewable generation and battery swapping demand profiles. As a result, uncertainties associated with renewable energy variability, stochastic battery swapping arrivals, long-term electricity demand growth, battery aging, and other operational uncertainties are not explicitly represented in the current formulation. Nevertheless, the proposed deterministic framework provides a valuable baseline for evaluating the operational and economic performance of renewable-powered battery swapping stations under typical operating conditions.
Future work will therefore focus on validating the proposed optimization framework using measured operational data from commercial battery swapping stations in South Africa. In addition, future research will incorporate renewable generation forecasting, stochastic battery swapping arrival modeling, demand uncertainty, battery degradation mechanisms, and advanced uncertainty-aware optimization techniques, such as Model Predictive Control (MPC), stochastic programming, and robust optimization, to improve the adaptability, reliability, and practical applicability of the proposed optimal power flow management framework. Further developments will also consider battery inventory management, charger scheduling, mutually exclusive grid import–export constraints, and additional technical and economic performance indicators for large-scale commercial battery swapping stations.
Overall, the proposed optimal power flow management strategy provides a practical decision-support tool for the planning and operation of renewable-powered battery swapping stations. The proposed methodology effectively reduces operating costs, improves renewable energy utilization, and enhances the long-term economic sustainability of battery swapping infrastructure. Furthermore, the developed optimization framework is sufficiently general to be adapted to different geographical regions and battery swapping applications by incorporating locally representative demand profiles, renewable resource data, electricity tariffs, and economic conditions.
Author Contributions
Conceptualization, L.T.-E.N.; methodology, L.T.-E.N.; software, L.T.-E.N.; validation, L.T.-E.N. and E.E.; formal analysis, L.T.-E.N.; investigation, L.T.-E.N. and E.E.; resources, L.T.-E.N.; data curation, L.T.-E.N.; writing—original draft preparation, L.T.-E.N.; writing—review and editing, L.T.-E.N. and E.E.; visualization, L.T.-E.N. and E.E.; supervision, L.T.-E.N. and E.E.; project administration, L.T.-E.N. and E.E.; funding acquisition, L.T.-E.N. and E.E. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Data Availability Statement
The original contributions presented in the study are included in the article. Further inquiries can be directed to the corresponding author.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- IPCC. Chapter 10: Transport. Intergovernmental Panel on Climate Change 2022. Available online: https://www.ipcc.ch/report/ar6/wg3/chapter/chapter-10/ (accessed on 15 November 2025).
- Jaramillo, P.; Kahn Ribeiro, S.; Newman, P.; Dhar, S.; Diemuodeke, T.; Kajino, T.; Lee, D.S.; Nugroho, S.B.; Ou, X.; Hammer Strømman, A.; et al. Transport (chapter 10). In IPCC 2022: Climate Change 2022: Mitigation of Climate Change. Contribution of Working Group III to the Sixth Assessment Report of the Intergovernmental Panel on Climate Change; Cambridge University Press: Cambridge, UK, 2023; pp. 1049–1160. [Google Scholar]
- Gauto, M.A.; Roitman, T.; Lopes, E.; Capaz, R.S.; Pereira, G.A.G.; Nogueira, G.P. The greenhouse gases emissions and environmental impact profiles for bio-electromobility alternatives in brazilian urban buses. Energy Sustain. Dev. 2026, 90, 101887. [Google Scholar] [CrossRef] [Scilit]
- Ferrer, A.L.C.; Thome, A.M.T. Carbon emissions in transportation: A synthesis framework. Sustainability 2023, 15, 8475. [Google Scholar] [CrossRef] [Scilit]
- International Energy Agency. Global EV Outlook 2021. Available online: https://www.iea.org/reports/global-ev-outlook-2021 (accessed on 25 April 2023).
- Delso-Vicente, A.-T.; Camperos, M.-C.; Almonacid-Durán, M. The evolution of electric and hybrid vehicles and their influence on sustainable transport: A review and future research lines. Sustain. Technol. Entrep. 2025, 4, 100100. [Google Scholar] [CrossRef] [Scilit]
- Timilsina, R.R.; Zhang, J.; Rahut, D.B.; Patradool, K.; Sonobe, T. Global drive toward net-zero emissions and sustainability via electric vehicles: An integrative critical review. Energy Ecol. Environ. 2025, 10, 125–144. [Google Scholar] [CrossRef] [Scilit]
- Malik, M.A.I.; Kalam, M.A.; Ikram, A.; Zeeshan, S.; Zahidi, S.Q.R. Energy transition towards electric vehicle technology: Recent advancements. Energy Rep. 2025, 13, 2958–2996. [Google Scholar] [CrossRef] [Scilit]
- Udendhran, R.; Mohan, T.R.; Uthra, R.A.; Selvakumarasamy, S.; Dinesh, G.; Mukhopadhyay, M.; Saraswat, V.; Chakraborty, P. Transitioning to sustainable E-vehicle systems–Global perspectives on the challenges, policies, and opportunities. J. Hazard. Mater. Adv. 2025, 17, 100619. [Google Scholar] [CrossRef] [Scilit]
- Krishnan, T.R.R.; Satpathy, P.R.; Ramachandaramurthy, V.K.; Dollah, Z.; Pulenthirarasa, S.; Ramasamy, A. Optimizing vehicle-to-grid systems: Smart integration of shared autonomous and conventional electric vehicles. ETransportation 2025, 24, 100401. [Google Scholar] [CrossRef] [Scilit]
- Tightiz, L.; Dang, L.M.; Yoo, J.; Padmanaban, S. A comprehensive review on AIoT applications for intelligent EV charging/discharging ecosystem. Energy Convers. Manag. 2025, 10, 101088. [Google Scholar]
- Cao, Y.; Huang, L.; Li, Y.; Jermsittiparsert, K.; Ahmadi-Nezamabad, H.; Nojavan, S. Optimal scheduling of electric vehicles aggregator under market price uncertainty using robust optimization technique. Int. J. Electr. Power Energy Syst. 2020, 117, 105628. [Google Scholar] [CrossRef] [Scilit]
- Zhao, Z.; Lee, C.K.; Ren, J. A two-level charging scheduling method for public electric vehicle charging stations considering heterogeneous demand and nonlinear charging profile. Appl. Energy 2024, 355, 122278. [Google Scholar] [CrossRef] [Scilit]
- Tayri, A.; Ma, X. Grid impacts of electric vehicle charging: A review of challenges and mitigation strategies. Energies 2025, 18, 3807. [Google Scholar] [CrossRef] [Scilit]
- Bokopane, L.; Kusakana, K.; Vermaak, H.; Hohne, A. Optimal power dispatching for a grid-connected electric vehicle charging station micro-grid with renewable energy, battery storage and peer-to-peer energy sharing. J. Energy Storage 2024, 96, 112435. [Google Scholar] [CrossRef] [Scilit]
- Rehman, A.U.; Lu, J.; Du, B.; Bai, F.; Sanjari, M.J. Efficient management of electric vehicle charging stations: Balancing user preferences and grid demands with energy storage systems and renewable energy. Appl. Energy 2025, 393, 126147. [Google Scholar] [CrossRef] [Scilit]
- Mohanty, P.K.; Pradhan, R.; Jena, P.; Padhy, N.P. Renewable Energy-Based EV Battery Swapping Stations: Opportunities and Future Directions. In Hybrid Renewable Power Infrastructure for Sustainable Electric Vehicle Development; Springer: Berlin/Heidelberg, Germany, 2025; pp. 141–168. [Google Scholar]
- Khan, M.R.; Haider, Z.M.; Malik, F.H.; Almasoudi, F.M.; Alatawi, K.S.S.; Bhutta, M.S. A comprehensive review of microgrid energy management strategies considering electric vehicles, energy storage systems, and AI techniques. Processes 2024, 12, 270. [Google Scholar] [CrossRef] [Scilit]
- Bakht, M.P.; Salam, Z.; Gul, M.; Anjum, W.; Kamaruddin, M.A.; Khan, N.; Bukar, A.L. The potential role of hybrid renewable energy system for grid intermittency problem: A techno-economic optimisation and comparative analysis. Sustainability 2022, 14, 14045. [Google Scholar] [CrossRef] [Scilit]
- Fachrizal, R.; Qian, K.; Lindberg, O.; Shepero, M.; Adam, R.; Widén, J.; Munkhammar, J. Urban-scale energy matching optimization with smart EV charging and V2G in a net-zero energy city powered by wind and solar energy. ETransportation 2024, 20, 100314. [Google Scholar] [CrossRef] [Scilit]
- Nyamayoka, L.T.-E.; Masisi, L.; Dorrell, D.G. Optimal power dispatch of solar PV-battery storage system for electric vehicle battery swapping stations under grid scheduled load-shedding. In Proceedings of the 33rd Southern African Universities Power Engineering Conference (SAUPEC), Pretoria, South Africa, 29–30 January 2025; pp. 1–6. [Google Scholar]
- Nyamayoka, L.T.-E.; Masisi, L.; Dorrell, D.G.; Wang, S. Techno-economic feasibility and optimal design approach of grid-connected hybrid power generation systems for electric vehicles battery swapping station. Energies 2025, 18, 1208. [Google Scholar] [CrossRef] [Scilit]
- Jin, L.; Zhong, S.; Su, B.; Zhou, D.; Wang, Q.; Yu, X. EV-integrated and grid-connected hybrid renewable energy system: A two-stage optimization strategy. Energy 2025, 330, 136858. [Google Scholar] [CrossRef] [Scilit]
- Marchesano, M.G.; Popolo, V.; Rozhok, A.; Cavalaglio, G. Performance evaluation of battery swapping stations for evs: A multi-method simulation approach. Energies 2024, 17, 5969. [Google Scholar] [CrossRef] [Scilit]
- Abdelkareem, M.A.; Olabi, A.G.; AlMallahi, M.N.; Mahmoud, M.; Elgendi, M. Contributions of electric vehicles towards the sustainable development goals. Energy Convers. Manag. X 2025, 27, 101170. [Google Scholar] [CrossRef] [Scilit]
- Jin, D.; Zhang, H.; Han, B.; Liu, G.; Xue, F.; Lu, S. Optimal siting and sizing of electric vehicle energy supplement infrastructure in highway networks. Inventions 2023, 8, 117. [Google Scholar] [CrossRef] [Scilit]
- Guo, Y.; Yan, K.; Qian, X.; Li, X.; Hu, Y.; Wang, N. A robust optimal battery swapping station location model for commercial electric vehicles under demand uncertainty. Energy 2025, 333, 137466. [Google Scholar] [CrossRef] [Scilit]
- Jin, Y.; Acquah, M.A.; Seo, M.; Han, S. Optimal siting and sizing of EV charging station using stochastic power flow analysis for voltage stability. IEEE Trans. Transp. Electrif. 2023, 10, 777–794. [Google Scholar] [CrossRef] [Scilit]
- Henrique, L.F.; Silva, W.N.; Silva, C.C.; Dias, B.H.; Oliveira, L.W.; de Almeida, M.C. Optimal siting and sizing of distributed energy resources in a Smart Campus. Electr. Power Syst. Res. 2023, 217, 109095. [Google Scholar] [CrossRef] [Scilit]
- Zhan, W.; Wang, Z.; Zhang, L.; Liu, P.; Cui, D.; Dorrell, D.G. A review of siting, sizing, optimal scheduling, and cost-benefit analysis for battery swapping stations. Energy 2022, 258, 124723. [Google Scholar] [CrossRef] [Scilit]
- Ma, P.; Zhang, S.; Zhou, B.; Shao, W.; Li, H.; Ma, T.; Guo, D. Research on Location Planning of Battery Swap Stations for Operating Electric Vehicles. World Electr. Veh. J. 2025, 16, 332. [Google Scholar] [CrossRef] [Scilit]
- Marchesano, M.G.; Guizzi, G.; Vespoli, S.; Ferruzzi, G. Battery swapping station service in a smart microgrid: A multi-method simulation performance analysis. Energies 2023, 16, 6576. [Google Scholar] [CrossRef] [Scilit]
- Wang, H.; Ma, H.; Liu, C.; Wang, W. Optimal scheduling of electric vehicles charging in battery swapping station considering wind-photovoltaic accommodation. Electr. Power Syst. Res. 2021, 199, 107451. [Google Scholar] [CrossRef] [Scilit]
- Wang, D.; Xu, H.; Guo, J.; Dai, L.; Zhang, L. Optimizing highway electric vehicle scheduling and battery swapping station management for enhanced renewable energy utilization. Electronics 2025, 14, 952. [Google Scholar] [CrossRef] [Scilit]
- Alberizzi, J.C.; Fatehi, M.; Renzi, M. Photovoltaic-integrated battery swapping stations: An optimization tool for operational scheduling. Energy Rep. 2025, 14, 4885–4900. [Google Scholar] [CrossRef] [Scilit]
- Alberizzi, J.C.; Callioni, F.; Estévez, M.A.P.; Renzi, M. Optimized integration of charging and battery swapping stations for peak load and cost reduction. Energy 2025, 10, 139683. [Google Scholar] [CrossRef] [Scilit]
- Mahoor, M.; Hosseini, Z.S.; Khodaei, A. Least-cost operation of a battery swapping station with random customer requests. Energy 2019, 172, 913–921. [Google Scholar] [CrossRef] [Scilit]
- Wu, Z.; Tazvinga, H.; Xia, X. Demand side management of photovoltaic-battery hybrid system. Appl. Energy 2015, 148, 294–304. [Google Scholar] [CrossRef] [Scilit]
- Bilal, M.; Oladigbolu, J.O.; Mujeeb, A.; Al-Turki, Y.A. Cost-effective optimization of on-grid electric vehicle charging systems with integrated renewable energy and energy storage: An economic and reliability analysis. J. Energy Storage 2024, 100, 113170. [Google Scholar] [CrossRef] [Scilit]
- Diaf, S.; Belhamel, M.; Haddadi, M.; Louche, A. Technical and economic assessment of hybrid photovoltaic/wind system with battery storage in corsica island. Energy Policy 2008, 36, 743–754. [Google Scholar] [CrossRef] [Scilit]
- Diaf, S.; Diaf, D.; Belhamel, M.; Haddadi, M.; Louche, A. A methodology for optimal sizing of autonomous hybrid pv/wind system. Energy Policy 2007, 35, 5708–5718. [Google Scholar] [CrossRef] [Scilit]
- Abbes, D.; Martinez, A.; Champenois, G. Life cycle cost, embodied energy and loss of power supply probability for the optimal design of hybrid power systems. Math. Comput. Simul. 2014, 98, 46–62. [Google Scholar] [CrossRef] [Scilit]
- Chen, X.; Xing, K.; Ni, F.; Wu, Y.; Xia, Y. An electric vehicle battery-swapping system: Concept, architectures, and implementations. IEEE Intell. Transp. Syst. Mag. 2021, 14, 175–194. [Google Scholar] [CrossRef] [Scilit]
- Lebrouhi, B.E.; Khattari, Y.; Lamrani, B.; Maaroufi, M.; Zeraouli, Y.; Kousksou, T. Key challenges for a large-scale development of battery electric vehicles: A comprehensive review. J. Energy Storage 2021, 44, 103273. [Google Scholar] [CrossRef] [Scilit]
- Brenna, M.; Foiadelli, F.; Leone, C.; Longo, M. Electric vehicles charging technology review and optimal size estimation. J. Electr. Eng. Technol. 2020, 15, 2539–2552. [Google Scholar] [CrossRef] [Scilit]
- Weather Spark. Available online: https://weatherspark.com/y/82961/Average-Weather-in-Cape-Town-South-Africa-Year-Round#Figures-WindSpeed (accessed on 17 October 2025).
- Bokopane, L.; Kanzumba, K.; Vermaak, H. Is the South African electrical infrastructure ready for electric vehicles? In 2019 Open Innovations Conferences (OI); IEEE: New York, NY, USA, 2019; pp. 127–131. [Google Scholar]
- Ahjum, F.; Godinho, C.; Burton, J.; McCall, B.; Marquard, A. A Low-Carbon Transport Future for South Africa: Technical, Economic and Policy Considerations; Climate Transparency: Cape Town, South Africa, 2020; pp. 1–28. [Google Scholar]
- Dane, A.; Wright, D.; Montmasson-Clair, G. Exploring the Policy Impacts of a Transition to Electric Vehicles in South Africa; Trade & Industrial Policy Strategies: Pretoria, South Africa, 2019; pp. 1–20. [Google Scholar]
- Bestuzheva, K.; Besançon, M.; Chen, W.K.; Chmiela, A.; Donkiewicz, T.; Van Doornmalen, J.; Eifler, L.; Gaul, O.; Gamrath, G.; Gleixner, A.; et al. Enabling research through the SCIP optimization suite 8.0. ACM Trans. Math. Softw. 2023, 49, 1–21. [Google Scholar] [CrossRef] [Scilit]
- Yu, S.; You, L.; Zhou, S. A review of optimization modeling and solution methods in renewable energy systems. Front. Eng. Manag. 2023, 10, 640–671. [Google Scholar] [CrossRef] [Scilit]
- Sichilalu, S.; Mathaba, T.; Xia, X. Optimal control of a wind–pv-hybrid powered heat pump water heater. Appl. Energ. 2017, 185, 1173–1184. [Google Scholar] [CrossRef] [Scilit]
- Hoppmann, J.; Volland, J.; Schmidt, T.S.; Hoffmann, V.H. The economic viability of battery storage for residential solar photovoltaic systems—A review and a simulation model. Renew. Sustain. Energy Rev. 2014, 39, 1101–1118. [Google Scholar] [CrossRef] [Scilit]
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. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
























