[go: up one dir, main page]

CN103052145B - Method for multi-mode mobile terminal to select sector with high service quality - Google Patents

Method for multi-mode mobile terminal to select sector with high service quality Download PDF

Info

Publication number
CN103052145B
CN103052145B CN201210564313.0A CN201210564313A CN103052145B CN 103052145 B CN103052145 B CN 103052145B CN 201210564313 A CN201210564313 A CN 201210564313A CN 103052145 B CN103052145 B CN 103052145B
Authority
CN
China
Prior art keywords
particle
sector
mobile terminal
quality
service
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
CN201210564313.0A
Other languages
Chinese (zh)
Other versions
CN103052145A (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.)
Huawei Technologies Co Ltd
Beijing University of Posts and Telecommunications
Original Assignee
Huawei Technologies Co Ltd
Beijing University of Posts and Telecommunications
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 Huawei Technologies Co Ltd, Beijing University of Posts and Telecommunications filed Critical Huawei Technologies Co Ltd
Priority to CN201210564313.0A priority Critical patent/CN103052145B/en
Publication of CN103052145A publication Critical patent/CN103052145A/en
Application granted granted Critical
Publication of CN103052145B publication Critical patent/CN103052145B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

一种多模移动终端选择高服务质量扇区的方法,其特征在于,包括:步骤S100,多模终端遍历所在位置的所有扇区,统计扇区的数量N;步骤S200,调用粒子群算法选择至少一个扇区作为扇区选择方案;步骤S300,多模终端依据粒子群算法的扇区选择方案接入所述扇区。本发明提供的一种移动多模终端选择高服务质量扇区的方法,运行在多模移动终端侧,以提高多模移动终端服务质量为目标,为每个多模移动终端选择合适的扇区组合,具有操作方便,步骤明晰,稳定性较强,算法复杂度低等优点。

A method for a multi-mode mobile terminal to select a high-quality-of-service sector, characterized in that it includes: step S100, the multi-mode terminal traverses all sectors at the location, and counts the number N of sectors; step S200, calls the particle swarm algorithm to select At least one sector is used as the sector selection scheme; step S300, the multi-mode terminal accesses the sector according to the sector selection scheme of the particle swarm optimization algorithm. A method for selecting a high-quality sector for a mobile multi-mode terminal provided by the present invention runs on the side of the multi-mode mobile terminal, aims at improving the service quality of the multi-mode mobile terminal, and selects a suitable sector for each multi-mode mobile terminal The combination has the advantages of convenient operation, clear steps, strong stability, and low algorithm complexity.

Description

一种多模移动终端选择高服务质量扇区的方法A method for a multi-mode mobile terminal to select a high-quality-of-service sector

技术领域technical field

本发明涉及扇区化的蜂窝无线网络通信技术领域,一种多模移动终端选择高服务质量扇区的方法。The invention relates to the technical field of sectorized cellular wireless network communication, and relates to a method for a multi-mode mobile terminal to select a high-quality-of-service sector.

背景技术Background technique

目前,蜂窝移动通信技术作为一种成熟的移动通信技术,已经在全世界超过200个国家部署,为超过30亿用户提供通信服务。随着运营商数量的增多,频谱资源的稀缺,运营商之间的竞争越来越激烈,而蜂窝网络的服务质量已经成为了用户选择运营商和网络模式的决定性因素。At present, cellular mobile communication technology, as a mature mobile communication technology, has been deployed in more than 200 countries around the world, providing communication services for more than 3 billion users. With the increase in the number of operators and the scarcity of spectrum resources, the competition between operators is becoming more and more intense, and the service quality of cellular networks has become a decisive factor for users to choose operators and network models.

传统的蜂窝移动通信指的是全向蜂窝,即基站将无线信号向360度的全范围发射。由于无线频谱资源非常有限,为了不断增加区域内用户的容量,运营商必需不断缩小蜂窝尺寸来提高系统性能。然而,蜂窝尺寸的不断减小大大增加了部署的成本以及相邻蜂窝的频率干扰,传统的蜂窝化频谱复用已经不能完全满足移动通信需求。Traditional cellular mobile communication refers to omnidirectional cellular, that is, the base station transmits wireless signals to a full range of 360 degrees. Due to the very limited wireless spectrum resources, in order to continuously increase the capacity of users in the area, operators must continuously reduce the cell size to improve system performance. However, the continuous reduction of cell size has greatly increased the cost of deployment and the frequency interference of adjacent cells. Traditional cellular spectrum reuse cannot fully meet the needs of mobile communications.

基于以上原因,为了进一步增加系统容量而不增加蜂窝总数,通常采用扇区化技术,将一个移动通信蜂窝分为若干个扇区,并为每个扇区配备独立的收发天线。即每个扇区相当于一个独立的蜂窝小区。目前常用的扇区划分方式有120°和60°两种。Based on the above reasons, in order to further increase the system capacity without increasing the total number of cells, sectorization technology is usually used to divide a mobile communication cell into several sectors, and each sector is equipped with an independent transceiver antenna. That is, each sector is equivalent to an independent cell. Currently, there are two commonly used sector division methods: 120° and 60°.

经过扇区划分后的蜂窝网络能够有效增强信号能量,改善用户的网络服务质量。因为射频的能量集中在一定角度内,相比之前的360°范围,用户的信号强度更大,服务质量更高。同时,由于某一频率的信号仅仅集中在某一角度内,同频信号可以在较近的地区内复用,在增强了频谱利用效率的同时避免了同频干扰。The sectorized cellular network can effectively enhance signal energy and improve network service quality for users. Because the energy of the radio frequency is concentrated within a certain angle, compared with the previous 360° range, the user's signal strength is greater and the service quality is higher. At the same time, since the signals of a certain frequency are only concentrated in a certain angle, the signals of the same frequency can be reused in a relatively close area, which avoids interference of the same frequency while enhancing the efficiency of spectrum utilization.

随着技术的不断进步,多模终端已经可以同时接入2个或者多个扇区信号,如某些多模终端能够利用TD-SCDMA扇区信号进行3G网络下载的同时,利用GSM的扇区信号进行语音通信。同时接入多个扇区不但增强了多模终端接入的灵活性,而且提高了用户的服务质量,能够有效提高用户的满意程度。With the continuous advancement of technology, multi-mode terminals can already access two or more sector signals at the same time. For example, some multi-mode terminals can use TD-SCDMA sector signals to download 3G networks while using GSM sector signal for voice communication. Simultaneous access to multiple sectors not only enhances the flexibility of multi-mode terminal access, but also improves the service quality of users, which can effectively improve user satisfaction.

然而,由于多模终端可以同时选择多个扇区进行接入,扇区选择变成了一类极难解决的“多项式复杂程度的非确定性问题”,简称NP难问题。目前对于此类问题还没有有效的寻找最优解的方案,在多项式时间内难以求得最优解。例如,如果多模终端有10个有信号强度的扇区进行选择接入,扇区选择方案共有210=1024种。多模终端的计算能力有限,无法在有限时间内验证所有1024种方案的可行性和服务质量。However, since a multi-mode terminal can select multiple sectors for access at the same time, sector selection has become a kind of extremely difficult "non-deterministic problem with polynomial complexity", referred to as NP-hard problem. At present, there is no effective solution to find the optimal solution for this kind of problem, and it is difficult to find the optimal solution in polynomial time. For example, if a multi-mode terminal has 10 sectors with signal strength for selective access, there are 2 10 =1024 sector selection schemes in total. Multi-mode terminals have limited computing power, and cannot verify the feasibility and service quality of all 1024 schemes within a limited time.

同时,当小区内移动多模终端和扇区数量较多,同时移动终端有多种网络模式下的扇区可供选择时,移动多模终端对扇区的选择和分配变得十分复杂。由于每个扇区的形状已经不是传统的六角形蜂窝小区,同时扇区的频率分配与传统小区不同,传统的六角形小区选择策略在120°和60°扇区选择中已经不再适用。At the same time, when the number of mobile multi-mode terminals and sectors in the cell is large, and the mobile terminal has sectors in multiple network modes to choose from, the selection and allocation of sectors by the mobile multi-mode terminal becomes very complicated. Since the shape of each sector is no longer the traditional hexagonal cell, and the frequency allocation of the sector is different from that of the traditional cell, the traditional hexagonal cell selection strategy is no longer applicable to the 120° and 60° sector selection.

经过检索目前IEEE技术文献,发现现阶段多模终端扇区选择经常使用进化算法,其代表文献可见:《Dynamic sectorization of microcellsfor balanced traffic in CDMA:genetic algorithms approach》(刊于IEEETransactions on Vehicular Technology,Volume:51,Issue:1),该文主要描述了一种基于遗传算法的扇区选择方案。在该方案中,扇区通过遗传算法迭代来进行选择和最终确定。然而,遗传算法容易陷入早熟收敛以及进化停滞,收敛速度较慢,获得的分配方案服务质量值不高。同时,当扇区和活动终端较多时,遗传算法计算速度缓慢,无法满足系统的实时性要求。After searching the current IEEE technical literature, it is found that evolutionary algorithms are often used for multi-mode terminal sector selection at this stage. The representative literature can be found in: "Dynamic sectorization of microcells for balanced traffic in CDMA: genetic algorithms approach" (published in IEEE Transactions on Vehicular Technology, Volume: 51, Issue:1), this paper mainly describes a sector selection scheme based on genetic algorithm. In this scheme, sectors are selected and finalized through iterations of a genetic algorithm. However, the genetic algorithm is prone to premature convergence and evolutionary stagnation, the convergence speed is slow, and the service quality value of the obtained allocation scheme is not high. At the same time, when there are many sectors and active terminals, the calculation speed of the genetic algorithm is slow, which cannot meet the real-time requirements of the system.

粒子群算法是近年来发展起来的一种新的进化算法。粒子群算法从随机解出发,通过迭代寻找最优解,并通过适应度来评价解的品质。它比遗传算法规则更为简单,它没有遗传算法的“交叉”和“变异”操作,它通过追随当前搜索到的最优值来寻找全局最优。粒子群算法实现容易、精度高、收敛快等优点引起了学术界的重视,并且在很多实际问题中展示了其优越性。因为多模终端的扇区选择问题正好属于粒子群算法擅长解决的多项式复杂程度的非确定性问题,因此如何将粒子群算法运用到扇区分配中已经成为了相关研究人员关注的重点问题之一。Particle swarm optimization algorithm is a new evolutionary algorithm developed in recent years. The particle swarm optimization algorithm starts from a random solution, finds the optimal solution through iteration, and evaluates the quality of the solution through fitness. It is simpler than the rules of the genetic algorithm, it does not have the "crossover" and "mutation" operations of the genetic algorithm, and it searches for the global optimum by following the optimal value currently searched. The advantages of particle swarm optimization algorithm, such as easy implementation, high precision, and fast convergence, have attracted the attention of the academic community, and have demonstrated its superiority in many practical problems. Because the sector selection problem of multi-mode terminals belongs to the non-deterministic problem of polynomial complexity that particle swarm optimization algorithm is good at solving, how to apply particle swarm optimization algorithm to sector allocation has become one of the key issues concerned by relevant researchers .

发明内容Contents of the invention

本发明提供一种多模移动终端选择高服务质量扇区的方法,用于解决现有技术中扇区分配算法存在的收敛速度较慢,获得的扇区选择方案服务质量值不高问题。The invention provides a method for a multi-mode mobile terminal to select a high-quality-of-service sector, which is used to solve the problem that the sector allocation algorithm in the prior art has a slow convergence speed and the service quality value of the obtained sector selection scheme is not high.

本发明提供的一种多模移动终端选择高服务质量扇区的方法,包括:A method for a multi-mode mobile terminal to select a high-quality-of-service sector provided by the present invention includes:

步骤S100,多模移动终端遍历所在位置的所有扇区,统计扇区的数量N,N为自然数;Step S100, the multi-mode mobile terminal traverses all the sectors at the location, and counts the number N of sectors, where N is a natural number;

步骤S200,调用粒子群算法选择至少一个扇区作为扇区选择方案;Step S200, calling the particle swarm optimization algorithm to select at least one sector as a sector selection scheme;

步骤S300,多模移动终端依据粒子群算法选择的扇区选择方案接入所述扇区;Step S300, the multi-mode mobile terminal accesses the sector according to the sector selection scheme selected by the particle swarm optimization algorithm;

其中,步骤S200包括如下步骤:Wherein, step S200 includes the following steps:

步骤S210,根据扇区数量N对粒子群算法的粒子的位置x进行二进制编码,编码为长度为N的二进制序列;Step S210, according to the number of sectors N, the particle position x of the particle swarm optimization algorithm is binary-coded into a binary sequence with a length of N;

步骤S220,对粒子群算法参数进行初始化,设定粒子的数量为D,最大迭代次数为M,M和D为自然数,赋予每个粒子初始的随机的位置x0和速度v0Step S220, the parameters of the particle swarm optimization algorithm are initialized, the number of particles is set to be D, the maximum number of iterations is M, M and D are natural numbers, and each particle is given an initial random position x 0 and velocity v 0 ;

步骤S230,计算粒子的初始位置x0的服务质量值;Step S230, calculating the quality of service value of the initial position x0 of the particle;

步骤S240,按照计算公式更新每个粒子的速度,即第k+1次迭代时粒子的速度计算公式为:Step S240, update the velocity of each particle according to the calculation formula, that is, the velocity of the particle at the k+1th iteration The calculation formula is:

vv idid kk ++ 11 == vv idid kk ++ 22 ×× randrand (( 11 )) ×× (( pp idid kk -- xx idid kk )) ++ 22 ×× randrand (( 11 )) ×× (( pp gdgd kk -- xx gdgd kk ))

公式中,k为迭代次数,k为自然数,表示当前粒子的历史最优位置,表示全局历史最优位置,为当前粒子的位置,表示当前粒子群中最优粒子的位置,rand(1)表示电脑随机产生的0到1之间的随机数,表示第k次迭代时粒子的速度,表示第k+1次迭代时粒子的速度;In the formula, k is the number of iterations, k is a natural number, Indicates the historical optimal position of the current particle, Indicates the global historical optimal position, is the position of the current particle, Indicates the position of the optimal particle in the current particle swarm, rand(1) indicates a random number between 0 and 1 randomly generated by the computer, Indicates the velocity of the particle at the kth iteration, Indicates the velocity of the particle at the k+1th iteration;

步骤S250,根据步骤S240中所述的第k+1次迭代时粒子的速度按照计算公式更新每个粒子的位置,即第k+1次迭代时粒子的位置计算公式为:Step S250, according to the velocity of the particle at the k+1th iteration described in step S240 Update the position of each particle according to the calculation formula, that is, the position of the particle at the k+1th iteration The calculation formula is:

其中,是第k+1次迭代时粒子的位置, 表示第k+1次迭代时粒子的速度;in, is the position of the particle at the k+1th iteration, Indicates the velocity of the particle at the k+1th iteration;

步骤S260,根据第k+1次迭代时粒子的位置计算粒子群中每个粒子位置的服务质量值;Step S260, according to the position of the particle at the k+1th iteration Calculate the position of each particle in the particle swarm quality of service value;

步骤S270,判断迭代次数k是否大于最大迭代次数M,如果达到最大迭代次数M,则输出作为扇区选择方案;否则,返回步骤S240。Step S270, judge whether the number of iterations k is greater than the maximum number of iterations M, if it reaches the maximum number of iterations M, then output As a sector selection scheme; otherwise, return to step S240.

进一步,本发明所述的多模移动终端选择高服务质量扇区的方法,所述步骤S220,设定粒子数量D=50,最大迭代次数M=100。Further, in the method for selecting a high-quality-of-service sector for a multi-mode mobile terminal according to the present invention, in the step S220, set the number of particles D=50, and the maximum number of iterations M=100.

进一步,本发明所述的多模移动终端选择高服务质量扇区的方法,所述步骤S210,设定至少10个可供选择的扇区,扇区数量N大于等于10,N为自然数。Further, in the method for selecting a high-quality-of-service sector for a multi-mode mobile terminal according to the present invention, the step S210 is to set at least 10 sectors available for selection, and the number of sectors N is greater than or equal to 10, where N is a natural number.

进一步,本发明所述的多模移动终端选择高服务质量扇区的方法,所述步骤S200,粒子群算法运行在多模移动终端上。Further, in the method for selecting a high-quality-of-service sector for a multi-mode mobile terminal according to the present invention, in step S200, the particle swarm optimization algorithm is run on the multi-mode mobile terminal.

进一步,本发明所述的多模移动终端选择高服务质量扇区的方法,所述步骤S200,利用粒子群算法对扇区化蜂窝小区内的扇区进行选择。Further, in the method for selecting a high-quality-of-service sector for a multi-mode mobile terminal according to the present invention, the step S200 is to use a particle swarm optimization algorithm to select a sector in a sectorized cell.

本发明提供的一种多模移动终端选择高服务质量扇区的方法,其优势在于:A method for a multi-mode mobile terminal to select a high-quality-of-service sector provided by the present invention has the advantages of:

多模移动终端选择扇区选择方案的过程中,所选用的粒子群算法过程清晰,实现简单,所需参数较少,算法收敛速度较快,有效提升了扇区中多模移动终端的服务质量;同时,相比现有技术中利用遗传算法进行多模移动终端扇区选择的方法,本发明创造能够在更短的时间内求得较优解,并且不会陷入计算停滞状态。In the process of selecting a sector selection scheme for a multi-mode mobile terminal, the selected particle swarm optimization algorithm has a clear process, is simple to implement, requires fewer parameters, and has a faster algorithm convergence speed, which effectively improves the service quality of the multi-mode mobile terminal in the sector At the same time, compared with the prior art method of using genetic algorithm for multi-mode mobile terminal sector selection, the present invention can obtain a better solution in a shorter time, and will not fall into a calculation stagnation state.

通过软件模拟实验的仿真结果表明,本发明提出的多模移动终端选择高服务质量扇区的方法相比现有技术中的遗传算法得到的服务质量值提高了10%左右。Simulation results through software simulation experiments show that the method for selecting a high-quality-of-service sector for a multi-mode mobile terminal proposed by the present invention improves the service quality value obtained by the genetic algorithm by about 10% compared with the prior art.

综上所述,本发明所述方法能提高多模移动终端的服务质量值,推广前景非常好。该方法完全运行在多模移动终端侧,以提高多模移动终端服务质量为目标,为每个多模移动终端选择合适的扇区组合,具有操作方便,步骤明晰,稳定性较强,算法复杂度低等优点。To sum up, the method of the present invention can improve the service quality value of the multi-mode mobile terminal, and has a very good promotion prospect. This method is completely run on the side of the multi-mode mobile terminal, with the goal of improving the service quality of the multi-mode mobile terminal, and selecting a suitable sector combination for each multi-mode mobile terminal. It has the advantages of convenient operation, clear steps, strong stability, and complex algorithms. advantages such as low degree.

附图说明Description of drawings

图1是本发明实施例2的方法的总体流程示意图;Fig. 1 is the overall flow diagram of the method of embodiment 2 of the present invention;

图2是本发明实施例2的方法的步骤S200的细化流程示意图;FIG. 2 is a schematic diagram of a detailed flow chart of step S200 of the method of Embodiment 2 of the present invention;

图3是本发明实施例1的方法相对现有技术中的遗传算法的终端服务质量值的对比曲线图;Fig. 3 is a comparison curve diagram of the terminal service quality value of the method of embodiment 1 of the present invention relative to the genetic algorithm in the prior art;

图4是本发明实施例2的方法相对现有技术中的遗传算法的终端服务质量值的对比曲线图。Fig. 4 is a graph comparing the terminal QoS value of the method according to Embodiment 2 of the present invention with that of the genetic algorithm in the prior art.

具体实施方式Detailed ways

为了更好地理解本发明,下面结合附图与具体实施方式对本发明作进一步描述。In order to better understand the present invention, the present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

本发明实施例提供的一种多模移动终端选择高服务质量扇区的方法,基于粒子群算法使多模移动终端在扇区化蜂窝小区内的扇区进行选择,所述的粒子群算法运行在多模移动终端上。The embodiment of the present invention provides a method for a multi-mode mobile terminal to select a high-quality-of-service sector. Based on the particle swarm optimization algorithm, the multi-mode mobile terminal selects a sector in a sectorized cell. The particle swarm optimization algorithm runs on a multimode mobile terminal.

实施例1:Example 1:

图1是本发明实施例1的方法的总体流程示意图,如图1所示,Fig. 1 is the overall flow diagram of the method of embodiment 1 of the present invention, as shown in Fig. 1,

本发明实施例1提供的一种多模移动终端选择高服务质量扇区的方法,包括:Embodiment 1 of the present invention provides a method for a multi-mode mobile terminal to select a high-quality-of-service sector, including:

步骤S100,多模移动终端遍历所在位置的所有扇区,统计扇区的数量N;Step S100, the multi-mode mobile terminal traverses all sectors in the location, and counts the number N of sectors;

步骤S200,调用粒子群算法选择至少一个扇区作为扇区选择方案;Step S200, calling the particle swarm optimization algorithm to select at least one sector as a sector selection scheme;

步骤S300,多模移动终端依据粒子群算法选择的扇区选择方案接入所述扇区;Step S300, the multi-mode mobile terminal accesses the sector according to the sector selection scheme selected by the particle swarm optimization algorithm;

图2是本发明实施例2的方法的步骤S200的细化流程示意图,如图2所示,其中,步骤S200包括如下步骤:FIG. 2 is a schematic diagram of a detailed flow chart of step S200 of the method of Embodiment 2 of the present invention, as shown in FIG. 2, wherein step S200 includes the following steps:

步骤S210,根据扇区数量N对粒子群算法的粒子的位置x进行二进制编码,编码为长度为N的二进制序列;Step S210, according to the number of sectors N, the particle position x of the particle swarm optimization algorithm is binary-coded into a binary sequence with a length of N;

例如,如果有10个可供选择的扇区,则0000000001代表多模终端接入第一个扇区,0000000011代表多模终端同时接入第一个和第二个扇区。以此类推,1111111111代表多模终端同时接入十个扇区。For example, if there are 10 sectors available for selection, 0000000001 means that the multi-mode terminal accesses the first sector, and 0000000011 means that the multi-mode terminal accesses the first and second sectors simultaneously. By analogy, 1111111111 represents that the multimode terminal accesses ten sectors at the same time.

步骤S220,对粒子群算法参数进行初始化,设定粒子的数量为D,最大迭代次数为M,赋予每个粒子初始的随机的位置x0和速度v0Step S220, initialize the parameters of the particle swarm optimization algorithm, set the number of particles as D, the maximum number of iterations as M, and give each particle an initial random position x0 and velocity v0 ;

设定粒子数量D=50,最大迭代次数M=100;Set the number of particles D=50, the maximum number of iterations M=100;

步骤S230,计算粒子的初始位置x0的服务质量值;Step S230, calculating the quality of service value of the initial position x0 of the particle;

具体包括:Specifically include:

步骤S231,设定网络抖动上限值;Step S231, setting the network jitter upper limit;

步骤S232,根据粒子初始位置x0,得出所选扇区;Step S232, obtain the selected sector according to the initial position x 0 of the particle;

步骤S233,获得选取扇区的网络抖动值,将所有选取扇区的网络抖动值相加后,与网络抖动上限值比较,如果相加后的网络抖动值大于网络抖动上限值,则将初始位置x0的服务质量值记为0;如果相加后的网络抖动值小于等于网络抖动上限值,则进入步骤S234;Step S233, obtain the network jitter value of the selected sector, add the network jitter values of all selected sectors, and compare with the network jitter upper limit value, if the added network jitter value is greater than the network jitter upper limit value, then set The quality of service value at the initial position x0 is recorded as 0; if the added network jitter value is less than or equal to the network jitter upper limit value, then enter step S234;

步骤S234,将所有的选取扇区的下载速率求和后与多模移动终端的下载速率的上限做商归一化后,得出的值就是初始位置x0的服务质量值。Step S234, after summing the download rates of all the selected sectors and normalizing with the upper limit of the download rate of the multi-mode mobile terminal, the obtained value is the service quality value of the initial position x0 .

在本实施例1中,根据多模移动终端当前具体业务情况选取参数,采用求和归一化法计算出粒子位置x0对应的服务质量值。实施例1中多模移动终端正在进行视频通话业务,下载速率越高则视频越清晰,通话质量越高,选取下载速率作为参数进行服务质量值的计算。服务质量值由选择所有扇区的下载速率求和后与多模终端下载速率的上限做商归一化后得到,但是需要受到所能接受的网络抖动上限的限制,超出所能接受的网络抖动上限后视频通话会很卡,业务无法正常进行,服务质量值为0。In this embodiment 1, parameters are selected according to the current specific service situation of the multi-mode mobile terminal, and the service quality value corresponding to the particle position x 0 is calculated by using the sum normalization method. In Embodiment 1, the multi-mode mobile terminal is conducting a video call service. The higher the download rate, the clearer the video and the higher the call quality. The download rate is selected as a parameter to calculate the service quality value. The quality of service value is obtained by summing the download rates of all sectors and normalizing the upper limit of the multi-mode terminal download rate, but it needs to be limited by the upper limit of the acceptable network jitter, which exceeds the acceptable network jitter After the upper limit, the video call will be very slow, the business cannot be carried out normally, and the service quality value is 0.

例如,设多模终端下载速率的上限为10Mbps(兆比特每秒),所能接受的网络抖动上限为10ms(毫秒)。For example, it is assumed that the upper limit of the download rate of the multi-mode terminal is 10 Mbps (megabits per second), and the upper limit of acceptable network jitter is 10 ms (milliseconds).

扇区1的带宽、费用分别为1.5Mbps,5ms。The bandwidth and cost of sector 1 are 1.5Mbps and 5ms respectively.

扇区2的带宽、费用分别为1Mbps,9ms。The bandwidth and cost of sector 2 are 1Mbps and 9ms respectively.

扇区3的带宽、费用分别为1.5Mbps,3ms。The bandwidth and cost of sector 3 are 1.5Mbps and 3ms respectively.

当粒子位置x0为0000000011时,多模终端同时接入第一个和第二个扇区。When the particle position x 0 is 0000000011, the multimode terminal accesses the first sector and the second sector at the same time.

则同时接入扇区1和扇区2的网络抖动为5ms+9ms=14ms,超过了所能接受的网络抖动上限10ms,即粒子位置0000000011服务质量值为0。Then the network jitter of simultaneously accessing sector 1 and sector 2 is 5ms+9ms=14ms, which exceeds the acceptable upper limit of network jitter by 10ms, that is, the service quality value of particle position 0000000011 is 0.

当粒子位置x0为0000000101时,多模终端同时接入第一个和第三个扇区,则同时接入扇区1和扇区3的网络抖动为5ms+3ms=8ms,未超出所能接受的网络抖动上限10ms,因此粒子位置0000000101对应的服务质量值不为0。When the particle position x 0 is 0000000101, the multi-mode terminal accesses the first and third sectors at the same time, then the network jitter of simultaneously accessing sector 1 and sector 3 is 5ms+3ms=8ms, which is not beyond the limit The upper limit of accepted network jitter is 10ms, so the QoS value corresponding to particle position 0000000101 is not 0.

同时接入扇区1和扇区3的带宽求和后为1.5Mbps+1.5Mbps,与多模终端下载速率的上限10Mbps做商归一化后为:The sum of the bandwidth of accessing sector 1 and sector 3 at the same time is 1.5Mbps+1.5Mbps, and after normalization with the upper limit of the multi-mode terminal download rate of 10Mbps, it is:

(1.5Mbps+1.5Mbps)÷10Mbps=0.3。即粒子位置0000000101对应的服务质量值为0.3。(1.5Mbps+1.5Mbps)÷10Mbps=0.3. That is, the QoS value corresponding to the particle position 0000000101 is 0.3.

步骤S240,按照计算公式更新每个粒子的速度,即第k+1次迭代时粒子的速度计算公式为:Step S240, update the velocity of each particle according to the calculation formula, that is, the velocity of the particle at the k+1th iteration The calculation formula is:

vv idid kk ++ 11 == vv idid kk ++ 22 ×× randrand (( 11 )) ×× (( pp idid kk -- xx idid kk )) ++ 22 ×× randrand (( 11 )) ×× (( pp gdgd kk -- xx gdgd kk ))

公式中,k为迭代次数,表示当前粒子的历史最优位置,表示全局历史最优位置,为当前粒子的位置,表示当前粒子群中最优粒子的位置,rand(1)表示电脑随机产生的0到1之间的随机数,表示第k次迭代时粒子的速度,表示第k+1次迭代时粒子的速度;In the formula, k is the number of iterations, Indicates the historical optimal position of the current particle, Indicates the global historical optimal position, is the current particle position, Indicates the position of the optimal particle in the current particle swarm, rand(1) indicates a random number between 0 and 1 randomly generated by the computer, Indicates the velocity of the particle at the kth iteration, Indicates the velocity of the particle at the k+1th iteration;

步骤S250,根据步骤S240中所述的第k+1次迭代时粒子的速度按照计算公式更新每个粒子的位置,即第k+1次迭代时粒子的位置计算公式为:Step S250, according to the velocity of the particle at the k+1th iteration described in step S240 Update the position of each particle according to the calculation formula, that is, the position of the particle at the k+1th iteration The calculation formula is:

其中,是第k+1次迭代时粒子的位置, 表示第k+1次迭代时粒子的速度;in, is the position of the particle at the k+1th iteration, Indicates the velocity of the particle at the k+1th iteration;

步骤S260,根据第k+1次迭代时粒子的位置计算粒子群中每个粒子位置的服务质量值;Step S260, according to the position of the particle at the k+1th iteration Calculate the position of each particle in the particle swarm quality of service value;

具体包括:Specifically include:

步骤S261,设定网络抖动上限值;Step S261, setting the upper limit of network jitter;

步骤S262,根据第k+1次迭代时粒子的位置得出所选扇区;Step S262, according to the position of the particle at the k+1th iteration Get the selected sector;

步骤S263,获得选取扇区的网络抖动值,将所有选取扇区的网络抖动值相加后,与网络抖动上限值比较,如果相加后的网络抖动值大于网络抖动上限值,则将第k+1次迭代时粒子的位置的服务质量值记为0;如果相加后的网络抖动值小于等于网络抖动上限值,则进入步骤S264;Step S263, obtain the network jitter value of the selected sector, add the network jitter values of all selected sectors, and compare with the network jitter upper limit value, if the added network jitter value is greater than the network jitter upper limit value, then set The position of the particle at iteration k+1 The quality of service value is recorded as 0; if the added network jitter value is less than or equal to the network jitter upper limit value, then enter step S264;

步骤S264,将所有的选取扇区的下载速率求和后与多模移动终端的下载速率的上限做商归一化后,得出的值就是第k+1次迭代时粒子的位置的服务质量值。Step S264, after summing the download rates of all selected sectors and normalizing the quotient with the upper limit of the download rate of the multi-mode mobile terminal, the obtained value is the position of the particle at the k+1 iteration quality of service value.

在本实施例1中,根据多模移动终端当前具体业务情况选取参数,采用求和归一化法计算出粒子位置对应的服务质量值。实施例1中多模移动终端正在进行视频通话业务,下载速率越高则视频越清晰,通话质量越高,选取下载速率作为参数进行服务质量值的计算。服务质量值由选择所有扇区的下载速率求和后与多模终端下载速率的上限做商归一化后得到,但是需要受到所能接受的网络抖动上限的限制,超出所能接受的网络抖动上限后视频通话会很卡,业务无法正常进行,服务质量值为0。In this embodiment 1, the parameters are selected according to the current specific business conditions of the multi-mode mobile terminal, and the particle position is calculated by using the sum normalization method Corresponding quality of service value. In Embodiment 1, the multi-mode mobile terminal is conducting a video call service. The higher the download rate, the clearer the video and the higher the call quality. The download rate is selected as a parameter to calculate the service quality value. The quality of service value is obtained by summing the download rates of all sectors and normalizing the upper limit of the multi-mode terminal download rate, but it needs to be limited by the upper limit of the acceptable network jitter, which exceeds the acceptable network jitter After the upper limit, the video call will be very slow, the business cannot be carried out normally, and the service quality value is 0.

例如,设多模终端下载速率的上限为10Mbps(兆比特每秒),所能接受的网络抖动上限为10ms(毫秒)。For example, it is assumed that the upper limit of the download rate of the multi-mode terminal is 10 Mbps (megabits per second), and the upper limit of acceptable network jitter is 10 ms (milliseconds).

扇区1的带宽、费用分别为1.5Mbps,5ms。The bandwidth and cost of sector 1 are 1.5Mbps and 5ms respectively.

扇区2的带宽、费用分别为1Mbps,9ms。The bandwidth and cost of sector 2 are 1Mbps and 9ms respectively.

扇区3的带宽、费用分别为1.5Mbps,3ms。The bandwidth and cost of sector 3 are 1.5Mbps and 3ms respectively.

当粒子位置为0000000011时,多模终端同时接入第一个和第二个扇区。When the particle position When it is 0000000011, the multimode terminal accesses the first sector and the second sector at the same time.

则同时接入扇区1和扇区2的网络抖动为5ms+9ms=14ms,超过了所能接受的网络抖动上限10ms,即粒子位置0000000011服务质量值为0。Then the network jitter of simultaneously accessing sector 1 and sector 2 is 5ms+9ms=14ms, which exceeds the acceptable upper limit of network jitter by 10ms, that is, the service quality value of particle position 0000000011 is 0.

当粒子位置为0000000101时,多模终端同时接入第一个和第三个扇区,则同时接入扇区1和扇区3的网络抖动为5ms+3ms=8ms,未超出所能接受的网络抖动上限10ms,因此粒子位置0000000101对应的服务质量值不为0。When the particle position When it is 0000000101, the multi-mode terminal accesses the first and third sectors at the same time, then the network jitter of simultaneously accessing sector 1 and sector 3 is 5ms+3ms=8ms, which does not exceed the acceptable upper limit of network jitter 10ms, so the quality of service value corresponding to the particle position 0000000101 is not 0.

同时接入扇区1和扇区3的带宽求和后为1.5Mbps+1.5Mbps,与多模终端下载速率的上限10Mbps做商归一化后为:The sum of the bandwidth of accessing sector 1 and sector 3 at the same time is 1.5Mbps+1.5Mbps, and after normalization with the upper limit of the multi-mode terminal download rate of 10Mbps, it is:

(1.5Mbps+1.5Mbps)÷10Mbps=0.3。即粒子位置0000000101对应的服务质量值为0.3。(1.5Mbps+1.5Mbps)÷10Mbps=0.3. That is, the QoS value corresponding to the particle position 0000000101 is 0.3.

步骤S270,判断迭代次数k是否大于最大迭代次数M,如果达到最大迭代次数M,则输出作为扇区选择方案;否则,返回步骤S240。Step S270, judge whether the number of iterations k is greater than the maximum number of iterations M, if it reaches the maximum number of iterations M, then output As a sector selection scheme; otherwise, return to step S240.

下面将详细给出实施例1的计算机仿真实验的参数配置和仿真结果。The parameter configuration and simulation results of the computer simulation experiment of Embodiment 1 will be given in detail below.

本发明创造的实施例中共有10个扇区。多模移动终端能够从所在位置的10扇区中任意选择一个或几个。多模终端下载速率的上限为10Mbps(兆比特每秒),所能接受的网络抖动上限为10ms(毫秒)。每个扇区的带宽在0到2Mbps之间随机生成,网络抖动在0到10ms之间随机生成。粒子群算法中粒子的数量为D为50,最大迭代次数为M为100,粒子最小速度为0,最大速度为6。作为对比的遗传算法种群中个体数量为50,最大迭代次数为100,交叉概率为0.7,变异概率为0.05。There are 10 sectors altogether in the embodiment of the present invention. A multi-mode mobile terminal can arbitrarily select one or several sectors from the 10 sectors where it is located. The upper limit of the download rate of the multi-mode terminal is 10Mbps (megabits per second), and the upper limit of the acceptable network jitter is 10ms (milliseconds). The bandwidth of each sector is randomly generated between 0 and 2Mbps, and the network jitter is randomly generated between 0 and 10ms. The number of particles in the particle swarm optimization algorithm is 50 for D, the maximum number of iterations for M is 100, the minimum velocity of particles is 0, and the maximum velocity is 6. As a comparison, the number of individuals in the genetic algorithm population is 50, the maximum number of iterations is 100, the crossover probability is 0.7, and the mutation probability is 0.05.

图3是本发明实施例1的方法相对现有技术中的遗传算法的终端服务质量值的对比曲线图。如图3所示,图3中上面的实线是本发明实施例1提出的多模移动终端选择高服务质量扇区的方法仿真得到的服务质量值曲线,下面的虚线是现有技术中的遗传算法得到的服务质量值曲线。从仿真曲线中可以看出,在100次迭代过程中,本发明实施例1所述的方法得到的多模移动终端的服务质量值数值比遗传算法得到的多模移动终端的服务质量值高0.04到0.05,即性能提高了8%到10%,说明采用本发明所述的方法得出的扇区和网络模式分配结果能够显著提高终端的通信服务质量。同时从图中还可以看出,本发明方法的性能比遗传算法稳定许多,在50次迭代后就逐渐变平收敛,而遗传算法在整个100次迭代过程中未达到水平收敛,不利于实际系统采用。Fig. 3 is a graph comparing the terminal QoS value of the method in Embodiment 1 of the present invention with that of the genetic algorithm in the prior art. As shown in Figure 3, the upper solid line in Figure 3 is the QoS value curve simulated by the method for multi-mode mobile terminals to select high-QoS sectors proposed in Embodiment 1 of the present invention, and the lower dotted line is the QoS value curve in the prior art The service quality value curve obtained by genetic algorithm. As can be seen from the simulation curve, in 100 iterations, the quality of service value of the multimode mobile terminal obtained by the method described in Embodiment 1 of the present invention is 0.04 higher than the quality of service value of the multimode mobile terminal obtained by the genetic algorithm 0.05, that is, the performance has been improved by 8% to 10%, indicating that the sector and network mode allocation results obtained by the method of the present invention can significantly improve the communication service quality of the terminal. Also can find out from figure simultaneously, the performance of the inventive method is much more stable than genetic algorithm, just gradually flattens convergence after 50 iterations, and genetic algorithm does not reach horizontal convergence in the whole 100 iterations process, is unfavorable for actual system use.

实施例2:Example 2:

本发明实施例2提供的一种多模移动终端选择高服务质量扇区的方法,包括:Embodiment 2 of the present invention provides a method for a multi-mode mobile terminal to select a high-quality-of-service sector, including:

步骤S100,多模移动终端遍历所在位置的所有扇区,统计扇区的数量N;Step S100, the multi-mode mobile terminal traverses all sectors in the location, and counts the number N of sectors;

步骤S200,调用粒子群算法选择至少一个扇区作为扇区选择方案;Step S200, calling the particle swarm optimization algorithm to select at least one sector as a sector selection scheme;

步骤S300,多模移动终端依据粒子群算法选择的扇区选择方案接入所述扇区;Step S300, the multi-mode mobile terminal accesses the sector according to the sector selection scheme selected by the particle swarm optimization algorithm;

步骤S200包括如下步骤:Step S200 includes the following steps:

步骤S210,根据扇区数量N对粒子群算法的粒子的位置x进行二进制编码,编码为长度为N的二进制序列;Step S210, according to the number of sectors N, the particle position x of the particle swarm optimization algorithm is binary-coded into a binary sequence with a length of N;

实施例2中共有10个可供选择的扇区,则0000000001代表多模终端接入第一个扇区,0000000011代表多模终端同时接入第一个和第二个扇区。以此类推,1111111111代表多模终端同时接入十个扇区。In Embodiment 2, there are 10 sectors available for selection, 0000000001 means that the multi-mode terminal accesses the first sector, and 0000000011 means that the multi-mode terminal simultaneously accesses the first and second sectors. By analogy, 1111111111 represents that the multimode terminal accesses ten sectors at the same time.

步骤S220,对粒子群算法参数进行初始化,设定粒子的数量为D,最大迭代次数为M,赋予每个粒子初始的随机的位置x0和速度v0Step S220, initialize the parameters of the particle swarm optimization algorithm, set the number of particles as D, the maximum number of iterations as M, and give each particle an initial random position x0 and velocity v0 ;

对粒子群算法参数进行初始化,设定粒子数量D=10,最大迭代次数M=100,赋予每个粒子初始的随机的位置x0和速度v0,x0由电脑生成随机的0或者1二进制序列,长度为10。v0是0到6之间的随机有理数,由电脑生成。Initialize the parameters of the particle swarm algorithm, set the number of particles D=10, the maximum number of iterations M=100, give each particle an initial random position x 0 and velocity v 0 , x 0 is generated by the computer as a random 0 or 1 binary Sequence, length 10. v 0 is a random rational number between 0 and 6, generated by computer.

步骤S230,计算粒子的初始位置x0的服务质量值;Step S230, calculating the quality of service value of the initial position x0 of the particle;

具体包括:Specifically include:

步骤S231,设定网络费用上限值;Step S231, setting the network fee upper limit;

步骤S232,根据粒子初始位置x0,得出所选扇区;Step S232, obtain the selected sector according to the initial position x 0 of the particle;

步骤S233,获得选取扇区的网络费用值,将所有选取扇区的网络费用值相加后,与网络费用上限值比较,如果相加后的网络费用值大于网络费用上限值,则将初始位置x0的服务质量值记为0;如果相加后的网络费用值小于等于网络费用上限值,则进入步骤S234;Step S233, obtain the network fee value of the selected sector, add the network fee values of all the selected sectors, and compare with the network fee upper limit value, if the added network fee value is greater than the network fee upper limit value, then set The quality of service value at the initial position x0 is recorded as 0; if the added network cost value is less than or equal to the network cost upper limit value, then enter step S234;

步骤S234,将所有的选取扇区的下载速率求和后与多模移动终端的下载速率的上限做商归一化后,得出的值就是初始位置x0的服务质量值。Step S234, after summing the download rates of all the selected sectors and normalizing with the upper limit of the download rate of the multi-mode mobile terminal, the obtained value is the service quality value of the initial position x0 .

本实施例2中,根据多模移动终端当前具体业务情况选取参数,采用求和归一化法计算出粒子位置x0对应的服务质量值。实施例2中多模终端正在进行文件下载业务,选取下载速率作为参数进行服务质量值的计算。服务质量值由选择所有扇区的下载速率求和后与多模终端下载速率的上限做商归一化后得到,但是需要受到所能接受的费用上限的限制,超出所能接受的费用上限后服务质量值为0。In Embodiment 2, parameters are selected according to the current specific service situation of the multi-mode mobile terminal, and the service quality value corresponding to the particle position x 0 is calculated by using the sum normalization method. In Embodiment 2, the multi-mode terminal is performing a file download service, and the download rate is selected as a parameter to calculate the service quality value. The quality of service value is obtained by summing the download rates of all sectors and normalizing with the upper limit of the multi-mode terminal download rate, but it needs to be limited by the upper limit of the acceptable cost. After exceeding the upper limit of the acceptable cost The quality of service value is 0.

例如,设多模移动终端下载速率的上限为10Mbps,所能接受的费用上限为0.06元/分钟。For example, assuming that the upper limit of the download rate of the multi-mode mobile terminal is 10 Mbps, the upper limit of the acceptable fee is 0.06 yuan/minute.

扇区1的带宽、费用分别为2Mbps,0.04元/分钟。The bandwidth and cost of sector 1 are 2Mbps and 0.04 yuan/minute respectively.

扇区2的带宽、费用分别为1Mbps,0.01元/分钟。The bandwidth and cost of sector 2 are 1Mbps and 0.01 yuan/minute respectively.

扇区3的带宽、费用分别为1.5Mbps,0.05元/分钟。The bandwidth and cost of sector 3 are 1.5Mbps and 0.05 yuan/minute respectively.

当粒子位置x0为0000000011时,多模移动终端同时接入第一个和第二个扇区。When the particle position x 0 is 0000000011, the multimode mobile terminal accesses the first and second sectors simultaneously.

则同时接入扇区1和扇区2的费用为0.04元/分钟+0.01元/分钟=0.05元/分钟,未超过所能接受的费用上限为0.06元/分钟,不用将服务质量值置0。Then the cost of simultaneously accessing sector 1 and sector 2 is 0.04 yuan/minute + 0.01 yuan/minute = 0.05 yuan/minute, and the upper limit of the acceptable fee is 0.06 yuan/minute, and there is no need to set the service quality value to 0 .

同时接入扇区1和扇区2的带宽为2Mbps+1Mbps,与多模终端下载速率的上限做商归一化后为:(2Mbps+1Mbps)÷10Mbps=0.3。即粒子位置0000000011对应的服务质量值为0.3。The bandwidth of accessing sector 1 and sector 2 at the same time is 2Mbps+1Mbps, and after normalizing with the upper limit of the download rate of multi-mode terminals, it is: (2Mbps+1Mbps)÷10Mbps=0.3. That is, the QoS value corresponding to the particle position 0000000011 is 0.3.

当粒子位置x0为0000000101时,多模终端同时接入第一个和第三个扇区,则同时接入扇区1和扇区3的费用为0.04元/分钟+0.05元/分钟=0.09元/分钟,超出了所能接受的费用上限0.06元/分钟,因此粒子位置0000000101对应的服务质量值为0。When the particle position x 0 is 0000000101, and the multi-mode terminal accesses the first and third sectors at the same time, the cost of simultaneously accessing sector 1 and sector 3 is 0.04 yuan/minute+0.05 yuan/minute=0.09 Yuan/minute, which exceeds the acceptable upper limit of 0.06 yuan/minute, so the quality of service value corresponding to the particle position 0000000101 is 0.

步骤S240,按照计算公式更新每个粒子的速度,即第k+1次迭代时粒子的速度计算公式为:Step S240, update the velocity of each particle according to the calculation formula, that is, the velocity of the particle at the k+1th iteration The calculation formula is:

vv idid kk ++ 11 == vv idid kk ++ 22 ×× randrand (( 11 )) ×× (( pp idid kk -- xx idid kk )) ++ 22 ×× randrand (( 11 )) ×× (( pp gdgd kk -- xx gdgd kk ))

公式中,k为迭代次数,表示当前粒子的历史最优位置,表示全局历史最优位置,为当前粒子的位置,表示当前粒子群中最优粒子的位置,rand(1)表示电脑随机产生的0到1之间的随机数,表示第k次迭代时粒子的速度,表示第k+1次迭代时粒子的速度;In the formula, k is the number of iterations, Indicates the historical optimal position of the current particle, Indicates the global historical optimal position, is the current particle position, Indicates the position of the optimal particle in the current particle swarm, rand(1) indicates a random number between 0 and 1 randomly generated by the computer, Indicates the velocity of the particle at the kth iteration, Indicates the velocity of the particle at the k+1th iteration;

第1次迭代时,第k次迭代时粒子的速度为初始的随机的速度v0,当前粒子的位置和前粒子群中最优粒子的位置为初始的随机的位置x0,当前粒子的历史最优位置为初始的随机的位置x0。即第1次迭代时, 此后,按照步骤S240的计算公式进行计算。At the first iteration, the velocity of the particle at the kth iteration is the initial random velocity v 0 , the current particle position and the position of the optimal particle in the former particle swarm is the initial random position x 0 , the historical optimal position of the current particle is the initial random position x 0 . That is, at the first iteration, Thereafter, calculation is performed according to the calculation formula in step S240.

这里的相减为二进制相减,具体按照如下规则:如果对应位相同,则为0,如果对应位置不同,则为1。The subtraction here is a binary subtraction, specifically according to the following rules: if the corresponding bits are the same, it is 0, and if the corresponding positions are different, it is 1.

例如,0000000111-0000000101=0000000010。For example, 0000000111-0000000101=0000000010.

步骤S250,根据步骤S240中所述的第k+1次迭代时粒子的速度按照计算公式更新每个粒子的位置,即第k+1次迭代时粒子的位置计算公式为:Step S250, according to the velocity of the particle at the k+1th iteration described in step S240 Update the position of each particle according to the calculation formula, that is, the position of the particle at the k+1th iteration The calculation formula is:

其中,是第k+1次迭代时粒子的位置, 表示第k+1次迭代时粒子的速度;in, is the position of the particle at the k+1th iteration, Indicates the velocity of the particle at the k+1th iteration;

步骤S260,根据第k+1次迭代时粒子的位置计算粒子群中每个粒子位置的服务质量值;Step S260, according to the position of the particle at the k+1th iteration Calculate the position of each particle in the particle swarm quality of service value;

具体包括:Specifically include:

步骤S261,设定网络费用上限值;Step S261, setting the network fee upper limit;

步骤S262,根据第k+1次迭代时粒子的位置得出所选扇区;Step S262, according to the position of the particle at the k+1th iteration Get the selected sector;

步骤S263,获得选取扇区的网络费用值,将所有选取扇区的网络费用值相加后,与网络费用上限值比较,如果相加后的网络费用值大于网络费用上限值,则将第k+1次迭代时粒子的位置的服务质量值记为0;如果相加后的网络费用值小于等于网络费用上限值,则进入步骤S264;Step S263, obtain the network cost value of the selected sector, add the network cost values of all the selected sectors, and compare with the network cost upper limit value, if the added network cost value is greater than the network cost upper limit value, then set The position of the particle at iteration k+1 The quality of service value is recorded as 0; if the added network cost value is less than or equal to the network cost upper limit value, then enter step S264;

步骤S264,将所有的选取扇区的下载速率求和后与多模移动终端的下载速率的上限做商归一化后,得出的值就是第k+1次迭代时粒子的位置的服务质量值。Step S264, after summing the download rates of all selected sectors and normalizing the quotient with the upper limit of the download rate of the multi-mode mobile terminal, the obtained value is the position of the particle at the k+1 iteration quality of service value.

本实施例2中,根据多模终端当前具体业务情况选取参数,采用求和归一化法计算出粒子位置对应的服务质量值。实施例2中多模终端正在进行文件下载业务,选取下载速率作为参数进行服务质量值的计算。服务质量值由选择所有扇区的下载速率求和后与多模终端下载速率的上限做商归一化后得到,但是需要受到所能接受的费用上限的限制,超出所能接受的费用上限后服务质量值为0。In this embodiment 2, the parameters are selected according to the current specific business conditions of the multi-mode terminal, and the particle position is calculated by using the sum normalization method Corresponding quality of service value. In Embodiment 2, the multi-mode terminal is performing a file download service, and the download rate is selected as a parameter to calculate the service quality value. The quality of service value is obtained by summing the download rates of all sectors and normalizing with the upper limit of the multi-mode terminal download rate, but it needs to be limited by the upper limit of the acceptable cost. After exceeding the upper limit of the acceptable cost The quality of service value is 0.

例如,设多模终端下载速率的上限为10Mbps,所能接受的费用上限为0.06元/分钟。For example, if the upper limit of the download rate of the multi-mode terminal is 10 Mbps, the upper limit of the acceptable fee is 0.06 yuan/minute.

扇区1的带宽、费用分别为2Mbps,0.04元/分钟。The bandwidth and cost of sector 1 are 2Mbps and 0.04 yuan/minute respectively.

扇区2的带宽、费用分别为1Mbps,0.01元/分钟。The bandwidth and cost of sector 2 are 1Mbps and 0.01 yuan/minute respectively.

扇区3的带宽、费用分别为1.5Mbps,0.05元/分钟。The bandwidth and cost of sector 3 are 1.5Mbps and 0.05 yuan/minute respectively.

当粒子位置为0000000011时,多模终端同时接入第一个和第二个扇区。When the particle position When it is 0000000011, the multimode terminal accesses the first sector and the second sector at the same time.

则同时接入扇区1和扇区2的费用为0.04元/分钟+0.01元/分钟=0.05元/分钟,未超过所能接受的费用上限为0.06元/分钟,不用将服务质量值置0。Then the cost of simultaneously accessing sector 1 and sector 2 is 0.04 yuan/minute + 0.01 yuan/minute = 0.05 yuan/minute, and the upper limit of the acceptable fee is 0.06 yuan/minute, and there is no need to set the service quality value to 0 .

同时接入扇区1和扇区2的带宽为2Mbps+1Mbps,与多模终端下载速率的上限做商归一化后为:(2Mbps+1Mbps)÷10Mbps=0.3。即粒子位置0000000011对应的服务质量值为0.3。The bandwidth of accessing sector 1 and sector 2 at the same time is 2Mbps+1Mbps, and after normalizing with the upper limit of the download rate of multi-mode terminals, it is: (2Mbps+1Mbps)÷10Mbps=0.3. That is, the QoS value corresponding to the particle position 0000000011 is 0.3.

当粒子位置为0000000101时,多模终端同时接入第一个和第三个扇区,则同时接入扇区1和扇区3的费用为0.04元/分钟+0.05元/分钟=0.09元/分钟,超出了所能接受的费用上限0.06元/分钟,因此粒子位置0000000101对应的服务质量值为0。When the particle position When it is 0000000101, the multi-mode terminal accesses the first and third sectors at the same time, then the fee for simultaneously accessing sector 1 and sector 3 is 0.04 yuan/minute + 0.05 yuan/minute = 0.09 yuan/minute, exceeding The upper limit of the acceptable fee is 0.06 yuan/minute, so the service quality value corresponding to the particle position 0000000101 is 0.

步骤S270,判断迭代次数k是否大于最大迭代次数M,如果达到最大迭代次数M,则输出作为扇区选择方案;否则,返回步骤S240。Step S270, judge whether the number of iterations k is greater than the maximum number of iterations M, if it reaches the maximum number of iterations M, then output As a sector selection scheme; otherwise, return to step S240.

下面将详细给出实施例2计算机仿真实验的参数配置和仿真结果。The parameter configuration and simulation results of the computer simulation experiment of Embodiment 2 will be given in detail below.

本发明的实施例2中共有10个扇区。多模终端能够从所在位置的10扇区中任意选择一个或几个。多模终端下载速率的上限为10Mbps,所能接受的费用上限为0.06元/分钟。每个扇区的带宽在0到2Mbps之间随机生成,每个扇区费用在0到0.06元/分钟之间随机生成。粒子群算法中粒子的数量为D为50,最大迭代次数为M为100,粒子最小速度为0,最大速度为6。作为对比的遗传算法种群中个体数量为50,最大迭代次数为100,交叉概率为0.7,变异概率为0.05。In Embodiment 2 of the present invention, there are 10 sectors in total. A multi-mode terminal can choose one or several sectors from the 10 sectors at its location. The upper limit of the download rate of the multi-mode terminal is 10Mbps, and the upper limit of the acceptable fee is 0.06 yuan/minute. The bandwidth of each sector is randomly generated between 0 and 2Mbps, and the cost of each sector is randomly generated between 0 and 0.06 yuan/minute. The number of particles in the particle swarm optimization algorithm is 50 for D, the maximum number of iterations for M is 100, the minimum velocity of particles is 0, and the maximum velocity is 6. As a comparison, the number of individuals in the genetic algorithm population is 50, the maximum number of iterations is 100, the crossover probability is 0.7, and the mutation probability is 0.05.

图4是本发明实施例2的方法相对现有技术中的遗传算法的终端服务质量值的对比曲线图。如图4所示,图4中上面的实线是本发明实施例2提出的多模移动终端选择高服务质量扇区的方法仿真得到的服务质量值曲线,下面的虚线是现有技术中的遗传算法得到的服务质量值曲线。从仿真曲线中可以看出,在100次迭代运算后,本发明实施例2所述的方法得到的多模移动终端的服务质量值数值比遗传算法得到的多模移动终端的服务质量值高0.05,即性能提高了10%,说明采用本发明所述的方法得出的扇区和网络模式分配结果能够显著提高终端的通信服务质量。同时从图中还可以看出,本发明方法的性能比遗传算法稳定许多,在50次迭代后就逐渐变平收敛,而遗传算法在整个100次迭代过程中一直处于显著的波动过程中,得到的服务质量值随机性较强,不利于实际系统采用。Fig. 4 is a graph comparing the terminal QoS value of the method according to Embodiment 2 of the present invention with that of the genetic algorithm in the prior art. As shown in Figure 4, the upper solid line in Figure 4 is the QoS value curve simulated by the method for multi-mode mobile terminals to select high-QoS sectors proposed in Embodiment 2 of the present invention, and the lower dotted line is the QoS value curve in the prior art The service quality value curve obtained by genetic algorithm. It can be seen from the simulation curve that after 100 iterations, the quality of service value of the multimode mobile terminal obtained by the method described in Embodiment 2 of the present invention is 0.05 higher than the quality of service value of the multimode mobile terminal obtained by the genetic algorithm , that is, the performance is improved by 10%, which shows that the sector and network mode allocation results obtained by the method of the present invention can significantly improve the communication service quality of the terminal. It can also be seen from the figure that the performance of the method of the present invention is much more stable than that of the genetic algorithm, and it gradually flattens and converges after 50 iterations, while the genetic algorithm has been in a significant fluctuation process during the entire 100 iterations, and obtains The quality of service value of is highly random, which is not conducive to the actual system adoption.

以上仅为本发明的优选实施例,当然,本发明还可以有其他多种实施例,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员当可根据本发明做出各种相应的改变和变形,但这些相应的改变和变形都应属于本发明所附的权利要求的保护范围。The above are only preferred embodiments of the present invention. Of course, the present invention can also have other various embodiments. Without departing from the spirit and essence of the present invention, those skilled in the art can make various There are various corresponding changes and modifications, but these corresponding changes and modifications should fall within the protection scope of the appended claims of the present invention.

Claims (5)

1.一种多模移动终端选择高服务质量扇区的方法,其特征在于,包括:1. A method for a multimode mobile terminal to select a high-quality-of-service sector, comprising: 步骤S100,多模移动终端遍历所在位置的所有扇区,统计扇区的数量N,N为自然数;Step S100, the multi-mode mobile terminal traverses all the sectors at the location, and counts the number N of sectors, where N is a natural number; 步骤S200,调用粒子群算法选择至少一个扇区作为扇区选择方案;Step S200, calling the particle swarm optimization algorithm to select at least one sector as a sector selection scheme; 步骤S300,多模移动终端依据粒子群算法选择的扇区选择方案接入所述扇区;Step S300, the multi-mode mobile terminal accesses the sector according to the sector selection scheme selected by the particle swarm optimization algorithm; 其中,步骤S200包括如下步骤:Wherein, step S200 includes the following steps: 步骤S210,根据扇区数量N对粒子群算法的粒子的位置x进行二进制编码,编码为长度为N的二进制序列;Step S210, according to the number of sectors N, the particle position x of the particle swarm optimization algorithm is binary-coded into a binary sequence with a length of N; 步骤S220,对粒子群算法参数进行初始化,设定粒子的数量为D,最大迭代次数为M,M和D为自然数,赋予每个粒子初始的随机的位置x0和速度v0Step S220, the parameters of the particle swarm optimization algorithm are initialized, the number of particles is set to be D, the maximum number of iterations is M, M and D are natural numbers, and each particle is given an initial random position x 0 and velocity v 0 ; 步骤S230,计算粒子的初始位置x0的服务质量值;Step S230, calculating the quality of service value of the initial position x0 of the particle; 步骤S240,按照计算公式更新每个粒子的速度,即第k+1次迭代时粒子的速度计算公式为:Step S240, update the velocity of each particle according to the calculation formula, that is, the velocity of the particle at the k+1th iteration The calculation formula is: vv idid kk ++ 11 == vv idid kk ++ 22 ×× randrand (( 11 )) ×× (( pp idid kk -- xx idid kk )) ++ 22 ×× randrand (( 11 )) ×× (( pp gdgd kk -- xx gdgd kk )) 公式中,k为迭代次数,k为自然数,表示当前粒子的服务质量值历史最优位置,表示全局服务质量值历史最优位置,为当前粒子的位置,表示当前粒子群中服务质量值最优粒子的位置,rand(1)表示电脑随机产生的0到1之间的随机数,表示第k次迭代时粒子的速度,表示第k+1次迭代时粒子的速度;In the formula, k is the number of iterations, k is a natural number, Indicates the historical optimal position of the service quality value of the current particle, Indicates the historical optimal position of the global service quality value, is the current particle position, Indicates the position of the particle with the best service quality value in the current particle swarm, rand(1) indicates a random number between 0 and 1 randomly generated by the computer, Indicates the velocity of the particle at the kth iteration, Indicates the velocity of the particle at the k+1th iteration; 步骤S250,根据步骤S240中所述的第k+1次迭代时粒子的速度按照计算公式更新每个粒子的位置,即第k+1次迭代时粒子的位置计算公式为:Step S250, according to the velocity of the particle at the k+1th iteration described in step S240 Update the position of each particle according to the calculation formula, that is, the position of the particle at the k+1th iteration The calculation formula is: 其中,是第k+1次迭代时粒子的位置, in, is the position of the particle at the k+1th iteration, 步骤S260,根据第k+1次迭代时粒子的位置计算粒子群中每个粒子位置的服务质量值;Step S260, according to the position of the particle at the k+1th iteration Calculate the position of each particle in the particle swarm quality of service value; 步骤S270,判断迭代次数k是否大于最大迭代次数M,如果达到最大迭代次数M,则输出作为扇区选择方案;否则,返回步骤S240。Step S270, judge whether the number of iterations k is greater than the maximum number of iterations M, if it reaches the maximum number of iterations M, then output As a sector selection scheme; otherwise, return to step S240. 2.根据权利要求1所述的多模移动终端选择高服务质量扇区的方法,其特征在于,所述步骤S220,设定粒子数量D=50,最大迭代次数M=100。2. The method for selecting a high-quality-of-service sector for a multi-mode mobile terminal according to claim 1, characterized in that in step S220, set the number of particles D=50, and the maximum number of iterations M=100. 3.根据权利要求2所述的多模移动终端选择高服务质量扇区的方法,其特征在于,所述步骤S210,设定至少10个可供选择的扇区,扇区数量N大于等于10,N为自然数。3. The method for selecting a high-quality-of-service sector for a multi-mode mobile terminal according to claim 2, characterized in that, in the step S210, at least 10 sectors for selection are set, and the number of sectors N is greater than or equal to 10 , N is a natural number. 4.根据权利要求1至3任意一项所述的多模移动终端选择高服务质量扇区的方法,其特征在于,所述步骤S200,粒子群算法运行在多模移动终端上。4. The method for a multi-mode mobile terminal to select a high-quality-of-service sector according to any one of claims 1 to 3, wherein in step S200, the particle swarm optimization algorithm is run on the multi-mode mobile terminal. 5.根据权利要求4所述的多模移动终端选择高服务质量扇区的方法,其特征在于,所述步骤S200,利用粒子群算法对扇区化蜂窝小区内的扇区进行选择。5. The method for selecting a high-quality-of-service sector for a multi-mode mobile terminal according to claim 4, wherein in step S200, a particle swarm optimization algorithm is used to select a sector in a sectorized cell.
CN201210564313.0A 2012-12-21 2012-12-21 Method for multi-mode mobile terminal to select sector with high service quality Expired - Fee Related CN103052145B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210564313.0A CN103052145B (en) 2012-12-21 2012-12-21 Method for multi-mode mobile terminal to select sector with high service quality

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210564313.0A CN103052145B (en) 2012-12-21 2012-12-21 Method for multi-mode mobile terminal to select sector with high service quality

Publications (2)

Publication Number Publication Date
CN103052145A CN103052145A (en) 2013-04-17
CN103052145B true CN103052145B (en) 2015-07-15

Family

ID=48064609

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210564313.0A Expired - Fee Related CN103052145B (en) 2012-12-21 2012-12-21 Method for multi-mode mobile terminal to select sector with high service quality

Country Status (1)

Country Link
CN (1) CN103052145B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094505A (en) * 2006-06-23 2007-12-26 华为技术有限公司 Fast method for selecting subzone / sector

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
IL159361A0 (en) * 2001-06-26 2004-06-01 Qualcomm Inc Method and apparatus for adaptive server selection in a data communication system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094505A (en) * 2006-06-23 2007-12-26 华为技术有限公司 Fast method for selecting subzone / sector

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
秦智超,周正,赵小川.利用粒子群优化的WSN环状簇路由协议.《北京邮电大学学报》.2012,第35卷(第5期), *

Also Published As

Publication number Publication date
CN103052145A (en) 2013-04-17

Similar Documents

Publication Publication Date Title
CN107682443A (en) An Efficient Offloading Method for Computational Tasks in Mobile Edge Computing Systems Considering Latency and Energy Consumption Jointly
CN102905317B (en) Mobile load balancing method used for multiple cells
CN107708197B (en) An Energy Efficient Heterogeneous Network User Access and Power Control Method
CN107426773A (en) Towards the distributed resource allocation method and device of efficiency in Wireless Heterogeneous Networks
CN102196579A (en) Quick algorithm for joint resource allocation in heterogeneous wireless network parallel multi-access system
CN106358300B (en) A Distributed Resource Allocation Method in Microcellular Network
CN104869646B (en) The resource allocation methods of Energy Efficient in heterogeneous wireless network
CN110035559A (en) A kind of contention window size intelligent selecting method based on chaos Q- learning algorithm
CN113423146B (en) Unauthorized random access method in multi-cell large-scale MIMO system
CN112202847B (en) A server resource allocation method based on mobile edge computing
CN106998222A (en) The power distribution method of high energy efficiency in a kind of distributing antenna system
CN118042494B (en) Safe computing efficiency optimization method in ultra-dense multi-access mobile edge computing network
CN103052145B (en) Method for multi-mode mobile terminal to select sector with high service quality
CN106686707B (en) Tilt-adjusted dynamic sector sleep method based on centralized self-organizing network architecture
CN109561129B (en) A Cooperative Computing Offloading Method Based on Optical Fiber-Wireless Network
El-Feshawy et al. An efficient clustering design for cellular based machine-to-machine communications
CN110248403A (en) A kind of resource management-control method of the maximization D2D connection number based on non-orthogonal multiple
CN110602718A (en) Heterogeneous cellular network power distribution method and system based on alternative direction multiplier method
CN106714083B (en) A kind of resource allocation methods of the 5G communication system based on Predatory search algorithm
Wang et al. Key technologies of green communication for 5G mobile network
CN103200649B (en) A kind of user access method of base station
CN110167171A (en) A kind of method and system of wireless power communication network resource distribution
CN102761882B (en) The system of selection of the optimum putting position in base station in general distribution mimo system
Xiao et al. Minimum separation clustering algorithm with high separation degree in ultra-dense network
CN114339786B (en) Method for updating cell range expansion bias value of fog access network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150715

Termination date: 20151221

EXPY Termination of patent right or utility model