Abstract

Electric vehicles (EVs) are one promising technology for an improved sustainable transportation sector, particularly when they are charged with electricity from renewable energy sources. However, the EV user behaviour uncertainties as well as the fluctuating generation of renewable energy sources make the interaction between these technologies challenging. In this work, a new approach to coordinate the charging process of multiple EVs parked at workplace charging station (WCS) equipped with Photovoltaic panels (PV) is proposed. Considering the PV incremental cost and the day-ahead electricity price (DAEP), an optimal framework is introduced to maximize the WCS owner profit while compensating the EV users for discharging their EVs’ battery. The EV user behaviour uncertainties are modeled by probability distribution functions, and the PV generation is forecasted by the backpropagation neural network model (BPNN). The optimization problem is solved by mixed-integer linear programming (MILP) while the Monte Carlo sampling methods have been applied to handle the EV user behaviour uncertainties. The results show that the proposed method increases the WCS owner profit and the EV user compensation by 54% and 50.7%, respectively, compared to uncoordinated charging. Moreover, the estimated WCS owner profit and the EV user compensation generated by coordinated charging are 1.72% and 1.35%, respectively, higher than the profits based on real user behaviour data.

1. Introduction

Electric Vehicles (EVs) are becoming popular due to their potential for reducing air pollution, dependence on oil consumption, and ability to promote the penetration of renewable energy sources into the transport sector [1, 2]. Nevertheless, with the large scale of EVs connected to the power grid, the distribution network load profile will be extremely changed, which can lead to voltage fluctuations, power losses, and incremental overloads. Besides, there are environmental controversies about the EVs’ charging, since the reduction of vehicle emission might be followed by increasing the emissions in power generation. Therefore, the EVs can be beneficial for the environment only if the electrical energy used to charge their batteries is coming from renewable sources [3], such as photovoltaic panels (PV), concentrated solar power, and hydraulic and wind systems.

1.1. Literature Review

The concept of integration of PV with EV charging infrastructure attracts huge researchers’ attention in recent years. In [4], a classification scheme of EVs in PV charging station (PVCS) has been studied to reduce the total cost of energy trading of the PVCS. A real-time price based on automatic demand response strategy is proposed in [5] for PVCS, which intends to minimize the electricity cost, to mitigate the peak charging demand, and to improve the PV self-consumption. In [6], a close-to-optimal algorithm based on the Lyapunov optimal is developed to improve the PVCS owner profit. A rule-based decision-making algorithm is applied in [7] to manage EVs charging based on PV generation and electricity time-of-use tariffs. A rule-based decision-making method that makes the solid state transformer-based PVCS can dynamically participate in the ancillary service of smart grid is presented in [8]. A new architecture for a PVCS with a hybrid control strategy is proposed in [9] to minimize the charging cost and to increase the PV self-consumption. Two optimization algorithms have been applied in [10] to minimize the EVs charging cost and to maximize the PV self-consumption for three EV fleet categories which are commercial (night charging), commuter (long day charging), and opportunity (short day charging). The authors in [11] developed a model to maximize the PVCS owner profit while considering the grid constraints, and results show that the PVCS owner profit is increased by and the peak load is decreased by . An energy management framework has been formulated for a university campus microgrid to coordinate the EVs’ charging and maximize the PV self-consumption [12]. Based on the EVs’ energy demand and the electricity price, a fuzzy logic power-flow controller has been designed in [13] to decrease EVs’ charging cost at workplace parking garage equipped with PV panels. A Stackelberg game is designed in [14], where the PVCS operator acts as a leader and the EV users as followers. Soares et al. [15] developed an optimization model to minimize the operational cost of an ecodistrict microgrid with EV and PV systems compared with uncoordinated scenario; the operational costs are decreased by . The authors in [16] propose an optimization problem to coordinate 6 EVs at workplace charging station (WCS) supplied by PV and grid.

1.2. Contributions and Novelty of This Research

Relying on our scientific knowledge, designing an EVs’ charging strategy to maximize the WCS owner profit while compensating the EV users for discharging their EVs’ battery is not proposed in those previous works. In other words, in this paper, the PV power generation is forecasted by the backpropagation neural network. Besides, based on the day-ahead electricity price (DAEP), the EV user behaviour and the PV incremental cost of an optimal charging strategy are proposed to maximize the WCS owner profit and to compensate the EV users for using their EVs’ battery to supply the grid. The optimal charging strategy implemented in this work satisfied the PV system constraints, the EVs’ constraints, and the grid constraints. Moreover, this paper presents a method to calculate EVs’ initial state of charge () based on their daily driving mileage. In this case, the WCS would not need to collect the of the EVs from the users, which could help the WCS to predict the EVs’ energy demand. Furthermore, the EV user behaviour has been modeled by probability distribution functions while Monte Carlo sampling methods (MCS) have been applied to handle EV user behaviour uncertainties. Hence, the contribution and novelty of the paper can be presented as follows:(i)Presenting an optimal charging strategy that maximizes the WCS profit while compensating EV users for discharging their EVs’ battery(ii)Modeling EV user behaviour by probability distribution functions(iii)Applying the MCS to handle EV user behaviour

1.3. Paper Organization

The paper is organized as follows. Section 2 provides the problem formulation. The PV power forecasting model is described in Section 3. The modelization of EV user behaviour by probability distribution functions is formulated in Section 4. The MCS, the proposed algorithm, and the optimization parameter value are presented in Section 5. To assess the effectiveness of the proposed optimal charging strategy, the results are compared with the uncoordinated charging scenario in Section 6. Finally, the conclusion of the paper is given in Section 7.

2. Problem Formulation

2.1. EV Charging Model

EVs park at the workplace for a sufficiently long time during the day [1]. For this reason, the concept of WCS with a fleet of EVs, PV panels on the roof, and bidirectional grid connection is studied in this paper. It is assumed that the WCS owner pays the EV users when their EVs supply the grid. As shown in Figure 1, there are two kinds of connection, energy and information connection. The optimal charging strategy resides in three steps. In the first step, an EVs’ charging control center (EVs CCC) is supposed to collect the day-ahead electricity price from the electricity operator to forecast the PV power generation and the EV user behaviour. In the second step, an optimal charging strategy is implemented by CCC to maximize the WCS owner profit while compensating the EV users for discharging their EVs. Finally, the EVs CCC broadcast the information to the EVs, PV, and grid to exchange the energy between them.

In this work, we aim at designing a smart charging strategy scheme to maximize the WCS owner profit while compensating the EV users for discharging their EVs, where the EVs’ constraints, the PV system constraints, and the grid constraints are fulfilled. The charging scheduling optimization problem for the WCS might be formulated as follows:

The objective function is subject to the following constraints.(A)EVs constraints:Each EV has its own limitation of charging and discharging power, as presented in (2) and (3).Equation (4) is necessary to prevent the EV contemporaneous charging and discharging, where is the binary variable that states whether the EV labelled is charging (1) or not (0) at time t and represents the binary variable that states whether the EV is discharging (1) or not (0).The power received by each EV at time t () can be calculated according to equation (5). Subsequently, we can track the battery’s state of charge () during the whole simulation time by (6), where indicates the state of charge of the EV at time , represents the time step (in hour), and is the EV maximum capacity. The restriction in (7) guarantees that the EV labelled is fully charged at the end of charging period T. To avoid impacting the battery states of health due to overcharging and deep discharging, partial states of charge () must be constrained between certain boundaries, as in (8), where and are the minimum and the maximum constraints, respectively, imposed to all partial states of charge.(B)PV system constraints:It has been assumed that the PV plant is equipped with a DC-DC converter with Maximum Power Point Tracker (MPPT), which has efficiency [17]. Furthermore, to allow the smart charging strategy to curtail PV power, equation (9) has been introduced:(C)Grid constraints:The charging/discharging power drawing from the grid or feeding into the grid is limited by the following equations:where represents the binary variable that prevents drawing power from the grid while feeding power into grid {}.

3. Forecast Model for PV Power

In order to achieve the goal of this work which is forecasting the WCS profit while compensating the EV users for discharging their EV batteries, PV power generation needs to be predicted day-ahead. Many techniques have been devoted to predict PV power generation [18], for instance, statistical, persistance, hybrid technique, and machine learning. The machine learning technique includes Artificial Neural Network (ANN) which is one of the most widespread models among literature studies. ANN can learn, memorize, and build a system model through manipulating external information to get the predicting capabilities. However, ANN is underperformed by SARIMA at the highest temporal resolution (i.e., 5 minutes) [19]. In this work, the PV power forecasting is considered based on 1 hour temporal resolution. Besides, BPNN showed a successful result at lower temporal resolution (i.e., 1 hour) [20], which is why BPNN is used as the model to forecast PV power generation.

The predicting accuracy is influenced by meteorological factors, for instance, solar irradiance and ambient temperature. Hence, these parameters are chosen as basic elements of a feature vector to obtain similar days; equation (11) presents the coefficient of similarity:where is the forecast day feature vector composed of solar irradiance and ambient temperature. is the feature vector of the historical day. The smallest value explains the higher similarity between corresponding historical PV power generation data and the forecast day. The D historical days with the smallest coefficient of similarity will be chosen as the training input of the BPNN, where D is the size of input data.

3.1. BPNN Training Structure

The BPNN selected in this paper consists of three layers: the input layer, the hidden layer, and the output layer, as shown in Figure 2.

The input node number is 30, of which 15 nodes are the hourly PV power of an identical day that has the smallest similarity coefficient, and 15 other nodes are the characteristic vector elements of the identical days and the forecast day. The number of output nodes is 15, indicating the PV power generation output. A trial-and-error method [21] has been chosen to determine the appropriate number of hidden layers. Furthermore, the tangent sigmoid-function is used as the activation functions of the hidden layer and output layer, respectively.

3.2. Data and Error

This paper considers a charging station located in an industrial zone on sunny days. The PV power generation data has been collected from an actual PV plant with a rated capacity equal to 30 kW [22]. Fifty historical days with the smallest similarity coefficient in the past three months are chosen as the training input of the BPNN.

To define the prediction accuracy correctly, the forecast error is presented as follows:where is the actual PV output energy and is the forecast output energy of PV.

4. EV User Behaviour Model

A survey has been conducted in Beijing on car user driving behaviour [23]. The data recorded by the global positioning system installed on 112 cars from June 2012 to March 2013 has been selected in this paper. According to the survey, the distributed percentages revealed that the mileage for each trip is significantly concentrated in 3 to 30 km range. The average travel time during workdays is 0.6 h [23]. Based on the work in [2], it has been assumed that the EV users arrive at WCS after from their home departure time, and they leave the WCS after 8 hours from their arrival time. Hence, the traveling periods of the EV users to WCS during workdays are concentrated between 07:36–10:36 (at the morning). To improve the Monte Carlo sampling credibility, the EVs’ traveling behaviour statistics has been fitted by different probability distribution functions (PDFs); to find the best PDF that fits the data the maximum likelihood estimates (MLE) is adopted to obtain the selected PDF parameters.

4.1. The Arrival Time of EVs

The average travel time per trip during workdays is 0.6 h. It has been presumed that the EV users make one trip from home to WCS. To determine the EVs’ arrival time at WCS, the EVs’ departure time from home in [2] has been adopted.

The EVs’ departure time from home follows the t location-scale distribution presented in (13) [24], where is the t location-scale PDF, represents the gamma function, is the scale parameter, is the location parameter, and is the shape parameter. Based on MLE,  = 8.30,  = 1, and  = 2.12.

The statistical curve and the location-scale distribution fitting curve of the EVs arrival time to WCS are shown in Figure 3:

4.2. The Daily Driving Mileage

The daily driving mileage of each trip follows Birnbaum–Saunders distribution, as presented in (14) [25], where is the Birnbaum–Saunders PDF, represents the shape parameter, and is the scale parameter. Based on MLE, and .

The statistical data and the Birnbaum–Saunders fitting data are shown in Figure 4:

4.3. EVs’ Initial State of Charge

The that will be needed to track the battery’s state of charge can be calculated by equation (15), where represents the arrival capacity of the EV, d is the daily driving mileage (km), and is the consumption of the EV (kWh/km).

The has the same probability distribution function as the daily driving mileage, with and .

Figure 5 illustrates the real data curve and the Birnbaum–Saunders fitting curve:

4.4. EVs’ Energy Demand

The EVs’ energy demand may be forecasted based on the EV owners’ behaviour. Nevertheless, the EV owners’ behaviour is a random factor. Hence, the good knowledge of this factor gives more reliability to the predicted EVs’ energy demand. For this reason, the EVs’ arrival/departure time and the EVs’ daily driving mileage have been presented and fitted by different PDFs. Therefore, the estimated energy demand may be calculated based on the fitness data, as well as the statistical data can be used to calculate the real energy demand.

The EVs’ energy demand is calculated by equations (16)–(18) for both cases, where d is the travel distance (km):(i)The EVs’ number that travels the distance (d) is(ii)The EVs’ number that arrives at WCS at time t is(iii)The EVs’ energy demand at time t is

Figures 6 and 7 show the EVs’ estimated and real energy demand. The peak energy demand corresponds to 8.6 h, as most EVs arrive to WCS at this time. The power demand value during the peak is equal to 3.48 kW and 4.24 kW for the estimated and the real energy demand, respectively; this difference is due to the error between the fitness and statistical data.

5. Implementation of the Optimization

5.1. Monte Carlo Sampling Methods

The Monte Carlo sampling methods (MCS) are a stochastic simulation method used for simulating the behaviour of uncertain parameters. This method can provide highly accurate results by giving a large sample size. In the MCS method, variables are selected randomly, and the average output value is calculated:

For those uncertainties parameters described in Section 4, we use MCS to predict the WCS owner and the EV user profits and then compare them with the profits generated by using the real parameters.

5.2. Solving the Optimization Problem

The problem is nonconvex due to integer variables, and some constraints include binary variables. For this reason, mixed-integer linear programming (MILP) is chosen to solve the optimization problem. The Intlinprog tool provided by MATLAB has been used to solve the optimization problem in equation (1). Moreover, the Monte Carlo sampling methods have been applied to handle the arrival, departure time, and . The optimal charging algorithm explains in more detail the process of the proposed strategy (Algorithm1).

(1)INPUT: The utility begain by:
 Forecasting the PV power generation.
 Acquire , , , , , , , , , , and the number of MCS iteration .
(2)OUTPUT: At each time step the power output profile
 = (, , …, )
 = (, , …, )
 = (,, …, )
 = (, , …, )
(3)PROCEDURE:
(4)for to do
(5) Pick
(6)for to do
(7)  
(8)  
(9)  Optimize
(10)  
   
(11)end for
   
(12)end for
(13)
(14)
(15)
(16)
5.3. Basic Data

The proposed optimization model has been examined under many uncertainties, such as EVs’ arrival time at the WCS, EVs’ departure time from the WCS, initial state of charge, and EVs’ energy demand described in Section 4. The MCS is applied to handle the EV user behaviour uncertainties. Besides, the optimal strategy is compared to the uncoordinated charging, which still is the standard in many countries; hence, comparison between the proposed optimization model and the status quo will provide a clear view on the profit that the WCS owner can expect. Furthermore, realistic input parameters and appropriate price mechanisms need to be selected, which is the reason why the UK DAEP for January workday from [26] is adopted in the simulation. We also assume that the and are 10% lower than [16, 27]. Moreover, we defined in the objective function implying that PV power generation is not free. However, most works have ignored under the assumption that it is the incremental cost [28, 29]. Therefore, is assumed to be close to zero in this paper ( €/kWh [22]). The battery degradation price has been taken from the measurement-based prediction laboratory [30], and it is equal to 0.032 €/kWh. The other parameter values applied in the optimization model are listed in Table 1.

6. Results

Figure 8 shows the PV forecasted energy, actual energy, and predicted error. It can be noticed that the generated error using the BPNN is small enough to adopt the PV forecasted power into the simulation.

To evaluate the efficiency of the proposed optimal charging algorithm, two scenarios have been considered, including uncoordinated and coordinated charging. It has been assumed that the PV power system and the grid are the principal suppliers to the WCS for both scenarios. The EVs’ arrival, departure time, EVs’ , and EVs’ energy demand have been presented in Section 4.

Figures 9 and 10 present the results of the uncoordinated charging policy and the optimal charging strategy proposed in this paper, respectively. There are at least three points of interest. First, the EVs charge their batteries as soon as they arrive at WCS and discharge at the time where the electricity price is low in the uncoordinated case. This is the opposite of what can be considered optimal charging. Hence, the WCS profit will be decreased. Second, we can see from Figure 10 that the EVs have discharged when the electricity price is high and charged when the DAEP is low. Therefore, we can conclude that the proposed algorithm plays alongside the WCS owner and increase the WCS profit. Finally, the PV power generation surplus during the day is fed into the grid, consequently, increasing the WCS profit. The estimated results of the WCS owner profit and the EV user compensation for uncoordinated and coordinated charging are illustrated in Table 2. The WCS owner profit and the EV user compensation have been increased by 54% and 50.7%, respectively, compared with uncoordinated charging.

To assess the credibility of the proposed algorithm, the real and the estimated results have been evaluated, where the fitted data of EV user behaviour has been exploited in the estimated results, while the real results have used the statistical data of the EV user behaviour. Figures 9 and 11 illustrate the estimated and real results of uncoordinated charging, and it can be noticed that the EVs charge their batteries in the morning and discharge it when the electricity price is low. The values of the EVs’ charging/discharging power and the grid-EVs’ power in Figure 9 are different from those in Figure 11. Furthermore, Figures 10 and 12 show the estimated and the real results of the coordinated charging, where the real results are slightly different from the estimated results. The difference between the estimated and the real results for both uncoordinated and coordinated charging is due to the error generated by fitting the EVs user behaviour data.

In Table 2, the EV user compensation and the WCS profit for uncoordinated and coordinated EVs’ charging are shown. The estimated EV user compensation and WCS profit generated by uncoordinated charging are 1.4% and 9.27%, respectively, higher than the profits using the real user behaviour data. However, the estimated EV user compensation and WCS profit generated by coordinated charging are 1.35% and 1.72%, respectively, higher than the profits using the real user behaviour data. The error generated by using the fitness data and the statistical data of the EV user behaviour for the proposed optimal charging strategy is small. Therefore, the WCS owner can apply the optimal charging strategy proposed in this paper with the EV user behaviour fitness data to have a clue about the profit that can make and the EV user compensation.

7. Conclusion

In this work, we proposed an optimal charging strategy in mixed-integer linear programming (MILP) framework, which allows to plan the EVs’ power allocation for each hour while taking the EV user behaviour into account. The aim is to maximize the WCS owner profit while compensating the EV users for discharging their EVs. The PV power generation has been predicted by the backpropagation neural network model, and the EV user behaviour uncertainties are modeled with parametric probability density functions, while Monte Carlo simulation methods have been applied to handle the EV user behaviour uncertainties. The results illustrate that the proposed optimal charging strategy increases the WCS owner profit and the EV users compensation by 54% and 50.7%, respectively, compared with uncoordinated charging. Moreover, the estimated WCS owner profit and the EV user compensation generated by coordinated charging are 1.72% and 1.35%, respectively, higher than the profits using the real user behaviour data. The error generated by using the fitted data and the statistical data of the EV user behaviour for the proposed optimal charging strategy is small. Hence, the WCS owner can apply the optimal charging strategy proposed in this work with the EV user behaviour fitted data to predict the profit that can make and the EV user compensation.

The following step in our research is to forecast the electricity price. Furthermore, as the output of any PV system is inherently uncertain, probabilistic PV power generation forecasting has to be considered. Incorporating these assumptions, the WCS owner profit and the EV user compensation would be accurately predicted. Moreover, the energy storage system might be included which will raise the WCS owner profit.

Nomenclature

:Set of time period,
:Set of electric vehicles
:Set of Monte Carlo simulation
:Number of EVs available for charging/discharging,
:Number of Monte Carlo simulation iteration,
:Maximum EV charger power labelled
:Maximum power transfer from the grid to EVs (kW)
:Maximum state of charge (%)
:Minimum state of charge (%)
:EV charging and discharging efficiency, respectively (%)
:DC-DC converter efficiency (%)
:Inverter efficiency (%)
:Battery degradation cost in (€/kWh)
:EVs’ maximum capacity (kWh)
:EVs’ consumption (kWh/km)
:Incremental cost of the PV energy at time t (€/kWh)
:Day-ahead electricity price (€/kWh)
:Electricity price of the power transferred from EV to grid (€/kWh)
:PV energy cost transferred from PV to the grid (kWh)
:PV power transferred to th EV during time t (kW)
:Power transfer from the grid to the EV labelled (kW)
:Power transferred from EV to grid (kW)
:Power transfer from the PV system to the grid during time t (kW)
:Power transfer from the PV or the grid to the EV at time t (kW)
:Binary variable that states whether the EV labelled is charging (1) or not (0) at time t
:Binary variable that states whether the EV is discharging (1) or not (0)
:Binary variable that prevents drawing power from grid while feeding power into grid {}.

Data Availability

All data used to support the findings of this study are included within the article.

Conflicts of Interest

The authors declare that they have no conflicts of interest.