CN108495252B - Indoor positioning network element optimization layout method based on genetic algorithm and simulated annealing - Google Patents
Indoor positioning network element optimization layout method based on genetic algorithm and simulated annealing Download PDFInfo
- Publication number
- CN108495252B CN108495252B CN201810165059.4A CN201810165059A CN108495252B CN 108495252 B CN108495252 B CN 108495252B CN 201810165059 A CN201810165059 A CN 201810165059A CN 108495252 B CN108495252 B CN 108495252B
- Authority
- CN
- China
- Prior art keywords
- network element
- layout
- element layout
- simulated annealing
- genetic algorithm
- 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.)
- Active
Links
- 230000002068 genetic effect Effects 0.000 title claims abstract description 42
- 238000000034 method Methods 0.000 title claims abstract description 31
- 238000002922 simulated annealing Methods 0.000 title claims abstract description 31
- 238000005457 optimization Methods 0.000 title claims abstract description 6
- 230000003044 adaptive effect Effects 0.000 claims abstract description 11
- 230000035772 mutation Effects 0.000 claims description 21
- 210000000349 chromosome Anatomy 0.000 claims description 3
- 239000011159 matrix material Substances 0.000 claims description 3
- 238000012360 testing method Methods 0.000 claims description 3
- 230000009191 jumping Effects 0.000 claims 2
- 238000005070 sampling Methods 0.000 claims 1
- 230000008569 process Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000011160 research Methods 0.000 description 3
- 238000004088 simulation Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 210000004027 cell Anatomy 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000008713 feedback mechanism Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000002028 premature Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/025—Services making use of location information using location based information parameters
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/004—Artificial life, i.e. computing arrangements simulating life
- G06N3/006—Artificial life, i.e. computing arrangements simulating life based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/30—Services specially adapted for particular environments, situations or purposes
- H04W4/33—Services specially adapted for particular environments, situations or purposes for indoor environments, e.g. buildings
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W64/00—Locating users or terminals or network equipment for network management purposes, e.g. mobility management
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Computing Systems (AREA)
- Biomedical Technology (AREA)
- Biophysics (AREA)
- Computational Linguistics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Evolutionary Computation (AREA)
- General Health & Medical Sciences (AREA)
- Molecular Biology (AREA)
- Artificial Intelligence (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Health & Medical Sciences (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Design And Manufacture Of Integrated Circuits (AREA)
Abstract
Description
技术领域technical field
本发明属于室内定位领域,尤其涉及基于遗传算法和模拟退火的室内定位网元优化布局方法。The invention belongs to the field of indoor positioning, in particular to an indoor positioning network element optimization layout method based on genetic algorithm and simulated annealing.
背景技术Background technique
随着网络技术和通信技术的发展,位置服务变得日益重要,由于人的绝大多数活动都是在室内进行的,因此室内定位越来越多地受到人们的关注,其中基于UWB的室内定位技术在特定的场景下可以达到厘米级的定位精度,已被广泛地应用于各种室内定位产品中,但是UWB的定位基站布设成本非常高,当网元的数量有限时,如何布局可以使得定位信号的覆盖范围最大、定位精度最高是一个很有意义的研究课题。With the development of network technology and communication technology, location services have become increasingly important. Since most of the activities of people are carried out indoors, indoor positioning has attracted more and more attention. Among them, indoor positioning based on UWB The technology can achieve centimeter-level positioning accuracy in specific scenarios, and has been widely used in various indoor positioning products. However, the deployment cost of UWB positioning base stations is very high. When the number of network elements is limited, how to layout can make positioning It is a very meaningful research topic to have the largest coverage of the signal and the highest positioning accuracy.
网元优化布局问题是一个NP难问题,目前的研究都停留在应用启发式算法寻找最优解的程度。其中遗传算法能从概率意义上以随机的方式寻求到最优解,文献“Agapie A,Wright A H.Theoretical analysis of steady state genetic algorithms[J].Applications of Mathematics,2014,59(5):509-525.Theoretical analysis ofsteady state genetic algorithms”利用遗传算法来解决无线网络的规划问题,但是遗传算法并没有可行的反馈机制,在某些情况下会产生大量的冗余迭代,造成效率低等问题,同时实际应用中遗传算法会出现易产生早熟现象、局部寻优能力较差等问题。模拟退火算法具有较强的局部搜索能力,并能使搜索过程避免陷入局部最优解,它不适合整个搜索空间,很难使搜索过程进入最有希望的搜索区域。文献“Han R,Feng C,Xia H,et al.Coverageoptimization for dense deployment small cell based on ant colony algorithm[C],2014IEEE80th.IEEE,2014:1-5”利用蚁群算法对网元进行布局主要将网元部署的成本和覆盖作为布局目标,但是在蚁群算法搜索的初期阶段,存在很少甚至没有可用信息的情况,因此蚁群算法收敛速度缓慢。在室内定位仿真方面,文献一种高精度室内定位仿真系统的研究与实现,可以在特定室内场景中输入一种网元布局得到待定位区域的定位信号覆盖率和平均定位误差。The problem of optimal layout of network elements is a NP-hard problem, and the current researches all stay at the level of applying heuristic algorithms to find the optimal solution. Among them, the genetic algorithm can find the optimal solution in a random way in the sense of probability. The document "Agapie A, Wright A H. Theoretical analysis of steady state genetic algorithms [J]. Applications of Mathematics, 2014, 59(5): 509 -525. Theoretical analysis of steady state genetic algorithms" uses genetic algorithms to solve wireless network planning problems, but genetic algorithms do not have a feasible feedback mechanism, and in some cases, a large number of redundant iterations will be generated, resulting in low efficiency and other problems. At the same time, in practical application, the genetic algorithm will be prone to premature phenomenon and poor local optimization ability. Simulated annealing algorithm has strong local search ability and can avoid the search process from falling into the local optimal solution. It is not suitable for the entire search space, and it is difficult to make the search process enter the most promising search area. The document "Han R, Feng C, Xia H, et al.Coverageoptimization for dense deployment small cell based on ant colony algorithm[C],2014IEEE80th.IEEE,2014:1-5" uses ant colony algorithm to lay out network elements The cost and coverage of network element deployment are the layout goals, but in the initial stage of ant colony algorithm search, there is little or no available information, so the convergence speed of ant colony algorithm is slow. In the aspect of indoor positioning simulation, the research and implementation of a high-precision indoor positioning simulation system in the literature can input a network element layout in a specific indoor scene to obtain the positioning signal coverage and average positioning error of the area to be located.
发明内容SUMMARY OF THE INVENTION
本发明的目的在于公开局部搜索能力强、效率高的基于遗传算法和模拟退火的室内定位网元优化布局方法。The purpose of the present invention is to disclose an indoor positioning network element optimization layout method based on genetic algorithm and simulated annealing with strong local search ability and high efficiency.
本发明的目的是这样实现的:The object of the present invention is achieved in this way:
基于遗传算法和模拟退火的室内定位网元优化布局方法,包含如下步骤:The optimal layout method of indoor positioning network elements based on genetic algorithm and simulated annealing includes the following steps:
步骤(1):进行网元布局:将可布设网元的位置顺序编号并布设网元,同时将每个网元的编号转化为二进制编码:Step (1): Layout of network elements: Number the positions of arrangable network elements in sequence and arrange the network elements, and at the same time convert the number of each network element into a binary code:
在特定室内场景的平面图中画网格,认为室内场景外墙上网格的交点为可布设网元的位置,在所有可布设网元的位置布设网元并按顺序编号,同时将每个网元的编号转化为二进制编码。Draw grids in the floor plan of a specific indoor scene, and consider the intersection of the grids on the exterior walls of the indoor scene as the positions where network elements can be deployed. The number is converted to binary code.
步骤(2):确定自适应遗传算法需要的控制参数,包括种群规模、最大迭代次数、交叉概率和变异概率:Step (2): Determine the control parameters required by the adaptive genetic algorithm, including population size, maximum number of iterations, crossover probability and mutation probability:
自适应遗传算法需要的控制参数包括:种群规模、最大迭代次数、交叉概率和变异概率。在网元布局中,需要n个网元,每个网元的二进制编码为m位二进制数,每种网元布局看成一条长len=n*m的染色体。若种群数目为k,则种群规模为k*len的矩阵。The control parameters required by the adaptive genetic algorithm include: population size, maximum number of iterations, crossover probability and mutation probability. In the network element layout, n network elements are required, the binary code of each network element is an m-bit binary number, and each network element layout is regarded as a chromosome with a length of len=n*m. If the number of populations is k, the population size is a matrix of k*len.
步骤(3):对网元布局进行初始化:在所有可布设网元群体中随机选择n个互异的网元作为初始网元布局;Step (3): Initialize the network element layout: randomly select n mutually different network elements from all arrangable network element groups as the initial network element layout;
步骤(4):计算适应度:Step (4): Calculate the fitness:
适应度:adaptability:
上式中,N表示定位区域测试点的个数,ERRORi表示定位点i的定位误差。In the above formula, N represents the number of test points in the positioning area, and ERROR i represents the positioning error of the positioning point i.
步骤(5):迭代判定是否满足遗传收敛条件,如果满足遗传收敛条件则跳转到步骤(9),否则跳转到步骤(6);Step (5): iteratively determine whether the genetic convergence condition is met, if the genetic convergence condition is met, jump to step (9), otherwise jump to step (6);
步骤(6):选择适应度较高的网元布局:Step (6): Select the network element layout with higher fitness:
在0和总适应度之间产生一个随机数r,然后按照轮盘赌的方式对种群个体进行随机抽样,种群个体xi被选择的概率F(xi):A random number r is generated between 0 and the total fitness, and then the population individuals are randomly sampled according to the roulette method, and the probability that the population individual x i is selected is F( xi ):
上式中,f(xi)是种群个体xi的适应度;把适应度较高的网元布局选择出来。In the above formula, f( xi ) is the fitness of the population individual xi ; the network element layout with higher fitness is selected.
步骤(7):将适应度较高的网元布局按照交叉概率Pb对二进制编码进行交叉操作获得子代:Step (7): Perform a crossover operation on the binary code according to the crossover probability P b of the network element layout with higher fitness to obtain the offspring:
采取单点交叉操作:首先生成一个随机实数0≤r≤1,设置交叉概率0<Pb<1,如果r<Pb则需要进行交叉,否则不进行。如果需要交叉,则再随机选择交叉位置,将交叉位置以后的二进制串编码对换。Take a single-point crossover operation: first generate a random real number 0≤r≤1, set the crossover probability 0<P b <1, if r<P b , crossover needs to be performed, otherwise it is not performed. If crossover is required, the crossover position is randomly selected, and the codes of the binary strings after the crossover position are exchanged.
步骤(8):将适应度较高的网元布局按照变异概率Py对二进制编码进行取反操作获得变异:Step (8): Invert the binary code according to the mutation probability P y for the network element layout with higher fitness to obtain mutation:
生成一个随机实数0≤r≤1,如果r<Py则进行变异,0<Py<1为变异概率;如需要进行变异,首先需要确定变异位置rand*chromo_size,若为0则不进行变异,否则对变异位置的二进制编码进行取反操作产生变异,使1变成0,0变成1。Generate a random real number 0≤r≤1, if r<P y , mutate, 0<P y <1 is the mutation probability; if mutation is required, first determine the mutation position rand*chromo_size, if it is 0, do not mutate , otherwise the inversion operation of the binary code of the mutation position produces mutation, so that 1 becomes 0 and 0 becomes 1.
步骤(9):产生局部最优网元布局结果,并根据坐标信息产生新的网元布设空间:Step (9): Generate a local optimal network element layout result, and generate a new network element layout space according to the coordinate information:
通过自适应遗传算法得到局部最优网元布局结果后,转换局部最优网元布局结果的二进制编码为十进制编码和对应的坐标信息。保持高度值z不变的前提下,在xOy平面内以局部最优网元布局结果中的每一个网元位置为中心,分别做正六边形,并计算每个正六边形顶点位置的坐标信息,和每一个网元位置为中心一起作为新的网元布设空间。;正六边形的中心点的网元新编号为十进制编码后面添“00”,每一个正六边形的顶点编号由正六边形的中心点的网元的十进制编码后面按照顺时针方向依次添加“01”“02”“03”“04”“05”“06”。After the local optimal network element layout result is obtained through the adaptive genetic algorithm, the binary code of the local optimal network element layout result is converted into decimal code and corresponding coordinate information. Under the premise of keeping the height value z unchanged, in the xOy plane, with each network element position in the local optimal network element layout result as the center, make a regular hexagon, and calculate the coordinate information of the vertex position of each regular hexagon. , and each network element location is the center as a new network element layout space. ;The new number of the network element at the center point of the regular hexagon is the decimal code followed by "00", and the vertex number of each regular hexagon is followed by the decimal code of the network element at the center point of the regular hexagon followed by adding "00" in a clockwise direction. 01" "02" "03" "04" "05" "06".
步骤(10):用模拟退火的网元布局算法对群体进行模拟退火操作,获取到相对最优的网元布局的方法:Step (10): use the simulated annealing network element layout algorithm to perform a simulated annealing operation on the population to obtain a relatively optimal network element layout method:
模拟退火的网元布局算法:从某一较高温度出发,伴随温度参数的下降,根据当前网元布局的定位精度与新的网元布设空间定位精度以一定概率接受新的网元布设空间,通过对整个物理空间中网元布局的所有可能情况的随机选取,最终获取到相对最优的网元布局的方法。The network element layout algorithm of simulated annealing: starting from a higher temperature, with the decrease of temperature parameters, according to the positioning accuracy of the current network element layout and the positioning accuracy of the new network element layout space, the new network element layout space is accepted with a certain probability. Through random selection of all possible situations of network element layout in the entire physical space, a relatively optimal network element layout method is finally obtained.
步骤(11):用相对最优的网元布局的方法产生最优网元布局结果;Step (11): generating an optimal network element layout result by using a relatively optimal network element layout method;
步骤(12):输出最优网元布局结果,结束。Step (12): output the optimal network element layout result, and end.
本发明的有益效果为:The beneficial effects of the present invention are:
本发明以自适应遗传算法作为主体流程,把模拟退火机制融入其中,来调整优化群体。既有较强的全局搜索能力,也有较强的局部搜索能力,提高了定位精度。由于在进行模拟退火算法之前改变了网元布局群体,不但提高了搜索效率,而且得到的网元布局结果更加接近实际的最优网元布局结果。The invention takes the adaptive genetic algorithm as the main process, and integrates the simulated annealing mechanism into it to adjust and optimize the population. It has strong global search ability and strong local search ability, which improves the positioning accuracy. Because the network element layout group is changed before the simulated annealing algorithm is performed, not only the search efficiency is improved, but also the obtained network element layout result is closer to the actual optimal network element layout result.
附图说明Description of drawings
图1是基于遗传算法和模拟退火的室内定位网元优化布局方法流程图;Fig. 1 is the flow chart of the optimal layout method of indoor positioning network elements based on genetic algorithm and simulated annealing;
图2是具体实施方式场景中网元布局变化示意图;FIG. 2 is a schematic diagram of network element layout changes in a specific embodiment scenario;
图3具体实施场景中3号网元的重新编码情况示意图。FIG. 3 is a schematic diagram of the recoding situation of network element No. 3 in a specific implementation scenario.
具体实施方式Detailed ways
下面结合附图来进一步描述本发明:The present invention will be further described below in conjunction with the accompanying drawings:
基于遗传算法和模拟退火的室内定位网元优化布局方法,包含如下步骤:The optimal layout method of indoor positioning network elements based on genetic algorithm and simulated annealing includes the following steps:
步骤(1):进行网元布局:将可布设网元的位置顺序编号并布设网元,同时将每个网元的编号转化为二进制编码:Step (1): Layout of network elements: Number the positions of arrangable network elements in sequence and arrange the network elements, and at the same time convert the number of each network element into a binary code:
在特定室内场景的平面图中画网格,认为室内场景外墙上网格的交点为可布设网元的位置,在所有可布设网元的位置布设网元并按顺序编号,同时将每个网元的编号转化为二进制编码。Draw grids in the floor plan of a specific indoor scene, and consider the intersection of the grids on the exterior walls of the indoor scene as the positions where network elements can be deployed. The number is converted to binary code.
步骤(2):确定自适应遗传算法需要的控制参数,包括种群规模、最大迭代次数、交叉概率和变异概率:Step (2): Determine the control parameters required by the adaptive genetic algorithm, including population size, maximum number of iterations, crossover probability and mutation probability:
自适应遗传算法需要的控制参数包括:种群规模、最大迭代次数、交叉概率和变异概率。在网元布局中,需要n个网元,每个网元的二进制编码为m位二进制数,每种网元布局看成一条长len=n*m的染色体。若种群数目为k,则种群规模为k*len的矩阵。The control parameters required by the adaptive genetic algorithm include: population size, maximum number of iterations, crossover probability and mutation probability. In the network element layout, n network elements are required, the binary code of each network element is an m-bit binary number, and each network element layout is regarded as a chromosome with a length of len=n*m. If the number of populations is k, the population size is a matrix of k*len.
步骤(3):对网元布局进行初始化:在所有可布设网元群体中随机选择n个互异的网元作为初始网元布局;Step (3): Initialize the network element layout: randomly select n mutually different network elements from all arrangable network element groups as the initial network element layout;
步骤(4):计算适应度:Step (4): Calculate the fitness:
适应度:adaptability:
上式中,N表示定位区域测试点的个数,ERRORi表示定位点i的定位误差。In the above formula, N represents the number of test points in the positioning area, and ERROR i represents the positioning error of the positioning point i.
步骤(5):迭代判定是否满足遗传收敛条件,如果满足遗传收敛条件则跳转到步骤(9),否则跳转到步骤(6);Step (5): iteratively determine whether the genetic convergence condition is met, if the genetic convergence condition is met, jump to step (9), otherwise jump to step (6);
步骤(6):选择适应度较高的网元布局:Step (6): Select the network element layout with higher fitness:
在0和总适应度之间产生一个随机数r,然后按照轮盘赌的方式对种群个体进行随机抽样,种群个体xi被选择的概率F(xi):A random number r is generated between 0 and the total fitness, and then the population individuals are randomly sampled according to the roulette method, and the probability that the population individual x i is selected is F( xi ):
上式中,f(xi)是种群个体xi的适应度;把适应度较高的网元布局选择出来。In the above formula, f( xi ) is the fitness of the population individual xi ; the network element layout with higher fitness is selected.
步骤(7):将适应度较高的网元布局按照交叉概率Pb对二进制编码进行交叉操作获得子代:Step (7): Perform a crossover operation on the binary code according to the crossover probability P b of the network element layout with higher fitness to obtain the offspring:
采取单点交叉操作:首先生成一个随机实数0≤r≤1,设置交叉概率0<Pb<1,如果r<Pb则需要进行交叉,否则不进行。如果需要交叉,则再随机选择交叉位置,将交叉位置以后的二进制串编码对换。Take a single-point crossover operation: first generate a random real number 0≤r≤1, set the crossover probability 0<P b <1, if r<P b , crossover needs to be performed, otherwise it is not performed. If crossover is required, the crossover position is randomly selected, and the codes of the binary strings after the crossover position are exchanged.
步骤(8):将适应度较高的网元布局按照变异概率Py对二进制编码进行取反操作获得变异:Step (8): Invert the binary code according to the mutation probability P y for the network element layout with higher fitness to obtain mutation:
生成一个随机实数0≤r≤1,如果r<Py则进行变异,0<Py<1为变异概率;如需要进行变异,首先需要确定变异位置rand*chromo_size,若为0则不进行变异,否则对变异位置的二进制编码进行取反操作产生变异,使1变成0,0变成1。Generate a random real number 0≤r≤1, if r<P y , mutate, 0<P y <1 is the mutation probability; if mutation is required, first determine the mutation position rand*chromo_size, if it is 0, do not mutate , otherwise the inversion operation of the binary code of the mutation position produces mutation, so that 1 becomes 0 and 0 becomes 1.
步骤(9):产生局部最优网元布局结果,并根据坐标信息产生新的网元布设空间:Step (9): Generate a local optimal network element layout result, and generate a new network element layout space according to the coordinate information:
通过自适应遗传算法得到局部最优网元布局结果后,转换局部最优网元布局结果的二进制编码为十进制编码和对应的坐标信息。保持高度值z不变的前提下,在xOy平面内以局部最优网元布局结果中的每一个网元位置为中心,分别做正六边形,并计算每个正六边形顶点位置的坐标信息,和每一个网元位置为中心一起作为新的网元布设空间。;正六边形的中心点的网元新编号为十进制编码后面添“00”,每一个正六边形的顶点编号由正六边形的中心点的网元的十进制编码后面按照顺时针方向依次添加“01”“02”“03”“04”“05”“06”。After the local optimal network element layout result is obtained through the adaptive genetic algorithm, the binary code of the local optimal network element layout result is converted into decimal code and corresponding coordinate information. Under the premise of keeping the height value z unchanged, in the xOy plane, with each network element position in the local optimal network element layout result as the center, make a regular hexagon, and calculate the coordinate information of the vertex position of each regular hexagon. , and each network element location is the center as a new network element layout space. ;The new number of the network element at the center point of the regular hexagon is the decimal code followed by "00", and the vertex number of each regular hexagon is followed by the decimal code of the network element at the center point of the regular hexagon followed by adding "00" in a clockwise direction. 01" "02" "03" "04" "05" "06".
步骤(10):用模拟退火的网元布局算法对群体进行模拟退火操作,获取到相对最优的网元布局的方法:Step (10): use the simulated annealing network element layout algorithm to perform a simulated annealing operation on the population to obtain a relatively optimal network element layout method:
模拟退火的网元布局算法:从某一较高温度出发,伴随温度参数的下降,根据当前网元布局的定位精度与新的网元布设空间定位精度以一定概率接受新的网元布设空间,通过对整个物理空间中网元布局的所有可能情况的随机选取,最终获取到相对最优的网元布局的方法。The network element layout algorithm of simulated annealing: starting from a higher temperature, with the decrease of temperature parameters, according to the positioning accuracy of the current network element layout and the positioning accuracy of the new network element layout space, the new network element layout space is accepted with a certain probability. Through random selection of all possible situations of network element layout in the entire physical space, a relatively optimal network element layout method is finally obtained.
步骤(11):用相对最优的网元布局的方法产生最优网元布局结果;Step (11): generating an optimal network element layout result by using a relatively optimal network element layout method;
步骤(12):输出最优网元布局结果,结束。Step (12): output the optimal network element layout result, and end.
下面给出实施例1:Example 1 is given below:
如图2a,图2b,图2c,Ⅰ代表建筑物的墙壁,Ⅱ代表网元,深色的网元为当前得到的网元布局结果。场景的尺寸为8m*4m*3m,由于工程施工要求只能在墙上以及离墙1m以内的地方布设网元,因此在平面地图上设置密度为2m*2m的网格,并将网元布设位置设置在墙上的网格上,共12个,高度在2.8m-3m之间随机分布,以1号网元的位置作为坐标原点按照顺时针依次将网元编号为1-12。As shown in Figure 2a, Figure 2b, Figure 2c, I represents the wall of the building, II represents the network element, and the dark network element is the currently obtained network element layout result. The size of the scene is 8m*4m*3m. Due to the engineering construction requirements, network elements can only be deployed on the wall and within 1m from the wall. Therefore, a grid with a density of 2m*2m is set on the plane map, and the network elements are laid out. The positions are set on the grid on the wall, a total of 12, and the heights are randomly distributed between 2.8m and 3m. The position of the No. 1 network element is used as the coordinate origin, and the network elements are numbered 1-12 in a clockwise order.
步骤(1):对其进行二进制编码,由于网元编号最大为12,因此采用四位二进制数进行编码,将“1-12”号网元依次编码为“0001-1100”;Step (1): perform binary encoding on it. Since the maximum number of network elements is 12, four-digit binary numbers are used for encoding, and the "1-12" network elements are sequentially encoded as "0001-1100";
步骤(2):确定种群规模为50、最大迭代次数为20、交叉概率为0.6、变异概率为0.01;Step (2): determine that the population size is 50, the maximum number of iterations is 20, the crossover probability is 0.6, and the mutation probability is 0.01;
步骤(3):根据经验选择编号为1、5、7、11的四个网元作为初始布局,如图2a所示;Step (3): According to experience, four network elements numbered 1, 5, 7, and 11 are selected as the initial layout, as shown in Figure 2a;
步骤(4):根据前述的已公开的高精度室内定位仿真系统计算适应度;Step (4): calculating fitness according to the aforementioned disclosed high-precision indoor positioning simulation system;
步骤(5):迭代判定适应度是否满足小于3m的条件,如果满足跳到步骤(9),不满足跳到步骤(6)准备进行遗传操作;Step (5): iteratively determine whether the fitness meets the condition of less than 3m, if it is satisfied, skip to step (9), if not, skip to step (6) to prepare for genetic operation;
步骤(6)到步骤(8):在网元布局群体中进行遗传操作,得到局部最优解,假设满足收敛条件时得到的局部最优解转码后为3、8、10、12号网元,如图2b所示;Steps (6) to (8): genetic operations are performed in the network element layout group to obtain the local optimal solution. It is assumed that the local optimal solution obtained when the convergence conditions are met is transcoded into No. 3, 8, 10, and 12 networks. element, as shown in Figure 2b;
步骤(9):改变网元布局群体并对其进行重新编码,如图3,以3号网元为例,包括7个网元位置,因此新的网元布局群体中共有7*4=28个网元;Step (9): Change the network element layout group and re-encode it, as shown in Figure 3, taking the No. 3 network element as an example, including 7 network element positions, so there are 7*4=28 in the new network element layout group network element;
步骤(10)到步骤(12):对上述群体进行模拟退火操作,得到网元布局结果为300、801、1004、1204号网元,如图2c所示。Steps (10) to (12): perform a simulated annealing operation on the above groups, and obtain network element layout results of network elements No. 300, 801, 1004, and 1204, as shown in Figure 2c.
本发明以自适应遗传算法作为主体流程,把模拟退火机制融入其中,来调整优化群体。既有较强的全局搜索能力,也有较强的局部搜索能力,提高了定位精度。由于在进行模拟退火算法之前改变了网元布局群体,不但提高了搜索效率,而且得到的网元布局结果更加接近实际的最优网元布局结果。The invention takes the adaptive genetic algorithm as the main process, and integrates the simulated annealing mechanism into it to adjust and optimize the population. It has strong global search ability and strong local search ability, which improves the positioning accuracy. Because the network element layout group is changed before the simulated annealing algorithm is performed, not only the search efficiency is improved, but also the obtained network element layout result is closer to the actual optimal network element layout result.
以上所述并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is not intended to limit the present invention, and for those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810165059.4A CN108495252B (en) | 2018-02-28 | 2018-02-28 | Indoor positioning network element optimization layout method based on genetic algorithm and simulated annealing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810165059.4A CN108495252B (en) | 2018-02-28 | 2018-02-28 | Indoor positioning network element optimization layout method based on genetic algorithm and simulated annealing |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108495252A CN108495252A (en) | 2018-09-04 |
CN108495252B true CN108495252B (en) | 2020-07-28 |
Family
ID=63341098
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810165059.4A Active CN108495252B (en) | 2018-02-28 | 2018-02-28 | Indoor positioning network element optimization layout method based on genetic algorithm and simulated annealing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108495252B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110705758B (en) * | 2019-09-11 | 2023-03-21 | 哈尔滨工程大学 | Underwater network-oriented network element optimization layout method |
CN113159265B (en) * | 2021-03-24 | 2022-09-09 | 国网河南省电力公司电力科学研究院 | Traction load parameter identification method and system based on SVM-ant colony algorithm |
CN113505456B (en) * | 2021-06-29 | 2022-03-01 | 上海勘察设计研究院(集团)有限公司 | Optimal design method for measurement control network |
CN117150636B (en) * | 2023-11-01 | 2024-01-09 | 江西立盾光电科技有限公司 | Indoor plant planting layout method and system |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5495419A (en) * | 1994-04-19 | 1996-02-27 | Lsi Logic Corporation | Integrated circuit physical design automation system utilizing optimization process decomposition and parallel processing |
CN102521443B (en) * | 2011-12-06 | 2013-05-08 | 河海大学 | Logistics node facility layout optimization method based on computer vision |
CN103729680B (en) * | 2013-12-24 | 2016-08-17 | 西安电子科技大学 | RFID network layout method based on multi-Agent evolutionary Algorithm |
CN104486641B (en) * | 2014-11-20 | 2018-04-10 | 清华大学 | Multi-service Broadcast Single Frequency optimization method based on supercomposed coding |
-
2018
- 2018-02-28 CN CN201810165059.4A patent/CN108495252B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN108495252A (en) | 2018-09-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108495252B (en) | Indoor positioning network element optimization layout method based on genetic algorithm and simulated annealing | |
CN111612252B (en) | Automatic site selection method and device for large-scale emergency facilities and readable storage medium | |
JP4362572B2 (en) | Problem processing method and apparatus for solving robust optimization problem | |
Zhou et al. | Optimal wireless sensor placement in structural health monitoring emphasizing information effectiveness and network performance | |
CN102014412B (en) | Wireless network telephone traffic balanced optimization method based on antenna parameter adjustment | |
CN109034223A (en) | A kind of Study on prediction technology of chaotic series and system | |
CN105992230A (en) | Wireless network planning method and device | |
CN111314841B (en) | A WSN Localization Method Based on Compressed Sensing and Improved Genetic Algorithm | |
CN111988786B (en) | A sensor network coverage method and system based on high-dimensional multi-objective decomposition algorithm | |
CN112381284A (en) | Improved genetic algorithm for optimizing multi-station path of unmanned transfer vehicle | |
Pour et al. | The discrete time-cost-quality trade-off problem using a novel hybrid genetic algorithm | |
CN110457997A (en) | An Improved Genetic Algorithm-Based Method for Solving the Space-Time Maximum Coverage Problem | |
Huang et al. | Optimization of substation siting and connection topology in offshore wind farm based on modified firefly algorithm | |
CN116484933A (en) | BP neural network optimization method based on improved cuckoo search algorithm | |
CN104268635A (en) | Anemometry network layout optimization method based on reanalysis data | |
CN101751491A (en) | Searching method of fuzzy shortest path | |
CN107590572A (en) | A kind of complicated Directional protection in loops MBPS acquiring methods based on IBBO | |
CN112148030A (en) | Underwater glider path planning method based on heuristic algorithm | |
CN116307216A (en) | Uncertainty Estimation Method of Neural Network Model and Related Equipment | |
KR102474856B1 (en) | Method for automating semiconductor design based on artifitial intelligence | |
KR20230118486A (en) | Method for evaluate the placement of semiconductor devices | |
CN107451943A (en) | The site selecting method of Urban renewal | |
CN114841098A (en) | Deep reinforcement learning Beidou navigation chip design method based on sparse representation driving | |
CN112765893A (en) | Mask side wall angle control method, system, device and medium based on genetic algorithm | |
CN105744532A (en) | Wireless network planning method and device |
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 |