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 PDF

Info

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
Application number
CN202111597778.1A
Other languages
Chinese (zh)
Other versions
CN114282654B (en
Inventor
张嘉昊
罗平
乔森
李智慧
何中杰
吕强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Dianzi University
Original Assignee
Hangzhou Dianzi University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hangzhou Dianzi University filed Critical Hangzhou Dianzi University
Priority to CN202111597778.1A priority Critical patent/CN114282654B/en
Publication of CN114282654A publication Critical patent/CN114282654A/en
Application granted granted Critical
Publication of CN114282654B publication Critical patent/CN114282654B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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充电数据,为线上实时调度打下基础,也可以对一些非常见条件下的负荷进行快速预测,起到一定参考作用。

Figure 202111597778

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.

Figure 202111597778

Description

一种基于条件生成对抗网络的EV充电负荷计算方法An EV charging load calculation method based on conditional generative adversarial network

技术领域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).

Figure BDA0003431922180000021
Figure BDA0003431922180000021

其中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):

Figure BDA0003431922180000031
Figure BDA0003431922180000031

其中,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).

Figure BDA0003431922180000032
Figure BDA0003431922180000032

其中,

Figure BDA0003431922180000033
为修正后的时间;δi为耗时系数;其值和交通拥堵程度相关,可参考文献[2]中取值。in,
Figure BDA0003431922180000033
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):

Figure BDA0003431922180000034
Figure BDA0003431922180000034

其中,ei,j为EV从节点i行驶到节点j消耗的电量;ecf表示单位距离的动力能耗,li,j表示为i节点和j节点之间的距离;Pa为EV空调功率;

Figure BDA0003431922180000035
为根据式(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;
Figure BDA0003431922180000035
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):

Figure BDA0003431922180000036
Figure BDA0003431922180000036

其中,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).

Figure BDA0003431922180000041
Figure BDA0003431922180000041

其中,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).

Figure BDA0003431922180000051
Figure BDA0003431922180000051

其中,α为信度系数,其值越大问卷信度越高;K为问卷题目数;

Figure BDA0003431922180000052
为第i题调查结果方差;
Figure BDA0003431922180000053
为全部调查结果方差。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;
Figure BDA0003431922180000052
is the variance of the survey result of item i;
Figure BDA0003431922180000053
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).

Figure BDA0003431922180000054
Figure BDA0003431922180000054

其中,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).

Figure BDA0003431922180000061
Figure BDA0003431922180000061

其中,α为信度系数,其值越大问卷信度越高;K为问卷题目数;

Figure BDA0003431922180000062
为第i题调查结果方差;
Figure BDA0003431922180000063
为全部调查结果方差。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;
Figure BDA0003431922180000062
is the variance of the survey result of item i;
Figure BDA0003431922180000063
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).

Figure BDA0003431922180000064
Figure BDA0003431922180000064

其中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):

Figure BDA0003431922180000071
Figure BDA0003431922180000071

其中,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).

Figure BDA0003431922180000072
Figure BDA0003431922180000072

其中,

Figure BDA0003431922180000073
为修正后的时间;δi为耗时系数;其值和交通拥堵程度相关,可参考文献[2]中取值。in,
Figure BDA0003431922180000073
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):

Figure BDA0003431922180000074
Figure BDA0003431922180000074

其中,ei,j为EV从节点i行驶到节点j消耗的电量;ecf表示单位距离的动力能耗,li,j表示为i节点和j节点之间的距离;Pa为EV空调功率;

Figure BDA0003431922180000075
为根据式(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;
Figure BDA0003431922180000075
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):

Figure BDA0003431922180000076
Figure BDA0003431922180000076

其中,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).

Figure BDA0003431922180000081
Figure BDA0003431922180000081

其中,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).

Figure BDA0003431922180000091
Figure BDA0003431922180000091

其中,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)

1. An EV charging load calculation method for generating a countermeasure network based on conditions is characterized by specifically comprising the following steps of:
step 1, acquiring daily charging habits and preferences of a user according to a questionnaire; fitting the probability distribution of the electric quantity when the user has a charging demand and the electric quantity when each charging is finished, and fitting the probability density of the user for sequencing three schemes, namely, the shortest distance, the lowest charging cost and the least time spent;
step 2, constructing a user travel model
The EV is divided into two types of private car operation vehicles according to the use property; considering the larger operation difference of the private car and the operation vehicle, respectively using a travel chain and an OD probability matrix to describe the travel behaviors of the private car and the social operation vehicle;
the method comprises the following steps that a user moves to one or more places in a meeting in one day, a set formed by destination nodes of travel of the user is a travel chain, and the specific expression of representing the travel of a private car user by using the travel chain is shown as a formula (1):
D={d1,d2,...,dn,...} (1)
d is a destination set corresponding to the trip chain; n is a destination serial number; d1Is the starting point of the user trip;
dna stopping point in the travel process; the path set corresponding to the trip chain can be represented by equation (2):
P={p(d1,d2),p(d2,d3),...p(dn-1,dn),...} (2)
wherein P represents a path set corresponding to the trip chain, P (d)n-1,dn) Representing a path from the (n-1) th destination to the nth destination;
the OD probability matrix in each time period region can be regarded as the probability distribution of the travel destination of the operating vehicle, and the specific expression is shown as a formula (3);
Figure FDA0003431922170000011
wherein G (i) represents an OD probability matrix in the ith time period; r, w, b denote a residential area, a work area, and a business area, respectively; gw,rRepresenting the probability of a user traveling from a work area to a residential area;
step 3, constructing an EV energy consumption model;
when the road is smooth, the vehicle can run at a constant speed, and the time t is spent on the vehicle running from the node i to the node ji,jAs shown in formula (4):
Figure FDA0003431922170000021
where v is the road speed limit,/i,jRepresenting the distance from the node i to the node j; when the road is congested, the higher the congestion degree is, the slower the vehicle runs, and the running time is corrected by introducing a time-consuming coefficient, specifically shown as a formula (5);
Figure FDA0003431922170000022
wherein,
Figure FDA0003431922170000023
is the corrected time; deltaiIs a time consumption coefficient;
the EV energy consumption model is specifically shown as formula (6):
Figure FDA0003431922170000024
wherein e isi,jThe amount of power consumed for EV to travel from node i to node j; e.g. of the typecfRepresents the power consumption per unit distance,/i,jExpressed as the distance between the inode and the j node; paIs EV air-conditioning power;
Figure FDA0003431922170000025
e is the EV battery capacity for the travel time obtained according to equation (3);
step 4, constructing an EV charging model;
the EV charging period is specifically represented by equation (7):
Figure FDA0003431922170000026
wherein, soceThe electric quantity when the user finishes charging; socsThe electric quantity when the user starts to charge; p is charging power of the charging pile; eta is charging efficiency of the charging pile; t is teFor the extra stay time after the EV is fully charged, if the electric quantity is less than the maximum electric quantity when the user finishes charging, teIs 0;
step 5, constructing an EV user charging scheme selection model;
when a user needs to charge, the user is supposed to receive three charging schemes recommended by a scheduling center, specifically, the three charging schemes include a scheme that the time spent by the user is shortest, a scheme that a charging station is closest to the user, and a scheme that the charging cost of the user is lowest; after receiving the recommendation, the user selects one scheme to go to a charging station for charging, wherein the user's will for selecting the charging scheme is obtained in the form of a questionnaire;
step 6, forecasting EV charging load based on model driving
Calculating the space-time change of the electric quantity of the EV battery according to the user travel model in the step 2, wherein the energy consumption of the EV in the running process is obtained in the step 3; every time the user arrives at a destination, judging whether the user needs to be charged, and if so, selecting a charging scheme according to the step 5; if the charging is not needed, the user stays for a period of time and then goes to the next destination; finally, counting the number of the vehicles charged at the required moment, wherein the sum of the charging power of the vehicles is the charging load at the corresponding moment, and the charging load is shown as a formula (8);
Figure FDA0003431922170000031
wherein, loadiThe charging load at the moment i; n is the total number of the EV's being charged at the current moment; p is a radical ofjCharging power for the jth EV;
the EV charging load values under various conditions can be obtained by changing the influence factor data, and the data are used as 'real' data in the subsequent CGAN;
step 7, building a CGAN generator model
The generator consists of a depth LSTM layer and a full-connection layer, wherein the depth LSTM layer is provided with 4 hidden layers, each layer has 200 LSTM units, and the hidden layers use a ReLU function as an activation function; the input of the model is influence factor data and random noise; the influence factor data is the same influence factor data as the influence factor data obtained in the real data obtaining process in the step 6, and specifically comprises a date type, a lowest value of the temperature of the day air, a highest value of the temperature of the day air, a traffic jam coefficient, probability distribution of electric quantity of the EV when the user generates a charging demand, probability distribution of electric quantity of the EV when the user finishes charging, and probability density of user charging scheme selection sequencing; setting random noise as a random variable subject to Gaussian distribution; the output data of the model is predicted load data;
normalization processing is needed before the influence factor data are input;
step 8, constructing a CGAN discriminator model
The discriminator consists of a depth LSTM layer and a full-connection layer, wherein the depth LSTM layer is provided with 4 hidden layers, each layer has 200 LSTM units, and the hidden layers use a ReLU function as an activation function; using a sigmoid activation function to judge whether the connection layer is true or false; load data obtained based on model driving and predicted load data generated by a generator are respectively integrated with influence factors and input into a discriminator, and the discriminator outputs the probability that the input data is real data;
step 9, carrying out game training on the generator model and the discriminator model, and carrying out load prediction by using the trained generator model;
when the relation between the CGAN fully-learned data is balanced, the load data under different conditions can be obtained by adjusting the condition data input to the generator.
2. An EV charging load calculation method for a conditional generation countermeasure network according to claim 1, characterized in that: counting the daily charging habits and preferences of the user in the form of questionnaire survey; firstly, carrying out reliability inspection on the recovered questionnaire survey by using a clone Bach coefficient method, and screening out effective samples; the calculation of the cloned Bach coefficient is specifically shown as a formula (9);
Figure FDA0003431922170000041
wherein, alpha is a reliability coefficient, and the higher the value is, the higher the reliability of the questionnaire is; k is the number of questionnaire questions; si 2The variance of the investigation result of the ith question is shown; sx 2The variance of all the survey results.
3. An EV charging load calculation method for a conditional generation countermeasure network according to claim 1, characterized in that: before the influence factor data is input, normalization processing is required,
specifically, a maximum-minimum normalization method is adopted, which is specifically shown as a formula (10);
Figure FDA0003431922170000042
wherein, XnormThe normalized data is obtained; x is current data; xminIs the minimum value in the data; xmaxIs the maximum value in the data.
CN202111597778.1A 2021-12-24 2021-12-24 EV charging load calculation method based on condition generation countermeasure network Active CN114282654B (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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