CN114282654A - An EV charging load calculation method based on conditional generative adversarial network - Google Patents
An EV charging load calculation method based on conditional generative adversarial network Download PDFInfo
- Publication number
- CN114282654A CN114282654A CN202111597778.1A CN202111597778A CN114282654A CN 114282654 A CN114282654 A CN 114282654A CN 202111597778 A CN202111597778 A CN 202111597778A CN 114282654 A CN114282654 A CN 114282654A
- Authority
- CN
- China
- Prior art keywords
- charging
- user
- data
- load
- model
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000004364 calculation method Methods 0.000 title claims abstract description 10
- 238000000034 method Methods 0.000 claims abstract description 28
- 238000012549 training Methods 0.000 claims abstract description 9
- 230000008859 change Effects 0.000 claims abstract description 3
- 238000005265 energy consumption Methods 0.000 claims description 11
- 230000008569 process Effects 0.000 claims description 10
- 230000004913 activation Effects 0.000 claims description 9
- 239000011159 matrix material Substances 0.000 claims description 7
- 238000010606 normalization Methods 0.000 claims description 6
- 238000004378 air conditioning Methods 0.000 claims description 5
- NAWXUBYGYWOOIX-SFHVURJKSA-N (2s)-2-[[4-[2-(2,4-diaminoquinazolin-6-yl)ethyl]benzoyl]amino]-4-methylidenepentanedioic acid Chemical compound C1=CC2=NC(N)=NC(N)=C2C=C1CCC1=CC=C(C(=O)N[C@@H](CC(=C)C(O)=O)C(O)=O)C=C1 NAWXUBYGYWOOIX-SFHVURJKSA-N 0.000 claims description 3
- 230000006399 behavior Effects 0.000 claims description 3
- 238000012545 processing Methods 0.000 claims description 3
- IJJWOSAXNHWBPR-HUBLWGQQSA-N 5-[(3as,4s,6ar)-2-oxo-1,3,3a,4,6,6a-hexahydrothieno[3,4-d]imidazol-4-yl]-n-(6-hydrazinyl-6-oxohexyl)pentanamide Chemical compound N1C(=O)N[C@@H]2[C@H](CCCCC(=O)NCCCCCC(=O)NN)SC[C@@H]21 IJJWOSAXNHWBPR-HUBLWGQQSA-N 0.000 claims 2
- 238000012163 sequencing technique Methods 0.000 claims 2
- 238000007689 inspection Methods 0.000 claims 1
- 238000011835 investigation Methods 0.000 claims 1
- 238000012216 screening Methods 0.000 claims 1
- 230000000694 effects Effects 0.000 abstract description 3
- 230000006870 function Effects 0.000 description 10
- 238000013528 artificial neural network Methods 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 238000013135 deep learning Methods 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 230000010365 information processing Effects 0.000 description 2
- 230000002123 temporal effect Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000006403 short-term memory Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
Images
Landscapes
- Electric Propulsion And Braking For Vehicles (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
本发明公开了一种基于条件生成对抗网络的EV充电负荷计算方法,本发明考虑气温、交通拥堵、用户意愿建立精确的EV负荷预测模型,并将其预测结果作为真实数据。将气温、交通拥堵、用户意愿等负荷影响因素作为条件与噪声输入CGAN的生成模型并获取预测数据,然后将预测数据与真实数据分别输入CGAN的判别模型,通过CGAN的博弈训练,使生成模型以负荷影响因素为条件生成预测负荷数据。本发明提出的基于CGAN的方法,在网络训练完成后可以更改条件数据快速获得EV充电数据,为线上实时调度打下基础,也可以对一些非常见条件下的负荷进行快速预测,起到一定参考作用。
The invention discloses an EV charging load calculation method based on a conditional generative confrontation network. The present invention establishes an accurate EV load prediction model considering air temperature, traffic congestion and user wishes, and uses the prediction result as real data. The load influencing factors such as temperature, traffic congestion, and user willingness are input into the CGAN generation model as conditions and noises to obtain the prediction data, and then the prediction data and the real data are respectively input into the CGAN discriminant model, and through the game training of CGAN, the generation model can be Load Influencers generate predicted load data for conditions. The method based on CGAN proposed by the present invention can change the condition data to quickly obtain EV charging data after the network training is completed, lay the foundation for online real-time scheduling, and can also quickly predict the load under some unusual conditions, which serves as a reference effect.
Description
技术领域technical field
本发明涉及电动汽车充电服务技术,具体涉及一种基于条件生成对抗网络的EV充电负荷计算方法。The invention relates to an electric vehicle charging service technology, in particular to an EV charging load calculation method based on a conditional generation confrontation network.
背景技术Background technique
现有的EV充电负荷研究中,有研究人员使用BP神经网络、长短时记忆网络(longshort-term memory,LSTM)等对充电负荷进行预测并得不错的效果。但神经网络依赖大量历史数据,而EV处于发展初期,其充电负荷数据通常难以获得。因此使用神经网络和深度学习以数据驱动的方式直接预测充电负荷在现阶段难以推广。不少研究人员通过对EV出行路径、EV耗电、EV充电、交通拥堵等相关影响因素进行建模后以模型驱动的方式进行负荷预测。基于模型驱动的方法不需要EV历史充电数据,但融合“车-路-网-人”后的模型通常比较复杂,运算速度慢。针对以上问题本发明考虑将基于数据驱动的方法与基于模型驱动的方法相结合,通过基于模型驱动的方法获得精确的负荷数据,并将其作为深度学习网络的训练数据,虽然网络训练过程需要花费较长时间但最终训练好的网络可对负荷进行快速预测,为线上实时调度打下基础。In the existing EV charging load research, some researchers have used BP neural network, long short-term memory (LSTM), etc. to predict the charging load and achieved good results. However, neural networks rely on a large amount of historical data, and EVs are in the early stages of development, and their charging load data are often difficult to obtain. Therefore, using neural networks and deep learning to directly predict the charging load in a data-driven manner is difficult to generalize at this stage. Many researchers have carried out load forecasting in a model-driven manner by modeling related influencing factors such as EV travel paths, EV power consumption, EV charging, and traffic congestion. Model-driven methods do not require historical EV charging data, but the model after integrating “vehicle-road-network-human” is usually complex and computationally slow. In view of the above problems, the present invention considers combining the data-driven method with the model-driven method, obtains accurate load data through the model-driven method, and uses it as the training data of the deep learning network, although the network training process requires The network that has been trained for a long time can quickly predict the load and lay the foundation for online real-time scheduling.
发明内容SUMMARY OF THE INVENTION
本发明针对现有技术的不足,公开一种基于条件生成对抗网络 (conditionalgenerative adversarial network,CGAN)的EV充电负荷预测方法,将基于数据驱动的方法和基于模型驱动的方法相融合。本发明考虑气温、交通拥堵、用户意愿建立精确的EV负荷预测模型,并将其预测结果作为真实数据。将气温、交通拥堵、用户意愿等负荷影响因素作为条件与噪声输入CGAN的生成模型并获取预测数据,然后将预测数据与真实数据分别输入CGAN的判别模型,通过CGAN的博弈训练,使生成模型以负荷影响因素为条件生成预测负荷数据。本发明假定可以获得气温数据、道路拥堵系数、用户出行时间、用户出行目的地、用户目的地停留时间等必要息。所述方法具体按照以下步骤实施:Aiming at the deficiencies of the prior art, the present invention discloses an EV charging load prediction method based on a conditional generative adversarial network (CGAN), which combines a data-driven method and a model-driven method. The present invention establishes an accurate EV load prediction model considering air temperature, traffic congestion and user's will, and uses the prediction result as real data. Load factors such as temperature, traffic congestion, and user willingness are input into the CGAN generative model as conditions and noise to obtain prediction data, and then the predicted data and the real data are respectively input into the CGAN discriminant model, and through the game training of CGAN, the generative model is Load Influencers generate predicted load data for conditions. The present invention assumes that necessary information such as air temperature data, road congestion coefficient, user travel time, user travel destination, user destination stay time and the like can be obtained. The method is specifically implemented according to the following steps:
步骤1、根据调查问卷获取用户日常充电习惯、偏好;拟合用户有充电需求时的电量、每次充电结束时的电量的概率分布,拟合用户对于距离最近、充电成本最低、花费时间最少这三个方案排序的概率密度;Step 1. Obtain the user's daily charging habits and preferences according to the questionnaire; fit the probability distribution of the power when the user has charging needs and the power at the end of each charge, and fit the user's preference for the shortest distance, the lowest charging cost, and the least time spent. The probability density of the ordering of the three options;
步骤2、构建用户出行模型Step 2. Build a user travel model
EV按照使用性质分为私家车运营车辆两类;大部分私家车在一天之中绝大部分时间处于闲置状态,而运营车辆在一天中的大部分时间处于运行状态。另外,私家车的出行目的地相对于运营车辆更加单一、固定。考虑到私家车和运营车辆较大的运行差异,分别使用出行链和OD(Origin-Destination)概率矩阵描述私家车和社会运营车辆的出行行为。EVs are divided into two types of private car operating vehicles according to their nature of use; most private cars are idle most of the day, while operating vehicles are running most of the day. In addition, the travel destination of private cars is more single and fixed than that of operating vehicles. Considering the large operational differences between private cars and operational vehicles, travel chains and OD (Origin-Destination) probability matrices are used to describe the travel behaviors of private cars and socially-operated vehicles, respectively.
用户在一天之中会前往一个或多个地点活动,其出行的目的地节点构成的集合即为出行链,使用出行链表示私家车用户出行的具体表示如式(1)所示:A user will go to one or more places for activities in a day, and the set of destination nodes of his travel is a travel chain.
D={d1,d2,...,dn,...} (1)D={d 1 ,d 2 ,...,d n ,...} (1)
式中D为出行链对应的目的地集合;n为目的地序号;d1为用户出行的出发点; dn为出行过程中的停留点。出行链所对应的路径集合可由式(2)表示:In the formula, D is the destination set corresponding to the travel chain; n is the destination serial number; d 1 is the departure point of the user's travel; d n is the stop point in the travel process. The path set corresponding to the travel chain can be expressed by equation (2):
P={p(d1,d2),p(d2,d3),...p(dn-1,dn),...} (2)P={p(d 1 ,d 2 ),p(d 2 ,d 3 ),...p(d n-1 ,d n ),...} (2)
式中P表示出行链对应的路径集合,p(dn-1,dn)表示第n-1个目的地到第n个目的地间的路径。In the formula, P represents the path set corresponding to the travel chain, and p(d n-1 ,d n ) represents the path from the n-1th destination to the nth destination.
各时间段区域内OD概率矩阵即可看作运营车辆出行目的地的概率分布,其具体表示如式(3)所示。The OD probability matrix in each time period area can be regarded as the probability distribution of the travel destination of the operating vehicle, and its specific expression is shown in formula (3).
其中G(i)表示第i个时间段内的OD概率矩阵;r、w、b分别表示住宅区、工作区、商业区;gw,r表示用户从工作区前往住宅区的概率。为计算EV电池电量时空分布,还需要出行日期类型、初始电量、首次出行时间、出行目的地、目的地停留时间等必要信息,可参考文献[1]中取值。Among them, G(i) represents the OD probability matrix in the i-th time period; r, w, and b represent the residential area, work area, and commercial area, respectively; gw, r represent the probability of the user going from the work area to the residential area. In order to calculate the spatiotemporal distribution of EV battery power, necessary information such as travel date type, initial charge, first travel time, travel destination, and destination stay time are also required, which can be obtained in reference [1].
步骤3、构建EV能耗模型。Step 3. Build an EV energy consumption model.
当道路畅通时车辆可匀速行驶,车辆从i节点行驶到j节点花费时间ti,j如式(4)所示:When the road is clear, the vehicle can travel at a constant speed, and it takes the time t i,j for the vehicle to travel from node i to node j, as shown in formula (4):
其中,v为道路限制行驶速度,li,j表示i节点到j节点的距离;当道路发生拥堵时,拥堵程度越高,车辆行驶越缓慢,通过引入耗时系数修正行驶时间,具体如式(5)所示。Among them, v is the road limit driving speed, and l i, j represent the distance from node i to node j; when the road is congested, the higher the degree of congestion, the slower the vehicle travels, and the travel time is corrected by introducing a time-consuming coefficient, as shown in the formula (5).
其中,为修正后的时间;δi为耗时系数;其值和交通拥堵程度相关,可参考文献[2]中取值。in, is the corrected time; δ i is the time-consuming coefficient; its value is related to the degree of traffic congestion, and can be obtained in reference [2].
EV在运行过程中能耗主要由空调负荷和动力消耗两部分组成。其中空调负荷主要受到温度的影响,动力消耗主要受到EV行驶速度、车辆自重、车辆加速度等因素影响,EV能耗模型具体如式(6)所示:The energy consumption of EV is mainly composed of two parts: air conditioning load and power consumption. Among them, the air-conditioning load is mainly affected by temperature, and the power consumption is mainly affected by factors such as EV driving speed, vehicle weight, vehicle acceleration, etc. The EV energy consumption model is specifically shown in formula (6):
其中,ei,j为EV从节点i行驶到节点j消耗的电量;ecf表示单位距离的动力能耗,li,j表示为i节点和j节点之间的距离;Pa为EV空调功率;为根据式(3)求得的行驶时间,E为EV电池容量。Among them, e i,j is the amount of electricity consumed by EV traveling from node i to node j; e cf is the power consumption per unit distance, l i,j is the distance between node i and node j; P a is the EV air conditioner power; is the travel time obtained from equation (3), and E is the EV battery capacity.
步骤4、构建EV充电模型。Step 4. Build an EV charging model.
EV充电时长具体由式(7)表示:The EV charging time is specifically expressed by equation (7):
其中,soce为用户结束充电时的电量;socs为用户开始充电时的电量;p为充电桩充电功率;η为充电桩充电效率;te为EV充满电后额外的停留时间,如果用户结束充电时电量小于电量最大值,则te为0。Among them, soc e is the power when the user finishes charging; soc s is the power when the user starts charging; p is the charging power of the charging pile; η is the charging efficiency of the charging pile; te is the extra stay time after the EV is fully charged. At the end of charging, the electric quantity is less than the maximum electric quantity, then t e is 0.
步骤5、构建EV用户充电方案选择模型。Step 5. Build an EV user charging scheme selection model.
在用户需要充电时,假定用户可以收到调度中心推荐的三种充电方案,具体包括用户花费时间最短方案、充电站距离用户最近方案以及用户充电成本最低方案。用户收到推荐后选择其中一种方案前往充电站充电,其中用户对于充电方案的选择意愿通过调查问卷的形式获得。When the user needs to charge, it is assumed that the user can receive the three charging schemes recommended by the dispatch center, including the scheme with the shortest time spent by the user, the scheme with the charging station closest to the user, and the scheme with the lowest charging cost for the user. After receiving the recommendation, the user chooses one of the schemes to go to the charging station for charging, in which the user's willingness to choose the charging scheme is obtained in the form of a questionnaire.
步骤6、基于模型驱动的EV充电负荷预测Step 6. Model-driven EV charging load prediction
根据步骤2中的用户出行模型,计算EV电池电量的时空变化,其中EV在运行过程中的能耗由步骤3获得;每当用户到达一个目的地,判断其是否需要充电,如果需要充电根据步骤5选择充电方案;如果不需要充电,用户停留一段时间后前往下一个目的地。最后统计所需时刻的充电的车辆数量,其充电功率之和即为相应时刻的充电负荷,其具体如式(8)所示。According to the user travel model in step 2, calculate the temporal and spatial changes of EV battery power, in which the energy consumption of EV during operation is obtained in step 3; every time the user arrives at a destination, determine whether it needs to be charged, and if so, according to the step 5Choose a charging scheme; if no charging is required, the user will go to the next destination after staying for a while. Finally, the number of vehicles charged at the required time is counted, and the sum of the charging power is the charging load at the corresponding time, as shown in formula (8).
其中,loadi为i时刻的充电负荷;n为当前时刻正在充电的EV总数;pj为第j 辆EV的充电功率。Among them, load i is the charging load at time i; n is the total number of EVs being charged at the current time; p j is the charging power of the j-th EV.
更改气温、交通拥堵系数、日期类型等影响因素数据即可获取多种情况下的 EV充电负荷值并将这些数据作为后续CGAN中的“真实”数据。By changing the influencing factor data such as temperature, traffic congestion factor, date type, etc., the EV charging load value under various conditions can be obtained and used as the "real" data in the subsequent CGAN.
步骤7、构建CGAN生成器模型Step 7. Build the CGAN generator model
由于LSTM具备良好的时序信息处理能力,故选其构建CGAN生成器模型。生成器由一个深度LSTM层和一个全连接层组成,深度LSTM层具有4个隐藏层,每层有200个LSTM单位,隐藏层使用ReLU函数作为激活函数。模型的输入为影响因素数据和随机噪声。影响因素数据即为与步骤6中“真实”数据获取过程中相同的影响因素数据,具体包括日期类型(工作日或节假日)、当日气温最低值、当日气温最高值、交通拥堵系数、用户产生充电需求时EV电量的概率分布、用户结束充电时EV电量的概率分布、用户充电方案选择排序的概率密度。影响因素数据输入前还需要进行归一化处理。随机噪声设为服从高斯分布的随机变量。模型的输出数据即为预测的负荷数据。Because LSTM has good time series information processing ability, it is selected to build the CGAN generator model. The generator consists of a deep LSTM layer and a fully connected layer. The deep LSTM layer has 4 hidden layers, each with 200 LSTM units, and the hidden layer uses the ReLU function as the activation function. The input of the model is the influence factor data and random noise. The influencing factor data is the same influencing factor data as in the “real” data acquisition process in step 6, including the date type (weekdays or holidays), the lowest temperature value of the day, the highest temperature value of the day, traffic congestion factor, and user-generated charging. The probability distribution of EV power when demanded, the probability distribution of EV power when the user finishes charging, and the probability density of the user's charging scheme selection ranking. The influence factor data needs to be normalized before input. Random noise is set as a random variable obeying a Gaussian distribution. The output data of the model is the predicted load data.
步骤8、构建CGAN判别器模型Step 8. Build the CGAN discriminator model
判别器由一个深度LSTM层和一个全连接层组成,深度LSTM层具有4个隐藏层,每层有200个LSTM单位,隐藏层使用ReLU函数作为激活函数。在全连接层使用sigmoid激活函数进行真假判断。基于模型驱动获得负荷数据、生成器生成的预测负荷数据分别与影响因素整合输入判别器,判别器输出输入数据为真实数据的概率。The discriminator consists of a deep LSTM layer and a fully connected layer. The deep LSTM layer has 4 hidden layers, each with 200 LSTM units, and the hidden layer uses the ReLU function as the activation function. The sigmoid activation function is used in the fully connected layer to make true and false judgments. The load data obtained based on the model-driven and the predicted load data generated by the generator are respectively integrated with the influencing factors into the discriminator, and the discriminator outputs the probability that the input data is the real data.
步骤9、生成器模型和判别器模型进行博弈训练,使用训练好的生成器模型进行负荷预测。Step 9: The generator model and the discriminator model are used for game training, and the trained generator model is used for load prediction.
当CGAN充分学习数据间关系达到平衡后,调整输入到生成器的条件数据即可获得不同条件下的负荷数据。When the CGAN fully learns the relationship between the data and reaches a balance, the load data under different conditions can be obtained by adjusting the conditional data input to the generator.
作为优选,以问卷调查的形式统计用户日常充电习惯、偏好。首先使用克隆巴赫系数法对回收的问卷调查进行信度检验,筛选出有效样本。克隆巴赫系数计算具体如式(9)所示。Preferably, the user's daily charging habits and preferences are counted in the form of a questionnaire. First, the Cronbach's coefficient method was used to test the reliability of the returned questionnaires, and valid samples were selected. The specific calculation of the Cronbach coefficient is shown in formula (9).
其中,α为信度系数,其值越大问卷信度越高;K为问卷题目数;为第i题调查结果方差;为全部调查结果方差。Among them, α is the reliability coefficient, the larger the value, the higher the reliability of the questionnaire; K is the number of questions in the questionnaire; is the variance of the survey result of item i; is the variance of all survey results.
作为优选,所述的影响因素数据输入前还需要进行归一化处理,Preferably, the influence factor data needs to be normalized before input.
具体采用最大-最小值归一化方法,其具体如式(10)所示。Specifically, the maximum-minimum normalization method is adopted, which is shown in formula (10).
其中,Xnorm为归一化后的数据;X为当前数据;Xmin为数据中的最小值;Xmax为数据中的最大值。Among them, X norm is the normalized data; X is the current data; X min is the minimum value in the data; X max is the maximum value in the data.
本发明方法具有的优点及有益结果为:The advantages and beneficial results that the method of the present invention has are:
1.本发明考虑气温、交通、用户意愿建立了更加精确的基于模型驱动的EV充电负荷计算模型。1. The present invention establishes a more accurate model-driven EV charging load calculation model in consideration of temperature, traffic, and user wishes.
2.本发明提出的将基于模型驱动和基于数据驱动相融合的方法,可以有效发挥两种方法的各自优势,适用于当前EV充电负荷难获得的情况。2. The method of combining model-based driving and data-based driving proposed by the present invention can effectively utilize the respective advantages of the two methods, and is suitable for the situation that the current EV charging load is difficult to obtain.
3.本发明提出的基于CGAN的方法,在网络训练完成后可以更改条件数据快速获得EV充电数据,为线上实时调度打下基础,也可以对一些非常见条件下的负荷进行快速预测,起到一定参考作用。3. The CGAN-based method proposed by the present invention can change the condition data to quickly obtain EV charging data after the network training is completed, lay the foundation for online real-time scheduling, and can also quickly predict the load under some uncommon conditions. Must be a reference.
附图说明Description of drawings
图1基于模型驱动的EV充电负荷预测流程图;Fig. 1 Flow chart of model-driven EV charging load prediction;
图2CGAN生成器模型结构图;Figure 2 CGAN generator model structure diagram;
图3基于CGAN的EV充电负荷预测流程图;Fig. 3 Flow chart of EV charging load prediction based on CGAN;
具体实施方式Detailed ways
步骤1、根据调查问卷获取用户日常充电习惯、偏好;拟合用户有充电需求时的电量、每次充电结束时的电量的概率分布,拟合用户对于距离最近、充电成本最低、花费时间最少这三个方案排序的概率密度;Step 1. Obtain the user's daily charging habits and preferences according to the questionnaire; fit the probability distribution of the power when the user has charging needs and the power at the end of each charge, and fit the user's preference for the shortest distance, the lowest charging cost, and the least time spent. The probability density of the ordering of the three options;
以问卷调查的形式统计用户日常充电习惯、偏好。首先使用克隆巴赫系数法对回收的问卷调查进行信度检验,筛选出有效样本。克隆巴赫系数计算具体如式 (1)所示。The user's daily charging habits and preferences are counted in the form of questionnaires. First, the Cronbach's coefficient method was used to test the reliability of the returned questionnaires, and valid samples were selected. The specific calculation of the Cronbach coefficient is shown in formula (1).
其中,α为信度系数,其值越大问卷信度越高;K为问卷题目数;为第i题调查结果方差;为全部调查结果方差。Among them, α is the reliability coefficient, the larger the value, the higher the reliability of the questionnaire; K is the number of questions in the questionnaire; is the variance of the survey result of item i; is the variance of all survey results.
步骤2、构建用户出行模型Step 2. Build a user travel model
EV按照使用性质分为私家车运营车辆两类;大部分私家车在一天之中绝大部分时间处于闲置状态,而运营车辆在一天中的大部分时间处于运行状态。另外,私家车的出行目的地相对于运营车辆更加单一、固定。考虑到私家车和运营车辆较大的运行差异,分别使用出行链和OD(Origin-Destination)概率矩阵描述私家车和社会运营车辆的出行行为。EVs are divided into two types of private car operating vehicles according to their nature of use; most private cars are idle most of the day, while operating vehicles are running most of the day. In addition, the travel destination of private cars is more single and fixed than that of operating vehicles. Considering the large operational differences between private cars and operational vehicles, travel chains and OD (Origin-Destination) probability matrices are used to describe the travel behaviors of private cars and socially-operated vehicles, respectively.
用户在一天之中会前往一个或多个地点活动,其出行的目的地节点构成的集合即为出行链,使用出行链表示私家车用户出行的具体表示如式(2)所示:The user will go to one or more places for activities in one day, and the set of destination nodes of his travel is the travel chain.
D={d1,d2,...,dn,...} (2)D={d 1 ,d 2 ,...,d n ,...} (2)
式中D为出行链对应的目的地集合;n为目的地序号;d1为用户出行的出发点; dn为出行过程中的停留点。出行链所对应的路径集合可由式(3)表示:In the formula, D is the destination set corresponding to the travel chain; n is the destination serial number; d 1 is the departure point of the user's travel; d n is the stop point in the travel process. The path set corresponding to the travel chain can be expressed by equation (3):
P={p(d1,d2),p(d2,d3),...p(dn-1,dn),...} (3)P={p(d 1 ,d 2 ),p(d 2 ,d 3 ),...p(d n-1 ,d n ),...} (3)
式中P表示出行链对应的路径集合,p(dn-1,dn)表示第n-1个目的地到第n个目的地间的路径。In the formula, P represents the path set corresponding to the travel chain, and p(d n-1 ,d n ) represents the path from the n-1th destination to the nth destination.
各时间段区域内OD概率矩阵即可看作运营车辆出行目的地的概率分布,其具体表示如式(4)所示。The OD probability matrix in each time period area can be regarded as the probability distribution of the travel destination of the operating vehicle, and its specific expression is shown in formula (4).
其中G(i)表示第i个时间段内的OD概率矩阵;r、w、b分别表示住宅区、工作区、商业区;gw,r表示用户从工作区前往住宅区的概率。为计算EV电池电量时空分布,还需要出行日期类型、初始电量、首次出行时间、出行目的地、目的地停留时间等必要信息,可参考文献[1]中取值。where G(i) represents the OD probability matrix in the i-th time period; r, w, and b represent the residential area, work area, and commercial area, respectively; gw, r represent the probability of the user going from the work area to the residential area. In order to calculate the spatiotemporal distribution of EV battery power, necessary information such as travel date type, initial power level, first travel time, travel destination, and destination stay time are also required, which can be obtained in reference [1].
步骤3、构建EV能耗模型。Step 3. Build an EV energy consumption model.
当道路畅通时车辆可匀速行驶,车辆从i节点行驶到j节点花费时间ti,j如式(5)所示:When the road is clear, the vehicle can travel at a constant speed, and the time t i,j for the vehicle to travel from node i to node j is shown in formula (5):
其中,v为道路限制行驶速度,li,j表示i节点到j节点的距离;当道路发生拥堵时,拥堵程度越高,车辆行驶越缓慢,通过引入耗时系数修正行驶时间,具体如式(6)所示。Among them, v is the road limit driving speed, and l i, j represent the distance from node i to node j; when the road is congested, the higher the degree of congestion, the slower the vehicle travels, and the travel time is corrected by introducing a time-consuming coefficient, as shown in the formula (6).
其中,为修正后的时间;δi为耗时系数;其值和交通拥堵程度相关,可参考文献[2]中取值。in, is the corrected time; δ i is the time-consuming coefficient; its value is related to the degree of traffic congestion, and can be obtained in reference [2].
EV在运行过程中能耗主要由空调负荷和动力消耗两部分组成。其中空调负荷主要受到温度的影响,动力消耗主要受到EV行驶速度、车辆自重、车辆加速度等因素影响,EV能耗模型具体如式(7)所示:The energy consumption of EV is mainly composed of two parts: air conditioning load and power consumption. Among them, the air-conditioning load is mainly affected by temperature, and the power consumption is mainly affected by factors such as EV driving speed, vehicle weight, vehicle acceleration, etc. The EV energy consumption model is specifically shown in formula (7):
其中,ei,j为EV从节点i行驶到节点j消耗的电量;ecf表示单位距离的动力能耗,li,j表示为i节点和j节点之间的距离;Pa为EV空调功率;为根据式(3)求得的行驶时间,E为EV电池容量。Among them, e i,j is the amount of electricity consumed by EV traveling from node i to node j; e cf is the power consumption per unit distance, l i,j is the distance between node i and node j; P a is the EV air conditioner power; is the travel time obtained from equation (3), and E is the EV battery capacity.
步骤4、构建EV充电模型。Step 4. Build an EV charging model.
EV充电时长具体由式(8)表示:The EV charging time is specifically expressed by equation (8):
其中,soce为用户结束充电时的电量;socs为用户开始充电时的电量;p为充电桩充电功率;η为充电桩充电效率;te为EV充满电后额外的停留时间,如果用户结束充电时电量小于电量最大值,则te为0。Among them, soc e is the power when the user finishes charging; soc s is the power when the user starts charging; p is the charging power of the charging pile; η is the charging efficiency of the charging pile; te is the extra stay time after the EV is fully charged. At the end of charging, the electric quantity is less than the maximum electric quantity, then t e is 0.
步骤5、构建EV用户充电方案选择模型。Step 5. Build an EV user charging scheme selection model.
在用户需要充电时,假定用户可以收到调度中心推荐的三种充电方案,具体包括用户花费时间最短方案、充电站距离用户最近方案以及用户充电成本最低方案。用户收到推荐后选择其中一种方案前往充电站充电,其中用户对于充电方案的选择意愿通过调查问卷的形式获得。When the user needs to charge, it is assumed that the user can receive the three charging schemes recommended by the dispatch center, including the scheme with the shortest time spent by the user, the scheme with the charging station closest to the user, and the scheme with the lowest charging cost for the user. After receiving the recommendation, the user chooses one of the schemes to go to the charging station for charging, in which the user's willingness to choose the charging scheme is obtained in the form of a questionnaire.
步骤6、基于模型驱动的EV充电负荷预测Step 6. Model-driven EV charging load prediction
基于模型驱动的EV充电负荷预测具体过程如图1所示。根据步骤2中的用户出行模型,计算EV电池电量的时空变化,其中EV在运行过程中的能耗由步骤3 获得;每当用户到达一个目的地,判断其是否需要充电,如果需要充电根据步骤 5选择充电方案;如果不需要充电,用户停留一段时间后前往下一个目的地。最后统计所需时刻的充电的车辆数量,其充电功率之和即为相应时刻的充电负荷,其具体如式(9)所示。The specific process of model-driven EV charging load prediction is shown in Figure 1. According to the user travel model in step 2, calculate the temporal and spatial changes of EV battery power, in which the energy consumption of EV during operation is obtained in step 3; whenever the user arrives at a destination, determine whether it needs to be charged, and if so, according to the step 5Choose a charging scheme; if no charging is required, the user will go to the next destination after staying for a while. Finally, the number of vehicles charged at the required time is counted, and the sum of the charging power is the charging load at the corresponding time, as shown in formula (9).
其中,loadi为i时刻的充电负荷;n为当前时刻正在充电的EV总数;pj为第j 辆EV的充电功率。Among them, load i is the charging load at time i; n is the total number of EVs being charged at the current time; p j is the charging power of the j-th EV.
更改气温、交通拥堵系数、日期类型等影响因素数据即可获取多种情况下的 EV充电负荷值并将这些数据作为后续CGAN中的“真实”数据。By changing the influencing factor data such as temperature, traffic congestion factor, date type, etc., the EV charging load value under various conditions can be obtained and used as the "real" data in the subsequent CGAN.
步骤7、构建CGAN生成器模型Step 7. Build the CGAN generator model
由于LSTM具备良好的时序信息处理能力,故选其构建CGAN生成器模型。其具体结构如图2所示。生成器由一个深度LSTM层和一个全连接层组成,深度LSTM 层具有4个隐藏层,每层有200个LSTM单位,隐藏层使用ReLU函数作为激活函数。模型的输入为影响因素数据和随机噪声。影响因素数据即为与步骤6中“真实”数据获取过程中相同的影响因素数据,具体包括日期类型(工作日或节假日)、当日气温最低值、当日气温最高值、交通拥堵系数、用户产生充电需求时EV电量的概率分布、用户结束充电时EV电量的概率分布、用户充电方案选择排序的概率密度。随机噪声设为服从高斯分布的随机变量。模型的输出数据即为预测的负荷数据。Because LSTM has good time series information processing ability, it is selected to build the CGAN generator model. Its specific structure is shown in Figure 2. The generator consists of a deep LSTM layer and a fully connected layer. The deep LSTM layer has 4 hidden layers, each with 200 LSTM units, and the hidden layer uses the ReLU function as the activation function. The input of the model is the influence factor data and random noise. The influencing factor data is the same influencing factor data as in the “real” data acquisition process in step 6, including the date type (weekdays or holidays), the lowest temperature value of the day, the highest temperature value of the day, traffic congestion factor, and user-generated charging. The probability distribution of EV power when demanded, the probability distribution of EV power when the user finishes charging, and the probability density of the user's charging scheme selection ranking. Random noise is set as a random variable obeying a Gaussian distribution. The output data of the model is the predicted load data.
影响因素数据输入前还需要进行归一化处理;具体采用最大-最小值归一化方法,其具体如式(10)所示。Normalization processing is also required before the input of the influencing factor data; specifically, the maximum-minimum normalization method is adopted, which is shown in formula (10).
其中,Xnorm为归一化后的数据;X为当前数据;Xmin为数据中的最小值;Xmax为数据中的最大值。Among them, X norm is the normalized data; X is the current data; X min is the minimum value in the data; X max is the maximum value in the data.
步骤8、构建CGAN判别器模型Step 8. Build the CGAN discriminator model
判别器由一个深度LSTM层和一个全连接层组成,深度LSTM层具有4个隐藏层,每层有200个LSTM单位,隐藏层使用ReLU函数作为激活函数。在全连接层使用sigmoid激活函数进行真假判断。基于模型驱动获得负荷数据、生成器生成的预测负荷数据分别与影响因素整合输入判别器,判别器输出输入数据为真实数据的概率。The discriminator consists of a deep LSTM layer and a fully connected layer. The deep LSTM layer has 4 hidden layers, each with 200 LSTM units, and the hidden layer uses the ReLU function as the activation function. The sigmoid activation function is used in the fully connected layer to make true and false judgments. The load data obtained based on the model-driven and the predicted load data generated by the generator are respectively integrated with the influencing factors into the discriminator, and the discriminator outputs the probability that the input data is the real data.
步骤9、生成器模型和判别器模型进行博弈训练,使用训练好的生成器模型进行负荷预测。Step 9: The generator model and the discriminator model are used for game training, and the trained generator model is used for load prediction.
当CGAN充分学习数据间关系达到平衡后,调整输入到生成器的条件数据即可获得不同条件下的负荷数据。基于CGAN的EV充电负荷预测流程如图3所示。When the CGAN fully learns the relationship between the data and reaches a balance, the load data under different conditions can be obtained by adjusting the conditional data input to the generator. The process of EV charging load prediction based on CGAN is shown in Figure 3.
参考文献references
[1]龙雪梅,杨军,吴赋章,等.考虑路网-电网交互和用户心理的电动汽车充电负荷预测[J].电力系统自动化,2020,44(14):86-93.[1] Long Xuemei, Yang Jun, Wu Fuzhang, et al. Electric vehicle charging load prediction considering road network-grid interaction and user psychology [J]. Automation of Electric Power Systems, 2020, 44(14): 86-93.
[2]Yan J,Zhang J,Liu Y,et al.EV charging load simulation andforecasting considering traffic jam and weather to support the integration ofrenewables and EVs[J].Renewable Energy,2020,159: 623-641.[2] Yan J, Zhang J, Liu Y, et al. EV charging load simulation and forecasting considering traffic jam and weather to support the integration of renewables and EVs [J]. Renewable Energy, 2020, 159: 623-641.
Claims (3)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111597778.1A CN114282654B (en) | 2021-12-24 | 2021-12-24 | EV charging load calculation method based on condition generation countermeasure network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111597778.1A CN114282654B (en) | 2021-12-24 | 2021-12-24 | EV charging load calculation method based on condition generation countermeasure network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114282654A true CN114282654A (en) | 2022-04-05 |
CN114282654B CN114282654B (en) | 2024-09-27 |
Family
ID=80874848
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111597778.1A Active CN114282654B (en) | 2021-12-24 | 2021-12-24 | EV charging load calculation method based on condition generation countermeasure network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114282654B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115758131A (en) * | 2022-10-18 | 2023-03-07 | 国网电力科学研究院有限公司 | Wind power scene data generation method, device and system for generating countermeasure network based on correction condition |
CN116660756A (en) * | 2023-06-28 | 2023-08-29 | 西安理工大学 | Method for generating battery capacity decay curve based on conditional generative adversarial network |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110728396A (en) * | 2019-09-25 | 2020-01-24 | 国网山西省电力公司经济技术研究院 | A comprehensive modeling method for electric vehicle charging load considering space-time distribution |
US20200353835A1 (en) * | 2019-05-09 | 2020-11-12 | King Fahd University Of Petroleum And Minerals | Communication-free charge controller for electric vehicles |
CN113255135A (en) * | 2021-05-28 | 2021-08-13 | 西安交通大学 | Electric automobile rapid charging load simulation method based on traffic balance |
-
2021
- 2021-12-24 CN CN202111597778.1A patent/CN114282654B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20200353835A1 (en) * | 2019-05-09 | 2020-11-12 | King Fahd University Of Petroleum And Minerals | Communication-free charge controller for electric vehicles |
CN110728396A (en) * | 2019-09-25 | 2020-01-24 | 国网山西省电力公司经济技术研究院 | A comprehensive modeling method for electric vehicle charging load considering space-time distribution |
CN113255135A (en) * | 2021-05-28 | 2021-08-13 | 西安交通大学 | Electric automobile rapid charging load simulation method based on traffic balance |
Non-Patent Citations (2)
Title |
---|
XINGZHEN BAI等: ""Electric vehicle charging station planning with dynamatic predection of elastic charging demand: a hybrid particle swarm optimization algorithm"", 《COMPLEX & INTELLIGENT SYSTEMS》, 10 November 2021 (2021-11-10), pages 1035 - 1046 * |
罗平: ""考虑用户出行特性的电动汽车充电负荷预测"", 《华中科技大学学报》, 30 November 2020 (2020-11-30), pages 1 - 7 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115758131A (en) * | 2022-10-18 | 2023-03-07 | 国网电力科学研究院有限公司 | Wind power scene data generation method, device and system for generating countermeasure network based on correction condition |
CN116660756A (en) * | 2023-06-28 | 2023-08-29 | 西安理工大学 | Method for generating battery capacity decay curve based on conditional generative adversarial network |
Also Published As
Publication number | Publication date |
---|---|
CN114282654B (en) | 2024-09-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109034648B (en) | Electric vehicle cluster demand response potential evaluation method | |
CN110728396B (en) | Electric vehicle charging load comprehensive modeling method considering space-time distribution | |
CN107392400B (en) | Prediction method of EV charging load spatiotemporal distribution considering real-time traffic and temperature | |
CN102044149B (en) | City bus operation coordinating method and device based on time variant passenger flows | |
Zhang et al. | Data-driven cooling, heating and electrical load prediction for building integrated with electric vehicles considering occupant travel behavior | |
CN115063184B (en) | Electric vehicle charging demand modeling method, system, medium, equipment and terminal | |
Król et al. | Application of a genetic algorithm with a fuzzy objective function for optimized siting of electric vehicle charging devices in urban road networks | |
Cui et al. | Dynamic pricing for fast charging stations with deep reinforcement learning | |
CN110991856B (en) | An analysis method of electric vehicle charging demand considering bounded rationality of users | |
Guo et al. | Rebalancing and charging scheduling with price incentives for car sharing systems | |
CN118410902B (en) | Electric vehicle charging demand space-time distribution simulation and scheduling optimization method considering vehicle owner travel rule | |
CN117196266B (en) | Unmanned shared automobile area scheduling method and device based on neural network | |
CN110543967B (en) | Electric vehicle waiting time distribution short-time prediction method in network connection charging station environment | |
CN112613731A (en) | Energy efficiency evaluation system and method for electric vehicle charging station based on complex network theory | |
CN117455019A (en) | A dynamic matching method for online car-hailing and ride-sharing based on travel time prediction | |
CN115660501A (en) | Electric vehicle charging load adjustable margin evaluation method | |
CN118968814A (en) | Intelligent parking charging pile positioning method and system combined with solar energy | |
CN114118515A (en) | Method and system for determining electric vehicle charging station fusing traffic network | |
Falco et al. | Agent-based modelling to evaluate the impact of plug-in electric vehicles on distribution systems | |
Liu et al. | A short-term traffic flow forecasting method and its applications | |
CN114282654A (en) | An EV charging load calculation method based on conditional generative adversarial network | |
CN116050742A (en) | Intelligent scheduling configuration method and system for shared vehicle operation and maintenance personnel | |
CN116985650A (en) | Ordered charging method for Topsis electric vehicle based on combination weighting | |
Mishra et al. | Exploratory data analysis for electric vehicle driving range prediction: Insights and evaluation | |
CN119026300A (en) | A method for site selection and capacity determination of photovoltaic charging stations considering dynamic distribution of charging load |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |