1 Introduction

In response to rapid climate change, the international community is obligated to reduce greenhouse gas emission through the Paris Agreement in COP21, and the transportation/transport sector is also making efforts to develop technologies and systems for this. As the share of energy consumed by railroad transportation is high among all means of transportation, it is a situation that should contribute to the reduction of greenhouse gases. Electricity rates are expected to rise due to the shift in the energy paradigm into renewable generation, and the operating costs in railway institutions are also expected to be increased dramatically. In response to these climate agreements and energy paradigm shifts, railway engineers have conducted researches to improve the efficiency of individual part and to achieve energy-efficient operational strategies. Among them, with regard to rational energy consumption, the most active research is being conducted on the optimal design and operation of energy storage system (ESS) which can directly contribute to the proper operation of regenerative energy.

An energy storage system is a technology that can improve added value or operational efficiency through the interval between the time of production and consumption of electricity, and various studies on optimal utilization and operation plans are being conducted based on high utility. It can be used as a means of securing the supply reliability of renewable power generation with high volatility, and research on optimal capacity calculation and control/operation methods for the purpose of realizing supply and demand stabilization through short-term fluctuation suppression and long-term fluctuation compensation has been carried out [1,2,3]. In addition, various methodologies for calculating the optimal capacity of ESS at various sites within the power system, such as capacity calculation for minimizing operating costs for the same power usage at the microgrid scale, have been proposed [4,5,6,7].

In the case of the railway system, the focus is on the proper use of regenerative energy as a means for system efficiency. The regenerative energy generated by the braking vehicle is consumed by nearby accelerating vehicles, but more than 60% of the energy is not utilized and is consumed as heat through the resistor. This means that the energy efficiency of the railroad system can be remarkably improved by only recycling the waste regenerative energy. For this reason, a number of studies have been conducted on the design, control, and operation of devices that enable the use of regenerative energy such as stationary storage devices, on-board storage devices, and regenerative inverters [8,9,10,11]. Most studies have been conducted on the energy saving effect analysis based on the characteristics of the route(the topographical structure of the track, the distance between stations, the location of the substation, etc.), the driving conditions of the vehicle, the capacity calculation, location selection of the regenerative energy utilization technology. The application of the railway system of ESS is typically applied for the purpose of improving efficiency through reuse of regenerative energy, reducing peak power, and diversifying supply energy sources. Researches about the effect of improving efficiency is self-operation of regenerative energy considering the on-board storage device[10, 11], optimal charge/discharge algorithm for stationary storage device [12], optimal capacity calculation for each device [12], and peak power reduction for high load times [13], etc. are ongoing. These studies deal with comprehensive issues on the energy management of the system as a whole, but do not clearly present detailed operation strategies of the energy storage device itself. In addition, researches on the use of energy storage devices are being conducted in order to seamlessly link the railway system with renewable power sources [14, 15], but the energy storage devices in this case are mainly studied in terms of control rather than in terms of operation.

As mentioned above, in the existing studies, a detailed discussion on setting the operating point or effective operating range of the energy storage device itself has not been carried out beyond the system point of view. Initial operation point setting and effective operation range setting maximizes the availability of designed storage capacity and maintains high SOC by eliminating the existence of a point in time when regenerative energy cannot be stored due to the buffered state of ESS or supply by complete discharge is impossible. Its purpose is to improve the operating life and economic efficiency of ESS through the use of. Therefore, in this paper, an initial optimal operating point setting and an effective operating range calculation algorithm based on particle swarm optimization(PSO) are presented. In addition, we proved that the algorithm is valid for the ESS with the optimized storage capacity assumed for the substation of a specific route.

This paper deals with the method for power and storage capacity estimation of ESSs in Chapter 2, and presents an algorithm for calculating the initial operating point recommendation in Chapter 3. In Chapter 4, the effectiveness of the proposed algorithm was verified for the actual running route.

2 Optimal Initializing of ESS in DC Electric Railway System

The kinetic energy of a railway vehicle accelerated through the consumption of electric energy is converted into electric energy during the braking process by the application of the electric braking system and supplied to the contact wire as shown in Fig. 1. From the Eq. (1) about the vehicle power, regenerative power is generated in the process of implementing a deceleration over air and mechanical resistive force. Depending on the conditions of route, about normally 40–60% of regenerative energy is used to be consumed for acceleration of vehicle(s) which is/are operating at near location.

$$P_{tractive}^{{}} = m_{veh} a_{eff} v_{veh} + C_{a} \rho Av_{veh}^{3} + \mu_{k} mgv_{veh}$$
(1)

where Ptractive: traction power of vehicle, mveh: mass of vehicle, aeff: effective acceleration of vehicle, vveh: velocity of vehicle, Ca: coefficient for resistive force, ρ: air density, A: cross-sectional area of vehicle, μk: coefficient for kinetic friction.

Fig. 1
figure 1

Definition of regenerative power

However, the generated regenerative power cannot be consumed entirely for several physical reasons. Firstly, because the regenerative power from the braking vehicle and the power consumption pattern of the starting vehicle are opposite, all the generated regenerative power cannot be consumed only by starting the vehicle. At the first term in Eq. (1) containing the relationship with the vehicle speed, it can be seen that the magnitude and the sign of the power are determined by vehicle speed and acceleration, respectively. That is, even if the timing of braking and starting is exactly matched, it means that only 50% of regenerative power can be consumed.

Secondly, the remaining regenerative power after consuming by some accelerating vehicles cannot be re-supplied back to the grid because the DC electric railway system is supplied by a unidirectional diode rectifier. So the DC railway system operates to consume the remaining energy as heat through a regenerative resistor device in order to maintain the power balance when the regenerative power is greater than the power consumption as shown in Fig. 2. Through this operation, the dissipation of energy which can be recycled and the unnecessary power consumption such as air-conditioning to reduce temperature rise in the tunnel and platform are usually occurred. Therefore, if unnecessary energy consumption by the regenerative resistor is eliminated by resolving the discrepancy between the amount of regenerative power and the demand point of the railway system, the electric energy which is supplied from the grid to implement the same operation can be minimized.

Fig. 2
figure 2

Conceptual energy flow in DC electric railway system

As mentioned before, efficiency improvement by resolving the discrepancy between the total power demand and the amount of regenerative power can be implemented through the operation of ESS as shown in Fig. 2. Since the amount of energy to be handled by energy storage at each substation is different according to the characteristics of the route, such as the topographical condition of the track, the distance between substations, headway, etc., the reference voltage set, which determines charging, holding, or discharging operation, and the required power and storage capacities are estimated differently. The optimal storage capacity calculation for improving efficiency is performed through the following process.

2.1 System Matrix

Analysis of the DC electric railway system considering ESS is performed based on the conductance matrix as shown in Eq. 2. Based on the specific operation mode of the ESS, the purpose of this analysis is to calculate the value of the additional current in the charging or discharging mode. The calculated current value is used to determine the operating capacity of the ESS in the charging or discharging mode as shown in Eqs. 3.

$$\left[ Y \right]^{t} \left[ {\begin{array}{ll} {V_{sub1}^{t} } \\ \vdots \\ {V_{subn}^{t} } \\ {V_{cat1}^{t} } \\ \vdots \\ {V_{rail1}^{t} } \\ \vdots \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} {I_{sub1}^{{}} + I_{ESS1}^{t} } \\ \vdots \\ {I_{subn}^{{}} + I_{ESSn}^{t} } \\ { - I_{veh1}^{t} } \\ \vdots \\ {I_{veh1}^{t} } \\ \vdots \\ \end{array} } \right]$$

where [Y]t: system conductance matrix at t, Vtsub i: catenary voltage of ith substation at t, Isub i: Norton equivalent current of ith substation, Vtcat j: catenary voltage of jth vehicle at t, Vtrail j: rail voltage of jth vehicle at t, Itveh j: vehicle current of jth vehicle at t, ItESS i: ESS current at ith substation at t.

$$P_{ESSi}^{t} = V_{subi}^{t} \cdot I_{ESSi}^{t}$$
(3)

where PtESS i: charging or discharging capacity of ith ESS

2.2 Charging Mode Determination of ESSs

The diode rectification type train substation can be expressed as an equivalent power source of voltage source and internal resistance. Here, the internal voltage of the equivalent model is called the no-load voltage, and is designed to be 1650 V in the case of the metropolitan area and 1620 V in the case of a local metropolis, in Korea. That is, since the power flow in the reverse direction is not allowed, the substation voltage above the no-load voltage cannot exist under the supply condition. However, substation voltages higher than the no-load voltage frequently occur, and it is widely known that the cause of this is the regenerative power from the braking vehicle. Based on the understanding of this simple phenomenon, the ESS should be set to detect and charge regenerative power with voltage conditions above no-load voltage, and the charging capacity should be a operation equal to the charging current that prevents the substation voltage from exceeding the no-load voltage. Defining the variable for the operation mode of the ith substation storage device at time t is StESS i, the charging operation can be expressed as Eq. (4).

$$S_{ESSi}^{t} = \eta \, \left( {V_{subi}^{t} \ge V_{noload} } \right)$$
(4)

where η: Power Conversion Efficiency of ESS.

2.3 Discharging mode of ESSs

The total amount of the stored regenerative energy must be resupplied when the grid needs it. In general, through resupplying at the time when it has the highest usefulness, the energy stored in the ESS gives effects to increase grid operation efficiency or reduce cost. In the case of the railway system, the stored regenerative energy is used to maximize effects to reduce the demand of the substation or lower the peak power.

In fact, determining the discharging operations of ESS in a railroad system is complicated enough that it cannot be determined through numerical analysis like a powerflow analysis. The discharging operation of an ESS cannot be deterministically because it is affected by various variables such as the driving state of the neighbor vehicles, the voltage of the other substation, and the operation mode of the other ESS. This process will be mentioned in the optimization process in Sect. 2.4. However, it must be strongly noticed that the constraints as shown in Eq. (5) about clearing accumulated energy must be satisfied, when considering the repetitively operational characteristic of the railway system. The value of the ESS operation mode variable in holding or discharging is shown in Eq. 6. And, the cumulated energy in the ESS is updated using Eq. (7) at every time step.

$$\sum\limits_{t = 1}^{headway} {S_{ESSi}^{t} \cdot P_{ESSi}^{t} } = 0$$
(5)
$$\begin{gathered} S_{ESSi}^{t} = 0 \, \left( {{\text{holding}}} \right) \hfill \\ \, = \frac{1}{\eta } \, \left( {{\text{discharging}}} \right) \hfill \\ \end{gathered}$$
(6)
$$E_{ESSi}^{t} = E_{ESSi}^{t - 1} + S_{ESSi}^{t} \cdot P_{ESSi}^{t}$$
(7)

where EtESS i: cumulated energy in ith ESS at time t.

2.4 Optimization for Storage Capacity and Initial SOC

The initial SOC optimization of an ESS in a railway substation consists of two processes: minimizing the power supply to the substation under peak headway operating conditions that require a larger storage capacity, and minimizing the depth of discharge(DOD) of the ESS under off-peak headway conditions. In other words, it is a process of minimizing the operating cost and life cost of ESSs, and it is performed using the PSO algorithm. The objective function and constraints for each optimization process are as follows.

$$\min \left\{ {\left. {\sum\limits_{t = 1}^{headway} {P_{SUBi}^{t} } } \right\}} \right.$$
(8)
$$\min \left\{ {\left. {\sum\limits_{t = 1}^{headway} {DOD_{ESSi}^{\max } } } \right\}} \right.$$
(9)
$$\begin{gathered} {\text{subject to }}V_{SUBi}^{t} \le V_{no - load} { (}i = {1,2,} \cdots {\text{,n)}} \hfill \\ \, \sum\limits_{{\text{t = 1}}}^{{{\text{headway}}}} {S_{ESSi}^{t} \cdot P_{ESSi}^{t} } = 0 \hfill \\ \end{gathered}$$
(10)

Main terms for PSO are presented as below:

Particle is defined as the set of initial SOC(ISi) as shown in Eq. (11) with assumption of n substations. Each initial SOC value is chosen randomly.

$$IS = \left[ {\begin{array}{llllll} {IS_{1} } & {IS_{2} } & \cdots & {IS_{i} } & \cdots & {IS_{n} } \\ \end{array} } \right]^{T}$$
(11)

Population (nP) is the number of Particle sets in the swarm matrix.

Swarm matrix is the matrix with dimension of n by PO at mth iteration as shown in Eq. (12).

$$M_{swarm}^{m} = \left[ {\begin{array}{llllll} {IS_{1,1}^{m} } & \cdots & {IS_{i,1}^{m} } & \cdots & {IS_{{n_{P} ,1}}^{m} } \\ \vdots & \ddots & \vdots & {\mathinner{\mkern2mu\raise1pt\hbox{.}\mkern2mu \raise4pt\hbox{.}\mkern2mu\raise7pt\hbox{.}\mkern1mu}} & \vdots \\ {IS_{1,j}^{m} } & \cdots & {IS_{i,j}^{m} } & \cdots & {IS_{{n_{P} ,j}}^{m} } \\ \vdots & {\mathinner{\mkern2mu\raise1pt\hbox{.}\mkern2mu \raise4pt\hbox{.}\mkern2mu\raise7pt\hbox{.}\mkern1mu}} & \vdots & \ddots & \vdots \\ {IS_{1,n}^{m} } & \cdots & {IS_{i,n}^{m} } & \cdots & {IS_{{n_{P} ,n}}^{m} } \\ \end{array} } \right]$$
(12)

Global best is the best IS set at mth iteration as shown in Eq. (13).

$$IS_{g}^{*} = \left[ {\begin{array}{llllll} {IS_{1,g}^{m} } & {IS_{2,g}^{m} } & \cdots & {IS_{i,g}^{m} } & \cdots & {IS_{n,g}^{m} } \\ \end{array} } \right]^{T}$$
(13)

The initial SOC and capacity update is performed using the missing capacity calculated in the previous step. Here, the missing capacity refers to the amount of regenerative energy that cannot be stored or discharged because of the limited storage capacity. Equations (14) and (15) show the missing capacities, MCmpESS i and MCmnESS i. Here, λtpi becomes 1 when 100% of SOC and charging mode of ESS and λtni becomes − 1 at vice versa.

$$MC_{pESSi}^{m} = \sum\limits_{t = 1}^{headway} {\lambda_{pi}^{t} \cdot \left( {E_{mi}^{t} - S_{ESSi}^{t} \cdot P_{ESSi}^{t} } \right)}$$
(14)
$$MC_{nESSi}^{m} = \sum\limits_{t = 1}^{headway} {\lambda_{ni}^{t} \cdot \left( { - S_{ESSi}^{t} \cdot P_{ESSi}^{t} - \left( {E_{\max i} - E_{mi}^{t} } \right)} \right)}$$
(15)

where MCmpESS i: total amount of energy not charged in ith ESS at step m, MCmnESS i: total amount of energy not discharged in ith ESS at step m.

Using the missing capacity calculated in the previous step, the initial SOC and storage capacity can be updated. The charge/discharge operation of each energy storage device is not independent. Since it is connected to one rigid conductor in parallel, the charge/discharge mode or charge/discharge capacity may vary depending on the operation of an adjacent storage device. That is, by the charging operation of the adjacent storage device, the requested capacity to be charged may be reduced. This means that when updating the capacity and initial operating point of a specific storage device, it is necessary to consider the missing capacity of the storage devices located at both sides in the previous step. The storage capacity and initial SOC are updated based on Eqs. (16)–(19).

$$\begin{gathered} CoSTO_{pESSi}^{m} \hfill \\ \, = \alpha \cdot MC_{pESS \, i}^{m} - \beta \cdot MC_{pESS \, i - 1}^{m} - \gamma \cdot MC_{pESS \, i + 1}^{m} \hfill \\ \end{gathered}$$
(16)
$$\begin{gathered} CoSTO_{nESSi}^{m} \hfill \\ \, = \alpha \cdot MC_{nESS \, i}^{m} - \beta \cdot MC_{nESS \, i - 1}^{m} - \gamma \cdot MC_{nESS \, i + 1}^{m} \hfill \\ \end{gathered}$$
(17)

where CoSTO: correction capacity considering storage devices on both sides, α, β, γ: relating coefficients

$$STO_{i}^{m} = STO_{i}^{m - 1} + CoSTO_{pESSi}^{m} - CoSTO_{pESSi}^{m}$$
(18)

where STOmi: storage capacity of ith ESS at step m

$$IS_{i,j}^{m} = \frac{{IS_{i,j}^{m - 1} \cdot STO_{i}^{m - 1} + CoSTO_{pESSi}^{m} }}{{STO_{i}^{m - 1} + CoSTO_{pESSi}^{m} + CoSTO_{nESSi}^{m} }}$$
(19)

Figure 3 shows the entire process for estimating the optimal storage capacity and initial SOC described above.

Fig. 3
figure 3

Flowchart for PSO-based storage and initial SOC optimization algorithm

3 Case Studies

In order to verify the effectiveness of the proposed algorithm, the algorithm was applied to the actual route. The system information for the route and the result of applying the algorithm are as follows.

3.1 System Data

In order to effectively show the application effect of the proposed algorithm, the Seoul Metro Line 8, which has the smallest number of substations, is chosen among the domestic DC electric railway lines. The electrical characteristics and route information of Line 8 are presented in Table 1.

Table 1 Electrical characteristics and route information of Seoul Metro Line 8

3.2 Optimization Results

Table 2 shows the power and storage capacity results of each storage device derived by the proposed algorithm. It can be seen that the power capacity is dependent on the peak headway load condition where the vehicle running per unit time is larger. In other words, it means that there might be a high probability that more vehicles might regenerate or consume simultaneously. On the other hand, the required storage capacity is not highly correlated with vehicle operating conditions. For the higher number of driving vehicles, there might be more load candidates that can consume regenerative power. The results in Table 2 shows that the demand for operation of a storage device for handling regenerative energy might be rather reduced.

Table 2 Estimated power and storage capacity

The design capacity is derived from the available capacity calculated from each load condition. In the case of a battery or supercapacitor type storage device, the ratio of the available capacity to the total capacity is 75%, because the operational range of the ESS internal voltage is limited to 50% of the maximum voltage.

3.3 Peak Headway Condition

Table 3 shows the results of estimating the initial operating point based on the proposed algorithm under peak load operating conditions. As shown in Fig. 4, in the case of substations 1, 4, and 5, which determines designed capacity under peak headway condition, storage devices are operated in the full range of 25% and 100% with the initial SOC of 82.66%, 25.10%, and 63.47%, respectively. In addition, in the case of the storage devices of the substations 2 and 3, it can be seen that the DODs of storages is limited to 36.70% and 51.65% with the initial SOC of 63.49% and 67.48%, respectively.

Table 3 Optimal initial-SOC for peak headway condition
Fig. 4
figure 4

Power and SOC variation in peak headway condition

3.4 Off-peak Headway Condition

Table 4 and Fig. 5 show the results of estimating the initial operating point and based on the proposed algorithm under peak load operating conditions. Storage devices in the substation 2 and 3 are operated in the full range of 25% and 100% with the initial SOC of 87.17% and 79.78%, respectively. And, the maximum DOD of the storages in the substations 1, 4, and 5 is calculated to be 41.91%, 28.68%, and 46.74% with the initial SOC of 92.65%, 28.89%, and 81.44%, respectively.

Table 4 Optimal initial-SOC for off-peak headway condition
Fig. 5
figure 5

Power and SOC variation in off-peak headway condition

3.5 Discussions

The method proposed in this paper aims to solve the excess or shortage of storage capacity through appropriate selection of the initial charging amount, and this has been sufficiently proven through case studies. Also, as shown in Table 5, this shows not only the optimization of the storage capacity of each stationary ESS but also the energy exchange between ESSs. In the case of some ESSs, the instantaneous capacity required for charging and discharging increased, but overall, the capacity required for power conversion did not increase significantly. It should be noted that each storage capacity has been significantly decreased, and this is the result of considering the excess or shortage of capacity of nearby ESSs.

Table 5 Comparison with the previous research

4 Conclusion

For the advanced applications of stationary ESSs as a means to increase energy efficiency in DC urban rail systems, an optimization algorithm has been proposed to determine the optimal power and storage capacity and the initial SOC level of ESSs in the railway substations. The proposed algorithm based on PSO is designed to estimate the available capacity and initial SOC in consideration of the missing capacity caused by storage capacity limits, the missing capacities of the nearby ESSs, and the electrical distance with them, so it has the strength of high convergence. In the case study based on the electrical, structural, and operational data of the actual route, it is verified that not only optimal design but also optimal operation is possible by utilizing the entire available range or minimizing DOD through the proposed algorithm. Based on this study, it is expected that advanced research on operational efficiency improvement, capacity optimization, and economic analysis based on the energy data network between ESSs will be achieved.