[go: up one dir, main page]

CN111836193B - Mobile charging method of wireless sensor network based on greedy algorithm - Google Patents

Mobile charging method of wireless sensor network based on greedy algorithm Download PDF

Info

Publication number
CN111836193B
CN111836193B CN202010738906.9A CN202010738906A CN111836193B CN 111836193 B CN111836193 B CN 111836193B CN 202010738906 A CN202010738906 A CN 202010738906A CN 111836193 B CN111836193 B CN 111836193B
Authority
CN
China
Prior art keywords
charging
node
line
circle
stop point
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.)
Expired - Fee Related
Application number
CN202010738906.9A
Other languages
Chinese (zh)
Other versions
CN111836193A (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.)
Dolphin Culture And Sports Co ltd
Original Assignee
Hangzhou Dianzi University
Hangzhou Dianzi University Wenzhou Research Institute Co Ltd
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, Hangzhou Dianzi University Wenzhou Research Institute Co Ltd filed Critical Hangzhou Dianzi University
Priority to CN202010738906.9A priority Critical patent/CN111836193B/en
Publication of CN111836193A publication Critical patent/CN111836193A/en
Application granted granted Critical
Publication of CN111836193B publication Critical patent/CN111836193B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W16/00Network planning, e.g. coverage or traffic planning tools; Network deployment, e.g. resource partitioning or cells structures
    • H04W16/18Network planning tools
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Electric Propulsion And Braking For Vehicles (AREA)

Abstract

The invention discloses a greedy algorithm-based mobile charging method for a wireless sensor network. The invention is as follows: firstly, determining a set M of stop points in a wireless sensor network. And secondly, acquiring line segments between every two points in the stop point set M to form a line set V. And thirdly, identifying and judging one by one in the line set V, and selecting m line segments forming the loop. Setting the position of a charging base station for charging the charging trolley; the charging trolley is driven out from the charging base station and runs along a charging path; when the charging trolley reaches a charging stop point, charging the wireless sensor in the effective charging area of the charging stop point; all wireless sensors are charged as the charging trolley travels and stops along the charging path. The invention combines the advantages of mobile charging and wireless omnidirectional charging equipment, so that the charging trolley can charge a plurality of wireless chargeable sensors at one stop point at the same time, and the energy radiated during charging can be utilized to the maximum extent.

Description

一种基于贪心算法的无线传感器网络的移动充电方法A mobile charging method for wireless sensor network based on greedy algorithm

技术领域technical field

本发明属于无线可充电传感器网络能量供应技术领域,具体涉及一种基于贪心算法的无线可充电传感器网络的移动充电方法。The invention belongs to the technical field of energy supply for wireless rechargeable sensor networks, in particular to a mobile charging method for wireless rechargeable sensor networks based on a greedy algorithm.

背景技术Background technique

如今随着技术的要求,无线可充电传感器网络(Wireless Rechargeable SensorNetworks,WRSN)技术越来越成为了众多研究领域的焦点,而在可充电传感网络中,有使用固定基站对整个组网充电的,但充电基站造价昂贵以及耗时耗力是一大缺点;也有使用移动小车移动到各个节点处进行充电的情况,能量利用率低则是这种方法的劣势。Nowadays, with the requirements of technology, Wireless Rechargeable Sensor Networks (WRSN) technology has become the focus of many research fields. , but the charging base station is expensive and time-consuming and labor-intensive. There are also cases where a mobile car is used to move to each node for charging, and the low energy utilization rate is the disadvantage of this method.

目前,关于无线可充电传感器网络的充电基站部署问题,针对充电基站不同的特点,已有一些研究。万鹏等人在专利《一种无线可充电传感器网络的充电基站部署方法》(专利号:CN109246602A)中,提出了整个传感器网络的固定基站优化方案,不过计算过程比较复杂,难以适用于大型传感网络的配置。而王珺等人在专利《一种无线传感网络节点的充电控制方法》(专利号:201611042178.8)按照传感器节点的剩余能量划分好不同优先级区域后,使用小车根据节点充电的紧急程度进行充电,但此方法的划分方式并不能保证每个节点都刚好按照需求的不同正好分布在不同的区域内,使得充电小车的移动路径未能得到合理的规划。At present, regarding the deployment of charging base stations in wireless rechargeable sensor networks, there have been some studies based on the different characteristics of charging base stations. Wan Peng et al. put forward a fixed base station optimization scheme for the entire sensor network in the patent "A method of deploying a charging base station for a wireless rechargeable sensor network" (patent number: CN109246602A), but the calculation process is relatively complicated and it is difficult to apply to large-scale transmission. configuration of the sensor network. In the patent "A Charging Control Method for Wireless Sensor Network Nodes" (Patent No.: 201611042178.8), Wang Jun et al. divided different priority areas according to the remaining energy of sensor nodes, and then used a car to charge according to the urgency of node charging. , but the division method of this method cannot guarantee that each node is just distributed in different areas according to the different needs, so that the moving path of the charging car cannot be reasonably planned.

发明内容SUMMARY OF THE INVENTION

本发明的目的在于提供一种基于贪心算法的无线可充电传感器网络的移动充电方法。The purpose of the present invention is to provide a mobile charging method for a wireless rechargeable sensor network based on a greedy algorithm.

本发明的具体步骤如下:The concrete steps of the present invention are as follows:

步骤一、在无线传感器网络内确定多个充电停留点位置;所有无线传感器均在至少一个充电停留点的有效充电区域内。各充电停留点组成停留点集合M。Step 1: Determine the positions of multiple charging stop points in the wireless sensor network; all wireless sensors are within the effective charging area of at least one charging stop point. Each charging stop point constitutes a stop point set M.

步骤二、获取停留点集合M内两两点之间的线段,共得到

Figure BDA0002605966260000011
条线段,m为停留点集合M内充电停留点的数量。该
Figure BDA0002605966260000012
条线段组成线集合V。Step 2: Obtain the line segment between two points in the stop point set M, and obtain a total of
Figure BDA0002605966260000011
line segment, m is the number of charging stop points in the stop point set M. Should
Figure BDA0002605966260000012
The line segments form the line set V.

步骤三、取一个初始空线集合T。Step 3: Take an initial empty line set T.

步骤四、将线集合V中长度最短的线段,加入线集合T并从线集合V中删除。判断线集合T中的线段是否出现分枝;若出现分枝,则将刚加入线集合T中的线段从线集合T中删除;否则,进入步骤五。Step 4: Add the line segment with the shortest length in the line set V to the line set T and delete it from the line set V. Determine whether the line segment in the line set T has a branch; if there is a branch, delete the line segment just added to the line set T from the line set T; otherwise, go to step 5.

步骤五、判断线集合T中的线段是否形成回路,若未形成回路,则再次执行步骤四;若形成回路,则进入步骤六。Step 5: Determine whether the line segments in the line set T form a loop, if no loop is formed, perform step 4 again; if a loop is formed, go to step 6.

步骤六、若线集合T内的线段数量小于m,则将最近加入线集合T中的线段从线集合T中删除,并再次执行步骤四和五;若线集合T内的线段数量等于m,则线集合T内形成回路的m条线段即为充电路径。Step 6. If the number of line segments in the line set T is less than m, delete the line segment recently added to the line set T from the line set T, and perform steps 4 and 5 again; if the number of line segments in the line set T is equal to m, Then the m line segments forming the loop in the line set T are the charging path.

步骤七、设定为充电小车充电的充电基站的位置;充电小车从充电基站中驶出,并沿着充电路径行驶;充电小车每到达一个充电停留点时,为该充电停留点的有效充电区域内的无线传感器充电;随着充电小车沿着充电路径的行驶和停留,为所有无线传感器充电。Step 7: Set the location of the charging base station for charging the charging car; the charging car drives out of the charging base station and drives along the charging path; each time the charging car reaches a charging stop point, it is the effective charging area of the charging stop point Wireless sensor charging inside; charging all wireless sensors as the charging cart travels and stops along the charging path.

作为优选,步骤一中确定各充电停留点的具体方法如下:Preferably, the specific method for determining each charging stop point in step 1 is as follows:

步骤1、建立平面直角坐标系,将与n个无线可充电传感器位置分别对应的n个普通节点放入平面直角坐标系的第一象限。n个普通节点组成的集合定为总节点集合U;n个普通节点均在一个矩形范围内。之后,以矩形范围的几何中心作为中心点,对n个普通节点按照到中心点的距离,从小到大依次排序并编号;Step 1. Establish a plane rectangular coordinate system, and place n common nodes corresponding to the positions of the n wireless rechargeable sensors into the first quadrant of the plane rectangular coordinate system. The set composed of n ordinary nodes is designated as the total node set U; the n ordinary nodes are all within a rectangular range. After that, take the geometric center of the rectangular range as the center point, sort and number the n common nodes according to the distance from the center point from small to large;

步骤2、将1赋值给i。Step 2. Assign 1 to i.

步骤3、以总节点集合U中编号最小的普通节点作为第i个中心节点OiStep 3. Take the common node with the smallest number in the total node set U as the ith central node O i .

步骤4、以第i个中心节点Oi为圆心,2R为半径作圆,得到第i特征圆,R为充电小车上的充电设备的有效充电区域半径。将位于第i特征圆内的所有普通节点加入候选集合Si,并从总节点集合U中移除。Step 4: Taking the i-th central node O i as the center of the circle and 2R as the radius to make a circle, the i-th characteristic circle is obtained, and R is the radius of the effective charging area of the charging device on the charging trolley. All ordinary nodes located in the i -th characteristic circle are added to the candidate set Si and removed from the total node set U.

步骤5、在第i特征圆范围内确定出一个或多个充电停留点的位置。Step 5: Determine the position of one or more charging stop points within the range of the i-th characteristic circle.

5-1.以第i个中心节点Oi为圆心,R为半径作圆,得到第i个中心圆。5-1. Make a circle with the i-th central node O i as the center and R as the radius to obtain the i-th central circle.

5-2.将1赋值给j。5-2. Assign 1 to j.

5-3.在第i个中心圆的轮廓上任选一点为圆心,以R为半径作圆,得到候选圆形;将候选圆形的圆心沿着第i个中心圆的边缘移动一周,确定出能够覆盖候选集合Si中普通节点数量最多的候选圆形位置,作为覆盖圆○ij;将覆盖圆○ij内的普通节点从候选集合Si中移除,并加入特征集合Qij5-3. Select a point on the contour of the i-th center circle as the center, and use R as the radius to make a circle to obtain a candidate circle; move the center of the candidate circle along the edge of the i-th center circle for a week, and determine The candidate circle position that can cover the largest number of common nodes in the candidate set Si is obtained as the cover circle ○ ij ; the common nodes in the cover circle ○ ij are removed from the candidate set Si and added to the feature set Qi ij .

5-4.若特征集合Qij内只有一个普通节点,则取该普通节点作为充电停留点cij5-4. If there is only one common node in the feature set Q ij , the common node is taken as the charging stop point c ij .

若特征集合Qij内有且仅有两个普通节点,则取该两个普通节点连线的中点作为充电停留点cijIf there are only two common nodes in the feature set Q ij , the midpoint of the line connecting the two common nodes is taken as the charging stop point c ij .

若特征集合Qij内普通节点的数量大于或等于三个,则取特征集合Qij里间距最远的两个普通节点,记为第一筛选节点p1、第二筛选节点p2。取第一筛选节点p1与第二筛选节点p2连线的中点作为候选节点。找出候选集合Qj中除第一筛选节点p1、第二筛选节点p2之外距离候选节点最远的普通节点,记为第三筛选节点p3。若第三筛选节点p3与候选节点的间距大于R,则进入步骤5-5;否则,以候选节点作为充电停留点cij,并直接进入步骤5-6。If the number of common nodes in the feature set Q ij is greater than or equal to three, the two common nodes with the farthest distance in the feature set Q ij are selected as the first screening node p 1 and the second screening node p 2 . The midpoint of the line connecting the first screening node p 1 and the second screening node p 2 is taken as a candidate node. Find the common node in the candidate set Q j that is farthest from the candidate node except the first screening node p 1 and the second screening node p 2 , and denote it as the third screening node p 3 . If the distance between the third screening node p 3 and the candidate node is greater than R, proceed to step 5-5; otherwise, take the candidate node as the charging stop point c ij , and directly proceed to step 5-6.

5-5.以第一筛选节点p1、第二筛选节点p2、第三筛选节点p3分别为特征三角形的三个顶点,建立特征三角形。以特征三角形的外心作充电停留点cij,然后进入步骤5-6。5-5. Take the first screening node p 1 , the second screening node p 2 , and the third screening node p 3 as the three vertices of the characteristic triangle, respectively, to establish a characteristic triangle. Take the outer center of the characteristic triangle as the charging stop point c ij , and then proceed to step 5-6.

5-6.若候选集合Si中还存在普通节点,则将j增大1,并重复执行步骤5-3至5-5;否则,进入步骤6。5-6. If there are common nodes in the candidate set Si, increase j by 1, and repeat steps 5-3 to 5-5; otherwise, go to step 6.

步骤6、若总节点集合U内还有普通节点,则将i增大1后,并重复执行步骤3至步骤5。若总节点集合U内没有普通节点,则完成所有充电停留点cij位置的确定,所有的充电停留点cij组成停留点集合M。Step 6: If there are common nodes in the total node set U, increase i by 1, and repeat steps 3 to 5. If there is no ordinary node in the total node set U, the determination of the positions of all the charging stop points c ij is completed, and all the charging stop points c ij form the stop point set M.

作为优选,步骤七中,当充电小车内的电量低于预设值时,充电小车返回到充电基站为自身补充电量;充电小车本身电量补充完成后,继续行驶到充电路径上为各无线传感器充电。Preferably, in step 7, when the electric quantity in the charging trolley is lower than the preset value, the charging trolley returns to the charging base station to replenish the electric quantity for itself; after the electric quantity of the charging trolley itself is replenished, it continues to drive to the charging path to charge each wireless sensor .

作为优选,步骤四中,所述的分枝表示线集合T中有任意三条或三条以上的线段交于同一个充电停留点。步骤五中,形成回路表示线集合T中的有多条线段形成依次首尾相连的环形。Preferably, in step 4, the branch indicates that any three or more line segments in the line set T intersect at the same charging stop point. In step 5, forming a loop means that a plurality of line segments in the line set T form a ring that is connected end to end in sequence.

作为优选,所述的充电基站位置位于任意一个充电停留点处。Preferably, the charging base station is located at any charging stop point.

作为优选,所述的充电基站位置位于充电密集点。充电密集点是所有充电停留点中,到相邻两个充电停留点的距离之和最小的那个充电停留点。Preferably, the charging base station is located at a charging intensive point. The charging intensive point is the charging stop point with the smallest sum of distances to two adjacent charging stop points among all the charging stop points.

本发明具有的有益效果是:The beneficial effects that the present invention has are:

1、本发明摆脱了原有无线可充电传感网充电方式的弊端,结合了移动充电和无线全向充电设备的优点,使得充电小车能够在一个停留点同时为多个无线可充电传感器充电,能够最大化利用充电时辐射出的能源,将充电效率和充电范围提升到了一个新的高度。1. The present invention gets rid of the disadvantages of the original wireless rechargeable sensor network charging method, and combines the advantages of mobile charging and wireless omnidirectional charging equipment, so that the charging trolley can simultaneously charge multiple wireless rechargeable sensors at one stop point, It can maximize the use of the energy radiated during charging, which improves the charging efficiency and charging range to a new level.

2、本发明为选取出的各个充电停留点规划处长度较短的充电路径,减小充电小车在转移过程中的时间和能量损耗。2. The present invention plans a charging path with a short length at each selected charging stop point, thereby reducing the time and energy loss of the charging trolley during the transfer process.

3、本发明通过在中心圆上移动候选圆的方式,使得充电设备能够尽可能多地覆盖无线可充电传感器。3. The present invention enables the charging device to cover as many wireless rechargeable sensors as possible by moving the candidate circle on the central circle.

4、本发明基于贪心算法,算法的时间复杂度较低,能够适应于可充电传感器数量较大的应用场景。4. The present invention is based on a greedy algorithm, the time complexity of the algorithm is low, and it can be adapted to an application scenario with a large number of rechargeable sensors.

附图说明Description of drawings

图1为本发明中充电停留点与无线可充电传感网络的示意图;1 is a schematic diagram of a charging stop point and a wireless rechargeable sensor network in the present invention;

图2为本发明的步骤3中选取第一特征圆的示意图;Fig. 2 is the schematic diagram of selecting the first characteristic circle in step 3 of the present invention;

图3为本发明的步骤4中候选圆在中心圆上移动的示意图;3 is a schematic diagram of the candidate circle moving on the central circle in step 4 of the present invention;

图4为本发明的步骤5-3中三种情况的示意图。FIG. 4 is a schematic diagram of three situations in step 5-3 of the present invention.

图5a为形成分树枝的示意图;Fig. 5a is the schematic diagram of forming branch;

图5b为形成回路的示意图;Figure 5b is a schematic diagram of forming a loop;

图6为本发明中充电小车在所得充电路径上移动的示意图。FIG. 6 is a schematic diagram of the charging trolley moving on the resulting charging path in the present invention.

图7为本发明算法(DGA)与其他算法路径比较折线图。FIG. 7 is a line graph comparing the paths of the algorithm of the present invention (DGA) and other algorithms.

具体实施方式Detailed ways

一种基于能耗分级的无线传感器网络的充电方法,所针对的无线传感器网络内所有的无线可充电传感器均设置在同一平面上。使用充电小车和充电基站为各无线可充电传感器充电。充电小车上安装有无线全向充电设备,能够为其有效充电区域内的一个或多个无线可充电传感器充电。有效充电区域内是一个以自身为圆心、半径为R的圆。通过在无线传感器网络中设置多个充电停留点,使得所有的无线可充电传感器均在至少一个充电停留点的有效充电区域内;再由充电小车沿着充电路径逐个移动到各充电停留点,为所有无线可充电传感器进行充电。A charging method for a wireless sensor network based on energy consumption classification, all wireless rechargeable sensors in the targeted wireless sensor network are arranged on the same plane. Use the charging cart and charging base to charge each wireless rechargeable sensor. A wireless omnidirectional charging device is installed on the charging trolley, which can charge one or more wireless rechargeable sensors in its effective charging area. The effective charging area is a circle with itself as the center and radius R. By setting up multiple charging stop points in the wireless sensor network, all wireless rechargeable sensors are within the effective charging area of at least one charging stop point; and then the charging trolley moves to each charging stop point one by one along the charging path, as All wireless rechargeable sensors are charged.

如图1所示在无线传感器网络的部署平面上设置有位置随机且已知的n个无线可充电传感器和一个用于为充电小车补充电量的充电基站。图1中,空心圆点为无线可充电传感器;点C为充电基站的位置;十字点为其中一个充电停留点;圆形范围为充电小车移动到充电停留点时的有效充电区域。As shown in Figure 1, n random and known wireless rechargeable sensors and a charging base station for replenishing the charging car are set on the deployment plane of the wireless sensor network. In Figure 1, the hollow circle is the wireless rechargeable sensor; point C is the location of the charging base station; the cross point is one of the charging stop points; the circular range is the effective charging area when the charging trolley moves to the charging stop point.

实施例1Example 1

一种基于能耗分级的无线传感器网络的充电方法的具体步骤如下:The specific steps of a wireless sensor network charging method based on energy consumption classification are as follows:

步骤1、建立平面直角坐标系,将与n个无线可充电传感器位置分别对应的n个普通节点放入平面直角坐标系的第一象限。n个普通节点组成的集合定为总节点集合U;n个普通节点均在一个H×L的矩形范围内;矩形范围的左下角为平面坐标系的坐标原点。H、L分别为矩形范围的长度、宽度,其值根据所有普通节点的位置确定,从而使得矩形范围覆盖所有普通节点;之后,以矩形范围的几何中心作为中心点(H/2,L/2),对n个普通节点按照到中心点的距离,从小到大依次排序并编号;若距离相同,则取到坐标原点近的普通节点排前面。Step 1. Establish a plane rectangular coordinate system, and place n common nodes corresponding to the positions of the n wireless rechargeable sensors into the first quadrant of the plane rectangular coordinate system. The set composed of n ordinary nodes is designated as the total node set U; the n ordinary nodes are all within a rectangular range of H×L; the lower left corner of the rectangular range is the coordinate origin of the plane coordinate system. H and L are the length and width of the rectangular range respectively, and their values are determined according to the positions of all common nodes, so that the rectangular range covers all common nodes; after that, the geometric center of the rectangular range is used as the center point (H/2, L/2 ), the n common nodes are sorted and numbered according to the distance to the center point, from small to large; if the distances are the same, the common nodes close to the coordinate origin are taken in front of the row.

步骤2、将1赋值给i。Step 2. Assign 1 to i.

步骤3、以总节点集合U中编号最小的普通节点作为第i个中心节点OiStep 3. Take the common node with the smallest number in the total node set U as the ith central node O i .

步骤4、如图2所示,以第i个中心节点Oi为圆心,2R为半径作圆,得到第i特征圆,R为充电小车上的充电设备的有效充电区域半径。将位于第i特征圆内的所有普通节点加入候选集合Si,并从总节点集合U中移除。Step 4. As shown in Fig. 2, take the i-th central node O i as the center and 2R as the radius to make a circle to obtain the i-th characteristic circle, where R is the radius of the effective charging area of the charging device on the charging trolley. All ordinary nodes located in the i -th characteristic circle are added to the candidate set Si and removed from the total node set U.

步骤5、在第i特征圆范围内确定出一个或多个充电停留点的位置。Step 5: Determine the position of one or more charging stop points within the range of the i-th characteristic circle.

5-1.以第i个中心节点Oi为圆心,R为半径作圆,得到第i个中心圆。5-1. Make a circle with the i-th central node O i as the center and R as the radius to obtain the i-th central circle.

5-2.将1赋值给j。5-2. Assign 1 to j.

5-3.如图3所示,在第i个中心圆的轮廓上任选一点为圆心,以R为半径作圆,得到候选圆形;将候选圆形的圆心沿着第i个中心圆的边缘移动一周,确定出能够覆盖候选集合Si中普通节点数量最多的候选圆形位置,作为覆盖圆○ij;将覆盖圆○ij内的普通节点从候选集合Si中移除,并加入特征集合Qij5-3. As shown in Figure 3, select a point on the contour of the i-th central circle as the center of the circle, and use R as the radius to make a circle to obtain a candidate circle; place the center of the candidate circle along the i-th central circle Move the edge of , and determine the candidate circle position that can cover the largest number of common nodes in the candidate set Si, as the cover circle ○ ij ; remove the common nodes in the cover circle ○ ij from the candidate set Si , and add Feature set Qi ij .

5-4.如图4所示,若特征集合Qij内只有一个普通节点,则取该普通节点作为充电停留点cij5-4. As shown in Figure 4, if there is only one common node in the feature set Q ij , the common node is taken as the charging stop point c ij .

若特征集合Qij内有且仅有两个普通节点,则取该两个普通节点连线的中点作为充电停留点cijIf there are only two common nodes in the feature set Q ij , the midpoint of the line connecting the two common nodes is taken as the charging stop point c ij .

若特征集合Qij内普通节点的数量大于或等于三个,则取特征集合Qij里间距最远的两个普通节点,记为第一筛选节点p1、第二筛选节点p2。取第一筛选节点p1与第二筛选节点p2连线的中点作为候选节点。找出候选集合Qj中除第一筛选节点p1、第二筛选节点p2之外距离候选节点最远的普通节点,记为第三筛选节点p3。若第三筛选节点p3与候选节点的间距大于R,则进入步骤5-5;否则,以候选节点作为充电停留点cij,并直接进入步骤5-6。If the number of common nodes in the feature set Q ij is greater than or equal to three, the two common nodes with the farthest distance in the feature set Q ij are selected as the first screening node p 1 and the second screening node p 2 . The midpoint of the line connecting the first screening node p 1 and the second screening node p 2 is taken as a candidate node. Find the common node in the candidate set Q j that is farthest from the candidate node except the first screening node p 1 and the second screening node p 2 , and denote it as the third screening node p 3 . If the distance between the third screening node p 3 and the candidate node is greater than R, proceed to step 5-5; otherwise, take the candidate node as the charging stop point c ij , and directly proceed to step 5-6.

5-5.以第一筛选节点p1、第二筛选节点p2、第三筛选节点p3分别为特征三角形的三个顶点,建立特征三角形。以特征三角形的外心作充电停留点cij,然后进入步骤5-6。5-5. Take the first screening node p 1 , the second screening node p 2 , and the third screening node p 3 as the three vertices of the characteristic triangle, respectively, to establish a characteristic triangle. Take the outer center of the characteristic triangle as the charging stop point c ij , and then proceed to step 5-6.

5-6.若候选集合Si中还存在普通节点,则将j增大1,并重复执行步骤5-3至5-5;否则,进入步骤6。5-6. If there are common nodes in the candidate set Si, increase j by 1, and repeat steps 5-3 to 5-5; otherwise, go to step 6.

步骤6、若总节点集合U内还有普通节点,则将i增大1后,并重复执行步骤3至步骤5。若总节点集合U内没有普通节点,则完成所有充电停留点cij位置的确定,所有的充电停留点cij组成停留点集合M,并进入步骤7。Step 6: If there are common nodes in the total node set U, increase i by 1, and repeat steps 3 to 5. If there is no common node in the total node set U, the determination of the positions of all the charging stop points c ij is completed, and all the charging stop points c ij form the stop point set M, and the process goes to step 7 .

步骤7、将停留点集合M内充电停留点按照确定位置的先后顺序排序,并得到停留点集合M内两两点之间的连线段和距离值,共得到

Figure BDA0002605966260000061
条线段,m为停留点集合M内充电停留点的数量。该
Figure BDA0002605966260000062
条线段组成线集合V。并将线集合V内的
Figure BDA0002605966260000063
条线段按照从短到长的顺序进行排序并编号。Step 7. Sort the charging stop points in the stop point set M according to the sequence of the determined positions, and obtain the connecting line segment and the distance value between two points in the stop point set M, and obtain a total of
Figure BDA0002605966260000061
line segment, m is the number of charging stop points in the stop point set M. Should
Figure BDA0002605966260000062
The line segments form the line set V. and put the lines within the set V
Figure BDA0002605966260000063
Line segments are sorted and numbered from shortest to longest.

步骤8、取一个初始空线集合T;将1赋值给i。Step 8. Take an initial empty line set T; assign 1 to i.

步骤9、在线集合V中编号为i的线段li(即长度最短的线段),加入线集合T并从线集合V中删除。判断线集合T中的线段是否出现分枝;若出现分枝,则将刚加入线集合T中的线段li从线集合T中删除;否则,进入步骤10。如图5a所示,分枝表示线集合T中有任意三条或三条以上的线段交于同一个充电停留点。Step 9: The line segment li (ie, the line segment with the shortest length) numbered i in the line set V is added to the line set T and deleted from the line set V. Determine whether the line segment in the line set T has a branch; if there is a branch, delete the line segment li just added to the line set T from the line set T; otherwise, go to step 10. As shown in Fig. 5a, the branch indicates that any three or more line segments in the line set T intersect at the same charging stop point.

步骤10、判断线集合T中的线段是否形成回路,若未形成回路,则将i增大1,并执行步骤9;若形成回路,则进入步骤11。如图5b所示,形成回路表示线集合T中的有多条线段形成依次首尾相连的封闭环形。Step 10: Determine whether the line segments in the line set T form a loop, if no loop is formed, increase i by 1, and execute Step 9; if a loop is formed, go to Step 11. As shown in Fig. 5b, forming a loop means that a plurality of line segments in the line set T form a closed loop connected end to end in sequence.

步骤11、若线集合T内的线段数量小于m,则将最近加入线集合T中的线段li从线集合T中删除,将i增大1,并执行步骤9和10;若线集合T内的线段数量等于m,则线集合T内形成回路的m条线段即为充电路径,如图6所示。Step 11. If the number of line segments in the line set T is less than m, delete the line segment l i recently added to the line set T from the line set T, increase i by 1, and perform steps 9 and 10; if the line set T If the number of line segments is equal to m, the m line segments forming a loop in the line set T are the charging path, as shown in FIG. 6 .

步骤12、设定充电基站的位置;充电基站用于为充电小车充电。充电小车从充电基站行驶到距离充电基站最近的充电停留点,并沿着充电路径行驶;充电小车每到达一个充电停留点时均停止,为以该充电停留点为圆心,R为半径的圆形范围内的无线传感器充电;直到该圆形范围内的无线传感器均充满电后,充电小车继续向下个充电停留点行驶。Step 12: Set the location of the charging base station; the charging base station is used to charge the charging car. The charging trolley travels from the charging base station to the charging stop point closest to the charging base station, and drives along the charging path; the charging trolley stops every time it reaches a charging stop point, which is a circle with the charging stop point as the center and R as the radius The wireless sensors within the range are charged; until the wireless sensors within the circular range are fully charged, the charging trolley continues to drive to the next charging stop point.

充电小车内的电量低于预设值时,充电小车返回到充电基站为自身补充电量;充电小车本身电量补充完成后,继续行驶到充电路径上为各无线传感器充电。When the power in the charging trolley is lower than the preset value, the charging trolley returns to the charging base station to replenish power for itself; after the charging trolley itself is replenished, it continues to drive to the charging path to charge each wireless sensor.

为了验证本发明在充电小车运行总路径上的优势,将本发明中的算法与发表在外文期刊《sensors》上的文章“Joint Power Charging and Routing in WirelessRechargeable Sensor Networks”里的两种算法“GA”算法(即遗传算法)和“APS”算法(即锚点选择算法)进行对比;结果如图7所示。In order to verify the advantages of the present invention in the overall running path of the charging car, the algorithm in the present invention is compared with the two algorithms "GA" in the article "Joint Power Charging and Routing in WirelessRechargeable Sensor Networks" published in the foreign journal "sensors". The algorithm (ie, the genetic algorithm) is compared with the "APS" algorithm (ie, the anchor point selection algorithm); the results are shown in Figure 7.

在图7中,横坐标为传感器节点的个数,纵坐标为充电小车的移动总路径;三角形连线(GA)、星型连线(APS)与文章“Joint Power Charging and Routing in WirelessRechargeable Sensor Networks”里的算法对应;圆点连线(DGA)与本发明对应;可以明显看出在相同平面内布置一定的传感器节点,节点数目较少时三种算法的移动总路径长度相差不多;而在节点数增加到200个之后,差距开始体现;本发明所需的移动总路径长度明显较少;且此后随着节点数继续增加,路径值增长趋势也较慢。由此可以看出,本发明在减少小车移动路径的实现上面更优秀,对整个无线可充电传感器网络的充电效率都能进一步提高。In Figure 7, the abscissa is the number of sensor nodes, and the ordinate is the total moving path of the charging car; the triangle connection (GA), star connection (APS) and the article "Joint Power Charging and Routing in WirelessRechargeable Sensor Networks" ” corresponds to the algorithm in ”; the dotted line (DGA) corresponds to the present invention; it can be clearly seen that a certain number of sensor nodes are arranged in the same plane, and the total moving path lengths of the three algorithms are similar when the number of nodes is small; After the number of nodes increases to 200, the gap begins to manifest; the total moving path length required by the present invention is obviously less; and thereafter, as the number of nodes continues to increase, the growth trend of the path value is also slower. It can be seen from this that the present invention is more excellent in the realization of reducing the moving path of the trolley, and the charging efficiency of the entire wireless rechargeable sensor network can be further improved.

实施例2Example 2

本实施例与实施例1的区别在于:确定具体的充电基站位置;充电基站位置位于步骤1所述矩形范围的中心点。The difference between this embodiment and Embodiment 1 is that the specific charging base station position is determined; the charging base station position is located at the center point of the rectangular range described in step 1.

实施例3Example 3

本实施例与实施例1的区别在于:确定具体的充电基站位置;充电基站位置位于任意一个充电停留点处。The difference between this embodiment and Embodiment 1 is that a specific charging base station location is determined; the charging base station location is located at any charging stop point.

实施例4Example 4

本实施例与实施例1的区别在于:确定具体的充电基站位置;充电基站位置位于充电密集点。充电密集点是所有充电停留点中,到相邻两个充电停留点的距离之和最小的那个充电停留点。The difference between this embodiment and Embodiment 1 is that: the specific location of the charging base station is determined; the location of the charging base station is located at a charging intensive point. The charging intensive point is the charging stop point with the smallest sum of distances to two adjacent charging stop points among all the charging stop points.

Claims (6)

1. A mobile charging method of a wireless sensor network based on a greedy algorithm is characterized in that: step one, determining a plurality of charging stop point positions in a wireless sensor network; all wireless sensors are within an active charging region of at least one charging dwell point; each charging stop point forms a stop point set M;
step two, obtaining line segments between every two points in the stop point set M to obtain the line segments
Figure FDA0003556913700000011
A line segment, wherein M is the number of charging stop points in the stop point set M; the device is
Figure FDA0003556913700000012
The line segments form a line set V;
step three, taking an initial blank line set T;
adding the segment with the shortest length in the line set V into the line set T and deleting the segment from the line set V; judging whether the line segments in the line set T are branched or not; any three or more line segments in the branch indicating line set T are handed over to the same charging stop point; if the branch appears, deleting the line segment just added into the line set T from the line set T; otherwise, entering the step five;
step five, judging whether the line segments in the line set T form a loop, and if the line segments in the line set T do not form a loop, executing the step four again; if a loop is formed, entering a sixth step;
step six, if the number of the line segments in the line set T is less than m, deleting the line segments which are recently added into the line set T from the line set T, and executing the step four and the step five again; if the number of the line segments in the line set T is equal to m, the m line segments forming a loop in the line set T are charging paths;
step seven, setting the position of a charging base station for charging the charging trolley; the charging trolley is driven out from the charging base station and runs along a charging path; when the charging trolley reaches a charging stop point, charging the wireless sensor in the effective charging area of the charging stop point; all wireless sensors are charged as the charging trolley travels and stops along the charging path.
2. The mobile charging method of the wireless sensor network based on the greedy algorithm, according to claim 1, wherein: the specific method for determining each charging stop point in the first step is as follows:
step 1, establishing a planar rectangular coordinate system, and placing n common nodes corresponding to the positions of n wirelessly rechargeable sensors into a first quadrant of the planar rectangular coordinate system; a set formed by n common nodes is a total node set U; n common nodes are all in a rectangular range; then, taking the geometric center of the rectangular range as a central point, and sequencing and numbering the n common nodes from small to large according to the distances from the central point;
step 2, assigning 1 to i;
step 3, taking the common node with the minimum number in the total node set U as the ith central node Oi
Step 4, using the ith central node OiAs the center of circle, 2R is a circle with radius,obtaining an ith characteristic circle, wherein R is the effective charging area radius of charging equipment on the charging trolley; adding all common nodes positioned in the ith characteristic circle into a candidate set SiAnd is removed from the total node set U;
step 5, determining the positions of one or more charging stop points in the range of the ith characteristic circle;
5-1, with the ith central node OiTaking R as radius as circle center to obtain ith central circle;
5-2, assigning 1 to j;
5-3, optionally selecting a point on the outline of the ith central circle as the center of the circle, and making a circle by taking R as the radius to obtain a candidate circle; moving the circle center of the candidate circle for one circle along the edge of the ith central circle to determine a candidate set S capable of being coverediThe candidate circle position with the largest number of normal nodes is used as the covered circleij(ii) a Will cover round oijFrom the candidate set SiRemoving and adding a feature set Qij
5-4. if feature set QijOnly one common node is arranged in the charging device, and the common node is taken as a charging stop point cij
If the feature set QijIf there are two common nodes, the middle point of the connecting line of the two common nodes is taken as the charging stop point cij
If the feature set QijIf the number of the inner common nodes is more than or equal to three, taking a characteristic set QijTwo common nodes with the farthest distance in the middle are marked as a first screening node p1Second screening node p2(ii) a Get the first screening node p1And a second screening node p2The midpoint of the connecting line is used as a candidate node; finding a feature set QijRemoving the first screening node p1A second screening node p2The common node farthest from the candidate node is marked as a third screening node p3(ii) a If the third screening node p3If the distance between the candidate node and the candidate node is larger than R, entering the step 5-5; otherwise, taking the candidate node as a charging stop point cijAnd directly entering the step 5-6;
5-5, screening the node p by the first screening node1Second screening node p2A third screening node p3Establishing a characteristic triangle for three vertexes of the characteristic triangle respectively; using the outer center of the characteristic triangle as a charging stop point cijThen entering step 5-6;
5-6. if the candidate set SiIf the common node exists, increasing j by 1, and repeatedly executing the steps 5-3 to 5-5; otherwise, entering step 6;
step 6, if common nodes exist in the total node set U, increasing i by 1, and repeating the steps 3 to 5; if no common node exists in the total node set U, all charging stop points c are completedijDetermination of position, all charging stop points cijA set of stop points M is formed.
3. The mobile charging method of the wireless sensor network based on the greedy algorithm, according to claim 1, wherein: step seven, when the electric quantity in the charging trolley is lower than a preset value, the charging trolley returns to the charging base station to supplement the electric quantity for the charging trolley; and after the electric quantity of the charging trolley is supplemented, the charging trolley continuously runs to a charging path to charge each wireless sensor.
4. The mobile charging method of the wireless sensor network based on the greedy algorithm, according to claim 1, wherein: and step five, forming a plurality of line segments in the loop representation line set T to form a ring shape which is sequentially connected end to end.
5. The mobile charging method of the wireless sensor network based on the greedy algorithm, according to claim 1, wherein: the charging base station is positioned at any one charging stop point.
6. The mobile charging method of the wireless sensor network based on the greedy algorithm, according to claim 1, wherein: the charging base station is positioned at a charging dense point; the charging intensive point is the charging stop point with the minimum sum of the distances from the charging stop points to two adjacent charging stop points.
CN202010738906.9A 2020-07-28 2020-07-28 Mobile charging method of wireless sensor network based on greedy algorithm Expired - Fee Related CN111836193B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010738906.9A CN111836193B (en) 2020-07-28 2020-07-28 Mobile charging method of wireless sensor network based on greedy algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010738906.9A CN111836193B (en) 2020-07-28 2020-07-28 Mobile charging method of wireless sensor network based on greedy algorithm

Publications (2)

Publication Number Publication Date
CN111836193A CN111836193A (en) 2020-10-27
CN111836193B true CN111836193B (en) 2022-05-03

Family

ID=72919178

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010738906.9A Expired - Fee Related CN111836193B (en) 2020-07-28 2020-07-28 Mobile charging method of wireless sensor network based on greedy algorithm

Country Status (1)

Country Link
CN (1) CN111836193B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115759505B (en) * 2023-01-10 2023-07-11 南京邮电大学 A task-oriented scheduling method for multiple mobile charging vehicles

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7363126B1 (en) * 2002-08-22 2008-04-22 United Parcel Service Of America Core area territory planning for optimizing driver familiarity and route flexibility
CN106403968A (en) * 2016-06-06 2017-02-15 四川大学 Planning method for charging of wireless rechargeable sensor networks (WRSNs) with heterogeneous mobile charging vehicles
CN109246602B (en) * 2018-09-14 2020-06-23 杭州电子科技大学温州研究院有限公司 Charging base station deployment method of wireless chargeable sensor network
CN110248330B (en) * 2019-05-22 2022-06-14 杭州电子科技大学 Maximum charging trolley rest time scheduling method based on relay charging model
CN110351735B (en) * 2019-08-15 2021-10-29 杭州电子科技大学温州研究院有限公司 A wireless rechargeable sensor network base station deployment method based on greedy algorithm
CN110677892B (en) * 2019-09-24 2022-08-30 深圳职业技术学院 Wireless sensor network circulating charging method and system

Also Published As

Publication number Publication date
CN111836193A (en) 2020-10-27

Similar Documents

Publication Publication Date Title
CN109583665B (en) Unmanned aerial vehicle charging task scheduling method in wireless sensor network
CN110062390B (en) Wireless sensor network node optimization deployment method based on improved wolf colony algorithm
CN109862612B (en) Data collection and wireless charging method based on dual-function trolley moving path planning
CN111277951B (en) A wireless rechargeable sensor network charger deployment method based on greedy submodules
CN109511150B (en) Mobile charging vehicle path planning method based on single-pair multi-charging technology
Wang et al. An entropy-based weighted clustering algorithm and its optimization for ad hoc networks
CN108195380A (en) A kind of AGV optimal route selection methods based on shortest path
CN110579214A (en) UAV path planning method and device
CN112070341B (en) Distributed solving method for multi-robot charging strategy
CN110610273A (en) Vehicle-mounted machine cooperative inspection method
Zhou et al. Leveraging target k-coverage in wireless rechargeable sensor networks
CN111836193B (en) Mobile charging method of wireless sensor network based on greedy algorithm
CN109348483B (en) Deployment method of fixed-point charging base station for wireless rechargeable sensor network
CN110351735B (en) A wireless rechargeable sensor network base station deployment method based on greedy algorithm
CN110034596B (en) Multi-base-station charging method based on SOM neural network in WRSNs
CN110068337B (en) Unmanned aerial vehicle scheduling method and system for sensor node charging
CN113659670A (en) Wireless sensor network charging method based on region division
Xu et al. Cooperative charging as service: Scheduling for mobile wireless rechargeable sensor networks
CN109495843B (en) A fixed-point wireless charging base station deployment method based on convex hull selection
CN110059848B (en) WSN charging service site setting method and charging equipment driving path planning method
CN115589367A (en) Multi-charger carrier separation charging method based on deep reinforcement learning
CN109688593B (en) Charging base station deployment method based on core node rule
CN111224450B (en) Multi-position simultaneous charging method for large-scale wireless sensor network
CN113507172A (en) Wireless sensor network node charging method based on mobile charging vehicle
CN109246602B (en) Charging base station deployment method of wireless chargeable sensor network

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221101

Address after: No. G3-1, Floor 3, Building G, South Zhejiang Yungu, No. 2003, Nanyang Avenue, Yaoxi Street, Longwan District, Wenzhou City, Zhejiang Province 325,038

Patentee after: Zhejiang shushuo Sports Technology Co.,Ltd.

Address before: 3 / F and 4 / F, building B, Yungu, Zhejiang Province, Nanyang Avenue, Yaoxi street, Longwan District, Wenzhou City, Zhejiang Province

Patentee before: HANGZHOU DIANZI UNIVERSITY WENZHOU RESEARCH INSTITUTE Co.,Ltd.

Patentee before: HANGZHOU DIANZI University

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230327

Address after: 325000 No. g3-1, floor 3, building g, Yungu, South Zhejiang, No. 2003, Nanyang Avenue, Yaoxi street, Longwan District, Wenzhou City, Zhejiang Province

Patentee after: Dolphin Culture and Sports Co.,Ltd.

Address before: No. G3-1, Floor 3, Building G, South Zhejiang Yungu, No. 2003, Nanyang Avenue, Yaoxi Street, Longwan District, Wenzhou City, Zhejiang Province 325,038

Patentee before: Zhejiang shushuo Sports Technology Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20220503