[go: up one dir, main page]

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 PDF

Info

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
Application number
CN201810165059.4A
Other languages
Chinese (zh)
Other versions
CN108495252A (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.)
Harbin Engineering University
Original Assignee
Harbin Engineering University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Harbin Engineering University filed Critical Harbin Engineering University
Priority to CN201810165059.4A priority Critical patent/CN108495252B/en
Publication of CN108495252A publication Critical patent/CN108495252A/en
Application granted granted Critical
Publication of CN108495252B publication Critical patent/CN108495252B/en
Active 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
    • H04W4/025Services making use of location information using location based information parameters
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/004Artificial life, i.e. computing arrangements simulating life
    • G06N3/006Artificial 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/33Services specially adapted for particular environments, situations or purposes for indoor environments, e.g. buildings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating 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

The invention discloses an indoor positioning network element optimization layout method based on genetic algorithm and simulated annealing, belonging to the field of indoor positioning and comprising the following steps: step (1): carrying out network element layout; step (2): determining control parameters required by the adaptive genetic algorithm; and (3): initializing the network element layout; and (4): calculating the fitness; and (5): judging whether genetic convergence conditions are met; and (6): selecting a network element layout with higher fitness; and (7): performing cross operation on the binary codes to obtain filial generations; and (8): carrying out negation operation on the binary code to obtain variation; and (9): generating a new network element layout space; step (10): carrying out simulated annealing operation on the population; step (11): generating an optimal network element layout result; step (12): and outputting the optimal network element layout result, and ending. The invention has strong global search capability and local search capability, improves the positioning precision and improves the search efficiency.

Description

基于遗传算法和模拟退火的室内定位网元优化布局方法An optimal layout method for indoor positioning network elements based on genetic algorithm and simulated annealing

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

Figure BDA0001584188830000021
Figure BDA0001584188830000021

上式中,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 ):

Figure BDA0001584188830000022
Figure BDA0001584188830000022

上式中,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:

Figure BDA0001584188830000041
Figure BDA0001584188830000041

上式中,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 ):

Figure BDA0001584188830000042
Figure BDA0001584188830000042

上式中,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)

1. An indoor positioning network element optimization layout method based on genetic algorithm and simulated annealing is characterized in that: comprises the following steps:
step (1): and (3) carrying out network element layout: numbering the positions of the deployable network elements in sequence, deploying the network elements, and converting the number of each network element into a binary code;
step (2): determining control parameters required by the adaptive genetic algorithm, including population scale, maximum iteration times, cross probability and variation probability;
and (3): initializing the network element layout: randomly selecting n different network elements from all the deployable network element groups as initial network element layouts;
and (4): calculating the fitness;
and (5): iteratively judging whether a genetic convergence condition is met, if the genetic convergence condition is met, jumping to the step (9), and if not, jumping to the step (6);
and (6): selecting a network element layout with higher fitness;
and (7): the network element layout with higher fitness is arranged according to the cross probability PbPerforming cross operation on the binary codes to obtain filial generations;
and (8): the network element layout with higher fitness is arranged according to the mutation probability PyCarrying out negation operation on the binary code to obtain variation;
and (9): generating a local optimal network element layout result, and generating a new network element layout space according to the coordinate information; the method specifically comprises the following steps:
after obtaining a local optimal network element layout result through a self-adaptive genetic algorithm, converting a binary code of the local optimal network element layout result into a decimal code and corresponding coordinate information; on the premise of keeping the height value z unchanged, respectively making regular hexagons by taking each network element position in the local optimal network element layout result as a center in an xOy plane, calculating coordinate information of the vertex position of each regular hexagon, and taking the calculated coordinate information and each network element position as a center together to serve as a new network element layout space; the new number of the net element at the central point of the regular hexagon is decimal code and then '00', and the number of the vertex of each regular hexagon is formed by sequentially adding '01', '02', '03', '04', '05' and '06' in the clockwise direction after the decimal code of the net element at the central point of the regular hexagon;
step (10): a simulated annealing operation is carried out on the group by using a simulated annealing network element layout algorithm to obtain a relatively optimal network element layout method;
step (11): generating an optimal network element layout result by using a relatively optimal network element layout method;
step (12): and outputting the optimal network element layout result, and ending.
2. The indoor positioning network element optimizing layout method based on genetic algorithm and simulated annealing as claimed in claim 1, wherein: the step (1) is specifically as follows:
drawing grids in a plan view of a specific indoor scene, considering that intersection points of the grids on the outer wall of the indoor scene are positions where network elements can be arranged, arranging the network elements at the positions where the network elements can be arranged, numbering the network elements in sequence, and converting the number of each network element into binary coding.
3. The indoor positioning network element optimizing layout method based on genetic algorithm and simulated annealing as claimed in claim 1, wherein: the step (2) is specifically as follows:
the control parameters required by the adaptive genetic algorithm include: population scale, maximum iteration times, cross probability and variation probability; in the network element layout, n network elements are needed, 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 len equal to n x m; if the population number is k, then the population size is k × len matrix.
4. The indoor positioning network element optimizing layout method based on genetic algorithm and simulated annealing as claimed in claim 1, wherein: the fitness in the step (4) is as follows:
Figure FDA0002485305300000021
in the above formula, N represents the number of test points of the positioning area, ERRORiIndicating the positioning error of the positioning point i.
5.The indoor positioning network element optimizing layout method based on genetic algorithm and simulated annealing as claimed in claim 1, wherein: the step (6) is specifically as follows:
generating a random number r between 0 and the total fitness, and randomly sampling population individuals x in a roulette modeiProbability of being selected F (x)i):
Figure FDA0002485305300000022
In the above formula, f (x)i) Is a population of individuals xiThe fitness of (2); and selecting the network element layout with higher fitness.
6. The indoor positioning network element optimizing layout method based on genetic algorithm and simulated annealing as claimed in claim 1, wherein: the step (7) is specifically as follows:
adopting single-point cross operation: firstly, a random real number 0 is more than or equal to r and less than or equal to 1, and a cross probability 0 is set<Pb<1, if r<PbIf not, the crossing is not carried out; if the crossing is needed, the crossing position is randomly selected, and the binary string codes after the crossing position are exchanged.
7. The indoor positioning network element optimizing layout method based on genetic algorithm and simulated annealing as claimed in claim 1, wherein: the step (8) is specifically as follows:
generating a random real number 0 ≦ r ≦ 1, if r<PyThen, variation is performed, 0<Py<1 is the mutation probability; if the variation is needed, firstly, the variation position rand chromo size needs to be determined, if the variation position rand chromo size is 0, the variation is not performed, otherwise, the binary code of the variation position is inverted to generate the variation, so that 1 becomes 0, and 0 becomes 1.
8. The indoor positioning network element optimizing layout method based on genetic algorithm and simulated annealing as claimed in claim 1, wherein: the step (10) is specifically as follows:
simulated annealing network element layout algorithm: and starting from a certain higher temperature, receiving a new network element layout space with a certain probability according to the positioning precision of the current network element layout and the positioning precision of the new network element layout space along with the reduction of the temperature parameter, and finally obtaining the relatively optimal network element layout by randomly selecting all possible conditions of the network element layout in the whole physical space.
CN201810165059.4A 2018-02-28 2018-02-28 Indoor positioning network element optimization layout method based on genetic algorithm and simulated annealing Active CN108495252B (en)

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)

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

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

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