CN114537197A - V2V charging optimal matching method and system based on weighted bipartite graph - Google Patents

V2V charging optimal matching method and system based on weighted bipartite graph Download PDF

Info

Publication number
CN114537197A
CN114537197A CN202210247085.8A CN202210247085A CN114537197A CN 114537197 A CN114537197 A CN 114537197A CN 202210247085 A CN202210247085 A CN 202210247085A CN 114537197 A CN114537197 A CN 114537197A
Authority
CN
China
Prior art keywords
charging
vehicle
discharging
matching
bipartite graph
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
CN202210247085.8A
Other languages
Chinese (zh)
Other versions
CN114537197B (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.)
Nanjing University of Science and Technology
Original Assignee
Nanjing University of Science and Technology
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 Nanjing University of Science and Technology filed Critical Nanjing University of Science and Technology
Priority to CN202210247085.8A priority Critical patent/CN114537197B/en
Publication of CN114537197A publication Critical patent/CN114537197A/en
Application granted granted Critical
Publication of CN114537197B publication Critical patent/CN114537197B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60LPROPULSION OF ELECTRICALLY-PROPELLED VEHICLES; SUPPLYING ELECTRIC POWER FOR AUXILIARY EQUIPMENT OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRODYNAMIC BRAKE SYSTEMS FOR VEHICLES IN GENERAL; MAGNETIC SUSPENSION OR LEVITATION FOR VEHICLES; MONITORING OPERATING VARIABLES OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRIC SAFETY DEVICES FOR ELECTRICALLY-PROPELLED VEHICLES
    • B60L53/00Methods of charging batteries, specially adapted for electric vehicles; Charging stations or on-board charging equipment therefor; Exchange of energy storage elements in electric vehicles
    • B60L53/60Monitoring or controlling charging stations
    • B60L53/62Monitoring or controlling charging stations in response to charging parameters, e.g. current, voltage or electrical charge
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60LPROPULSION OF ELECTRICALLY-PROPELLED VEHICLES; SUPPLYING ELECTRIC POWER FOR AUXILIARY EQUIPMENT OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRODYNAMIC BRAKE SYSTEMS FOR VEHICLES IN GENERAL; MAGNETIC SUSPENSION OR LEVITATION FOR VEHICLES; MONITORING OPERATING VARIABLES OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRIC SAFETY DEVICES FOR ELECTRICALLY-PROPELLED VEHICLES
    • B60L53/00Methods of charging batteries, specially adapted for electric vehicles; Charging stations or on-board charging equipment therefor; Exchange of energy storage elements in electric vehicles
    • B60L53/60Monitoring or controlling charging stations
    • B60L53/66Data transfer between charging stations and vehicles
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/007Regulation of charging or discharging current or voltage
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T90/00Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02T90/10Technologies relating to charging of electric vehicles
    • Y02T90/16Information or communication technologies improving the operation of electric vehicles

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Transportation (AREA)
  • Mechanical Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Electric Propulsion And Braking For Vehicles (AREA)

Abstract

The invention discloses a V2V charging optimal matching method and a system based on weighted bipartite graph, wherein the method comprises the following steps: acquiring information such as electric quantity required by a charging vehicle, electric quantity provided by a discharging vehicle, estimated arrival time of the charging and discharging vehicle and the like; calculating the matching degree between charging and discharging vehicles; constructing a bipartite graph based on the matching degree of the charge-discharge vehicle; a matching mechanism based on a KM (Kuhn-Munkres) algorithm is proposed to obtain the best matching result of the weighted bipartite graph. Compared with the traditional matching method, the algorithm provided by the invention comprehensively considers the influence factors such as the electric quantity required by the charging vehicle, the electric quantity provided by the discharging vehicle, the charging waiting time and the like, can realize the optimal matching of the charging and discharging vehicles, and improves the charging experience of users; in addition, the algorithm has the advantages of small calculation complexity, high robustness, good expansibility, high convergence speed and the like, can quickly feed back the matching result to the user, and can efficiently adapt to large-scale charging and discharging matching demand scenes.

Description

一种基于带权二分图的V2V充电最优匹配方法及系统An optimal matching method and system for V2V charging based on weighted bipartite graph

技术领域technical field

本发明属于车对车充电领域,具体涉及一种基于带权二分图的V2V充电最优匹配方法及系统。The invention belongs to the field of vehicle-to-vehicle charging, and in particular relates to an optimal matching method and system for V2V charging based on a weighted bipartite graph.

背景技术Background technique

随着能源短缺和环境污染问题的日益加重,新能源汽车由于其零排放、低噪音、高效能源转换等优点,受到越来越多的关注,逐渐成为当前汽车行业发展的主流趋势。With the increasing problems of energy shortage and environmental pollution, new energy vehicles have received more and more attention due to their advantages of zero emission, low noise, and efficient energy conversion, and have gradually become the mainstream trend of the development of the current automobile industry.

新能源汽车的充电方式分为电网对车辆(Grid-to-Vehicle,G2V)充电、车辆对车辆(Vehicle-to-Vehicle,V2V)充电和更换电池(Battery Swap,BS)。G2V充电机制难以适应新能源汽车产业的蓬勃发展,不能有效满足数目庞大的新能源汽车充电需求。BS机制存在更换电池质量参差不齐等各种问题,难以得到大规模的普及。V2V充电机制可脱离电网接入开展充电服务,且充电方式灵活便捷,无需昂贵的充电设施支持,已引起广泛关注。The charging methods of new energy vehicles are divided into grid-to-vehicle (G2V) charging, vehicle-to-vehicle (V2V) charging and battery replacement (Battery Swap, BS). The G2V charging mechanism is difficult to adapt to the vigorous development of the new energy vehicle industry, and cannot effectively meet the charging needs of a large number of new energy vehicles. The BS mechanism has various problems such as uneven quality of replacement batteries, and it is difficult to be popularized on a large scale. The V2V charging mechanism can be disconnected from the grid to carry out charging services, and the charging method is flexible and convenient, without the support of expensive charging facilities, which has attracted widespread attention.

在V2V充电中,充放电车辆的匹配非常重要,但是,在现有方法中,没有考虑充放电车辆的到达时间间隔等信息,导致充放电车辆无法完成最佳配对,而且随着停车点充放电车辆的增加,匹配所需要的时间较长,用户的体验较差。因此研究一种高效的V2V充电最优匹配方法具有十分重要的意义。In V2V charging, the matching of charging and discharging vehicles is very important. However, in the existing method, the information such as the arrival time interval of charging and discharging vehicles is not considered, which leads to the failure of charging and discharging vehicles to complete the optimal pairing, and as the charging and discharging of the parking point occurs As the number of vehicles increases, the time required for matching is longer, and the user experience is poor. Therefore, it is of great significance to study an efficient optimal matching method for V2V charging.

发明内容SUMMARY OF THE INVENTION

本发明的目的在于提出一种基于带权二分图的V2V充电最优匹配方法及系统,解决上述背景技术中提到的解决用户的体验较差和匹配时间过长等问题,使车辆之间尽可能多地交换能量,最小化充放电车辆的到达时间间隔,使充电车辆的需求能量与放电车辆的供给能量之间的差值最小化。The purpose of the present invention is to propose an optimal matching method and system for V2V charging based on a weighted bipartite graph, so as to solve the problems of poor user experience and too long matching time mentioned in the above background technology, so as to make the best possible connection between vehicles. It is possible to exchange as much energy as possible, to minimize the inter-arrival time between the charged and discharged vehicles, and to minimize the difference between the demanded energy of the charged vehicle and the supplied energy of the discharged vehicle.

实现本发明目的的技术解决方案为:The technical solution that realizes the object of the present invention is:

一种基于带权二分图的V2V充电最优匹配方法,包括以下步骤:An optimal matching method for V2V charging based on a weighted bipartite graph, comprising the following steps:

S1,获取充电车辆需求的电量、放电车辆提供的电量和充放电车辆预计到达的时间;S1, obtain the power required by the charging vehicle, the power provided by the discharging vehicle, and the expected arrival time of the charging and discharging vehicle;

S2,确定充放电车辆之间的匹配度;S2, determine the matching degree between the charging and discharging vehicles;

S3,构建以充放电车辆的匹配度为权重的带权二分图;S3, construct a weighted bipartite graph with the matching degree of the charging and discharging vehicle as the weight;

S4,通过KM算法确定带权二分图的最佳匹配结果。S4, determine the best matching result of the weighted bipartite graph through the KM algorithm.

一种基于带权二分图的V2V充电最优匹配系统,包括充电信息采集模块、匹配度计算模块、带权二分图构建模块和匹配模块;其中:A V2V charging optimal matching system based on a weighted bipartite graph, comprising a charging information collection module, a matching degree calculation module, a weighted bipartite graph building module and a matching module; wherein:

所述充电信息采集模块用于获取充电车辆需求的电量、放电车辆提供的电量和充放电车辆预计到达的时间;The charging information collection module is used to acquire the electricity demanded by the charging vehicle, the electricity supplied by the discharging vehicle, and the expected arrival time of the charging and discharging vehicle;

所述匹配度计算模块用于确定充放电车辆之间的匹配度;The matching degree calculation module is used to determine the matching degree between charging and discharging vehicles;

所述带权二分图构建模块用于构建以充放电车辆的匹配度为权重的带权二分图;The weighted bipartite graph building module is used to construct a weighted bipartite graph with the matching degree of the charging and discharging vehicle as the weight;

所述匹配模块用于通过KM算法确定带权二分图的最佳匹配结果。The matching module is used to determine the best matching result of the weighted bipartite graph through the KM algorithm.

本发明与现有技术相比,其显著效果为:Compared with the prior art, the present invention has the following remarkable effects:

(1)本发明根据获得的充放电车辆信息,综合考虑充电车辆需求的电量、放电车辆提供的电量和充电的等待时间等情况,计算充放电车辆的匹配度,实现了充放电车辆之间尽可能多地交换能量;最小化充放电车辆的到达时间间隔,减小了用户等待时间;最小化充电车辆的需求能量与放电车辆的供给能量之间的差值,保证了放电车主的利益;(1) According to the obtained charging and discharging vehicle information, the present invention comprehensively considers the power demanded by the charging vehicle, the power provided by the discharging vehicle, and the waiting time for charging, etc., to calculate the matching degree of the charging and discharging vehicles, and realizes the best performance between the charging and discharging vehicles. It is possible to exchange more energy; minimize the arrival time interval of charging and discharging vehicles, reduce the waiting time of users; minimize the difference between the demanded energy of charging vehicles and the supply energy of discharging vehicles, and ensure the interests of discharging vehicle owners;

(2)本发明基于计算出的充放电车辆的匹配度,建立了一个带权二分图,将充放电新能源汽车的匹配问题抽象成基于二分图的最大权匹配问题,提出的基于KM(Kuhn-Munkres)算法的带权二分图的最佳匹配方法具备计算复杂度小、鲁棒性高、扩展性好、收敛速度快等优势,可快速地将匹配结果反馈给用户,能高效适应大规模充放电匹配需求场景。(2) The present invention establishes a weighted bipartite graph based on the calculated matching degree of charging and discharging vehicles, and abstracts the matching problem of charging and discharging new energy vehicles into a bipartite graph-based maximum weight matching problem. The proposed method is based on KM (Kuhn The optimal matching method of the weighted bipartite graph of the -Munkres) algorithm has the advantages of low computational complexity, high robustness, good scalability, and fast convergence speed. It can quickly feed back the matching results to users, and can efficiently adapt to large-scale Charge and discharge matching demand scenarios.

附图说明Description of drawings

图1为本发明提出的基于带权二分图的V2V充电最优匹配方法的工作流程图。FIG. 1 is a flow chart of the optimal matching method for V2V charging based on a weighted bipartite graph proposed by the present invention.

图2为本发明提出的计算最优匹配的具体流程示意图。FIG. 2 is a schematic diagram of a specific flow for calculating the optimal matching proposed by the present invention.

图3为本发明提出的更新标签的具体流程图示意图。FIG. 3 is a schematic diagram of a specific flow chart for updating a label proposed by the present invention.

图4为本发明实现V2V充电最优匹配的示意图。FIG. 4 is a schematic diagram of realizing the optimal matching of V2V charging according to the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

本实施例提供一种基于带权二分图的V2V充电最优匹配方法,首先有充电需求的车辆会通过车联网告诉云服务器所需的电量、车辆预计到达停车场的时间,然后云服务器就会根据这些信息进行充放电车辆的匹配,最后将匹配信息通过车联网发送给停车场和匹配上的充放电车辆。This embodiment provides an optimal matching method for V2V charging based on a weighted bipartite graph. First, the vehicle that needs charging will tell the cloud server the required amount of electricity and the estimated time when the vehicle will arrive at the parking lot through the Internet of Vehicles, and then the cloud server will According to this information, the charging and discharging vehicles are matched, and finally the matching information is sent to the parking lot and the matching charging and discharging vehicles through the Internet of Vehicles.

结合图1,本发明提出的基于带权二分图的V2V充电最优匹配方法,其包括如下步骤:1, the optimal matching method for V2V charging based on a weighted bipartite graph proposed by the present invention includes the following steps:

S1,获取充电车辆需求的电量、放电车辆提供的电量和充放电车辆预计到达的时间等信息;S1, obtain information such as the power demanded by the charging vehicle, the power provided by the discharging vehicle, and the expected arrival time of the charging and discharging vehicle;

S2,计算充放电车辆之间的匹配度;S2, calculate the matching degree between charging and discharging vehicles;

S3,设计一个以充放电车辆的匹配度为权重的二分图;S3, design a bipartite graph with the matching degree of charging and discharging vehicles as the weight;

S4,通过KMKM(Kuhn-Munkres)算法计算出带权二分图的最佳匹配结果。S4, calculate the best matching result of the weighted bipartite graph through the KMKM (Kuhn-Munkres) algorithm.

在本实施例的所述步骤S2中,根据充电车辆需求的电量、放电车辆提供的电量、充放电车辆预计到达的时间等信息,充放电车辆的匹配度分成以下两种情况。In the step S2 of this embodiment, according to information such as the amount of electricity required by the charging vehicle, the amount of electricity provided by the discharging vehicle, and the expected arrival time of the charging and discharging vehicle, the matching degree of the charging and discharging vehicle is divided into the following two cases.

情况1:当充电车辆u所需的能量大于放电车辆v能提供的能量,或者充电车辆u与放电车辆v到达的时间差大于设定的最大值,这意味着充放电车辆的匹配无效,匹配度定义如下:Case 1: When the energy required by the charging vehicle u is greater than the energy provided by the discharging vehicle v, or the time difference between the charging vehicle u and the discharging vehicle v arriving is greater than the set maximum value, it means that the matching of the charging and discharging vehicle is invalid, and the matching degree Defined as follows:

ω(u,v)=0ω(u, v)=0

其中ω(u,v)表示充电车辆u和放电车辆v之间的匹配度,0表示充放电车辆不匹配。where ω(u, v) represents the matching degree between the charging vehicle u and the discharging vehicle v, and 0 means that the charging and discharging vehicles do not match.

情况2:当充电车辆u所需的能量小于放电车辆v能提供的能量,并且充电车辆u与放电车辆v到达的时间差小于设定的最大值,这意味着充放电车辆的匹配有效,匹配度定义如下:Case 2: When the energy required by the charging vehicle u is less than the energy provided by the discharging vehicle v, and the arrival time difference between the charging vehicle u and the discharging vehicle v is less than the set maximum value, it means that the matching of the charging and discharging vehicles is effective, and the matching degree is Defined as follows:

Figure BDA0003545174180000031
Figure BDA0003545174180000031

其中

Figure BDA0003545174180000032
表示待充电车辆u所需的电量,C表示新能源汽车的电池容量,TG表示系统允许的充放电车辆到达时间差的最大值,TG(u,v)表示充电车辆u和放电车辆v到达的时间差,EGmax表示所有充放电车辆能量差的最大值,EGmin表示所有充放电车辆能量差的最小值,EG(u,v)是充电车辆u所需的能量和放电车辆v能提供的能量的差值。α1、α2、α3是每个目标的权重系数,他们每一个都大于0,而且α123=1。ω(u,v)表示充电车辆u和放电车辆v之间的匹配度,并且ω(u,v)越大,表示充电车辆u和放电车辆v越匹配。in
Figure BDA0003545174180000032
Represents the power required by the vehicle u to be charged, C represents the battery capacity of the new energy vehicle, TG represents the maximum time difference between the arrival of the charging and discharging vehicle allowed by the system, and TG(u, v) represents the arrival time difference between the charging vehicle u and the discharging vehicle v , EG max represents the maximum value of the energy difference between all charging and discharging vehicles, EG min represents the minimum value of the energy difference between all charging and discharging vehicles, EG(u, v) is the difference between the energy required by charging vehicle u and the energy provided by discharging vehicle v difference. α 1 , α 2 , and α 3 are weight coefficients for each target, each of which is greater than 0, and α 123 =1. ω(u, v) represents the degree of matching between the charged vehicle u and the discharged vehicle v, and the larger ω(u, v) is, the more matched the charged vehicle u and the discharged vehicle v are.

在本实施例的所述步骤S3中,根据充放电车辆的匹配度,建立一个二分图G=(U,V,E)和匹配子图M=(U,V,E′t),其中U表示充电车辆集合,V表示放电车辆集合,E表示充放电车辆之间可以匹配的集合,即二分图中的边e=(u,v),e∈E,u∈U,v∈V。每条边都有权重,权重是充放电车辆之间的匹配度。E′t表示已经匹配到的边的集合,且E′t∈E,M表示只包含已经匹配的边的二分图G的一个子图。In the step S3 of this embodiment, a bipartite graph G=(U, V, E) and a matching subgraph M=(U, V, E′ t ) are established according to the matching degree of charging and discharging vehicles, where U represents the set of charging vehicles, V represents the set of discharging vehicles, and E represents the set that can be matched between charging and discharging vehicles, that is, the edge e=(u, v) in the bipartite graph, e∈E, u∈U, v∈V. Each edge has a weight, and the weight is the matching degree between charging and discharging vehicles. E' t represents the set of matched edges, and E' t ∈ E, M represents a subgraph of the bipartite graph G that contains only matched edges.

在本实施例的所述步骤S4包括以下步骤:The step S4 in this embodiment includes the following steps:

S4.1,对每辆车初始化一个标签y;S4.1, initialize a label y for each vehicle;

S4.2,判断是否找到最大匹配,如果没有,执行S4.3,否则算法结束;S4.2, judge whether the maximum match is found, if not, execute S4.3, otherwise the algorithm ends;

S4.3,判断是否存在增广路,如果存在执行S4.4,否则执行S4.5;S4.3, judge whether there is an augmentation path, if so, execute S4.4, otherwise execute S4.5;

S4.4,从未被匹配的充电车辆开始寻找一条增广路,更新匹配集合E′t和匹配子图M,然后执行S4.2;S4.4, search for an augmented path from the unmatched charging vehicle, update the matching set E't and the matching subgraph M, and then execute S4.2;

S4.5,对标签进行更新,将找到的新的边加入到匹配集合E′t和匹配子图M中,然后执行S4.2。S4.5, update the label, add the found new edge to the matching set E' t and the matching subgraph M, and then execute S4.2.

在本实施例的所述步骤S4.1中,将待充电车辆的标签初始化为与所有放电车辆之间匹配度的最大值,放电车辆的标签初始化成零,表示如下:In the step S4.1 of this embodiment, the label of the vehicle to be charged is initialized to the maximum matching degree with all discharged vehicles, and the label of the discharged vehicle is initialized to zero, which is expressed as follows:

Figure BDA0003545174180000041
Figure BDA0003545174180000041

Figure BDA0003545174180000042
Figure BDA0003545174180000042

其中y(u)表示充电车辆u的标签,y(v)表示放电车辆v的标签,U表示充电车辆集合,V表示放电车辆集合,ω(u,v)表示权利要求2中计算的充电车辆u和放电车辆v之间的匹配度。定义当y(u)+y(v)=ω(u,v)时,e(u,v)是一条候选路。where y(u) represents the label of the charged vehicle u, y(v) represents the label of the discharged vehicle v, U represents the set of charged vehicles, V represents the set of discharged vehicles, and ω(u, v) represents the charged vehicle calculated in claim 2 The matching degree between u and the discharging vehicle v. Definition When y(u)+y(v)=ω(u,v), e(u,v) is a candidate path.

在本实施例的所述步骤S4.5中,如图3所示,在寻找增广路过程中经过的充电车辆和未经过的放电车辆中,计算充电车辆的标签y(u)加上放电车辆的标签y(v)减去它们之间的权重ω(u,v)的最小值。然后,寻找增广路过程中到达过的充电车辆的标签y(u)减去这个最小值,寻找增广路过程中到达过的放电车辆的标签y(v)加上这个最小值,更新标签方式如下:In the step S4.5 of this embodiment, as shown in FIG. 3 , in the process of searching for the augmented road, the charging vehicle and the discharging vehicle that have not passed, calculate the label y(u) of the charging vehicle plus the discharge The minimum value of the vehicle's label y(v) minus the weight ω(u, v) between them. Then, subtract this minimum value from the label y(u) of the charged vehicle that has reached in the process of finding the augmented road, add this minimum value to the label y(v) of the discharged vehicle that has reached in the process of finding the augmented road, and update the label The way is as follows:

ψ=min{y(u)+y(v)-ω(u,v)|u∈U′,v∈V/V′}ψ=min{y(u)+y(v)-ω(u,v)|u∈U′, v∈V/V′}

Figure BDA0003545174180000051
Figure BDA0003545174180000051

Figure BDA0003545174180000052
Figure BDA0003545174180000052

其中U′表示寻找增广路过程中到达过的充电车辆的集合,V′表示寻找增广路过程中到达过的放电车辆的集合,ψ表示在集合中计算出的最小值,y(u)表示充电车辆u的标签y(v)表示放电车辆v的标签。最后将新找到的最小值的边加入到E′t和M中。Among them, U' represents the set of charged vehicles that have arrived in the process of finding the augmented path, V' represents the set of discharged vehicles that have arrived in the process of finding the augmented path, ψ represents the minimum value calculated in the set, and y(u) The label y(v) representing the charged vehicle u represents the label of the discharged vehicle v. Finally, the edge of the newly found minimum is added to E't and M.

依据该实施方法,V2V充电最优匹配效果如图4所示,其中有3辆充电车辆和4辆放车辆,连线旁边的数字代表匹配度。通过上述方法,实现最优匹配,图中用粗线表示匹配结果,u1和v4匹配,u2和v3匹配,u3和v1匹配。According to this implementation method, the optimal matching effect of V2V charging is shown in Figure 4, in which there are 3 charging vehicles and 4 discharging vehicles, and the number next to the connection represents the matching degree. Through the above method, the optimal matching is achieved. The thick line in the figure represents the matching result, u1 matches v4, u2 matches v3, and u3 matches v1.

相比传统匹配方法,本发明提出的算法综合考虑充电车辆需求电量、放电车辆提供电量和充电等待时间等影响因子,可以实现充放电车辆的最优匹配,改善了用户的充电体验;此外,算法具备计算复杂度小、鲁棒性高、扩展性好、收敛速度快等优势,可快速地将匹配结果反馈给用户,能高效适应大规模充放电匹配需求场景。Compared with the traditional matching method, the algorithm proposed in the present invention comprehensively considers the influencing factors such as the power demand of the charging vehicle, the power supplied by the discharging vehicle and the charging waiting time, etc., which can realize the optimal matching of the charging and discharging vehicles and improve the charging experience of the user; in addition, the algorithm It has the advantages of low computational complexity, high robustness, good scalability, and fast convergence speed. It can quickly feedback matching results to users, and can efficiently adapt to large-scale charging and discharging matching demand scenarios.

当然,本技术领域内的一般技术人员应当认识到,上述实施例仅是用来说明本发明,而并非用作对本发明的限定,只要在本发明的实质精神范围内,对上述实施例的变化、变型都将落在本发明权利要求的范围内。Of course, those skilled in the art should realize that the above-mentioned embodiments are only used to illustrate the present invention, but not to limit the present invention, as long as the changes to the above-mentioned embodiments are within the essential spirit of the present invention , modifications will fall within the scope of the claims of the present invention.

Claims (10)

1.一种基于带权二分图的V2V充电最优匹配方法,其特征在于,包括以下步骤:1. a V2V charging optimal matching method based on a weighted bipartite graph, is characterized in that, comprises the following steps: S1,获取充电车辆需求的电量、放电车辆提供的电量和充放电车辆预计到达的时间;S1, obtain the power required by the charging vehicle, the power provided by the discharging vehicle, and the expected arrival time of the charging and discharging vehicle; S2,确定充放电车辆之间的匹配度;S2, determine the matching degree between the charging and discharging vehicles; S3,构建以充放电车辆的匹配度为权重的带权二分图;S3, construct a weighted bipartite graph with the matching degree of the charging and discharging vehicle as the weight; S4,通过KM算法确定带权二分图的最佳匹配结果。S4, determine the best matching result of the weighted bipartite graph through the KM algorithm. 2.根据权利要求1所述的一种基于带权二分图的V2V充电最优匹配方法,其特征在于,所述步骤S2中充放电车辆的匹配度分成两种情况确定:2. A kind of V2V charging optimal matching method based on a weighted bipartite graph according to claim 1, is characterized in that, in described step S2, the matching degree of charging and discharging vehicle is divided into two kinds of situations to determine: 情况1,当充电车辆u所需的能量大于放电车辆v提供的能量,或者充电车辆u与放电车辆v预计到达的时间差大于设定的最大值;Case 1, when the energy required by the charging vehicle u is greater than the energy provided by the discharging vehicle v, or the estimated time difference between the charging vehicle u and the discharging vehicle v is greater than the set maximum value; 情况2,当充电车辆u所需的能量小于放电车辆v能提供的能量,并且充电车辆u与放电车辆v预计到达的时间差小于设定的最大值。In case 2, when the energy required for charging the vehicle u is less than the energy that can be provided by the discharging vehicle v, and the expected time difference between the charging vehicle u and the discharging vehicle v is less than the set maximum value. 3.根据权利要求2所述的一种基于带权二分图的V2V充电最优匹配方法,其特征在于,所述情况1的匹配度为:3. a kind of V2V charging optimal matching method based on a weighted bipartite graph according to claim 2, is characterized in that, the matching degree of described situation 1 is: ω(u,v)=0ω(u,v)=0 其中ω(u,v)表示充电车辆u和放电车辆v之间的匹配度,0表示充放电车辆不匹配。where ω(u, v) represents the matching degree between the charging vehicle u and the discharging vehicle v, and 0 means that the charging and discharging vehicles do not match. 4.根据权利要求2所述的一种基于带权二分图的V2V充电最优匹配方法,其特征在于,所述情况2的匹配度为:4. a kind of V2V charging optimal matching method based on a weighted bipartite graph according to claim 2, is characterized in that, the matching degree of described situation 2 is:
Figure FDA0003545174170000011
Figure FDA0003545174170000011
其中
Figure FDA0003545174170000012
表示待充电车辆u所需的电量,C表示新能源汽车的电池容量,TG表示允许的充放电车辆到达时间差的最大值,TG(u,v)表示充电车辆u和放电车辆v预计到达的时间差,EGmax表示所有充放电车辆能量差的最大值,EGmin表示所有充放电车辆能量差的最小值,EG(u,v)是充电车辆u所需的能量和放电车辆v能提供的能量的差值;α1、α2、α3是权重系数;ω(u,v)表示充电车辆u和放电车辆v之间的匹配度,ω(u,v)越大,表示充电车辆u和放电车辆v越匹配。
in
Figure FDA0003545174170000012
Represents the power required by the vehicle u to be charged, C represents the battery capacity of the new energy vehicle, TG represents the maximum allowable arrival time difference between the charging and discharging vehicles, TG(u, v) represents the expected arrival time difference between the charging vehicle u and the discharging vehicle v , EG max represents the maximum value of the energy difference of all charging and discharging vehicles, EG min represents the minimum value of the energy difference of all charging and discharging vehicles, EG(u, v) is the difference between the energy required by charging vehicle u and the energy provided by discharging vehicle v difference; α 1 , α 2 , α 3 are weight coefficients; ω(u,v) represents the matching degree between the charging vehicle u and the discharging vehicle v, the larger ω(u,v) is, the more the charging vehicle u and the discharging vehicle are. The more the vehicle v is matched.
5.根据权利要求4所述的基于带权二分图的V2V充电最优匹配方法,其特征在于,所述α1、α2、α3均大于0,且α123=1。5 . The optimal matching method for V2V charging based on a weighted bipartite graph according to claim 4 , wherein the α 1 , α 2 , and α 3 are all greater than 0, and α 123 = 1. 6.根据权利要求1所述的基于带权二分图的V2V充电最优匹配方法,其特征在于,所述步骤S3构建以充放电车辆的匹配度为权重的带权二分图具体包括:建立一个二分图G=(U,V,E)和匹配子图M=(U,V,E′t),其中U表示充电车辆集合,V表示放电车辆集合,E表示充放电车辆之间可以匹配的集合,即二分图中的边e=(u,v),e∈E,u∈U,v∈V,每条边都有权重,权重是充放电车辆之间的匹配度,E′t表示已经匹配到的边的集合,且E′t∈E,M表示只包含已经匹配的边的二分图G的一个子图。6. The optimal matching method for V2V charging based on a weighted bipartite graph according to claim 1, wherein the step S3 constructing a weighted bipartite graph with the matching degree of the charging and discharging vehicle as a weight specifically comprises: establishing a The bipartite graph G=(U, V, E) and the matching subgraph M=(U, V, E′ t ), where U represents the set of charging vehicles, V represents the set of discharging vehicles, and E represents the matching between charging and discharging vehicles Set, that is, the edge e=(u, v) in the bipartite graph, e∈E, u∈U, v∈V, each edge has a weight, the weight is the matching degree between the charging and discharging vehicles, E′ t represents The set of matched edges, and E′ t ∈ E, M represents a subgraph of the bipartite graph G that contains only matched edges. 7.根据权利要求1所述的基于带权二分图的V2V充电最优匹配方法,其特征在于,所述步骤S4具体包括:7. The optimal matching method for V2V charging based on a weighted bipartite graph according to claim 1, wherein the step S4 specifically comprises: S4.1,对每辆车初始化一个标签y;S4.1, initialize a label y for each vehicle; S4.2,判断是否找到最大匹配,如果没有,执行S4.3,否则算法结束,获取最佳匹配结果;S4.2, judge whether the maximum match is found, if not, execute S4.3, otherwise the algorithm ends, and the best match result is obtained; S4.3,判断是否存在增广路,如果存在执行S4.4,否则执行S4.5;S4.3, judge whether there is an augmentation path, if so, execute S4.4, otherwise execute S4.5; S4.4,从未被匹配的充电车辆开始寻找一条增广路,更新匹配集合E′t和匹配子图M,然后执行S4.2;S4.4, search for an augmented path from the unmatched charging vehicle, update the matching set E't and the matching subgraph M, and then execute S4.2; S4.5,对标签进行更新,将找到的新的边加入到匹配集合E′t和匹配子图M中,然后执行S4.2。S4.5, update the label, add the found new edge to the matching set E' t and the matching subgraph M, and then execute S4.2. 8.根据权利要求7所述的基于带权二分图的V2V充电最优匹配方法,其特征在于,所述步骤S4.1中对每辆车初始化一个标签y包括:将待充电车辆的标签初始化为与所有放电车辆之间匹配度的最大值,放电车辆的标签初始化成零,表示为:8. The optimal matching method for V2V charging based on a weighted bipartite graph according to claim 7, wherein in the step S4.1, initializing a label y for each vehicle comprises: initializing the label of the vehicle to be charged For the maximum matching degree with all discharged vehicles, the label of the discharged vehicle is initialized to zero, which is expressed as:
Figure FDA0003545174170000021
Figure FDA0003545174170000021
Figure FDA0003545174170000022
Figure FDA0003545174170000022
其中y(u)表示充电车辆u的标签,y(v)表示放电车辆v的标签,U表示充电车辆集合,V表示放电车辆集合;where y(u) represents the label of the charging vehicle u, y(v) represents the label of the discharging vehicle v, U represents the set of charging vehicles, and V represents the set of discharging vehicles; 定义当y(u)+y(v)=ω(u,v)时,e(u,v)是一条候选路。Definition When y(u)+y(v)=ω(u,v), e(u,v) is a candidate path.
9.根据权利要求7所述的基于带权二分图的V2V充电最优匹配方法,其特征在于,所述步骤S4.5中对标签进行更新的方法为:9. the V2V charging optimal matching method based on the weighted bipartite graph according to claim 7, is characterized in that, the method that label is updated in described step S4.5 is: ψ=min{y(u)+y(v)-ω(u,v)|u∈U′,v∈V/V′}ψ=min{y(u)+y(v)-ω(u,v)|u∈U′, v∈V/V′}
Figure FDA0003545174170000031
Figure FDA0003545174170000031
Figure FDA0003545174170000032
Figure FDA0003545174170000032
其中U′表示寻找增广路过程中到达过的充电车辆的集合,V′表示寻找增广路过程中到达过的放电车辆的集合,ψ表示在集合中计算出的最小值,y(u)表示充电车辆u的标签,y(v)表示放电车辆v的标签。Among them, U' represents the set of charged vehicles that have arrived in the process of finding the augmented road, V' represents the set of discharged vehicles that have reached the process of finding the augmented road, ψ represents the minimum value calculated in the set, and y(u) represents the label of the charged vehicle u, and y(v) represents the label of the discharged vehicle v.
10.一种基于权利要求1~9任一所述方法的基于带权二分图的V2V充电最优匹配系统,其特征在于,包括充电信息采集模块、匹配度计算模块、带权二分图构建模块和匹配模块;其中:10. An optimal matching system for V2V charging based on a weighted bipartite graph based on any one of the methods of claims 1 to 9, characterized in that it comprises a charging information collection module, a matching degree calculation module, and a weighted bipartite graph construction module and matching modules; where: 所述充电信息采集模块用于获取充电车辆需求的电量、放电车辆提供的电量和充放电车辆预计到达的时间;The charging information collection module is used to acquire the electricity demanded by the charging vehicle, the electricity supplied by the discharging vehicle, and the expected arrival time of the charging and discharging vehicle; 所述匹配度计算模块用于确定充放电车辆之间的匹配度;The matching degree calculation module is used to determine the matching degree between charging and discharging vehicles; 所述带权二分图构建模块用于构建以充放电车辆的匹配度为权重的带权二分图;The weighted bipartite graph building module is used to construct a weighted bipartite graph with the matching degree of the charging and discharging vehicle as the weight; 所述匹配模块用于通过KM算法确定带权二分图的最佳匹配结果。The matching module is used to determine the best matching result of the weighted bipartite graph through the KM algorithm.
CN202210247085.8A 2022-03-14 2022-03-14 V2V charging optimal matching method and system based on weighted bipartite graph Active CN114537197B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210247085.8A CN114537197B (en) 2022-03-14 2022-03-14 V2V charging optimal matching method and system based on weighted bipartite graph

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210247085.8A CN114537197B (en) 2022-03-14 2022-03-14 V2V charging optimal matching method and system based on weighted bipartite graph

Publications (2)

Publication Number Publication Date
CN114537197A true CN114537197A (en) 2022-05-27
CN114537197B CN114537197B (en) 2024-05-17

Family

ID=81663297

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210247085.8A Active CN114537197B (en) 2022-03-14 2022-03-14 V2V charging optimal matching method and system based on weighted bipartite graph

Country Status (1)

Country Link
CN (1) CN114537197B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108551664A (en) * 2018-04-17 2018-09-18 南京邮电大学 A kind of vehicle-mounted heterogeneous network resource collaboration optimization method based on graph theory
CN109117503A (en) * 2018-07-05 2019-01-01 南方电网科学研究院有限责任公司 Method and device for constructing V2V and V2G coexisting application scene model
CN109130897A (en) * 2018-08-01 2019-01-04 上海电力学院 A kind of matched V2V method of energy exchanging based on the double scales of space-time
CN113902555A (en) * 2021-08-03 2022-01-07 重庆大学 Regional electric automobile alliance electric power transaction method based on block chain
KR20220023435A (en) * 2020-08-21 2022-03-02 현대자동차주식회사 System and method for vehicle to vehicle charging matching

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108551664A (en) * 2018-04-17 2018-09-18 南京邮电大学 A kind of vehicle-mounted heterogeneous network resource collaboration optimization method based on graph theory
CN109117503A (en) * 2018-07-05 2019-01-01 南方电网科学研究院有限责任公司 Method and device for constructing V2V and V2G coexisting application scene model
CN109130897A (en) * 2018-08-01 2019-01-04 上海电力学院 A kind of matched V2V method of energy exchanging based on the double scales of space-time
KR20220023435A (en) * 2020-08-21 2022-03-02 현대자동차주식회사 System and method for vehicle to vehicle charging matching
CN113902555A (en) * 2021-08-03 2022-01-07 重庆大学 Regional electric automobile alliance electric power transaction method based on block chain

Also Published As

Publication number Publication date
CN114537197B (en) 2024-05-17

Similar Documents

Publication Publication Date Title
CN110557732B (en) A vehicle edge computing network task offloading load balancing system and balancing method
CN110222907A (en) Electric automobile charging station planing method and terminal device
WO2022099951A1 (en) Remote cluster charging control method, apparatus and system for charging piles
CN113282352B (en) Energy-saving unloading method based on multi-unmanned aerial vehicle cooperative auxiliary edge calculation
CN108562300A (en) Consider the electric vehicle charging bootstrap technique of destination guiding and next stroke power demand
CN112803464B (en) Energy storage system charge-discharge control method, system, equipment and storage medium
CN115438879B (en) Method and device for site selection and capacity determination of electric vehicle charging station based on improved hybrid algorithm
CN116633801A (en) Resource scheduling method, device, system and related equipment
CN109474467A (en) Network automatically management method, device, storage medium and electronic equipment
Wang et al. A profit maximization strategy of MEC resource provider in the satellite-terrestrial double edge computing system
CN116861790A (en) A multi-objective optimization energy management strategy accelerated training method for fuel cell vehicles
CN114537197A (en) V2V charging optimal matching method and system based on weighted bipartite graph
CN109742755A (en) Operation and scheduling method of active distribution network with electric vehicles based on node partitioning
CN112613180B (en) Energy consumption optimization method of underwater unmanned vehicle
CN112217884B (en) Internet of things data transmission method, system and electronic device
CN111581443B (en) Distributed graph computing method, terminal, system and storage medium
CN118886798A (en) A method and system for simulating the spatiotemporal distribution of electric vehicle charging load
Singh et al. Design of artificial intelligence enabled dingo optimizer for energy management in 6G communication networks
CN116862080A (en) A carbon emission prediction method and system based on dual-perspective comparative learning
CN116074347A (en) A computing power distribution method, system, device and medium for sensor network
Liu et al. Research on Deep Learning Model and Optimization Algorithm in Edge Computing
CN114793201B (en) Space-earth integrated network dynamic virtual network mapping method based on service awareness
Ayaz et al. Blockchain-based Energy Trading among UAVs and Base Stations for Net-Zero
CN118504660B (en) Method, device, computer equipment and storage medium for processing heterogeneous data of Internet of Vehicles
CN114022026B (en) Electric vehicle charging scheduling method based on event triggering consistency algorithm

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