[go: up one dir, main page]

CN113452552B - Information entropy perception-based super-multi-target controller placement method - Google Patents

Information entropy perception-based super-multi-target controller placement method Download PDF

Info

Publication number
CN113452552B
CN113452552B CN202110667269.5A CN202110667269A CN113452552B CN 113452552 B CN113452552 B CN 113452552B CN 202110667269 A CN202110667269 A CN 202110667269A CN 113452552 B CN113452552 B CN 113452552B
Authority
CN
China
Prior art keywords
population
individual
controller
optimized
ith
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
CN202110667269.5A
Other languages
Chinese (zh)
Other versions
CN113452552A (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.)
Xidian University
Original Assignee
Xidian 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 Xidian University filed Critical Xidian University
Priority to CN202110667269.5A priority Critical patent/CN113452552B/en
Publication of CN113452552A publication Critical patent/CN113452552A/en
Application granted granted Critical
Publication of CN113452552B publication Critical patent/CN113452552B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明公开了一种基于信息熵感知的超多目标控制器放置方法,包括:初始化广域网对应的网络信息和配置信息;获取所述广域网对应的拓扑链路长度信息;获取初始种群;按照预设迭代次数,对初始种群进行迭代优化处理,以得到最优种群;根据所述最优种群,计算得到最优解集和最优控制器放置方案集。本发明能够根据控制网络的部署成本、控制器的负载差异、控制器和交换节点之间的平均传播时延、控制器之间的平均传播时延和控制网络的可靠性,确定控制器放置部署方案集合。

Figure 202110667269

The invention discloses a super multi-target controller placement method based on information entropy perception, comprising: initializing network information and configuration information corresponding to a wide area network; acquiring topological link length information corresponding to the wide area network; acquiring an initial population; The number of iterations, iterative optimization processing is performed on the initial population to obtain the optimal population; according to the optimal population, the optimal solution set and the optimal controller placement scheme set are obtained by calculation. The invention can determine the placement and deployment of the controller according to the deployment cost of the control network, the load difference of the controller, the average propagation delay between the controller and the switching node, the average propagation delay between the controllers and the reliability of the control network Scheme collection.

Figure 202110667269

Description

一种基于信息熵感知的超多目标控制器放置方法A super multi-objective controller placement method based on information entropy perception

技术领域technical field

本发明属于通信技术领域,具体涉及一种基于信息熵感知的超多目标控制器放置方法。The invention belongs to the technical field of communication, and in particular relates to a super multi-target controller placement method based on information entropy perception.

背景技术Background technique

广域网以其传输容量大、易传输多种信号以及组网动态可重构等优点,被广泛应用,尤其是在云计算服务中。Wide area network is widely used because of its advantages of large transmission capacity, easy transmission of various signals, and dynamic reconfiguration of networking, especially in cloud computing services.

现有技术中通常使用SDN(SoftwareDefinedNetwork,软件定义网络)对广域网进行智能化的全局管控,所述SDN的主要特征是控制与转发分离,即,将分布式控制变为多个控制器相对集中的控制,各层之间采用开放的标准接口,采用通用的硬件完成必要的转发,如,使用SDN管控基于密集波分复用DWDM(Dense Wavelength Division Multiplexing,密集型光波复用)技术的广域网。In the prior art, SDN (Software Defined Network, Software Defined Network) is usually used to carry out intelligent global management and control of the WAN. The main feature of the SDN is the separation of control and forwarding, that is, the distributed control is changed into a relatively centralized control of multiple controllers. For control, open standard interfaces are used between layers, and common hardware is used to complete necessary forwarding. For example, SDN is used to control the WAN based on Dense Wavelength Division Multiplexing (Dense Wavelength Division Multiplexing) technology.

但是,为了将SDN应用于广域网,首先需要将一定数量的控制器放置于广域网,并将广域网划分为多个域,每个域由单独的控制器管理,同时确定控制器的位置,以满足特定的网络需求,即,在SDN应用过程中出现了控制器放置问题,又称SDN-CPPs(SDN ControllerPlacement Problems,SDN控制器放置问题),所述控制器放置问题会导致网络容错能力受到限制,扩展性较低,以及所述控制器的数量和位置会严重影响广域网的时延、可靠性、弹性等指标,进一步地,所述指标可抽象成相互牵制的优化目标,因此,该问题目前被认为是非确定性多项式NP的难题。此外,由于广域网中各种网元的虚拟化由NFV(NetworkFunctions Virtualization,网络功能虚拟化)负责,而SDN负责网络本身诸如网络节点间相互连接的虚拟化,因此,控制器放置问题SDN-CPPs也会影响VN(Virtual Network,虚拟网络)的性能。However, in order to apply SDN to the WAN, it is first necessary to place a certain number of controllers in the WAN, divide the WAN into multiple domains, each domain is managed by a separate controller, and determine the location of the controller to meet specific needs SDN-CPPs (SDN ControllerPlacement Problems, SDN Controller Placement Problems), the controller placement problem will limit the network fault tolerance, expand In addition, the number and location of the controllers will seriously affect the delay, reliability, elasticity and other indicators of the WAN. Further, the indicators can be abstracted into mutually restrained optimization goals. Therefore, this problem is currently considered to be is a nondeterministic polynomial NP-hard problem. In addition, since the virtualization of various network elements in the WAN is handled by NFV (Network Functions Virtualization), and SDN is responsible for the virtualization of the network itself, such as the interconnection between network nodes, the controller placement problem of SDN-CPPs is also It will affect the performance of VN (Virtual Network, virtual network).

现有技术中为了解决上述控制器放置问题的技术方案还存在着许多缺陷,其一,仅考虑从单个角度涉及控制器到其所控制交换机间的传播时延,未考虑控制器之间的传播时延,将导致无法优化控制器之间传播控制信息所消耗的时延,进而影响网络的性能;其二,未考虑负载均衡问题,由于大部分控制器的负载存在过大或过小问题,会导致最终放置方案中控制器存储资源的不足或浪费;其三,仅单独考虑控制网络的可靠性,未与其他优化目标结合;其四,不考虑控制链路的新建和控制器的运营和维护,仅考虑控制器的放置成本,不利于放置方案的实际应用。There are still many defects in the technical solutions for solving the above-mentioned controller placement problem in the prior art. First, it only considers the propagation delay between the controller and the switches it controls from a single perspective, and does not consider the propagation between controllers. The delay will lead to the inability to optimize the delay consumed by the propagation of control information between controllers, thereby affecting the performance of the network. Second, the load balancing problem is not considered. Because the load of most controllers is too large or too small, It will lead to the shortage or waste of controller storage resources in the final placement scheme; thirdly, only the reliability of the control network is considered alone, not combined with other optimization goals; fourthly, the new control link and the operation of the controller are not considered. Maintenance, only considering the placement cost of the controller, is not conducive to the practical application of the placement scheme.

发明内容SUMMARY OF THE INVENTION

为了解决现有技术中存在的上述问题,本发明提供了一种基于信息熵感知的超多目标控制器放置方法。本发明要解决的技术问题通过以下技术方案实现:In order to solve the above problems existing in the prior art, the present invention provides a super multi-objective controller placement method based on information entropy perception. The technical problem to be solved by the present invention is realized by the following technical solutions:

一种基于信息熵感知的超多目标控制器放置方法,包括:步骤1:初始化广域网对应的网络信息和配置信息,所述网络信息包括:网络节点经度信息λi、网络节点纬度信息

Figure GDA0003716002390000021
网络拓扑节点数量信息|N|、网络拓扑链路数量信息|E|、信息熵网格数ai,i=1,2,…,5、直连链路源节点信息Ai和直连链路宿节点信息Oi,其中,i为1,2,……,|N|,网络中第i个节点的可靠性ri node,其中,i为1,2,……,|N|,网络中第i条链路的可靠性ri edge,其中,i为1,2,……,|E|;所述配置信息包括:种群规模信息Num、控制器数量上限信息maxCNum、进化感知阈值信息τ、控制器的部署成本
Figure GDA0003716002390000031
控制器管理所属交换节点产生的成本
Figure GDA0003716002390000032
新建控制链路产生的成本
Figure GDA0003716002390000033
控制链路成本的权重ψ和最大进化代数信息Gmax;步骤2:获取所述广域网对应的拓扑链路长度信息;步骤3:获取初始种群;步骤4:按照预设最大进化代数信息Gmax,对初始种群进行迭代优化处理,以得到最优种群;步骤5:根据所述最优种群,计算得到最优解集和最优控制器放置方案集。A method for placing a super-multi-target controller based on information entropy perception, comprising: step 1: initializing network information and configuration information corresponding to a wide area network, the network information comprising: network node longitude information λ i , network node latitude information
Figure GDA0003716002390000021
Network topology node number information |N|, network topology link number information |E|, information entropy grid number a i , i=1,2,...,5, direct link source node information A i and direct link Road sink node information O i , where i is 1, 2, ..., |N|, the reliability of the ith node in the network r i node , where i is 1, 2, ..., |N|, Reliability r i edge of the i-th link in the network, where i is 1, 2, ..., |E|; the configuration information includes: population size information Num, upper limit information on the number of controllers maxCNum, evolution perception threshold Information τ, the deployment cost of the controller
Figure GDA0003716002390000031
The cost incurred by the controller to manage the switching nodes to which it belongs
Figure GDA0003716002390000032
Cost of new control link
Figure GDA0003716002390000033
Control the weight ψ of the link cost and the maximum evolutionary algebra information G max ; Step 2: obtain the topological link length information corresponding to the wide area network; Step 3: obtain the initial population; Step 4: According to the preset maximum evolutionary algebra information G max , Perform iterative optimization processing on the initial population to obtain the optimal population; Step 5: According to the optimal population, calculate and obtain the optimal solution set and the optimal controller placement scheme set.

在本发明的一个实施例中,所述步骤2包括:步骤2-1:基于所述网络信息,计算广域网对应的拓扑链路长度,表示为:In an embodiment of the present invention, the step 2 includes: step 2-1: based on the network information, calculate the length of the topology link corresponding to the wide area network, which is expressed as:

Figure GDA0003716002390000034
Figure GDA0003716002390000034

其中,Rearth表示地球的半径,取值Rearth=6400km,

Figure GDA0003716002390000035
表示第i个源节点Ai的经度,
Figure GDA0003716002390000036
表示第i个源节点Ai的纬度,
Figure GDA0003716002390000037
表示第i个宿节点Oi的经度,
Figure GDA0003716002390000038
表示第i个宿节点Oi纬度,L(Ai,Oi)表示第i个源节点Ai和第i个宿节点Oi之间直连链路的长度,i取值为1,2,…,|N|;步骤2-2:根据预设最短路计算规则,计算所述广域网对应的拓扑中任意两个节点之间的最短路信息。Among them, R earth represents the radius of the earth, and the value is R earth =6400km,
Figure GDA0003716002390000035
represents the longitude of the i-th source node A i ,
Figure GDA0003716002390000036
represents the latitude of the i-th source node A i ,
Figure GDA0003716002390000037
represents the longitude of the i-th sink node O i ,
Figure GDA0003716002390000038
Represents the latitude of the ith sink node O i , L(A i ,O i ) represents the length of the direct link between the ith source node A i and the ith sink node O i , and i is 1, 2 , .

在本发明的一个实施例中,所述步骤3包括:步骤3-1:根据所述控制器数量上限信息maxCNum,随机生成一个整数,其中,所述整数范围在[1,maxCNum]之间,所述整数作为第i个个体的控制器数量;步骤3-2:获取第i个长度N的随机向量Rv(i),并对所述随机向量由大到小排序,以得到Rv1(i),其中所述随机向量中每个位置的值均为(0,1)之间随机数,所述Rv1(i)中第Cnum(i)个数字为初始种群阈值εi;步骤3-3:将Rv(i)中小于初始种群阈值εi的数修改为0,以及大于或等于εi的数修改成1,以得到第i个初始个体;步骤3-4:重复步骤3-1至步骤3-3,直到i=Num,得到初始种群P0In an embodiment of the present invention, the step 3 includes: step 3-1: randomly generate an integer according to the upper limit information on the number of controllers maxCNum, where the integer range is between [1, maxCNum], The integer is used as the number of controllers for the i-th individual; Step 3-2: Obtain the i-th random vector R v (i) of length N, and sort the random vector from large to small to obtain R v1 ( i), wherein the value of each position in the random vector is a random number between (0, 1), and the number C num (i) in the R v1 (i) is the initial population threshold ε i ; step 3-3: Modify the number smaller than the initial population threshold εi in R v (i) to 0, and the number greater than or equal to εi to 1 to obtain the i-th initial individual; Step 3-4: Repeat step 3- 1 to step 3-3, until i=Num, to obtain the initial population P 0 .

本发明的有益效果:Beneficial effects of the present invention:

第一,本发明根据信息熵感知系数Hpar自适应地调整拥挤度的计算公式,从而便于在待优化种群的选择时,得到收敛性和分布性均较优的待优化种群,当信息熵感知系数Hpar较小的时候,说明待优化种群的分布性较差,因此在种群分布性的计算过程中,Harmonic平均距离的权重就会增大,这有助于提高种群的分布性;当信息熵感知系数Hpar较大的时候,说明待优化种群的分布优良,可以促使种群收敛性的增加,因此在种群分布性的计算过程中,因此每个个体与原点Om之间的欧氏距离的权重就会增大,这有助于提高种群的收敛性,从而可促使种群向更优的方向进化,便于获取更高控制网络的性能、更低控制网络传播时延、更合理控制器存储资源配置、更高控制网络可靠性、更低控制器放置成本的控制器放置方案集。First, the present invention adaptively adjusts the calculation formula of the crowding degree according to the information entropy perception coefficient H par , so that when the population to be optimized is selected, the population to be optimized with better convergence and distribution can be obtained. When the coefficient H par is small, it means that the distribution of the population to be optimized is poor. Therefore, in the process of calculating the distribution of the population, the weight of the Harmonic average distance will increase, which helps to improve the distribution of the population; When the entropy perception coefficient H par is large, it means that the distribution of the population to be optimized is excellent, which can promote the increase of the population convergence. Therefore, in the calculation process of the population distribution, the Euclidean distance between each individual and the origin O m The weight will increase, which will help to improve the convergence of the population, which can promote the evolution of the population in a better direction, which is convenient to obtain higher control network performance, lower control network propagation delay, and more reasonable controller storage. A set of controller placement solutions for resource allocation, higher control network reliability, and lower controller placement costs.

第二,本发明在交配池生成的过程中,根据待优化种群选择压力的不同,使用两种排序策略,如果待优化种群

Figure GDA0003716002390000041
排序等级平均信息熵值Hre较小,说明待优化种群
Figure GDA0003716002390000042
的选择压力较小,这说明精英个体不易从待优化种群中选出,因而使用K支配排序的方法提高种群内精英个体的选择压力,从而促使精英个体在交配池中聚集;而如果待优化种群
Figure GDA0003716002390000043
排序等级平均信息熵值Hre较大,说明待优化种群
Figure GDA0003716002390000044
的选择压力较大,这说明精英个体可以从待优化种群中选出,因而使用非支配排序的方法选择种群内的精英个体。Second, in the process of generating the mating pool, the present invention uses two sorting strategies according to the different selection pressures of the population to be optimized.
Figure GDA0003716002390000041
The average information entropy value H re of the ranking level is small, indicating that the population to be optimized
Figure GDA0003716002390000042
The selection pressure of is small, which means that elite individuals are not easy to be selected from the population to be optimized. Therefore, the K-dominated sorting method is used to increase the selection pressure of elite individuals in the population, thereby promoting elite individuals to gather in the mating pool; and if the population to be optimized is
Figure GDA0003716002390000043
The average information entropy value H re of the ranking level is relatively large, indicating that the population to be optimized is
Figure GDA0003716002390000044
The selection pressure of is relatively large, which means that elite individuals can be selected from the population to be optimized, so the non-dominated sorting method is used to select the elite individuals in the population.

第三,本发明在优化目标的计算中,精心挑选5个优化目标,分别是控制网络的部署成本、控制器的负载差异、控制器和交换节点之间的传播时延、控制节点之间的传播时延、以及控制网络的可靠性。这五个优化目标互相牵制,同时优化这5个优化目标,从而促使控制网络在不同的衡量尺度上达到较优的性能指标。Third, the present invention carefully selects five optimization objectives in the calculation of the optimization objectives, which are the deployment cost of the control network, the load difference of the controller, the propagation delay between the controller and the switching nodes, and the delay between the control nodes. Propagation delay, and reliability of the control network. These five optimization objectives are mutually restrained, and the five optimization objectives are optimized at the same time, so that the control network can achieve better performance indicators on different scales.

以下将结合附图及实施例对本发明做进一步详细说明。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments.

附图说明Description of drawings

图1是本发明实施例提供的一种基于信息熵感知的超多目标控制器放置方法流程示意图;1 is a schematic flowchart of a method for placing a super-multi-target controller based on information entropy perception provided by an embodiment of the present invention;

图2是本发明实施例提供的一种本发明和对比方法在Internet OS3E下所得近似最优控制器放置方案集R的优化目标值对比示意图;Fig. 2 is a kind of the present invention that the embodiment of the present invention provides and contrast method under Internet OS3E obtains approximate optimal controller placement scheme set R the optimized target value contrast schematic diagram;

图3是本发明实施例提供的另一种本发明和对比方法在Internet OS3E下所得近似最优控制器放置方案集R的优化目标值对比示意图;Fig. 3 is another kind of the present invention that the embodiment of the present invention provides and the contrasting schematic diagram of the optimization target value of the obtained approximate optimal controller placement scheme set R under Internet OS3E;

图4是本发明实施例提供的另一种本发明和对比方法在Internet OS3E下所得近似最优控制器放置方案集R的优化目标值对比示意图;Fig. 4 is another kind of the present invention that the embodiment of the present invention provides and the comparison method under Internet OS3E obtains the approximate optimal controller placement scheme set R the optimized target value comparison schematic diagram;

图5是本发明实施例提供的另一种本发明和对比方法在Internet OS3E下所得近似最优控制器放置方案集R的优化目标值对比示意图;Fig. 5 is another kind of the present invention that the embodiment of the present invention provides and the comparative method under Internet OS3E obtains the approximate optimal controller placement scheme set R the optimized target value comparison schematic diagram;

图6是本发明实施例提供的另一种本发明和对比方法在Internet OS3E下所得近似最优控制器放置方案集R的优化目标值对比示意图;Fig. 6 is another kind of the present invention that the embodiment of the present invention provides and the contrasting schematic diagram of the optimization target value of the approximate optimal controller placement scheme set R obtained under Internet OS3E;

图7是本发明实施例提供的另一种本发明和对比方法在Internet OS3E下所得近似最优控制器放置方案集R的优化目标值对比示意图。FIG. 7 is a schematic diagram showing the comparison of the optimization target values of the approximate optimal controller placement scheme set R obtained by the present invention and the comparative method under Internet OS3E according to another embodiment of the present invention.

具体实施方式Detailed ways

下面结合具体实施例对本发明做进一步详细的描述,但本发明的实施方式不限于此。The present invention will be described in further detail below with reference to specific embodiments, but the embodiments of the present invention are not limited thereto.

实施例一Example 1

请参见图1,图1是本发明实施例提供的一种基于信息熵感知的超多目标控制器放置方法流程示意图,包括:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a method for placing a super-multi-target controller based on information entropy perception provided by an embodiment of the present invention, including:

步骤1:初始化广域网对应的网络信息和配置信息。Step 1: Initialize the network information and configuration information corresponding to the WAN.

本发明广域网以Internet OS3E网络为例进行说明,所述Internet OS3E网络,是一个美国骨干网,被广泛用于控制器放置问题的仿真研究。The wide area network of the present invention is described by taking the Internet OS3E network as an example. The Internet OS3E network is an American backbone network and is widely used in the simulation research of the controller placement problem.

可选的,所述网络信息包括:网络节点经度信息λi、网络节点纬度信息

Figure GDA0003716002390000061
网络拓扑节点数量信息|N|、网络拓扑链路数量信息|E|、信息熵网格数ai,i=1,2,…,5、直连链路源节点信息Ai和直连链路宿节点信息Oi,其中,i为1,2,……,|N|,网络中第i个节点的可靠性ri node,其中,i为1,2,……,|N|,网络中第i条链路的可靠性ri edge,其中,i为1,2,……,|E|;所述配置信息包括:种群规模信息Num、控制器数量上限信息maxCNum、进化感知阈值信息τ、控制器的部署成本
Figure GDA0003716002390000062
控制器管理所属交换节点产生的成本
Figure GDA0003716002390000063
新建控制链路产生的成本
Figure GDA0003716002390000064
控制链路成本的权重ψ和最大进化代数信息Gmax。Optionally, the network information includes: network node longitude information λ i , network node latitude information
Figure GDA0003716002390000061
Network topology node number information |N|, network topology link number information |E|, information entropy grid number a i , i=1,2,...,5, direct link source node information A i and direct link Road sink node information O i , where i is 1, 2, ..., |N|, the reliability of the ith node in the network r i node , where i is 1, 2, ..., |N|, Reliability r i edge of the i-th link in the network, where i is 1, 2, ..., |E|; the configuration information includes: population size information Num, upper limit information on the number of controllers maxCNum, evolution perception threshold Information τ, the deployment cost of the controller
Figure GDA0003716002390000062
The cost incurred by the controller to manage the switching nodes to which it belongs
Figure GDA0003716002390000063
Cost of new control link
Figure GDA0003716002390000064
The weight ψ that controls the link cost and the maximum evolutionary algebraic information G max .

本发明以Num=100、进化感知阈值τ=0.4、最大进化代数Gmax=100、网络拓扑节点总数|N|=34和网络拓扑链路总数|E|=42为例,进行仿真实验。The present invention takes Num=100, evolution perception threshold τ=0.4, maximum evolutionary algebra Gmax =100, total number of network topology nodes |N|=34 and total number of network topology links |E|=42 to conduct simulation experiments.

步骤2:获取所述广域网对应的拓扑链路长度信息。Step 2: Acquire topological link length information corresponding to the wide area network.

可选的,所述步骤2包括:Optionally, the step 2 includes:

步骤2-1:基于所述网络信息,计算广域网对应的拓扑链路长度,表示为:Step 2-1: Based on the network information, calculate the length of the topology link corresponding to the WAN, which is expressed as:

Figure GDA0003716002390000065
Figure GDA0003716002390000065

其中,Rearth表示地球的半径,取值Rearth=6400km,

Figure GDA0003716002390000066
表示第i个源节点Ai的经度,
Figure GDA0003716002390000067
表示第i个源节点Ai的纬度,
Figure GDA0003716002390000068
表示第i个宿节点Oi的经度,
Figure GDA0003716002390000069
表示第i个宿节点Oi纬度,L(Ai,Oi)表示第i个源节点Ai和第i个宿节点Oi之间直连链路的长度,i取值为1,2,…,|N|。Among them, R earth represents the radius of the earth, and the value is R earth =6400km,
Figure GDA0003716002390000066
represents the longitude of the i-th source node A i ,
Figure GDA0003716002390000067
represents the latitude of the i-th source node A i ,
Figure GDA0003716002390000068
represents the longitude of the i-th sink node O i ,
Figure GDA0003716002390000069
Represents the latitude of the ith sink node O i , L(A i ,O i ) represents the length of the direct link between the ith source node A i and the ith sink node O i , and i is 1, 2 , …, |N|.

步骤2-2:根据预设最短路计算规则,计算所述广域网对应的拓扑中任意两个节点之间的最短路信息。Step 2-2: Calculate the shortest path information between any two nodes in the topology corresponding to the wide area network according to a preset shortest path calculation rule.

所述预设最短计算规则由本领域技术人员根据业务需要进行确定,本发明不做限制,示例如,Floyd算法或者Dijkstra算法,本发明以Floyd算法为例进行说明,具体的,将输入Internet OS3E网络拓扑网络第i个节点经度λi、纬度

Figure GDA0003716002390000071
Internet OS3E网络拓扑节点数N、第i个源节点Ai和第i个宿节点Oi之间直连链路的长度L(Ai,Oi),这些参数输入给该算法Floyd算法;通过MATLAB软件计算并输出Internet OS3E网络拓扑中任意两个节点i和节点j之间的最短路集合sij,i,j=1,2,……,|N|,且i≠j。The preset shortest calculation rule is determined by those skilled in the art according to business needs, and the present invention does not limit it, for example, Floyd algorithm or Dijkstra algorithm, the present invention takes Floyd algorithm as an example to illustrate, specifically, it will input the Internet OS3E network Longitude λ i and latitude of the ith node of the topology network
Figure GDA0003716002390000071
The number of Internet OS3E network topology nodes N, the length of the direct link between the ith source node A i and the ith sink node O i , L(A i , O i ), these parameters are input to the algorithm Floyd algorithm; MATLAB software calculates and outputs the shortest path set s ij between any two nodes i and j in the Internet OS3E network topology, i, j = 1, 2, ..., |N|, and i≠j.

步骤3:获取初始种群P0Step 3: Obtain the initial population P 0 .

可选的,所述步骤3包括:Optionally, the step 3 includes:

步骤3-1:根据所述控制器数量上限信息maxCNum,随机生成一个整数,其中,所述整数范围在[1,maxCNum]之间,所述整数作为第i个个体的控制器数量Cnum(i)。Step 3-1: According to the information maxCNum of the upper limit of the number of controllers, randomly generate an integer, where the integer range is between [1, maxCNum], and the integer is used as the number of controllers of the ith individual C num ( i).

步骤3-2:获取第i个长度|N|的随机向量Rv(i),并对所述随机向量由大到小排序,以得到Rv1(i),其中所述随机向量中每个位置的值均为(0,1)之间随机数,所述Rv1(i)中第Cnum(i)个数字为初始种群阈值εiStep 3-2: Obtain the i-th random vector R v (i) of length |N|, and sort the random vectors from large to small to obtain R v1 (i), where each of the random vectors The values of the positions are all random numbers between (0, 1), and the C num (i)th number in the R v1 (i) is the initial population threshold ε i .

步骤3-3:将Rv(i)中小于初始种群阈值εi的数修改为0,以及大于或等于εi的数修改成1,以得到第i个初始个体。Step 3-3: Modify the number less than the initial population threshold εi in R v (i) to 0, and the number greater than or equal to εi to 1 to obtain the i-th initial individual.

步骤3-4:重复步骤3-1至步骤3-3,直到i=Num,得到初始种群P0Step 3-4: Repeat steps 3-1 to 3-3 until i=Num, and obtain the initial population P 0 .

步骤4:按照预设最大进化代数信息Gmax,对初始种群进行迭代优化处理,以得到最优种群。Step 4: Perform iterative optimization processing on the initial population according to the preset maximum evolutionary algebra information G max to obtain the optimal population.

可选的,所述步骤4,包括:Optionally, the step 4 includes:

步骤4-1:确定待优化种群

Figure GDA0003716002390000081
Step 4-1: Determine the population to be optimized
Figure GDA0003716002390000081

Figure GDA0003716002390000082
中的每个个体都代表一个控制器部署方案,其中Gene为当前进化代数,Gene的取值为0,1,2,…,Gmax
Figure GDA0003716002390000082
Each individual in represents a controller deployment scheme, where Gene is the current evolutionary algebra, and the value of Gene is 0, 1, 2, ..., G max .

步骤4-2:计算所述待优化种群中全部个体对应的目标函数值;Step 4-2: Calculate the objective function value corresponding to all individuals in the population to be optimized;

可选的,所述步骤4-2包括:Optionally, the step 4-2 includes:

步骤4-21:依次从待优化种群

Figure GDA0003716002390000083
中按从小到大顺序选出第i个个体xi,i=1,2,…,Num,根据交换节点由距离最近的控制器控制的原则,将交换节点分配给控制器节点,得到该个体的控制器部署数量m、第i个节点控制器的个数ki,i=1,2,…,|N|、第i个控制器控制交换节点的个数wi,i=1,2,…,m、节点i部署控制器且交换节点j的交换机是否由节点i的控制器控制的布尔变量cij,i,j=1,2,…,|N|、网络中第i个节点是否部署控制器的布尔变量hi,i=1,2,…,|N|、第i条网络链路是否位于第j个控制器的控制网络区域中的布尔变量
Figure GDA0003716002390000084
i=1,2,…,|E|,j=1,2,…,|N|、第i个交换节点是否位于第j个控制器的控制网络区域中的布尔变量
Figure GDA0003716002390000085
i,j=1,2,…,|N|。Step 4-21: Sequence from the population to be optimized
Figure GDA0003716002390000083
Select the i-th individual x i in ascending order, i=1, 2, . The number of deployed controllers m, the number of i-th node controllers k i , i =1, 2, . , ..., m, node i deploys a controller and switches whether the switch of node j is controlled by the controller of node i, the Boolean variable c ij , i, j=1, 2, ..., |N|, the ith node in the network Boolean variable h i of whether to deploy the controller, i=1, 2, . . . , |N|, whether the ith network link is located in the control network area of the jth controller
Figure GDA0003716002390000084
i=1, 2,..., |E|, j=1, 2,..., |N|, Boolean variable whether the ith switching node is located in the control network area of the jth controller
Figure GDA0003716002390000085
i, j = 1, 2, ..., |N|.

步骤4-22:计算待优化种群

Figure GDA0003716002390000086
中第i个个体xi的目标函数,i=1,2,…,Num,表示为:Step 4-22: Calculate the population to be optimized
Figure GDA0003716002390000086
The objective function of the i-th individual x i , i=1, 2, ..., Num, is expressed as:

F(xi)=(f1(xi),f2(xi),f3(xi),f4(xi),f5(xi))TF( xi )=(f 1 ( xi ), f 2 ( xi ), f 3 ( xi ), f 4 ( xi ), f 5 ( xi )) T ,

Figure GDA0003716002390000087
Figure GDA0003716002390000087

Figure GDA0003716002390000088
Figure GDA0003716002390000088

Figure GDA0003716002390000089
Figure GDA0003716002390000089

Figure GDA0003716002390000091
Figure GDA0003716002390000091

Figure GDA0003716002390000092
Figure GDA0003716002390000092

其中,F(xi)表示待优化种群

Figure GDA0003716002390000093
中第i个个体xi的目标函数,f1(xi)表示待优化种群
Figure GDA0003716002390000094
中第i个个体xi的控制器部署成本,f2(xi)表示待优化种群
Figure GDA0003716002390000095
中第i个个体xi的负载差异,f3(xi)表示待优化种群
Figure GDA0003716002390000096
中第i个个体xi的控制网络中控制器与交换节点之间的平均传播时延,f4(xi)表示待优化种群
Figure GDA0003716002390000097
中第i个个体xi的控制网络中控制器之间的平均传播时延,f5(xi)表示待优化种群
Figure GDA0003716002390000098
中第i个个体xi的控制网络的不可靠性。Among them, F(x i ) represents the population to be optimized
Figure GDA0003716002390000093
The objective function of the i -th individual xi in , f 1 ( xi ) represents the population to be optimized
Figure GDA0003716002390000094
The controller deployment cost of the i -th individual xi in , f 2 ( xi ) represents the population to be optimized
Figure GDA0003716002390000095
The load difference of the i -th individual xi in , f 3 ( xi ) represents the population to be optimized
Figure GDA0003716002390000096
The average propagation delay between the controller and the switching node in the control network of the i -th individual xi, f 4 ( xi ) represents the population to be optimized
Figure GDA0003716002390000097
The average propagation delay between the controllers in the control network of the i -th individual xi, f 5 ( xi ) represents the population to be optimized
Figure GDA0003716002390000098
The unreliability of the control network for the i -th individual xi in .

步骤4-23:重复步骤4-21至步骤4-22,直到待优化种群中全部个体的目标函数值均完成计算。Step 4-23: Repeat steps 4-21 to 4-22 until the objective function values of all individuals in the population to be optimized are calculated.

步骤4-3:对所述待优化种群进行非支配排序,以得到所述待优化种群对应的帕累托最优解集Ω、全部个体排序等级的总数Deg和待优化种群

Figure GDA0003716002390000099
第r个排序等级中的个体总数Dsum(r),其中,r=1,2,…。Step 4-3: Perform non-dominated sorting on the population to be optimized to obtain the Pareto optimal solution set Ω corresponding to the population to be optimized, the total number of ranking levels Deg of all individuals, and the population to be optimized.
Figure GDA0003716002390000099
The total number of individuals in the r-th ranking level D sum (r), where r = 1, 2, . . .

步骤4-4:计算信息熵感知系数HparStep 4-4: Calculate the information entropy perception coefficient H par .

可选的,所述步骤4-3包括:Optionally, the steps 4-3 include:

步骤4-41:将帕累托最优解集Ω中全部个体目标函数中的每一个优化目标均归一化,表示为:Step 4-41: Normalize each optimization objective in all individual objective functions in the Pareto optimal solution set Ω, and express as:

F'(xi)={f'1(xi),f'2(xi),…,f'M(xi)},i=1,2,…,|Ω|,F'(x i )={f' 1 (x i ),f' 2 (x i ),...,f' M (x i )},i=1,2,...,|Ω|,

其中,F'(xi)为帕累托最优解集Ω中第i个个体归一化后的目标函数值,i的取值范围i=1,2,…,|Ω|,|Ω|为帕累托最优解集Ω的个体数,M为优化目标数量,取值M=5,f'k(xi)为帕累托最优解集Ω中第i个个体xi中第k个归一化后的优化目标,表示为:Among them, F'(x i ) is the normalized objective function value of the ith individual in the Pareto optimal solution set Ω, and the value range of i is i=1, 2,...,|Ω|, |Ω | is the number of individuals in the Pareto optimal solution set Ω, M is the number of optimization targets, the value M=5, f' k ( xi ) is the i-th individual x i in the Pareto optimal solution set Ω The k-th normalized optimization objective is expressed as:

Figure GDA0003716002390000101
Figure GDA0003716002390000101

其中,fk(xi)为个体的xi目标函数中第k个优化目标值,k的取值范围为k=1,2,…,M,M为优化目标个数(M=5)。Among them, f k ( xi ) is the k-th optimization objective value in the objective function of x i of the individual, the value range of k is k=1, 2,...,M, and M is the number of optimization objectives (M=5) .

需要说明的是,本发明以M=5为例进行说明。It should be noted that, the present invention is described by taking M=5 as an example.

步骤4-42:计算帕累托最优解集Ω中任意两个不同个体间的影响距离,具体计算方式如下:Step 4-42: Calculate the influence distance between any two different individuals in the Pareto optimal solution set Ω. The specific calculation method is as follows:

Figure GDA0003716002390000102
Figure GDA0003716002390000102

其中,d(xi,xj)为个体xi和个体xj之间的影响距离,f'k(xi)为种群中第i个个体xi中第k个归一化后的优化目标,f'k(xj)为种群中第j个个体xj中第k个归一化后的优化目标,k的取值范围为k=1,2,…,M,M为优化目标个数。Among them, d( xi , x j ) is the influence distance between individual xi and individual x j , f' k ( xi ) is the k-th normalized optimization of the ith individual xi in the population Goal, f' k (x j ) is the k-th normalized optimization goal of the j-th individual x j in the population, and the value range of k is k=1, 2,...,M, where M is the optimization goal number.

需要说明的是,本发明以M=5为例进行说明。It should be noted that, the present invention is described by taking M=5 as an example.

步骤4-43:计算帕累托最优解集Ω中任意两个不同个体间的高斯影响函数值,具体计算方式如下:Step 4-43: Calculate the Gaussian influence function value between any two different individuals in the Pareto optimal solution set Ω. The specific calculation method is as follows:

Figure GDA0003716002390000103
Figure GDA0003716002390000103

其中,d(xi,xj)为个体xi和个体xj之间的影响距离,σ为分布度的标准差,π为圆周率,i和j的取值范围为i≠j,i,j=1,2,…,|Ω|。Among them, d(x i , x j ) is the influence distance between individual x i and individual x j , σ is the standard deviation of the distribution, π is the pi, the value range of i and j is i≠j, i, j=1,2,...,|Ω|.

步骤4-44:单个个体的密度值是指目标空间中所有非支配个体对该个体影响函数值的总和,假设目标空间内帕累托最优解集的规模为|Ω|,则第j个个体xj的密度值:Step 4-44: The density value of a single individual refers to the sum of the influence function values of all non-dominated individuals in the target space on the individual. Assuming that the scale of the Pareto optimal solution set in the target space is |Ω|, then the jth Density value of individual x j :

Figure GDA0003716002390000111
Figure GDA0003716002390000111

其中,Dm(xj)表示种群中第j个个体的密度值,j的取值范围为j=1,2,…,|Ω|,Ω表示目标空间中种群的帕累托最优解集,该帕累托最优解集的规模为|Ω|。Among them, D m (x j ) represents the density value of the jth individual in the population, and the value range of j is j=1, 2,..., |Ω|, and Ω represents the Pareto optimal solution of the population in the target space The size of the Pareto optimal solution set is |Ω|.

步骤4-45:将目标空间划分为a1×a2×a3×a4×a5个网格,并统计帕累托最优解集在每一个网格中的个体数|Ωijkbd|,其中,i,j,k,b,d的取值范围为i=1,2,…,a1,j=1,2,…,a2,k=1,2,…,a3,b=1,2,…,a4,d=1,2,…,a5Step 4-45: Divide the target space into a 1 ×a 2 ×a 3 ×a 4 ×a 5 grids, and count the number of Pareto optimal solution sets in each grid |Ω ijkbd | , where the value ranges of i,j,k,b,d are i=1,2,...,a 1 , j=1,2,...,a 2 , k=1,2,...,a 3 , b=1,2,...,a 4 , d=1,2,...,a 5 .

需要说明的是,本发明以ɑk=4为例进行仿真说明,其中,k=1,2,…,M。It should be noted that the present invention takes ɑ k =4 as an example for simulation description, where k=1, 2, . . . , M.

步骤4-46:计算帕累托最优解集在目标空间的每个网格内全部个体的密度值之和Dijkbd,具体计算方式如下:Step 4-46: Calculate the sum D ijkbd of the density values of all individuals in each grid of the Pareto optimal solution set in the target space. The specific calculation method is as follows:

Figure GDA0003716002390000112
Figure GDA0003716002390000112

步骤4-47:计算帕累托最优解集的密度函数,具体计算方式如下:Step 4-47: Calculate the density function of the Pareto optimal solution set. The specific calculation method is as follows:

Figure GDA0003716002390000113
Figure GDA0003716002390000113

其中,ρijkbd表示在第ijkbd网格空间内帕累托最优解集的密度函数值,i,j,k,b,d的取值范围为i=1,2,…,a1,j=1,2,…,a2,k=1,2,…,a3,b=1,2,…,a4,d=1,2,…,a5Among them, ρ ijkbd represents the density function value of the Pareto optimal solution set in the ijkbd grid space, and the value range of i, j, k, b, d is i=1, 2,...,a 1 , j =1,2,...,a 2 , k=1,2,...,a 3 ,b=1,2,...,a 4 ,d=1,2,...,a 5 .

步骤4-48:计算帕累托最优解集的信息熵,具体计算方式如下:Step 4-48: Calculate the information entropy of the Pareto optimal solution set, the specific calculation method is as follows:

Figure GDA0003716002390000114
Figure GDA0003716002390000114

其中,HPar为帕累托最优解集Ω的信息熵。Among them, H Par is the information entropy of the Pareto optimal solution set Ω.

步骤4-5:将待优化种群的编码方式由二进制编码转换为格雷码,以得到格雷码形式的待优化种群

Figure GDA0003716002390000121
Step 4-5: Convert the coding mode of the population to be optimized from binary code to Gray code to obtain the population to be optimized in the form of Gray code
Figure GDA0003716002390000121

步骤4-6:对所述格雷码形式的待优化种群

Figure GDA0003716002390000122
进行优化,以得到新种群。Step 4-6: For the population to be optimized in the Gray code form
Figure GDA0003716002390000122
Optimizing to get new populations.

可选的,所述步骤4-6包括:Optionally, the steps 4-6 include:

步骤4-61:计算种群

Figure GDA0003716002390000123
的拥挤度C(xi)。Step 4-61: Calculate the population
Figure GDA0003716002390000123
The crowding degree C(x i ).

所述步骤4-61包括:The steps 4-61 include:

步骤4-61a:将待优化种群

Figure GDA0003716002390000124
中全部个体目标函数中的每一个优化目标均归一化,具体由以下公式实现:Step 4-61a: the population to be optimized
Figure GDA0003716002390000124
Each optimization objective in all individual objective functions in is normalized, which is realized by the following formula:

F'(xi)={f'1(xi),f'2(xi),…,f'M(xi)},i=1,2,…,Num,F'(x i )={f' 1 (x i ),f' 2 (x i ),...,f' M (x i )},i=1,2,...,Num,

其中,F'(xi)为待优化种群

Figure GDA0003716002390000125
中第i个个体归一化后的目标函数值,i的取值范围i=1,2,…,Num,Num为种群规模,f'k(xi)为待优化种群
Figure GDA0003716002390000126
中第i个个体xi中第k个归一化后的优化目标,具体计算方式如下:Among them, F'(x i ) is the population to be optimized
Figure GDA0003716002390000125
The normalized objective function value of the i-th individual in the i, the value range of i is i=1,2,...,Num, where Num is the population size, and f' k ( xi ) is the population to be optimized
Figure GDA0003716002390000126
The k-th normalized optimization objective in the i -th individual xi is as follows:

Figure GDA0003716002390000127
Figure GDA0003716002390000127

其中,fk(xi)为个体的xi目标函数中第k个优化目标值,k的取值范围为k=1,2,…,M,M为优化目标个数,本文中取值为M=5。Among them, f k ( xi ) is the k-th optimization objective value in the objective function of x i of the individual, the value range of k is k=1, 2,...,M, M is the number of optimization objectives, the value in this paper is M=5.

步骤4-61b:计算待优化种群

Figure GDA0003716002390000128
中任意两个不同个体间的影响距离,具体计算方式如下:Step 4-61b: Calculate the population to be optimized
Figure GDA0003716002390000128
The influence distance between any two different individuals is calculated as follows:

Figure GDA0003716002390000129
Figure GDA0003716002390000129

其中,d(xi,xj)为个体xi和个体xj之间的影响距离,f'k(xi)为种群中第i个个体xi中第k个归一化后的优化目标,f'k(xj)为种群中第j个个体xj中第k个归一化后的优化目标,k的取值范围为k=1,2,…,M,M为优化目标个数,本文中取值为M=5。Among them, d( xi , x j ) is the influence distance between individual xi and individual x j , f' k ( xi ) is the k-th normalized optimization of the ith individual xi in the population Goal, f' k (x j ) is the k-th normalized optimization goal of the j-th individual x j in the population, and the value range of k is k=1, 2,...,M, where M is the optimization goal The number, in this paper, is M=5.

步骤4-61c:计算种群中全部个体的Harmonic平均距离,具体计算公式如下:Step 4-61c: Calculate the Harmonic average distance of all individuals in the population. The specific calculation formula is as follows:

Figure GDA0003716002390000131
Figure GDA0003716002390000131

其中,Num为待优化种群

Figure GDA0003716002390000132
的个体数。Among them, Num is the population to be optimized
Figure GDA0003716002390000132
number of individuals.

步骤4-61d:获取待优化种群

Figure GDA0003716002390000133
的原点Om,具体计算方式如下:Step 4-61d: Obtain the population to be optimized
Figure GDA0003716002390000133
The origin O m of , the specific calculation method is as follows:

Figure GDA0003716002390000134
Figure GDA0003716002390000134

其中,Num为待优化种群

Figure GDA0003716002390000135
的规模,M为优化目标个数,取值M=5。Among them, Num is the population to be optimized
Figure GDA0003716002390000135
The scale of , M is the number of optimization targets, and the value is M=5.

步骤4-61e:获取待优化种群

Figure GDA0003716002390000136
与原点Om之间的欧氏距离Heur,具体计算方式如下:Step 4-61e: Obtain the population to be optimized
Figure GDA0003716002390000136
The Euclidean distance H eur from the origin O m is calculated as follows:

Figure GDA0003716002390000137
Figure GDA0003716002390000137

其中,Heur(xi)表示待优化种群

Figure GDA0003716002390000138
中第i个个体与原点Om之间的欧氏距离。Among them, He eur (x i ) represents the population to be optimized
Figure GDA0003716002390000138
The Euclidean distance between the ith individual in and the origin O m .

步骤4-61f:计算待优化种群

Figure GDA0003716002390000139
中全部个体的拥挤度,具体计算方式如下:Step 4-61f: Calculate the population to be optimized
Figure GDA0003716002390000139
The crowding degree of all individuals in the calculation method is as follows:

C(xi)=(1-HPar)·Heur(xi)+HPar·Harm(xi),i=1,2,…,Num,C(x i )=(1-H Par )·H eur (x i )+H Par ·H arm (x i ), i=1,2,...,Num,

其中,C(xi)表示待优化种群

Figure GDA00037160023900001310
中第i个个体的拥挤度,HPar表示Pareto解集Ω的信息熵,Heur(xi)表示待优化种群
Figure GDA00037160023900001311
中第i个个体与原点Om之间的欧氏距离,Harm(xi)表示待优化种群
Figure GDA00037160023900001312
中第i个个体的Harmonic平均距离,i的取值范围为i=1,2,…,Num,Num为待优化种群
Figure GDA00037160023900001313
的个体数。Among them, C(x i ) represents the population to be optimized
Figure GDA00037160023900001310
The crowding degree of the ith individual in , H Par represents the information entropy of the Pareto solution set Ω, He eur (x i ) represents the population to be optimized
Figure GDA00037160023900001311
The Euclidean distance between the i-th individual and the origin O m , H arm (x i ) represents the population to be optimized
Figure GDA00037160023900001312
The Harmonic average distance of the i-th individual in the i, the value range of i is i=1,2,...,Num, Num is the population to be optimized
Figure GDA00037160023900001313
number of individuals.

步骤4-62:计算格雷码形式的待优化种群

Figure GDA0003716002390000141
的排序等级平均信息熵Hre,并选择压力阈值进行比较。Step 4-62: Calculate the population to be optimized in Gray code form
Figure GDA0003716002390000141
The average information entropy H re of the ranking rank, and the pressure threshold is selected for comparison.

可选的,所述步骤4-62,包括:Optionally, the steps 4-62 include:

步骤4-62a:根据对待优化种群

Figure GDA0003716002390000142
进行非支配排序的结果,计算排序等级平均信息熵Hre,具体计算公式为:Step 4-62a: Optimize the population according to the treatment
Figure GDA0003716002390000142
The result of non-dominated sorting is used to calculate the average information entropy H re of the sorting level. The specific calculation formula is:

Figure GDA0003716002390000143
Figure GDA0003716002390000143

其中,Num表示种群规模,Deg表示种群内全部个体排序等级的总数,Deg为整数且取值范围为[1,Num],Dsum(r)表示待优化种群中第r个排序等级包括的个体总数,r为整数且取值范围为[1,Deg]。Among them, Num represents the population size, Deg represents the total number of ranking levels of all individuals in the population, Deg is an integer and the value range is [1, Num], D sum (r) represents the individuals included in the r-th ranking level in the population to be optimized The total number, r is an integer and the value range is [1,Deg].

如果Hre大于选择压力阈值,则使用非支配排序结果与种群

Figure GDA0003716002390000144
的拥挤度C(xi)生成交配池;或者,如果Hre小于等于选择压力阈值,则使用K支配排序结果与种群
Figure GDA0003716002390000145
的拥挤度C(xi)生成交配池。If H re is greater than the selection pressure threshold, use the non-dominated sorting result with the population
Figure GDA0003716002390000144
The crowding degree C(x i ) of , generates the mating pool; or, if H re is less than or equal to the selection pressure threshold, use K to dominate the sorting result and the population
Figure GDA0003716002390000145
The crowding degree C(x i ) generates the mating pool.

步骤4-62b:在待优化种群

Figure GDA0003716002390000146
计算Bt(xi,xj)、Eq(xi,xj)和Ws(xi,xj)集合,具体计算方式如下:Step 4-62b: in the population to be optimized
Figure GDA0003716002390000146
Calculate the sets of B t ( xi , x j ), E q ( xi , x j ) and W s ( xi , x j ), and the specific calculation methods are as follows:

Figure GDA0003716002390000147
Figure GDA0003716002390000147

其中,Bt(xi,xj)表示在M维目标空间内个体xi优于个体xj的目标函数值的个数,Eq(xi,xj)表示在M维目标空间内个体xi与个体xj相同的目标函数值的个数,而Ws(xi,xj)表示在M维目标空间内个体xi劣于个体xj的目标函数值的个数。Among them, B t ( xi , x j ) represents the number of objective function values that individual x i is better than individual x j in the M-dimensional target space, and E q ( xi , x j ) represents the M-dimensional target space. The number of objective function values of individual x i and individual x j is the same, and W s (x i , x j ) represents the number of objective function values of individual x i inferior to individual x j in the M-dimensional objective space.

步骤4-62c:计算种群中个体xi和个体xj之间的支配关系,如果个体xi和个体xj之间满足如下关系,则记作xiK xj,具体计算方式如下:Step 4-62c: Calculate the dominance relationship between the individual xi and the individual x j in the population. If the following relationship is satisfied between the individual xi and the individual x j , it is recorded as xi < K x j , and the specific calculation method is as follows:

Figure GDA0003716002390000151
Figure GDA0003716002390000151

其中,M为优化目标个数,K为选择压力,GG(xi)表示第i个个体xi的能量函数值,其具体计算方式如下:Among them, M is the number of optimization targets, K is the selection pressure, and G G ( xi ) represents the energy function value of the ith individual xi, and its specific calculation method is as follows:

Figure GDA0003716002390000152
Figure GDA0003716002390000152

步骤4-62d:计算种群中第i个个体xi的K支配等级Ks(xi),其具体计算方式如下:Step 4-62d: Calculate the K dominance level K s ( xi ) of the i -th individual xi in the population, and the specific calculation method is as follows:

Ks(xi)=|{xj|xjK xi,j=1,2,…,Num,i≠j}|,i=1,2,…,NumK s (x i )=|{x j |x jK x i ,j=1,2,…,Num,i≠j}|,i=1,2,…,Num

步骤4-63:使用基于非支配排序的进化算法进化格雷码形式的待优化种群

Figure GDA0003716002390000153
Step 4-63: Use the evolutionary algorithm based on non-dominated sorting to evolve the population to be optimized in the form of Gray code
Figure GDA0003716002390000153

可选的,所述步骤4-63包括:Optionally, the steps 4-63 include:

步骤4-63a:依次从格雷码形式的交配池中随机选出第nt组两个父代个体y1nt和y2nt,并对这两个父代个体进行单点交叉和单点变异,得到子代个体y1rt'和y2nt',nt=1,2,……,Num。Step 4-63a: Randomly select two parent individuals y1 nt and y2 nt in the nt group from the mating pool in the form of Gray code, and perform single-point crossover and single-point mutation on these two parent individuals to obtain the child. Generation individuals y1 rt ' and y2 nt ', nt=1, 2, ..., Num.

步骤4-63b:重复步骤4-63a,直到nt=Num,生成规模为Num格雷码形式的子代种群PGoff={y1nt',nt=1,2,…,Num}。Step 4-63b: Repeat step 4-63a until nt=Num, and generate a descendant population PG off ={y1 nt ',nt=1,2,...,Num} whose scale is in the form of Num Gray code.

步骤4-63c:将格雷码形式的子代种群PGoff的编码方式由格雷码编码转换为二进制编码,得到子代种群Poff,并将当前种群

Figure GDA0003716002390000154
和子代种群Poff进行合并,得到整体种群,
Figure GDA0003716002390000155
Step 4-63c: Convert the coding mode of the offspring population PG off in the form of Gray code from Gray code to binary code to obtain the offspring population P off , and convert the current population
Figure GDA0003716002390000154
Merge with the offspring population P off to obtain the overall population,
Figure GDA0003716002390000155

步骤4-63d:对整体种群

Figure GDA0003716002390000161
进行非支配排序,得到新种群
Figure GDA0003716002390000162
Step 4-63d: For the overall population
Figure GDA0003716002390000161
Perform non-dominated sorting to get a new population
Figure GDA0003716002390000162

步骤4-7:分析所述新种群对应的迭代次数,当所述新种群对应的迭代次数小于所述预设迭代次数时,将所述新种群确定为新的待优化种群,并重复执行步骤4-2至步骤4-7;或者,当所述新种群对应的迭代次数等于所述预设迭代次数时,将所述新种群确定为最优种群。Step 4-7: Analyze the number of iterations corresponding to the new population, and when the number of iterations corresponding to the new population is less than the preset number of iterations, determine the new population as a new population to be optimized, and repeat the steps Steps 4-2 to 4-7; or, when the number of iterations corresponding to the new population is equal to the preset number of iterations, the new population is determined as the optimal population.

所述预设迭代次数表示为Gmax,又称最大进化代数,所述预设迭代次数由本领域技术人员根据业务需要进行设置,本发明不作具体限制。新种群对应的迭代次数表示为Gene,当新种群迭代次数等于最大迭代次数时,终止迭代,并将此时新种群确定为最优种群。The preset number of iterations is expressed as G max , also known as the maximum evolutionary algebra, and the preset number of iterations is set by those skilled in the art according to business needs, which is not specifically limited in the present invention. The number of iterations corresponding to the new population is expressed as Gene . When the number of iterations of the new population is equal to the maximum number of iterations, the iteration is terminated, and the new population at this time is determined as the optimal population.

可选的,所述步骤4-6之后,所述方法还包括:Optionally, after the steps 4-6, the method further includes:

步骤S1:计算新种群中全部个体所代表的部署方案对应的部署的控制器的总数C={Ci,i=1,2,…,Num},其中,Ci=sum(xi),i=1,2,…,Num;Step S1: Calculate the total number of deployed controllers C={C i , i=1,2,...,Num} corresponding to the deployment scheme represented by all individuals in the new population, where C i =sum(x i ), i=1,2,...,Num;

可选的,所述步骤S1包括:Optionally, the step S1 includes:

步骤S11:从待优化种群

Figure GDA0003716002390000163
中取出第i个个体,并计算该第i个个体所代表的部署方案需要的控制器总数Ci:Step S11: from the population to be optimized
Figure GDA0003716002390000163
Take out the i-th individual and calculate the total number of controllers C i required by the deployment scheme represented by the i-th individual:

Ci=sum(xi),i=1,2,…,Num;C i =sum(x i ), i=1,2,...,Num;

步骤S12:重复步骤S11,直到i=Num,得到全部个体所代表的部署方案需要部署的控制器总数:C={Ci,i=1,2,…,Num}。Step S12: Repeat step S11 until i=Num, to obtain the total number of controllers that need to be deployed in the deployment scheme represented by all individuals: C={C i , i=1, 2, . . . , Num}.

步骤S2:对所述新种群中全部个体的合法性进行验证;Step S2: verifying the legitimacy of all individuals in the new population;

将全部个体所代表的部署方案需要部署的控制器总数C与Internet OS3E网络节点数进行比较:如果C大于Internet OS3E网络节点总数的一半,则判定为不合法个体U,并对该不合法个体U进行修正,即,执行步骤S3;或者,如果C小于等于Internet OS3E网络节点总数的一半,则判断下一个个体的合法性,直到全部个体的合法性判断完毕,继续执行步骤5。Compare the total number of controllers C that need to be deployed in the deployment scheme represented by all individuals with the number of Internet OS3E network nodes: if C is greater than half of the total number of Internet OS3E network nodes, it is determined as an illegal individual U, and the illegal individual U is determined. Make corrections, that is, execute step S3; or, if C is less than or equal to half of the total number of Internet OS3E network nodes, then judge the legitimacy of the next individual, and continue to execute step 5 until the legitimacy of all individuals is judged.

步骤S3:当个体不合法时,对所述个体进行修正。Step S3: When the individual is illegal, correct the individual.

可选的,所述步骤S3包括:Optionally, the step S3 includes:

步骤S31:对于不合法个体U,计算其扰动参数δ=1/Ci,并生成长度为|N|,其中每个基因位的值都是(0,1)之间随机数的随机向量rand,并通过以下公式产生扰动向量:Step S31: For the illegal individual U, calculate its disturbance parameter δ=1/C i , and generate a random vector rand with a length of |N|, where the value of each locus is a random number between (0,1). , and the perturbation vector is generated by the following formula:

Figure GDA0003716002390000171
Figure GDA0003716002390000171

式中i表示随机向量和扰动向量的第i个基因位,Dis表示根据不合法个体U生成的扰动向量。In the formula, i represents the random vector and the i-th locus of the disturbance vector, and Dis represents the disturbance vector generated according to the illegal individual U.

步骤S32:按照预设修改公式对所述个体进行修正,表示为:Step S32: Modify the individual according to the preset modification formula, which is expressed as:

Figure GDA0003716002390000172
Figure GDA0003716002390000172

其中,U'(i)表示修正后合法个体的第i个基因位,U(i)表示不合法个体的第i个基因位,U(i)+Dis(i)表示不合法个体U与扰动向量Dis的第i个基因位之和,当U(i)+Dis(i)=1时,则U'(i)=1,即在第i个基因位对应的网络节点要放置控制器,否则,U'(i)=0,即在第i个基因位对应的网络节点不放置控制器。Among them, U'(i) represents the i-th locus of the legal individual after correction, U(i) represents the i-th locus of the illegal individual, U(i)+Dis(i) represents the illegal individual U and the disturbance The sum of the ith locus of the vector Dis, when U(i)+Dis(i)=1, then U'(i)=1, that is, the controller should be placed in the network node corresponding to the ith locus, Otherwise, U'(i)=0, that is, no controller is placed in the network node corresponding to the i-th locus.

步骤S33:重复步骤S31至步骤S32,直到完成全部非法个体的全部基因位U'(i)的修正修正,得到修正后合法个体U'={U'(i),i=1,2,…,N}。Step S33: Repeat steps S31 to S32 until the correction and correction of all loci U'(i) of all illegal individuals is completed, and the corrected legal individual U'={U'(i), i=1, 2, ... ,N}.

步骤5:根据所述最优种群,计算得到最优解集和最优控制器放置方案集。Step 5: Calculate the optimal solution set and the optimal controller placement scheme set according to the optimal population.

对最优种群进行非支配排序,得到最优种群对应的Pareto解集,该Pareto解集即为近似最优控制器放置数据信息,又称最优控制器放置方案集R。The optimal population is non-dominantly sorted, and the Pareto solution set corresponding to the optimal population is obtained. The Pareto solution set is the approximate optimal controller placement data information, also known as the optimal controller placement scheme set R.

综上,本发明的有益效果:To sum up, the beneficial effects of the present invention:

第一,本发明根据信息熵感知系数Hpar自适应地调整拥挤度的计算公式,从而便于在待优化种群的选择时,得到收敛性和分布性均较优的待优化种群,当信息熵感知系数Hpar较小的时候,说明待优化种群的分布性较差,因此在种群分布性的计算过程中,Harmonic平均距离的权重就会增大,这有助于提高种群的分布性;当信息熵感知系数Hpar较大的时候,说明待优化种群的分布优良,可以促使种群收敛性的增加,因此在种群分布性的计算过程中,因此每个个体与原点Om之间的欧氏距离的权重就会增大,这有助于提高种群的收敛性,从而可促使种群向更优的方向进化,便于获取更高控制网络的性能、更低控制网络传播时延、更合理控制器存储资源配置、更高控制网络可靠性、更低控制器放置成本的控制器放置方案集。First, the present invention adaptively adjusts the calculation formula of the crowding degree according to the information entropy perception coefficient H par , so that when the population to be optimized is selected, the population to be optimized with better convergence and distribution can be obtained. When the coefficient H par is small, it means that the distribution of the population to be optimized is poor. Therefore, in the process of calculating the distribution of the population, the weight of the Harmonic average distance will increase, which helps to improve the distribution of the population; When the entropy perception coefficient H par is large, it means that the distribution of the population to be optimized is excellent, which can promote the increase of the population convergence. Therefore, in the calculation process of the population distribution, the Euclidean distance between each individual and the origin O m The weight will increase, which will help to improve the convergence of the population, which can promote the evolution of the population in a better direction, which is convenient to obtain higher control network performance, lower control network propagation delay, and more reasonable controller storage. A set of controller placement solutions for resource allocation, higher control network reliability, and lower controller placement costs.

第二,本发明在交配池生成的过程中,根据待优化种群选择压力的不同,使用两种排序策略,如果待优化种群

Figure GDA0003716002390000181
排序等级平均信息熵值Hre较小,说明待优化种群
Figure GDA0003716002390000182
的选择压力较小,这说明精英个体不易从待优化种群中选出,因而使用K支配排序的方法提高种群内精英个体的选择压力,从而促使精英个体在交配池中聚集;而如果待优化种群
Figure GDA0003716002390000183
排序等级平均信息熵值Hre较大,说明待优化种群
Figure GDA0003716002390000184
的选择压力较大,这说明精英个体可以从待优化种群中选出,因而使用非支配排序的方法选择种群内的精英个体。Second, in the process of generating the mating pool, the present invention uses two sorting strategies according to the different selection pressures of the population to be optimized.
Figure GDA0003716002390000181
The average information entropy value H re of the ranking level is small, indicating that the population to be optimized
Figure GDA0003716002390000182
The selection pressure of is small, which means that elite individuals are not easy to be selected from the population to be optimized. Therefore, the K-dominated sorting method is used to increase the selection pressure of elite individuals in the population, thereby promoting elite individuals to gather in the mating pool; and if the population to be optimized is
Figure GDA0003716002390000183
The average information entropy value H re of the ranking level is relatively large, indicating that the population to be optimized is
Figure GDA0003716002390000184
The selection pressure of is relatively large, which means that elite individuals can be selected from the population to be optimized, so the non-dominated sorting method is used to select the elite individuals in the population.

第三,本发明在优化目标的计算中,精心挑选5个优化目标,分别是控制网络的部署成本、控制器的负载差异、控制器和交换节点之间的传播时延、控制节点之间的传播时延、以及控制网络的可靠性。这五个优化目标互相牵制,同时优化这5个优化目标,从而促使控制网络在不同的衡量尺度上达到较优的性能指标。Third, the present invention carefully selects five optimization objectives in the calculation of the optimization objectives, which are the deployment cost of the control network, the load difference of the controller, the propagation delay between the controller and the switching nodes, and the delay between the control nodes. Propagation delay, and reliability of the control network. These five optimization objectives are mutually restrained, and the five optimization objectives are optimized at the same time, so that the control network can achieve better performance indicators on different scales.

通过仿真实验进一步验证本发明的有益效果:The beneficial effects of the present invention are further verified through simulation experiments:

一.仿真条件:1. Simulation conditions:

条件1:设基于分解的多目标差分进化算法MOEA/D的种群规模Num=100、最大进化代数Gmax=100、交叉概率Pc=0.9、变异概率Pm=0.9;Condition 1: Set the population size of the decomposition-based multi-objective differential evolution algorithm MOEA/D Num=100, the maximum evolutionary generation G max =100, the crossover probability P c =0.9, and the mutation probability P m =0.9;

条件2:基于非支配排序和精英选择策略的多目标进化算法NSGA-II的种群规模Num=100、进化代数Gmax=100、交叉概率Pc=0.9、变异概率Pm=0.9。Condition 2: The population size of the multi-objective evolutionary algorithm NSGA-II based on non-dominated sorting and elite selection strategy is Num=100, evolutionary generation Gmax =100, crossover probability Pc =0.9, mutation probability Pm =0.9.

仿真软件:采用MATLAB软件。Simulation software: MATLAB software is used.

二.仿真内容:2. Simulation content:

仿真1,用本发明仿真多目标控制器的放置位置,求解得到的近似最优控制器放置方案集R,并得到本仿真近似最优控制器放置方案集R全部放置方案的目标函数值F1(x)={F(xkt)},该F1(x)是一个矩阵。Simulation 1, using the present invention to simulate the placement position of the multi-objective controller, solve the obtained approximate optimal controller placement scheme set R, and obtain the objective function value F 1 of all placement schemes in the approximate optimal controller placement scheme set R in this simulation (x)={F(x kt )}, the F 1 (x) is a matrix.

仿真2,采用条件1,用现有基于分解的多目标差分进化算法MOEA/D,仿真多目标控制器的放置位置,求解得到的近似最优控制器放置方案集R,并计算其全部放置方案优化目标值F2(x),其计算步骤与仿真1相同。计算出的F2(x)是一个矩阵。Simulation 2, using condition 1, use the existing decomposition-based multi-objective differential evolution algorithm MOEA/D to simulate the placement position of the multi-objective controller, solve the approximate optimal controller placement scheme set R, and calculate all its placement schemes To optimize the target value F 2 (x), the calculation steps are the same as those of Simulation 1. The calculated F 2 (x) is a matrix.

仿真3,采用条件2,用现有基于非支配排序和精英选择策略的多目标进化算法NSGA-II仿真多目标控制器的放置位置,求解得到的近似最优控制器放置方案集R,并计算其全部放置方案优化目标值F3(x),其计算步骤与仿真1相同。计算出的F3(x)是一个矩阵。Simulation 3, using Condition 2, use the existing multi-objective evolutionary algorithm NSGA-II based on non-dominated sorting and elite selection strategy to simulate the placement position of multi-objective controllers, solve the approximate optimal controller placement scheme set R, and calculate All of its placement schemes optimize the target value F 3 (x), and its calculation steps are the same as in Simulation 1. The calculated F 3 (x) is a matrix.

将仿真1、仿真2和仿真3得到的三个全部放置方案优化目标值F1(x)、F2(x)和F3(x)输入到MATLAB软件,并在MATLAB软件中绘图,得到本发明和现有两种方法在Internet OS3E下所得近似最优控制器放置方案集R的优化目标值对比图,如图2~图7所示。Input the optimization objective values F 1 (x), F 2 (x) and F 3 (x) of the three placement schemes obtained by simulation 1, simulation 2 and simulation 3 into the MATLAB software, and draw in the MATLAB software to obtain this The comparison chart of the optimization target value of the approximate optimal controller placement scheme set R obtained by the invention and the existing two methods under Internet OS3E is shown in Figures 2 to 7.

从图2~图7中可看到,本发明与现有方法相比,本方法获取的近似最优控制器放置方案集R的优化目标值F1(x)相对更优,即从五个优化目标中任意取三个优化目标,对应的解集更靠近原点,说明本方法获取的近似最优控制器放置方案集R可以使网络具备更优良的性能,在控制网络的部署成本、控制器的负载差异、控制器和交换节点之间的平均传播时延、控制器之间的平均传播时延和控制网络的可靠性这五个优化目标之间,获取更优良的控制器部署方案集。It can be seen from Fig. 2 to Fig. 7 that, compared with the existing method, the optimized target value F 1 (x) of the approximate optimal controller placement scheme set R obtained by this method is relatively better, that is, from five Three optimization objectives are arbitrarily selected from the optimization objectives, and the corresponding solution set is closer to the origin, which shows that the approximate optimal controller placement scheme set R obtained by this method can make the network have better performance, and it can control the deployment cost of the network, the controller and the controller. A better set of controller deployment schemes is obtained between the five optimization objectives of the load difference, the average propagation delay between the controller and the switching node, the average propagation delay between the controllers, and the reliability of the control network.

参见图2为用本发明和对比方法在Internet OS3E下所得近似最优控制器放置方案集R的优化目标值对比图(横坐标是控制网络部署成本,纵坐标是控制器与交换节点之间的平均传播时延,竖坐标是控制器之间的平均传播时延);Referring to Fig. 2, it is the optimization target value comparison diagram of the obtained approximate optimal controller placement scheme set R under Internet OS3E with the present invention and the contrast method (the abscissa is the control network deployment cost, and the ordinate is the difference between the controller and the switching node. Average propagation delay, the vertical axis is the average propagation delay between controllers);

参见图3为用本发明和对比方法在Internet OS3E下所得近似最优控制器放置方案集R的优化目标值对比图(横坐标是控制网络部署成本,纵坐标是控制器的负载差异,竖坐标是控制器与交换节点之间的平均传播时延);Referring to Fig. 3, it is the optimization target value comparison diagram of the obtained approximate optimal controller placement scheme set R under Internet OS3E with the present invention and the contrast method (the abscissa is the control network deployment cost, the ordinate is the load difference of the controller, and the ordinate is the load difference of the controller. is the average propagation delay between the controller and the switching node);

参见图4为用本发明和对比方法在Internet OS3E下所得近似最优控制器放置方案集R的优化目标值对比图(横坐标是控制网络部署成本,纵坐标是控制器的负载差异,竖坐标是控制器之间的平均传播时延);Referring to Fig. 4, it is the optimization target value comparison diagram of the obtained approximate optimal controller placement scheme set R under Internet OS3E with the present invention and the contrast method (the abscissa is the control network deployment cost, the ordinate is the load difference of the controller, and the ordinate is the load difference of the controller. is the average propagation delay between controllers);

参见图5为用本发明和对比方法在Internet OS3E下所得近似最优控制器放置方案集R的优化目标值对比图(横坐标是控制器的负载差异,纵坐标是控制器与交换节点之间的平均传播时延,竖坐标是控制器之间的平均传播时延);Referring to Fig. 5, it is the optimization target value comparison diagram of the approximate optimal controller placement scheme set R obtained under Internet OS3E with the present invention and the contrast method (the abscissa is the load difference of the controller, and the ordinate is the difference between the controller and the switching node. The average propagation delay of , and the vertical axis is the average propagation delay between controllers);

参见图6为用本发明和对比方法在Internet OS3E下所得近似最优控制器放置方案集R的优化目标值对比图(横坐标是控制器之间的平均传播时延,纵坐标是控制网络部署成本,竖坐标是控制网络的不可靠性);Referring to Fig. 6, it is the optimization target value comparison diagram of the approximate optimal controller placement scheme set R obtained by the present invention and the comparison method under Internet OS3E (the abscissa is the average propagation delay between the controllers, and the ordinate is the control network deployment. cost, the vertical axis is the unreliability of the control network);

参见图7为用本发明和对比方法在Internet OS3E下所得近似最优控制器放置方案集R的优化目标值对比图(横坐标是控制器的负载差异,纵坐标是控制器之间的平均传播时延,竖坐标是控制网络的不可靠性)。Referring to Fig. 7, it is the optimization target value comparison diagram of the obtained approximate optimal controller placement scheme set R under Internet OS3E with the present invention and the contrast method (the abscissa is the load difference of the controllers, and the ordinate is the average spread between the controllers. delay, the vertical axis is the unreliability of the control network).

在本发明的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。In the description of the present invention, "plurality" means two or more, unless otherwise expressly and specifically defined.

在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。此外,本领域的技术人员可以将本说明书中描述的不同实施例或示例进行接合和组合。In the description of this specification, description with reference to the terms "one embodiment," "some embodiments," "example," "specific example," or "some examples", etc., mean specific features described in connection with the embodiment or example , structure, material or feature is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, those skilled in the art may combine and combine the different embodiments or examples described in this specification.

尽管在此结合各实施例对本申请进行了描述,然而,在实施所要求保护的本申请过程中,本领域技术人员通过查看所述附图、公开内容、以及所附权利要求书,可理解并实现所述公开实施例的其他变化。在权利要求中,“包括”(comprising)一词不排除其他组成部分或步骤,“一”或“一个”不排除多个的情况。单个处理器或其他单元可以实现权利要求中列举的若干项功能。相互不同的从属权利要求中记载了某些措施,但这并不表示这些措施不能组合起来产生良好的效果。Although the application is described herein in conjunction with the various embodiments, those skilled in the art will understand and understand from a review of the drawings, the disclosure, and the appended claims in practicing the claimed application. Other variations of the disclosed embodiments are implemented. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude a plurality. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that these measures cannot be combined to advantage.

本领域技术人员应明白,本申请的实施例可提供为方法、装置(设备)、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式,这里将它们都统称为“模块”或“系统”。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。计算机程序存储/分布在合适的介质中,与其它硬件一起提供或作为硬件的一部分,也可以采用其他分布形式,如通过Internet或其它有线或无线电信系统。It should be understood by those skilled in the art that the embodiments of the present application may be provided as a method, an apparatus (apparatus), or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects, all of which are collectively referred to herein as a "module" or "system." Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein. The computer program is stored/distributed in a suitable medium, provided with or as part of other hardware, or may take other forms of distribution, such as over the Internet or other wired or wireless telecommunication systems.

本申请是参照本申请实施例的方法、装置(设备)和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to the flowcharts and/or block diagrams of the methods, apparatuses (devices) and computer program products of the embodiments of the present application. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.

以上内容是结合具体的优选实施方式对本发明所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本发明的保护范围。The above content is a further detailed description of the present invention in conjunction with specific preferred embodiments, and it cannot be assumed that the specific implementation of the present invention is limited to these descriptions. For ordinary technical personnel in the technical fields of the invention, under the premise of not being separated from the concept of the invention, a number of simple deductions or replacements can also be made, which should be deemed to be the protection of the present invention.

Claims (5)

1. A placement method of a super multi-target controller based on information entropy perception is characterized by comprising the following steps:
step 1: initializing network information and configuration information corresponding to a wide area network, wherein the network information comprises: network node longitude information lambda i Network node latitude information
Figure FDA0003740629990000011
Network topology node quantity information | N |, network topology link quantity information | E |, information entropy grid quantity a i I =1,2, \ 8230;, 5, direct link source node information A i And direct link sink node information O i Wherein i is 1,2, \8230 |, N |, reliability r of ith node in network i node Wherein i is 1,2, \8230 |, N |, the reliability r of the ith link in the network i edge Wherein, i is 1,2, \8230 |, | E |; the configuration information includes: population scale information Num, controller number upper limit information maxCNum, evolution perception threshold information tau and deployment cost of controllers
Figure FDA0003740629990000012
The controller manages the costs incurred by the switch nodes to which it belongs
Figure FDA0003740629990000013
Cost incurred by newly building a control link
Figure FDA0003740629990000014
Weight psi to control link cost and maximum evolution algebraic information G max
And 2, step: acquiring topology link length information corresponding to the wide area network;
and step 3: obtaining an initial population;
and 4, step 4: according to preset maximum evolution algebraic information G max Performing iterative optimization processing on the initial population to obtain an optimal population;
and 5: calculating to obtain an optimal solution set and an optimal controller placement scheme set according to the optimal population;
the step 3 comprises the following steps:
step 3-1: randomly generating an integer according to the controller quantity upper limit information maxNum, wherein the integer is in the range of [1,maxNum]The integer is used as the controller number C of the ith individual num (i);
Step 3-2: obtaining the ith random vector R of length | N | v (i) And sorting the random vectors from large to small to obtain R v1 (i) Wherein the value of each position in the random vector is a random number between (0, 1), R v1 (i) Middle C num (i) Number is initial population threshold epsilon i
Step 3-3: r is to be v (i) Modifying the number of the initial population smaller than the threshold value epsilon i into 0, and modifying the number of the initial population larger than or equal to epsilon i into 1 to obtain the ith initial individual;
step 3-4: repeating the steps 3-1 to 3-3 until i = Num, and obtaining an initial population P 0
The step 4 comprises the following steps:
step 4-1: determining a population to be optimized
Figure FDA0003740629990000021
Step 4-2: calculating objective function values corresponding to all individuals in the population to be optimized;
step 4-3: performing non-dominated sorting on the population to be optimized to obtain the priority to be optimizedPareto optimal solution set omega corresponding to the chemical population, total number Deg of all individual ranking levels and population to be optimized
Figure FDA0003740629990000022
Total number of individuals D in the r-th ranking level sum (r), wherein r =1,2, \8230;
step 4-4: calculating information entropy perception coefficient H par
And 4-5: converting the coding mode of the population to be optimized from binary coding to Gray code to obtain the population to be optimized in the form of Gray code
Figure FDA0003740629990000023
And 4-6: for the population to be optimized in the form of Gray codes
Figure FDA0003740629990000024
Optimizing to obtain a new population;
and 4-7: analyzing the iteration times corresponding to the new population, determining the new population as a new population to be optimized when the iteration times corresponding to the new population are smaller than the preset iteration times, and repeatedly executing the steps 4-2 to 4-7; or when the iteration times corresponding to the new population are equal to the preset iteration times, determining the new population as an optimal population;
the step 4-2 comprises the following steps:
step 4-21: sequentially from the population to be optimized
Figure FDA0003740629990000025
In the order of small to large, the ith individual x is selected i I =1,2, \ 8230;. Num, which allocates the switching nodes to the controller nodes according to the principle that the switching nodes are controlled by the nearest controller, and obtains the deployment number m of the controllers of the individual and the number k of the controllers of the ith node i I =1,2, \8230 |, the ith controller controls the number w of the switching nodes i I =1,2, \ 8230, m, node i deploy controllers and intersectBoolean variable c whether the switch that switches node j is controlled by the controller of node i ij I, j =1,2, \8230 |, | N |, whether the ith node in the network deploys the Boolean variable h of the controller i I =1,2, \8230 |, whether or not | N |, i-th network link is located in the Boolean variable in the control network zone of the jth controller
Figure FDA0003740629990000026
i =1,2, \8230 |, | E |, j =1,2, \8230 |, | N |, whether or not the ith switching node is located in the Boolean variable of the control network region of the jth controller
Figure FDA0003740629990000031
i,j=1,2,…,|N|;
And 4-22: calculating population to be optimized
Figure FDA0003740629990000032
Of (i) th individual x i I =1,2, \8230;, num, expressed as:
Figure FDA0003740629990000033
Figure FDA0003740629990000034
Figure FDA0003740629990000035
Figure FDA0003740629990000036
Figure FDA0003740629990000037
Figure FDA0003740629990000038
wherein, F (x) i ) Representing a population to be optimized
Figure FDA0003740629990000039
Of (i) th individual x i An objective function of f 1 (x i ) Representing a population to be optimized
Figure FDA00037406299900000310
Of (ii) the ith individual x i Controller deployment cost of f 2 (x i ) Representing a population to be optimized
Figure FDA00037406299900000311
Of (i) th individual x i Load difference of f 3 (x i ) Representing a population to be optimized
Figure FDA00037406299900000312
Of (i) th individual x i Controlling the average propagation delay between the controller and the switching node in the network, f 4 (x i ) Representing a population to be optimized
Figure FDA00037406299900000313
Of (ii) the ith individual x i Controlling the average propagation delay between controllers in the network, f 5 (x i ) Representing a population to be optimized
Figure FDA00037406299900000314
Of (ii) the ith individual x i The unreliability of the control network of (c);
and 4-23: repeating the steps 4-11 to 4-12 until the objective function values of all individuals in the population to be optimized are calculated;
the step 4-4 comprises the following steps:
step 4-41: normalizing each optimization objective in all individual objective functions in the pareto optimal solution set omega by:
F'(x i )={f' 1 (x i ),f' 2 (x i ),…,f' M (x i )},i=1,2,…,|Ω|,
wherein, F' (x) i ) The value range of i is i =1,2, \ 8230 |, | Ω |, | Ω | is the number of individuals of the pareto optimal solution set Ω, M is the optimal target number, and M =5,f' k (x i ) For the ith individual x in the pareto optimal solution set omega i The k-th normalized optimization objective in (1) is expressed as:
Figure FDA0003740629990000041
wherein f is k (x i ) Is x of an individual i The k-th optimization target value in the objective function has the value range of k =1,2, \ 8230, M and M are the number of optimization targets (M = 5);
and 4-42: calculating the influence distance between any two different individuals in the pareto optimal solution set omega in the following specific calculation mode:
Figure FDA0003740629990000042
wherein, d (x) i ,x j ) Is an individual x i And individual x j Of (c) influence distance, f' k (x i ) Is the ith individual x in the population i K th normalized optimization target of (1)' k (x j ) Is the j th individual x in the population j In the kth normalized optimization target, the value range of k is k =1,2, \8230, and M are the number of the optimization targets;
and 4-43: calculating the Gaussian influence function value between any two different individuals in the pareto optimal solution set omega in the following specific calculation mode:
Figure FDA0003740629990000043
wherein, d (x) i ,x j ) Is an individual x i And individual x j The influence distance between the two groups is sigma which is the standard deviation of the distribution degree, pi is the circumferential rate, and the value ranges of i and j are i ≠ j, i, j =1,2, \ 8230 |;
and 4-44: calculating the density value of each individual in the population in the following specific calculation mode:
the density value of a single individual is the sum of the influence function values of all non-dominant individuals in the target space on the individual, and if the scale of the pareto optimal solution set in the target space is | Ω |, the jth individual x j Density value of (c):
Figure FDA0003740629990000051
wherein D is m (x j ) The method comprises the steps of representing the density value of the jth individual in a population, wherein the value range of j is j =1,2, \8230, | omega | represents the pareto optimal solution set of the population in a target space, and the scale of the pareto optimal solution set is | omega |;
step 4-45: dividing the target space into a 1 ×a 2 ×a 3 ×a 4 ×a 5 The grids are calculated, and the number | omega of the individuals in each grid of the pareto optimal solution set is counted ijkbd Wherein i, j, k, b, d have a value in the range of i =1,2, \8230;, a 1 ,j=1,2,…,a 2 ,k=1,2,…,a 3 ,b=1,2,…,a 4 ,d=1,2,…,a 5
And 4-46: calculating the sum D of the density values of all the individuals in each grid of the target space in the pareto optimal solution set ijkbd The specific calculation method is as follows:
Figure FDA0003740629990000052
and 4-47: calculating a density function of the pareto optimal solution set in a specific calculation mode as follows:
Figure FDA0003740629990000053
where ρ is ijkbd The density function values i, j, k, b, d representing the optimal solution set of pareto in the ijkbd grid space have values in the range i =1,2, \ 8230;, a 1 ,j=1,2,…,a 2 ,k=1,2,…,a 3 ,b=1,2,…,a 4 ,d=1,2,…,a 5
And 4-48: calculating the information entropy of the pareto optimal solution set in the following specific calculation mode:
Figure FDA0003740629990000054
wherein H Par Information entropy of a pareto optimal solution set omega is obtained;
the steps 4-6 comprise:
step 4-61: computing populations
Figure FDA0003740629990000061
Degree of congestion C (x) i );
And 4-62: calculating a population to be optimized in the form of gray codes
Figure FDA0003740629990000062
Rank average information entropy of H re Selecting a pressure threshold value for comparison;
and 4-63: evolution of a population to be optimized in the form of Gray codes using an evolutionary algorithm based on non-dominated sorting
Figure FDA0003740629990000063
2. The method of claim 1, wherein step 2 comprises:
step 2-1: based on the network information, calculating the length of a topological link corresponding to the wide area network, and expressing as:
Figure FDA0003740629990000064
wherein R is earth Representing the radius of the earth, by a value R earth =6400km,
Figure FDA0003740629990000065
Represents the ith source node A i The longitude of (a) is determined,
Figure FDA0003740629990000066
represents the ith source node A i The latitude of (a) is determined,
Figure FDA0003740629990000067
represents the ith sink node O i The longitude of (a) is determined,
Figure FDA0003740629990000068
represents the ith sink node O i Latitude, L (A) i ,O i ) Represents the ith source node A i And the ith sink node O i The length of the direct link between the two links, i is 1,2, \ 8230 |, | N |;
step 2-2: and calculating the shortest-circuit information between any two nodes in the topology corresponding to the wide area network according to a preset shortest-circuit calculation rule.
3. The method of claim 1, wherein after the steps 4-6, the method further comprises:
step S1: calculating the total number C of deployed controllers corresponding to the deployment scheme represented by all individuals in the new population = { C = { C = } i I =1,2, \8230;, num }, wherein C i =sum(x i ),i=1,2,…,Num;
Step S2: verifying the legality of all individuals in the new population;
and step S3: when an individual is illegal, the individual is corrected.
4. The method according to claim 3, wherein the step S1 comprises:
step S11: from the population to be optimized
Figure FDA0003740629990000069
The ith individual is taken out, and the total controller number C required by the deployment scheme represented by the ith individual is calculated i
C i =sum(x i ),i=1,2,…,Num;
Step S12: repeating the step S11 until i = Num, and obtaining the total number of controllers which need to be deployed in the deployment scheme represented by all individuals: c = { C i ,i=1,2,…,Num}。
5. The method according to claim 3, wherein the step S3 comprises:
step S31: for the illegal individual U, calculating the disturbance parameter delta =1/C i And generating a random vector rand of length | N |, in which the value of each locus is a random number between (0, 1), and generating a perturbation vector by the following formula:
Figure FDA0003740629990000071
wherein i represents the ith gene position of the random vector and the disturbance vector, and Dis represents the disturbance vector generated according to the illegal individual U;
step S32: and correcting the individuals according to a preset modification formula, wherein the formula is as follows:
Figure FDA0003740629990000072
wherein, U ' (i) represents the i-th gene position of the corrected legal individual, U (i) represents the i-th gene position of the illegal individual, U (i) + Dis (i) represents the sum of the U of the illegal individual and the i-th gene position of the disturbance vector Dis, when U (i) + Dis (i) =1, then U ' (i) =1, i.e. the controller is to be placed at the network node corresponding to the i-th gene position, otherwise, U ' (i) =0, i.e. the controller is not to be placed at the network node corresponding to the i-th gene position;
step S33: and repeating the steps S31 to S32 until the correction of all the gene positions U ' (i) of all the illegal individuals is completed, and obtaining the corrected legal individuals U ' = { U ' (i), i =1,2, \ 8230;, N }.
CN202110667269.5A 2021-06-16 2021-06-16 Information entropy perception-based super-multi-target controller placement method Active CN113452552B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110667269.5A CN113452552B (en) 2021-06-16 2021-06-16 Information entropy perception-based super-multi-target controller placement method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110667269.5A CN113452552B (en) 2021-06-16 2021-06-16 Information entropy perception-based super-multi-target controller placement method

Publications (2)

Publication Number Publication Date
CN113452552A CN113452552A (en) 2021-09-28
CN113452552B true CN113452552B (en) 2022-10-21

Family

ID=77811653

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110667269.5A Active CN113452552B (en) 2021-06-16 2021-06-16 Information entropy perception-based super-multi-target controller placement method

Country Status (1)

Country Link
CN (1) CN113452552B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111065103A (en) * 2019-12-11 2020-04-24 哈尔滨工程大学 Multi-objective optimization wireless sensor network node deployment method
WO2021004277A1 (en) * 2019-07-11 2021-01-14 中兴通讯股份有限公司 Routing management method and apparatus, network device, and readable storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459589B (en) * 2007-12-14 2011-05-04 华为技术有限公司 Method and device for distributing network resource
US8804490B2 (en) * 2011-07-29 2014-08-12 Telefonaktiebolaget L M Ericsson (Publ) Controller placement for fast failover in the split architecture
CN102622649A (en) * 2012-03-07 2012-08-01 南京邮电大学 Comentropy-based improved evolutionary multi-objective optimization method
CN110225033B (en) * 2019-06-11 2021-05-18 西安电子科技大学 Active migration system and method for heterogeneous controller cluster service based on abnormal perception
CN111065089B (en) * 2019-11-05 2020-11-27 东华大学 A method and device for two-way authentication of Internet of Vehicles based on crowd-sensing
CN112702186B (en) * 2020-11-23 2023-10-27 福建师范大学 A multi-controller deployment method and terminal in an SD-WAN environment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021004277A1 (en) * 2019-07-11 2021-01-14 中兴通讯股份有限公司 Routing management method and apparatus, network device, and readable storage medium
CN111065103A (en) * 2019-12-11 2020-04-24 哈尔滨工程大学 Multi-objective optimization wireless sensor network node deployment method

Also Published As

Publication number Publication date
CN113452552A (en) 2021-09-28

Similar Documents

Publication Publication Date Title
Altiparmak et al. Optimal design of reliable computer networks: A comparison of metaheuristics
CN105243458A (en) Reservoir dispatching method based on multi-target shuffled frog leaping and differential algorithms
CN106229964A (en) A kind of based on the electrical power distribution network fault location method improving binary particle swarm algorithm
CN112491096B (en) A method and system for generating power grid simulation analysis examples
CN110048456A (en) A kind of source net joint planing method based on large-scale wind power access power transmission network
CN105809297A (en) Thermal power plant environment economic dispatching method based on multi-target differential evolution algorithm
CN106230827B (en) A kind of multiple target service combining method based on cost-effectiveness optimization
CN114004008B (en) Airplane assembly line resource configuration optimization method based on neural network and genetic algorithm
CN104618134B (en) A kind of multistage light splitting passive optical network optimization method of power distribution communication net
CN107016461A (en) One kind mixing multi-target evolution method
CN103150629A (en) Dependent-chance two-layer programming model-based transmission network programming method
CN113723807A (en) Energy storage and information system double-layer collaborative planning method, device and medium
CN103384354A (en) Optimum design method of optical distribution network of passive optical network
CN106326987A (en) Multi-objective optimization method and multi-objective optimization device
CN118101500A (en) Service deployment method and system in edge environment based on improved genetic algorithm
Dong et al. Combination of genetic algorithm and ant colony algorithm for distribution network planning
CN113452552B (en) Information entropy perception-based super-multi-target controller placement method
CN111105025A (en) Congestion management method for urban high-voltage distribution network based on data-driven heuristic optimization
CN111412795B (en) Test point setting scheme generation method and device
Yohannes Application of soft computing methods for economic load dispatch problems
CN111542078B (en) A method for elastic resource allocation of core network control plane in NFV environment
Wu et al. A knee point-driven multi-objective artificial flora optimization algorithm
CN105184383B (en) City moving emergency power supply optimal scheduling method based on intelligent optimization method
Singh Handling multiple objectives using k‐means clustering guided multiobjective evolutionary algorithm
CN107623595B (en) A method and system for deploying a network server

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