Contribution of Driving E ﬃ ciency and Vehicle-to-Grid to Eco-Design

: Designing eco-friendly products involves energy e ﬃ ciency improvements. Eco-friendly products must consider not only raw materials and manufacturing processes to improve energy e ﬃ ciency but also energy needed when designing them. This research shows how eco-routing (ER), eco-charging (EC), eco-driving (EDR), vehicle-to-grid (V2G) and electric vehicles (EVs) can contribute to the reduction of energy consumption during product design. To do this, a group of 44 engineers assigned to the project was chosen to assess the total energy available for V2G when driving EVs from their homes to the design center by using ER, ED and EC by running an application coded by the authors. The energy stored in EVs was used to quantify the reduction in energy consumption of the buildings present in the design center. The results show that the energy saving ranges from 2.89% to 6.9% per day—in other words, 93 kWh per day during the design process. In addition, the fact of making the design process greener implies that renewable energies (REs) are integrated better during the design process. By running the application, drivers are informed about the RE mix when the charging process takes place. Finally, this research shows that current policies make V2G and vehicle-to-home techniques not compatible.


Introduction
Eco-design allows implementing eco-friendlier products as environmental impacts are considered during the design phase [1,2]. Several factors which influence eco-design have been identified in several research [3][4][5][6]. Among them, one can find: manufacturing without producing hazardous waste, using clean technologies, reducing product chemical emissions and product energy consumption, using recycle materials and reusing components, designing products for ease of disassembly and reusing or recycling products at the end of their lives [7]. Some proposals have been made to improve these factors. Morgan and Liker [8] pushed to use lean manufacturing in design when developing products. As detailed by Rosen and Kishawy [9], this usage could imply that several alternatives used during the project can be assessed and, consequently, costs and benefits of eco-design can be set. When it comes to energy efficiency, research is mainly focused on final products and manufacturing processes. The former deals with the energy labelling concept which allows companies to create labels indicating the product energy efficiency [10]. The latter includes reducing energy consumption during the manufacturing process. Seow et al. described a new outlook called "Design for Energy Minimization" aiming to provide transparency regarding energy consumption during the manufacturing process to help inform design decisions [11]. Ka-Leung-Moon et al. proposed guidelines for the design and

Overview of the Methods Used
When it comes to the method (Figure 1), two key points must be considered to assess the contribution of ED, EDR and EC to eco-design. The former consists of choosing the optimal locations and the number of engineers participating in this research. The latter shows how the algorithm works and its implementation. To do this, the Here ® API was used to determine the best route considering EC, EDR and ER models based on data from the vehicle control unit (VCU), traffic state, drivers' habits (the way of using the accelerator or brake pedals among other data), current battery capacity and potential recharge needs among others [35][36][37]. In addition, the EC concept shows drivers when a recharge process might be necessary, taking into account when the RE contribution is higher.  Figure 2 and Table 1 depict the number of engineers participating in this study, the locations where these engineers live and the distance from each location to the design center. These locations were chosen to cover all parts of the city (north, south, east and west of Toulouse) and the number of engineers was assigned depending on traffic conditions in such a way that the more traffic jams were close to the location, the bigger number of engineers was chosen. All vehicles used were equipped with a 40-kWh battery. Their autonomy was close to 250 km. The maximum speed was 144 km/h,   Table 1 depict the number of engineers participating in this study, the locations where these engineers live and the distance from each location to the design center. These locations were chosen to cover all parts of the city (north, south, east and west of Toulouse) and the number of engineers was assigned depending on traffic conditions in such a way that the more traffic jams were close to the location, the bigger number of engineers was chosen. All vehicles used were equipped with a 40-kWh battery. Their autonomy was close to 250 km. The maximum speed was 144 km/h, and the engine torque was around 320 Nm.  Figure 2 and Table 1 depict the number of engineers participating in this study, the locations where these engineers live and the distance from each location to the design center. These locations were chosen to cover all parts of the city (north, south, east and west of Toulouse) and the number of engineers was assigned depending on traffic conditions in such a way that the more traffic jams were close to the location, the bigger number of engineers was chosen. All vehicles used were equipped with a 40-kWh battery. Their autonomy was close to 250 km. The maximum speed was 144 km/h, and the engine torque was around 320 Nm.

Description of Trips
The trips were made in 2019 with the aim of collecting important data such as energy consumption by using the equipment described in Section 2.3.    The trips were made in 2019 with the aim of collecting important data such as energy consumption by using the equipment described in Section 2.3.

Equipment
The following means were used in this research: 1.
The software and hardware of a VCU used by the company subjected to this case-study was designed by one of the most important European suppliers specialized in embedded systems; 2.
All vehicles employed in this study were EVs equipped with a 40-kWh battery; 3.
Throughout this research, it is necessary to make measurements of different software variables stored in the VCU memory. In this study, the Inca ® software provided by ETAS ® (Stuttgart, Germany) was used as it allows reading memory locations/software variables in real time [38]; Here ® and Open Charge Map ® APIs with the aim of choosing the best route and showing the closest battery charger locations [35,39]. Open Charge Map is a non-commercial, non-profit, electric vehicle data service hosted and supported by a community of businesses, charities, developers and interested parties around the world; 4.
The MDA ® software provided by ETAS ® (Stuttgart, Germany) to analyze all data acquisition [40].

Algorithm Used in This Research
The algorithm provided in the Supplementary Data and used in this research is depicted in Figure 3. First of all, the energy consumption models available in the Here ® API are tuned [36]. Then, the driver sets the destination by using a web interface. Afterwards, the algorithm assesses the optimal route for the driver. To do this, the Here ® API is called by the Python code by using the Routingmode parameter [35]. This parameter has an attribute named Type which can take three types of routes: the route that requires the least amount of travel time, the shortest one which reduces and optimizes the distance covered and finally the balanced mode which searches for the correct balance between distance and time (only for trucks). The way how the algorithm works to determine the best routes belongs to the Here ® know-how. The Python code receives from the Here ® API the potential routes (the shortest, the fastest and the balanced one) to the destination and the energy consumption for each one. The application chooses the one with less energy consumption as explained later. Appendix A provides further information about how to set up Here ® to help the reader to reproduce the experiment. Finally, the algorithm runs a block called eco-charging which aims to calculate the RE contribution and energy structure generation (wind power, photovoltaic, etc.) by using neural networks. The driver is, therefore, informed about when the charging process is greener.
Energies 2020, 13, x FOR PEER REVIEW 6 of 30   Here ® API provides energy consumption models that allow assessing energy consumption by using several parameters such as speed, auxiliary energy consumption (radio, cooling/heating, accelerations, decelerations, etc.). The way of tuning these models implies that the value of each parameter in kWh is provided depending on the speed value (if possible, as not all parameters are linked to speed such as auxiliary systems). In this research, these values were established by performing data acquisition after the drivers participating in this research made each trip 50 times in different periods and traffic conditions (Section 2.2). As shown in Figure 4, the Inca ® software installed in a laptop as well as input/output from ETAS ® supplier modules were used to perform the data acquisition. Finally, the tuning engineers of the company that collaborated in this study assessed the factors' values by analyzing the data acquisition by using the MDA ® software provided by ETAS ® (Stuttgart, Germany) and internal procedures. To introduce this information by using the Here ® interface is easy. First of all, the reader must indicate to Here ® that the standard energy consumption model will be used. Figure 5 shows an example that helps the reader to reproduce this study. Once these factors are tuned and introduced in the Python code, Here ® returns the energy consumption estimate for each type of route (the fastest, the shortest and the balanced one). Consequently, the one with less energy consumption is chosen. Taking into account the initial battery capacity before the trip, the algorithm can determine if a charge is needed during the trip.         Finally, the EC block is run, and the eco-score (how REs are integrated into the charging process) is assessed. The aim of this block is to determine the RE contribution when the charging process may take place considering the battery capacity. In addition, an estimate of energy structure (wind power, fuel, etc.) is made. The block is depicted in Figure 6. In phase 1, several factors are analyzed such as the battery capacity and the energy consumption for a specific journey, among others. It must be reminded that the energy consumption was estimated earlier by using the energy consumption model. Furthermore, the most likely time when the charging process takes place can be assessed (phase 2). Therefore, the RE contribution and most likely energy source mix (coal, solar energy, gas, etc.) can be obtained as detailed later by using gated recurrent unit (GRU) networks and nonlinear autoregressive (NAR) neural networks (phase 3) [41][42][43][44][45]. Finally, the EC is assessed considering the RE contribution. In addition, the algorithm proposed in this paper provides information about different parameters such as chargers thanks to Open Charge Map API [35].
Energies 2020, 13, 3997 7 of 28 model. Furthermore, the most likely time when the charging process takes place can be assessed (phase 2). Therefore, the RE contribution and most likely energy source mix (coal, solar energy, gas, etc.) can be obtained as detailed later by using gated recurrent unit (GRU) networks and nonlinear autoregressive (NAR) neural networks (phase 3) [41][42][43][44][45]. Finally, the EC is assessed considering the RE contribution. In addition, the algorithm proposed in this paper provides information about different parameters such as chargers thanks to Open Charge Map API [35]. The EC score measures how green the charging process is considering the RE contribution. It can be assessed as given by Equation (1): where REc,t is the RE contribution to the total electricity demand at t (in MW) and REmax,d is the maximal RE contribution (in MW) during the day when the charging process takes place. Both parameters are calculated by using neural networks. RE contribution is measured by using Equation where REc is the RE contribution (in %), RE is the total electricity generated by RE sources (in MW) and NRE is the total electricity generated by non-RE such as coal (in MW). REc,t and REmax,d are estimated as follows. The French system operator publishes files on a daily basis in which one can find the CO2 generation structure and the total electricity demand of the day [46]. It must be taken into account that electricity demand and total RE contribution are stationary series. In other words, the pattern is repeated. Only some aspects have to be considered such as weekends and seasons. Anyway, two electricity consumption peaks can be found every day. Consequently, NAR networks are needed to model the electricity demand prediction for a specific day from a desired time (for example, departure planned at 7 p.m.) to midnight. The Python code The EC score measures how green the charging process is considering the RE contribution. It can be assessed as given by Equation (1): where RE c,t is the RE contribution to the total electricity demand at t (in MW) and RE max,d is the maximal RE contribution (in MW) during the day when the charging process takes place. Both parameters are calculated by using neural networks. RE contribution is measured by using Equation (2): where RE c is the RE contribution (in %), RE is the total electricity generated by RE sources (in MW) and NRE is the total electricity generated by non-RE such as coal (in MW). RE c,t and RE max,d are estimated as follows. The French system operator publishes files on a daily basis in which one can find the CO 2 generation structure and the total electricity demand of the day [46]. It must be taken into account that electricity demand and total RE contribution are stationary series. In other words, the pattern is repeated. Only some aspects have to be considered such as weekends and seasons. Anyway, two electricity consumption peaks can be found every day. Consequently, NAR networks are needed to model the electricity demand prediction for a specific day from a desired time (for example, departure planned at 7 p.m.) to midnight. The Python code analyzes the results returned by the neural network and determines the maximum RE contribution of the day. Finally, Equations (1) and (2) are assessed.
Typical recurrent networks present problems when it comes to long-term predictions due to the vanishing gradient problem. Engineers face this problem when training recurrent neural networks with gradient-based learning methods and backpropagation. When using this method, each of the neural network's weights receive an update proportional to the partial derivative of the error function with respect to the current weight in each iteration of training. In some cases, the gradient will be vanishingly small. Consequently, the weight does not change its value, and might stop the neural network training. To enhance long-term predictions, long short-term memory or GRU can be used. In this research, GRUs have been chosen, as they are more efficient (they require less memory). GRU is a recurrent neural network architecture that uses update and reset gates (Figure 7). neural network's weights receive an update proportional to the partial derivative of the error function with respect to the current weight in each iteration of training. In some cases, the gradient will be vanishingly small. Consequently, the weight does not change its value, and might stop the neural network training. To enhance long-term predictions, long short-term memory or GRU can be used. In this research, GRUs have been chosen, as they are more efficient (they require less memory). GRU is a recurrent neural network architecture that uses update and reset gates (Figure 7). Mathematically, the process is as follows: (a) Update gate for time step t The update gate zt is calculated by following Equation (3): where xt is the inputs presented to the network, W (z) is its weight matrix, ht-1 holds the information of the previous step t−1 and U (z) is its weight matrix. Both results are added, and a sigmoid activation is applied to squash the result between 1 and 0. The update gate allows determining how much of the past information should be passed along to the future. Mathematically, the process is as follows: (a) Update gate for time step t The update gate z t is calculated by following Equation (3): where x t is the inputs presented to the network, W (z) is its weight matrix, h t-1 holds the information of the previous step t−1 and U (z) is its weight matrix. Both results are added, and a sigmoid activation is applied to squash the result between 1 and 0. The update gate allows determining how much of the past information should be passed along to the future. (b) Reset gate for time step t It is given by Equation (4).
The meaning of this factor is the same as for Equation (3) except r t which is the reset gate. The reset gate corresponds to the past information which must be forgotten.
(c) Current memory content The new memory content h t uses the reset gate to store relevant information from the past.
Energies 2020, 13, 3997 9 of 28 The meaning of this factor is the same as for Equations (3) and (4). represents the Hadamard product.
(d) Final memory at a current step In this step, the vector h t is calculated by using Equation (6). This vector holds the information for the current unit and passes it down to the network. To do this, the update gate is needed.
The GRU network was coded in Python. Figure 8 shows the pseudocode. To reproduce the results, the reader must have the data published by the French system operator for the last four years. The first three-year data are used for inputs of the network and the last-year data are employed as targets to train the network. It is of paramount importance to rescale all data to make them range between 0 and 1 to assure the network performance. The network parameters are set up by using the keras package. First of all, with the Sequential parameter, the code specifies that the model is sequential, and the output of each layer is the input for the next layer. In this study, the authors have used the Dropout function which is a technique where randomly selected neurons are ignored during training. This means that their contribution to the activation of downstream neurons is temporally removed on the forward pass and any weight updates are not applied to the neuron on the backward pass. The main advantage of this technique is that the network becomes less sensitive to the specific weights of neurons. The method used to analyze the error loss is the mean squared error which is widely recommended for regression problems. The method used to optimize the model is Adam which is an optimization algorithm that can be used instead of the classical stochastic gradient descent procedure to update network weights iteratively based on training data. It offers many advantages such as straightforward implementation and computational efficiency, among others. Other comments can be found in the pseudocode ( Figure 8).
The algorithm estimates the structure generation for the next two hours ( Figure 9) by using the data published by the French system operator (CO 2 generation structure and the total electricity demand of the day) and NAR networks. These networks are useful when handling time series and predictions. These networks have been created and trained in an open loop. In this case, the targets are used as feedback. Then, the networks are verified in a close loop [41][42][43]47]. Mathematically, NAR networks can be expressed bŷ where f represents the network response taking into account the previous input data, and ε(t) is the difference between the predicted valueŷ(t) and the actual y. The number of delays establishes the d values to be considered for the prediction. The number of hidden layers and neurons per layer is flexible to achieve the best performance of the neural network under design. This number must be carefully chosen to avoid an increase in the neural network complexity. The effect of choosing the value of the delay parameter is shown in Figure 10. As one can see, a high d implies that the predicted line series line changes slower. On the other hand, when d is lower, the predicted line series follows the real power wind value more accurately. However, if d takes a very low value, then the predicted line series does not follow the real power wind value. The main explanation is that d determines the weight given to past values. Consequently, significant changes in trend are not detected which could happen due to weather conditions. That is why, NAR networks are used in this research as an estimation and the accuracy remains on GRU networks. Anyway, this is not an issue as Matlab ® allows correcting predictions if predicted values are known. This is the case of this application as it can predict t + 1, t + 2, t + 3 . . . at a specific moment t. However, when the moment is t + 1, the neural network can be updated as the predicted t + 1 value and the real t + 1 are known in real time (the French system operator publishes the needed data in real time). To reproduce the results of this study, the authors obtained good predictions for the next 2 h with d = 3 when using the data belonging to 2019 published Energies 2020, 13, 3997 10 of 28 by the French system operator. The pseudocode of the NAR network is shown in Figure 11, coded by using Matlab ® (Natick, MA, USA) The NAR networks were trained by using the trainlm function which implies that bias and weights are updated according to Levenberg-Marquardt optimization. It is the fastest backpropagation algorithm even if it may require more memory than other methods.
Energies 2020, 13, x FOR PEER REVIEW 10 of 30 Figure 8. Pseudocode for the GRU networks.
The algorithm estimates the structure generation for the next two hours ( Figure 9) by using the data published by the French system operator (CO2 generation structure and the total electricity demand of the day) and NAR networks. These networks are useful when handling time series and  2019 published by the French system operator. The pseudocode of the NAR network is shown in Figure 11, coded by using Matlab ® (Natick, MA, USA) The NAR networks were trained by using the trainlm function which implies that bias and weights are updated according to Levenberg-Marquardt optimization. It is the fastest backpropagation algorithm even if it may require more memory than other methods.

Data Analysis
As detailed in the result section, the data obtained in this research seem to be close to a normal distribution. Consequently, a method must be set to confirm this assumption. To do this, the package named PASSWR belonging to the R software was used. This package includes commands such as EDA which provide a lot of information to perform exploratory data analysis such as kurtosis, skewness and p-value. Kurtosis is a statistical measure that defines how heavily the tails of distribution differ from the tails of a normal distribution. Therefore, kurtosis identifies whether the tails of a given distribution contain extreme values. For a normal distribution, its value is 3. There are three types of kurtosis: mesokurtic when kurtosis is close to 3; leptokurtic when values are quite

Data Analysis
As detailed in the result section, the data obtained in this research seem to be close to a normal distribution. Consequently, a method must be set to confirm this assumption. To do this, the package named PASSWR belonging to the R software was used. This package includes commands such as EDA which provide a lot of information to perform exploratory data analysis such as kurtosis, skewness and p-value. Kurtosis is a statistical measure that defines how heavily the tails of distribution differ from the tails of a normal distribution. Therefore, kurtosis identifies whether the tails of a given distribution contain extreme values. For a normal distribution, its value is 3. There are three types of kurtosis: mesokurtic when kurtosis is close to 3; leptokurtic when values are quite

Data Analysis
As detailed in the result section, the data obtained in this research seem to be close to a normal distribution. Consequently, a method must be set to confirm this assumption. To do this, the package Energies 2020, 13, 3997 12 of 28 named PASSWR belonging to the R software was used. This package includes commands such as EDA which provide a lot of information to perform exploratory data analysis such as kurtosis, skewness and p-value. Kurtosis is a statistical measure that defines how heavily the tails of distribution differ from the tails of a normal distribution. Therefore, kurtosis identifies whether the tails of a given distribution contain extreme values. For a normal distribution, its value is 3. There are three types of kurtosis: mesokurtic when kurtosis is close to 3; leptokurtic when values are quite higher than 3; and platykurtic when the extreme values are less than the normal distribution. Skewness essentially measures the symmetry of the distribution. For a normal distribution, its value should be close to 0. At this point, it is important to highlight that symmetry does not imply that the data correspond to a normal distribution. Thus, these two parameters must be analyzed carefully. Finally, the p-value or probability value is the probability of obtaining test results at least as extreme as the results actually observed during the test, assuming that the null hypothesis is correct.
Plots are also of paramount importance when analyzing the data. In this research, three plots were used: histograms, Q-Q plots and boxplot. A histogram is a graphical representation which organizes a group of data points into user-specified ranges. The Q-Q plot, or quartile-quartile plot, is a graphical tool used to assess if a set of data plausibly came from some theorical distribution such as a normal one. Finally, a box plot is a graphical rendition of statistical data based on the minimum, first quartile, median, third quartile and maximum. In this graph, the top of the rectangle indicates the third quartile, a horizontal line near the middle of the rectangle indicates the median and the bottom of the rectangle indicates the first quartile. Figure 12 shows an example of how a dataset corresponds to a normal distribution by using PASSWR.
Energies 2020, 13, x FOR PEER REVIEW 13 of 30 Finally, the p-value or probability value is the probability of obtaining test results at least as extreme as the results actually observed during the test, assuming that the null hypothesis is correct. Plots are also of paramount importance when analyzing the data. In this research, three plots were used: histograms, Q-Q plots and boxplot. A histogram is a graphical representation which organizes a group of data points into user-specified ranges. The Q-Q plot, or quartile-quartile plot, is a graphical tool used to assess if a set of data plausibly came from some theorical distribution such as a normal one. Finally, a box plot is a graphical rendition of statistical data based on the minimum, first quartile, median, third quartile and maximum. In this graph, the top of the rectangle indicates the third quartile, a horizontal line near the middle of the rectangle indicates the median and the bottom of the rectangle indicates the first quartile. Figure 12 shows an example of how a dataset corresponds to a normal distribution by using PASSWR.

V2G
The energy consumption of 5 buildings located in the design center and the contribution of V2G to reduce their energy consumption during product design were analyzed. Among the means that consume electricity in these buildings, one can find those that consume a great amount of energy such as test benches and, on the contrary, a considerable number of others such as computers, faxes and photocopying machines, which have much lower energy consumption. It is of paramount importance to assess the amount of energy that the EV can inject to reduce emissions and energy consumption during product design.

V2G
The energy consumption of 5 buildings located in the design center and the contribution of V2G to reduce their energy consumption during product design were analyzed. Among the means that consume electricity in these buildings, one can find those that consume a great amount of energy such as test benches and, on the contrary, a considerable number of others such as computers, faxes and photocopying machines, which have much lower energy consumption. It is of paramount importance to assess the amount of energy that the EV can inject to reduce emissions and energy consumption during product design.

Cybersecurity
In this research, some data about the number of ECUs scrapped due to cybersecurity reasons will be shared. All these data are normalized considering the annual production (Section 3.4).

Results
This section is structured as follows. Section 3.1 shows the energy saving obtained when using EVs and the algorithm proposed in this research. This first analysis is of paramount importance because it allows assessing the amount of energy available for V2G. In addition, the trips from the design center to the factory are also discussed. Section 3.2 analyzes the energy consumption of the buildings located at the design center. The participation in V2G depends on energy policies. However, it must be highlighted that the charging process must be performed when the RE contribution is significant. Section 3.3 will also try to analyze that. Section 3.4 estimates waste due to ECU scrapped for cybersecurity reasons.

Distribution of Engineers
The project considered in this research deals with designing an ECU. As shown in Figure 2 and Table 1, the reader can find the city and the location of all engineers participating in this project. Table 2 shows the statistical results achieved when processing the data obtained during the trips with no traffic jams. Without any traffic jams, the time needed to go from each location to the design center is very similar. Skewness is close to zero. Consequently, the distribution is symmetric. Kurtosis values show that the data distribution tails do not differ from normal distribution ones. The p-value represents the null hypothesis: the data follow a normal distribution. The null hypothesis can be considered as true if p-value > 0.05. Considering that the skewness and the kurtosis are sensitive to the sample size, the normality test was also confirmed by using Q-Q plots and a histogram which confirmed the normal hypothesis. A.U. A.U. A.U. A.U.
A.U.  Tables 3 and 4 show the statistical results achieved when processing the data obtained during the trips with traffic jams and mixed conditions. The way of interpreting the results is similar to Table 2. Q-Q plots and histogram confirm the assumptions. A.U.

Building Energy Consumption
The design center is composed of five buildings with different configurations. Table 5 shows the characteristics of each building. These items were chosen after having analyzed the energy consumption data provided by the company participating in this research. Only the most highly energy-consuming items were considered.  Figure 13 depicts the energy consumption for each building. These values were obtained by using electric meters installed in the design center, the number of hours of operation considering timetables and average energy consumption of facilities/items. The main differences between these buildings were the number of people working, which affects the number of other elements present in the buildings such as printers, and the presence of laboratories. Considering the results shown in Tables 2-4, the energy to be used for V2G technology is assessed. However, V2G must be also compatible with V2H technology. Logically, the drivers will be willing to save this available energy for their own homes rather than injecting it into the grid. This topic will be discussed in the result discussion in Section 4.3. Table 6 depicts the main results obtained in this research. An additional gain of 2.89% to V2G can be obtained when considering mixed traffic conditions (with and without traffic jams). This percentage can be increased by 6.9% considering the influence of traffic jams. This percentage was obtained by dividing the total energy available per day when using and not using the algorithm  Considering the results shown in Tables 2-4, the energy to be used for V2G technology is assessed. However, V2G must be also compatible with V2H technology. Logically, the drivers will be willing to save this available energy for their own homes rather than injecting it into the grid. This topic will be discussed in the result discussion in Section 4.3. Table 6 depicts the main results obtained in this research. An additional gain of 2.89% to V2G can be obtained when considering mixed traffic conditions (with and without traffic jams). This percentage can be increased by 6.9% considering the influence of traffic jams. This percentage was obtained by dividing the total energy available per day when using and not using the algorithm

RE Contribution to Charge EVs
The EVs belonging to employees should inject power into the grid when electricity consumption peaks take place. Generally, every day there are two peaks of electricity consumption which depend on the season and on the day of the week ( Figure 14). Anyway, these peaks usually occur between 8 a.m. and 1:30 p.m. and from 5:30 p.m. to 8 p.m. In this research, power should be injected to reduce the first electricity consumption peak. The fact of injecting this power into the grid from EVs implies that EVs should be recharged in some cases by the user to have enough energy to come back home. Consequently, it is of paramount importance to charge them when REs are being used. In other words, the recharge process should be done when the mix is greener. The algorithm proposed by the authors allows determining when the RE contribution is higher by using Equations (1) and (2). Therefore, the charging process is greener.

Cybersecurity
As aforementioned in the previous sections, cybersecurity could involve a considerable amount of waste to be considered. Table 8 shows the results of this research considering 120,000 ECUs in series production and 1200 prototype units per year. Firstly, the reader can see the number of ECUs scrapped for one year due to cybersecurity reasons. The percentage of scrapped ECUs when producing prototype ECUs reaches 10.83%. Secondly, ECUs are mainly composed of plastic (housings) and electronic wastes such as microprocessors, resistors, etc. The components used in these ECUs are confidential. In addition to the data depicted in Table 8, other factors must be considered such as: varnish used in the manufacturing process, energy needed to weld and logistic transportation (emissions), among others. It must be remarked that prototype parts have a high scrap rate. Consequently, the waste produced during projects should also be considered in eco-design.   Table 7 shows the electricity prices offered by different suppliers in France. Considering the prices shown in Table 7 and Figure 14, several conclusions can be drawn: Firstly, when the RE contribution is high, charging the EV battery is expensive, and the other way around.
Secondly, drivers participating in V2G and V2H should charge their EVs between off-peak periods. Consequently, rapid or fast charging should be used. Consequently, battery life is reduced. Finally, the RE contribution vs. traditional energy sources during off-peak periods must be increased.
Policies should change to increase the RE contribution when charging EVs especially during off-peak periods. The French government announced a new plan to increase the usage of RE. This plan has new different objectives for 2023. In this new plan, two scenarios are unfolded: an optimistic and a pessimistic one. The most important figures imply that the total power installed should reach 69,980 MW in the worst-case scenario and 76,743 MW in the optimistic one. In addition to this, 150 and 167 TWh renewably sourced electricity should be delivered, respectively. It must be reminded that the current renewable capacity in France is close to 56,000 MW. Some important figures to be retained [48]:

Cybersecurity
As aforementioned in the previous sections, cybersecurity could involve a considerable amount of waste to be considered. Table 8 shows the results of this research considering 120,000 ECUs in series production and 1200 prototype units per year. Firstly, the reader can see the number of ECUs scrapped for one year due to cybersecurity reasons. The percentage of scrapped ECUs when producing prototype ECUs reaches 10.83%. Secondly, ECUs are mainly composed of plastic (housings) and electronic wastes such as microprocessors, resistors, etc. The components used in these ECUs are confidential. In addition to the data depicted in Table 8, other factors must be considered such as: varnish used in the manufacturing process, energy needed to weld and logistic transportation (emissions), among others. It must be remarked that prototype parts have a high scrap rate. Consequently, the waste produced during projects should also be considered in eco-design.

Discussion
This section discusses the results obtained in this research. Section 4.1 analyzes the algorithm when it comes to sustainability. Section 4.2 describes how the energy efficiency is improved. Section 4.3 explores the RE contribution. Section 4.4 discusses the number of engineers chosen for this study. Section 4.5 entitled "threats to the validity", analyzes the main factors which could have an influence on the results obtained in this research.

Sustainability of This Solution
No matter what kind of powertrain is used in a vehicle (hybrid, electric, diesel or gasoline), CO 2 emissions are always present as analyzed by the International Council on Clean Transportation [49]. As shown in Figure 15, EVs pollute less than conventional vehicles when it comes to life-cycle emissions. Therefore, the algorithm and the solution proposed in this research are sustainable despite the process of charging and discharging that harms the battery. In addition, the EVs increase is confirmed by such a supplier as Continental ® , considering the latest news concerning the recent sale of its diesel and petrol powertrain unit. Thermic engine activities are supposed to be reduced while EV activities are most likely to be increased in the year to come.

Sustainability of this Solution
No matter what kind of powertrain is used in a vehicle (hybrid, electric, diesel or gasoline), CO2 emissions are always present as analyzed by the International Council on Clean Transportation [49]. As shown in Figure 15, EVs pollute less than conventional vehicles when it comes to life-cycle emissions. Therefore, the algorithm and the solution proposed in this research are sustainable despite the process of charging and discharging that harms the battery. In addition, the EVs increase is confirmed by such a supplier as Continental ® , considering the latest news concerning the recent sale of its diesel and petrol powertrain unit. Thermic engine activities are supposed to be reduced while EV activities are most likely to be increased in the year to come.

Energy Efficiency Improvement
Several policies are pursued with the aim of improving energy consumption based on increasing the RE usage, eco-design and building energy consumption. When it comes to eco-design, energy efficiency is a key factor and engineers try to improve energy consumption during the manufacturing process. When it comes to design processes, the eco-design process is mainly focused on the usage of recyclable raw materials and on the design of products that do not pollute much during their lives and they can also be recycled easily at the end of their lives. This research shows that the design process involves many factors that should be considered as they generate emissions in a significant way. Unfortunately, the eco-design directive does not include many topics that clearly have an influence on emissions during the design process. Investments in V2G technology allow reducing energy consumption during the design process. This reduction is increased when using the algorithm proposed in this study without any additional investment.
Several conclusions can be drawn from the data depicted in Table 5. V2G plays an essential role when it comes to eco-design as a range between 2904 and 20,504 kWh more per year is available when using depending on traffic conditions. In other words, the reduction ranges from 13.2 to 93.

Energy Efficiency Improvement
Several policies are pursued with the aim of improving energy consumption based on increasing the RE usage, eco-design and building energy consumption. When it comes to eco-design, energy efficiency is a key factor and engineers try to improve energy consumption during the manufacturing process. When it comes to design processes, the eco-design process is mainly focused on the usage of recyclable raw materials and on the design of products that do not pollute much during their lives and they can also be recycled easily at the end of their lives. This research shows that the design process involves many factors that should be considered as they generate emissions in a significant way. Unfortunately, the eco-design directive does not include many topics that clearly have an influence on emissions during the design process. Investments in V2G technology allow reducing energy consumption during the design process. This reduction is increased when using the algorithm proposed in this study without any additional investment.
Several conclusions can be drawn from the data depicted in Table 5. V2G plays an essential role when it comes to eco-design as a range between 2904 and 20,504 kWh more per year is available when using depending on traffic conditions. In other words, the reduction ranges from 13.2 to 93.2 kWh per day. This figure could be increased by 61.52 kWh in mixed traffic conditions as detailed in Section 4.4. These results were obtained when using only 44 engineers.
The energy efficiency improvement allows reducing emissions. As depicted in Table 9, the emission reduction ranging from 8.96 to 23.55 kg per day was obtained when using the algorithm proposed in this study. These values were obtained taking into account the energy saving (in kWh) and the monthly emission average from January to July 2019. It must be remarked that only 44 engineers participated in this study. Finally, the fact of reducing energy consumption by using V2G is a topic which has been subjected to research. The contribution may be significant when the smart grid will be fully deployed. However, it should be also considered that V2G must be compatible with V2H. As shown in this research, it is not always the case. Several axes are essential to make them work together. The first one is improving battery capacities in such a way that the owner can use the energy stored in the battery for both purposes (V2H and V2G). The second one is also linked to batteries as the fact of going through charging and discharging processes should not degrade batteries quickly. Finally, the RE contribution must be increased as described in Section 3.3.

Renewable Energies
From a theoretical point of view, it is vital to consider V2G technology to reduce the energy consumption of design buildings. In this case, two factors must be discussed. The first one is EV penetration into the market. The second one is policies. The former is essential due to the fact that the more EVs are sold, the more energy is available for V2G. Policies try to encourage drivers to choose EVs instead of traditional powertrains such as gasoline or diesel engines. Among these measures, one can find exemption from vehicle registration duties or municipal tax discounts. Despite this, the participation in V2G remains unclear for several reasons: (a) Drivers who cover many kilometers on a daily basis will be forced to choose between V2G and V2H techniques. Considering that if drivers inject energy during the day to reduce the energy consumption in buildings, they will probably need to charge as soon as they get to their homes. Consequently, they cannot participate in V2H; (b) The fact of reducing prices to make drivers charge their vehicles after 2 p.m. is still far from being the solution as the RE contribution is not substantial. Therefore, it is essential to promote RE facilities.
The algorithm proposed in this research allows choosing the best moment to charge the EV battery considering the electricity mix. Considering all the aforementioned facts, V2G can contribute in a significant way to the reduction of emissions during the design process and should be also a key element to be considered in eco-design. However, the percentage of improvement is completely linked to policies associated with EV recharging.

Population Participating in This Study
Several factors must be considered when it comes to the population participating in this research. Firstly, this research was conducted considering a small size research and development center. It must be taken into account that there are much bigger design centers in France such as the one of Renault located in Lardy (1600 workers) or the one of PSA Peugeot-Citroen located in Carrières-sous-Poissy (1300 workers). Therefore, the number of engineers who can participate when implementing the algorithm will increase. However, policies are still important to encourage people to participate in V2G [33,50]. Figure 16 shows an estimate when choosing a greater number of engineers (400 engineers) and the energy consumption calculated in Section 3.1, and the assumption shown in Table 10. When it comes to the number of engineers, the values were assigned by respecting the percentage of engineers of each location established for the test-case. When it comes to the number of times with and without traffic jams, these values were considered for the whole year. In addition, an error estimate has been added, which represents the nominal estimate with a 20% error, 30% error and so on (Table 11).
of engineers (in other words the number of EVs) is not only the most relevant parameter to obtain more or less contribution to V2G and eco-design as Location E is the one which has fewer engineers/EVs participating in this case-study. Consequently, location is an important parameter.
Another important topic to be discussed is that this algorithm does not require investing in new facilities. Once the design center is adapted to use V2G, no more action is needed except for using this algorithm. As shown in Table 11, the fact of using it implies that an extra gain by EUR 11,021 could be obtained in this authors' estimate. Table 11 also shows the gain (difference between the energy available when using and not using the algorithm).
When considering the number of engineers participating in this case-study, the results are similar ( Figure 17). Again, location D and E account for the biggest amount of energy available for V2G. Consequently, the V2G energy value does not only depend on the number of EVs (engineers) participating in this research but the location of the engineers.    Figure 16 represents the increase in energy available for V2G when using the algorithm. Location D and Location E outperform the rest of the locations when it comes to energy savings. The number of engineers (in other words the number of EVs) is not only the most relevant parameter to obtain more or less contribution to V2G and eco-design as Location E is the one which has fewer engineers/EVs participating in this case-study. Consequently, location is an important parameter.
Another important topic to be discussed is that this algorithm does not require investing in new facilities. Once the design center is adapted to use V2G, no more action is needed except for using this algorithm. As shown in Table 11, the fact of using it implies that an extra gain by EUR 11,021 could be obtained in this authors' estimate. Table 11 also shows the gain (difference between the energy available when using and not using the algorithm).
When considering the number of engineers participating in this case-study, the results are similar ( Figure 17). Again, location D and E account for the biggest amount of energy available for V2G. Consequently, the V2G energy value does not only depend on the number of EVs (engineers) participating in this research but the location of the engineers.  Choosing the optimal location is of paramount importance. If 22 EVs had been assigned to Location D and E respectively (Figure 18)  Choosing the optimal location is of paramount importance. If 22 EVs had been assigned to Location D and E respectively (Figure 18), the energy available for V2G would have been increased from 39.8 to 61.52 kWh per day. Several factors such as distance and traffic state among others determine the optimal location to optimize the V2G contribution. Therefore, models which can predict the V2G contribution when determining the optimal number of engineers and location must be developed, as the fact of using more EVs does not imply that the contribution to V2G has increased in a significant way. This algorithm can be used offline to determine the optimal locations by following the procedure shown Several factors such as distance and traffic state among others determine the optimal location to optimize the V2G contribution. Therefore, models which can predict the V2G contribution when determining the optimal number of engineers and location must be developed, as the fact of using more EVs does not imply that the contribution to V2G has increased in a significant way. This algorithm can be used offline to determine the optimal locations by following the procedure shown in Figure 19. Here ® API can assess the routes offline to obtain the time needed and, consequently, the EV energy consumption. Thanks to this procedure, the energy consumption estimate for each driver can be obtained and, consequently, the optimal locations can be chosen. Several factors such as distance and traffic state among others determine the optimal location to optimize the V2G contribution. Therefore, models which can predict the V2G contribution when determining the optimal number of engineers and location must be developed, as the fact of using more EVs does not imply that the contribution to V2G has increased in a significant way. This algorithm can be used offline to determine the optimal locations by following the procedure shown in Figure 19. Here ® API can assess the routes offline to obtain the time needed and, consequently, the EV energy consumption. Thanks to this procedure, the energy consumption estimate for each driver can be obtained and, consequently, the optimal locations can be chosen.

Threats to Validity
In this research, internal and external threats have been analyzed.

Threats to Validity
In this research, internal and external threats have been analyzed. Table 12 depicts the main variables to be controlled (predictors) to check the influence on the response variables. Even though the authors considered that factors 1, 2 and 3 were chosen properly to obtain fully representative results, it is obvious that all these factors could reduce the energy available for V2G. Therefore, the energy consumption of the buildings belonging to the design center which can be supported by V2G, could be decreased. Table 12 also describes the mitigation plan (description column) to justify that the results of this research are well founded. Energy available for V2G Energy available in the EV battery to be used for V2G.

GRU estimate
Every time a GRU neural network is built to predict a time series, a performance assessment of the network is carried out. The process is done by using Python. As shown in Figure 20, the performance assessment values were good enough to use the network (8E-07 the worst case). When it comes to NAR networks, they are automatically built by using Matlab ® .

Conclusions
Eco-design deals with several topics such as low-impact materials, energy efficiency, design for reuse and recycle, sustainable design standards and renewable energy, among others. However, energy efficiency should not only deal with manufacturing but the product design phase. This research is focused on how electric vehicles (EVs), vehicle-to-grid (V2G), eco-driving, eco-routing and eco-charging can contribute to energy savings during product design. Therefore, these factors play an essential role in eco-design. Taking into account the method and results obtained in this research, the following conclusions are drawn: (a) Energy savings The algorithm proposed in this research which uses energy consumption models properly tuned for eco-driving, eco-routing and eco-charging allows reducing energy consumption between 2.89% and 6.9% as proved in Section 3.2. In addition to this reduction, neural networks provide drivers with useful information about when the optimal moment is to charge the battery, taking into account the renewable energy contribution.

(b) Eco-design
This algorithm contributes to eco-design as: (b.1) It allows reducing emissions between 8.96 and 23.55 kg per day (Section 4.2) of CO2 more than when EVs do not use the algorithm in this study; (b.2) This research shows that not only the number of EVs is important to increase the energy available but the way of choosing the engineers' locations. The algorithm proposed in this study allows establishing the optimal locations. Therefore, a design center could obtain more energy by using a specific number of EVs as described in Section 4.4; (b.3) The contribution of V2G to the building energy demand ranges between 0.5% and 1.3% when using the algorithm proposed in this study in a small design center (Section 3.2).
(c) V2G and Vehicle-to-home (V2H) compatibility Even though battery performance is not degraded due to charging and discharging processes, current policies keep the user from participating in V2G and V2H at the same time. The EV charging fee is higher than the savings obtained when using V2H. Consequently, V2G is not compatible with V2H. However, policies cannot be changed if the power of renewable energy installed is not When it comes to external variables, the authors consider that the main conclusions of this paper can be applied to other cities or design centers as: (a) No matter how much energy is accumulated in vehicles, this energy can be used, and it can contribute to the reduction of energy consumption by buildings of design centers; (b) V2H and V2G techniques are most unlikely to be compatible when EV energy consumption is high.
During this research, every day when the trips were going to be taken, the following tasks were carried out: (a) New GRU and NAR networks were implemented considering the data published by the French system operator the day before; (b) The predicted results by the GRU and NAR neural networks were compared with the results published by the French system operator considering the periods of the day when the trips were made. Figure 18 shows the performance of the GRU neural network obtained when it was implemented on a daily basis.
The aim of this procedure was to assure that the neural networks worked as expected.

Conclusions
Eco-design deals with several topics such as low-impact materials, energy efficiency, design for reuse and recycle, sustainable design standards and renewable energy, among others. However, energy efficiency should not only deal with manufacturing but the product design phase. This research is focused on how electric vehicles (EVs), vehicle-to-grid (V2G), eco-driving, eco-routing and eco-charging can contribute to energy savings during product design. Therefore, these factors play an essential role in eco-design. Taking into account the method and results obtained in this research, the following conclusions are drawn: (a) Energy savings The algorithm proposed in this research which uses energy consumption models properly tuned for eco-driving, eco-routing and eco-charging allows reducing energy consumption between 2.89% and 6.9% as proved in Section 3.2. In addition to this reduction, neural networks provide drivers with useful information about when the optimal moment is to charge the battery, taking into account the renewable energy contribution.
Energies 2020, 13, 3997 24 of 28 (b) Eco-design This algorithm contributes to eco-design as: (b.1) It allows reducing emissions between 8.96 and 23.55 kg per day (Section 4.2) of CO 2 more than when EVs do not use the algorithm in this study; (b.2) This research shows that not only the number of EVs is important to increase the energy available but the way of choosing the engineers' locations. The algorithm proposed in this study allows establishing the optimal locations. Therefore, a design center could obtain more energy by using a specific number of EVs as described in Section 4.4; (b.3) The contribution of V2G to the building energy demand ranges between 0.5% and 1.3% when using the algorithm proposed in this study in a small design center (Section 3.2).
(c) V2G and Vehicle-to-home (V2H) compatibility Even though battery performance is not degraded due to charging and discharging processes, current policies keep the user from participating in V2G and V2H at the same time. The EV charging fee is higher than the savings obtained when using V2H. Consequently, V2G is not compatible with V2H. However, policies cannot be changed if the power of renewable energy installed is not increased. Therefore, renewable energy mix vs. non-renewable energy is not high enough. Consequently, the policies to promote EVs are as important as increasing the power of the renewable energy installed (Sections 3.3 and 4.2) (d) Cybersecurity As detailed in the cybersecurity section, some policies to assure that an electronic control unit (ECU) is not violated imply that the electronic control unit is no longer available.
In this present study, 190 kg of waste is generated every year taking into account the electronic control units scrapped. Consequently, some techniques used for ECU cybersecurity are not eco-friendly, and more research should be done into this topic to better integrate cybersecurity and eco-design (Section 3.4).
The response variable stores the answer from the Here ® server.
Energies 2020, 13, x FOR PEER REVIEW 27 of 30 Figure A1. Pseudocode to obtain the desired Here ® answer.
The answer from Here ® is a json file. The reader can find a great deal of information such as the speed estimation taking into account traffic conditions (trafficSpeed parameter), time elapsed for a specific speed and consumption, etc. The reader can easily estimate the average consumption in kWh, the average speed, etc.  The answer from Here ® is a json file. The reader can find a great deal of information such as the speed estimation taking into account traffic conditions (trafficSpeed parameter), time elapsed for a specific speed and consumption, etc. The reader can easily estimate the average consumption in kWh, the average speed, etc.
Energies 2020, 13, x FOR PEER REVIEW 27 of 30 Figure A1. Pseudocode to obtain the desired Here ® answer.
The answer from Here ® is a json file. The reader can find a great deal of information such as the speed estimation taking into account traffic conditions (trafficSpeed parameter), time elapsed for a specific speed and consumption, etc. The reader can easily estimate the average consumption in kWh, the average speed, etc. Figure A2. Here ® answer. Json format. Figure A2. Here ® answer. Json format.