Adaptive gateway deployment method and system based on multi-objective optimization
Through the adaptive gateway deployment method of multi-objective optimization, the particle swarm algorithm is used to optimize the number and location of gateways, which solves the problem of gateway load imbalance in self-organizing networks, achieves load balancing and coverage, reduces deployment costs, and improves network efficiency. Quality of service.
Patent Information
- Application Number
- CN202210082765.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-25
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-01-25
AI Technical Summary
When deploying gateways in existing self-organizing networks, network coverage is regarded as a single target, resulting in gateway load imbalance, and it is difficult to achieve gateway load balancing while meeting coverage and load constraints.
Using an adaptive gateway deployment method based on multi-objective optimization, by establishing a mathematical model, using particle swarm algorithm to initialize and solve gateway deployment, optimizing the number and location of gateways to achieve load balancing, combining variable length particle swarm algorithm and standard particle swarm algorithm, setting Gateway coverage and service rate are used as constraints, and the gateway load standard deviation is calculated to find the optimal deployment solution.
It achieves balanced distribution of gateway loads, reduces gateway deployment costs, improves network service quality, meets coverage and load while reducing the number of gateways.
Smart Images

Figure CN114528096B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of self-organizing networks, and in particular relates to a method and system for deploying an adaptive gateway based on multi-objective optimization. Background Art
[0002] A mobile ad hoc network (MANET) is a collection of wireless mobile nodes that dynamically forms a temporary network without any fixed infrastructure. MANET can be an independent network, but with the development of MANETs technology, isolated MANETs can no longer meet the current growing business application needs. Connecting MANET to the Internet through a gateway has become an inevitable trend in the development of wireless network technology.
[0003] Although MANETs, which can be connected to the Internet through gateways, have become a promising technology and can be applied in many fields, there are still many problems and challenges to be solved, which mainly come from the randomness of mobile nodes. Since each gateway has limited coverage and load capacity, if the gateway location of the gateway is not appropriate, it will not only cause network congestion but also lead to excessive overlapping gateway coverage. Therefore, minimizing the overlapping gateway coverage while achieving gateway load balancing is an urgent and challenging task. Increasing the number of gateways can effectively improve network performance and alleviate network congestion. However, due to the high cost of gateway deployment, the number of gateways needs to be controlled in actual networks. Previous research works have proposed several methods to minimize the number of gateways while meeting gateway capacity constraints or coverage constraints, however, gateway load balancing has not been taken into account. Summary of the invention
[0004] Aiming at the problem that the existing self-organizing network gateway deployment takes the network coverage as a single target, resulting in gateway load imbalance, the present invention proposes an adaptive gateway deployment method and system based on multi-target optimization.
[0005] In order to achieve the above object, the present invention adopts the following technical solutions:
[0006] On the one hand, the present invention proposes an adaptive gateway deployment method based on multi-objective optimization, comprising:
[0007] Step 1: Establish a multi-objective optimization mathematical model for adaptive gateway deployment;
[0008] Step 2: Initialize the gateway deployment mathematical model using particle swarm algorithm;
[0009] Step 3: Use variable-length particle swarm algorithm to solve the gateway deployment mathematical model and obtain the optimal number of gateways that meet the constraints;
[0010] Step 4: Use the standard particle swarm algorithm to solve the gateway deployment mathematical model and obtain the optimal location of the gateway to achieve gateway load balancing.
[0011] Furthermore, the step 1 comprises:
[0012] Step 101: Calculate the number of gateways that meet the node coverage requirements:
[0013]
[0014] Square=πR 2 (2)
[0015] Where SA is the total area of the network, R is the coverage radius of the gateway, and Square is the coverage area of the gateway;
[0016] Step 102: Calculate the number of gateways that meet the node traffic requirements:
[0017]
[0018] Where n is the total number of nodes in the network area, T is the flow rate of each node to meet the target demand, and L large is the maximum load of each gateway, therefore, the number of gateways N that meet the node traffic demand and coverage requirements objective for:
[0019] N objective =max(N cov ,N sern ) (4)
[0020] In order to find the optimal number of gateways, set the initial gateway N = 2N objective ;
[0021] Step 103: Establish the constraints of the gateway coverage as shown in formula (6):
[0022]
[0023]
[0024] Where D ij represents the distance from node i to gateway j; if node i is within the coverage of gateway j, C ij is 1, otherwise C ij is 0;
[0025] Step 104: Establish the constraints of the gateway load capacity as shown in formula (9):
[0026] d ij =min{D j1 ,D j2 ,…DjN} (7)
[0027]
[0028]
[0029] Among them, d ij is the shortest distance from node i to all gateways. If node i selects the nearest gateway, then S ij =1, otherwise S ij =0;n j The number of nodes served by gateway j. The load of each gateway is the sum of the traffic of the nodes it serves, which cannot exceed the maximum load of the gateway;
[0030] Step 105: Establish the optimal number of gateways that meets the coverage constraint and capacity constraint:
[0031]
[0032] Step 106: Establish the standard deviation of the gateway load as shown in formula (11):
[0033]
[0034]
[0035]
[0036] Where L(j) is the load of gateway j, is the average gateway load of the current system;
[0037] Step 107: Integrate formula (1) to formula (13) as a multi-objective optimization adaptive gateway deployment mathematical model.
[0038] Furthermore, the step 2 comprises:
[0039] Step 201: In the self-organizing network system, there is a gateway set G consisting of N gateways. The coordinates of gateway j in G on the two-dimensional plane are (x j ,y j ), j = 1, 2…N;
[0040] Step 202: Set the number of particles to K;
[0041] Step 203: For any gateway particle k, its position vector w (k) According to the following formula:
[0042] w (k) =(x 1 ,x 2 …x N,y 1 ,y 2 …,y N );k=1,2…K (14)
[0043] Step 204: Calculate the individual optimal position that particle k passes through, that is, the individual extreme value Pbest:
[0044] Pbest=(p k1 ,p k2 …p k2N ) (15)
[0045] Step 205: Calculate the optimal position searched by the entire particle swarm, that is, the global extreme value gbest:
[0046] gbest=(g k1 ,g k2 …g k2N ) (16)
[0047] Step 206: Update the position and velocity of particle k according to the following formula:
[0048]
[0049]
[0050] Where ω is the inertia weight, c1 and c2 are constants, r1 and r2 are uniform random numbers in the range of [0,1], t represents the number of iterations, 1≤d≤2N and d is a natural number;
[0051] Step 207: Setting the maximum number of iterations P of the particle swarm algorithm.
[0052] Furthermore, the step 3 comprises:
[0053] Step 301: If the node satisfies formula (6), set the variable otherwise The number of nodes A not covered by the gateway corresponding to the gateway particle k is calculated according to the following formula: k and gateway coverage
[0054]
[0055]
[0056] Step 302: If the node satisfies formula (9), set the variable otherwise The service rate of the gateway is calculated according to the following formula
[0057]
[0058] Step 303: First, set the fitness function to When the gateway coverage reaches Then set the fitness function to Where 0<ρ<1; when the gateway service rate reaches When , the number of gateways decreases by 1, and the above search process is repeated until the minimum number of gateways that meets the constraints, that is, the optimal number of gateways, is found.
[0059] Furthermore, the step 4 comprises:
[0060] Step 401: randomly deploying gateways with an optimal number of gateways;
[0061] Step 402: Calculate the coverage of the gateway using formula (20);
[0062] Step 403: Calculate the service rate of the gateway using formula (21);
[0063] Step 404: Calculate the standard deviation of the gateway load using formula (11);
[0064] Step 405: define an array to store the standard deviation of the gateway load obtained in each iteration, and define a matrix to store the gateway position coordinates of each iteration. When the iteration is completed, the gateway position with the smallest standard deviation of the gateway load and the gateway load is obtained, which is the optimal deployment of the gateway.
[0065] Another aspect of the present invention provides an adaptive gateway deployment system based on multi-objective optimization, comprising:
[0066] A model building module is used to establish a multi-objective optimized adaptive gateway deployment mathematical model;
[0067] Initialization module, used to initialize the gateway deployment mathematical model using particle swarm algorithm;
[0068] The first model solving module is used to solve the gateway deployment mathematical model using a variable-length particle swarm algorithm to obtain the optimal number of gateways that meet the constraint conditions;
[0069] The second model solving module is used to solve the gateway deployment mathematical model using a standard particle swarm algorithm to obtain the optimal location of the gateway to achieve gateway load balancing.
[0070] Furthermore, the model building module includes:
[0071] The first calculation submodule is used to calculate the number of gateways that meet the node coverage requirements:
[0072]
[0073] Square=πR 2 (2)
[0074] Where SA is the total area of the network, R is the coverage radius of the gateway, and Square is the coverage area of the gateway;
[0075] The second calculation submodule is used to calculate the number of gateways that meet the node traffic requirements:
[0076]
[0077] Where n is the total number of nodes in the network area, T is the flow rate of each node to meet the target demand, and L large is the maximum load of each gateway, therefore, the number of gateways N that meet the node traffic demand and coverage requirements objective for:
[0078] N objective =max(N cov ,N sern ) (4)
[0079] In order to find the optimal number of gateways, set the initial gateway N = 2N objective ;
[0080] The first constraint establishment submodule is used to establish the constraints of the gateway coverage as shown in formula (6):
[0081]
[0082]
[0083] Where D ij represents the distance from node i to gateway j; if node i is within the coverage of gateway j, C ij is 1, otherwise C ij is 0;
[0084] The second constraint establishment submodule is used to establish the constraint of the gateway load capacity as shown in formula (9):
[0085] d ij =min{D j1 ,D j2 ,…D jN} (7)
[0086]
[0087]
[0088] Among them, d ij is the shortest distance from node i to all gateways. If node i selects the nearest gateway, then S ij=1, otherwise S ij =0;n j The number of nodes served by gateway j. The load of each gateway is the sum of the traffic of the nodes it serves, which cannot exceed the maximum load of the gateway;
[0089] The optimal gateway quantity equation establishment submodule is used to establish the optimal gateway quantity that meets the coverage constraint and capacity constraint:
[0090]
[0091] The gateway load standard deviation equation establishment submodule is used to establish the standard deviation of the gateway load as shown in formula (11):
[0092]
[0093]
[0094]
[0095] Where L(j) is the load of gateway j, is the average gateway load of the current system;
[0096] The model deriving submodule is used to integrate formula (1) to formula (13) as a multi-objective optimized adaptive gateway deployment mathematical model.
[0097] Furthermore, the initialization module includes:
[0098] The gateway coordinates deriving submodule is used in a self-organizing network system to obtain the coordinates of a gateway set G consisting of N gateways in the two-dimensional plane as (x j ,y j ), j = 1, 2…N;
[0099] The particle number setting submodule is used to set the particle number to K;
[0100] The position vector deriving submodule is used to obtain the position vector w for any gateway particle k. (k) According to the following formula:
[0101] w (k) =(x 1 ,x 2 …x N ,y 1 ,y 2 …,y N );k=1,2…K (14)
[0102] The third calculation submodule is used to calculate the individual optimal position that particle k passes through, that is, the individual extreme value Pbest:
[0103] Pbest=(p k1 ,p k2 …p k2N ) (15)
[0104] The fourth calculation submodule is used to calculate the optimal position searched by the entire particle swarm, that is, the global extreme value gbest:
[0105] gbest=(g k1 ,g k2 …g k2N ) (16)
[0106] The position and velocity update submodule is used to update the position and velocity of particle k according to the following formula:
[0107]
[0108]
[0109] Among them, ω is the inertia weight, c1 and c2 are constants, r1 and r2 are uniform random numbers in the range of [0,1]. t represents the number of iterations, 1≤d≤2N and d is a natural number;
[0110] The maximum number of iterations setting submodule is used to set the maximum number of iterations P of the particle swarm algorithm.
[0111] Furthermore, the first model solving module includes:
[0112] The fifth calculation submodule is used to set the variable if the node satisfies formula (6). otherwise The number of nodes A not covered by the gateway corresponding to the gateway particle k is calculated according to the following formula: k and gateway coverage
[0113]
[0114]
[0115] The sixth calculation submodule is used to set the variable if the node satisfies formula (9). otherwise The service rate of the gateway is calculated according to the following formula
[0116]
[0117] The first iterative solution submodule is used to first set the fitness function to When the gateway coverage reaches Then set the fitness function to Where 0<ρ<1; when the gateway service rate reaches When , the number of gateways decreases by 1, and the above search process is repeated until the minimum number of gateways that meets the constraints, that is, the optimal number of gateways, is found.
[0118] Furthermore, the second model solving module includes:
[0119] The random deployment submodule is used to randomly deploy gateways with the optimal number of gateways;
[0120] A seventh calculation submodule, used to calculate the coverage of the gateway using formula (20);
[0121] An eighth calculation submodule, used to calculate the service rate of the gateway using formula (21);
[0122] A ninth calculation submodule, used to calculate the standard deviation of the gateway load using formula (11);
[0123] The second iterative solution submodule is used to define an array to store the standard deviation of the gateway load obtained in each iteration, and define a matrix to store the gateway position coordinates of each iteration. When the iteration is completed, the gateway position with the smallest standard deviation of the gateway load and the gateway load is obtained, which is the optimal deployment of the gateway.
[0124] Compared with the prior art, the present invention has the following beneficial effects:
[0125] The present invention sets the gateway coverage rate and the gateway service rate as constraints, and adopts a variable-length particle swarm algorithm to optimize the number of gateways, thereby reducing the price and cost of gateway deployment.
[0126] The present invention proposes the gateway load standard deviation as an indicator of network load. Under the premise of satisfying the gateway coverage rate and service rate, the gateway load standard deviation of each gateway deployment scheme is calculated, and the deployment scheme with the smallest gateway load standard deviation is found to achieve gateway load balancing and improve network service quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0127] Figure 1 A basic flow chart of an adaptive gateway deployment method based on multi-objective optimization according to an embodiment of the present invention;
[0128] Figure 2 A schematic diagram of random gateway deployment in a self-organizing network according to an embodiment of the present invention;
[0129] Figure 3 This is a flow chart of solving the optimal number of gateways using a variable-length particle swarm algorithm according to an embodiment of the present invention;
[0130] Figure 4 This is a schematic diagram of the optimal number of gateways according to an embodiment of the present invention;
[0131] Figure 5 This is a flow chart of gateway deployment using a standard particle swarm algorithm according to an embodiment of the present invention;
[0132] Figure 6 This is a schematic diagram of the standard deviation of gateway load according to an embodiment of the present invention;
[0133] Figure 7 This is a schematic diagram of optimal gateway deployment according to an embodiment of the present invention;
[0134] Figure 8 The present invention is a schematic diagram of an adaptive gateway deployment system architecture based on multi-objective optimization according to an embodiment of the present invention. DETAILED DESCRIPTION
[0135] The present invention will be further explained below with reference to the accompanying drawings and specific embodiments:
[0136] like Figure 1 As shown, an adaptive gateway deployment method based on multi-objective optimization includes:
[0137] Step S101: Establishing a multi-objective optimized adaptive gateway deployment mathematical model;
[0138] Step S102: Initialize the gateway deployment mathematical model using a particle swarm algorithm;
[0139] Step S103: using a variable-length particle swarm algorithm to solve the gateway deployment mathematical model, and obtain the optimal number of gateways that meets the constraint conditions.
[0140] Step S104: using a standard particle swarm algorithm to solve the gateway deployment mathematical model, and obtaining the optimal location of the gateway to achieve gateway load balancing.
[0141] Furthermore, in step S101, the specific steps of establishing a multi-objective optimized adaptive gateway deployment mathematical model are as follows:
[0142] Step S101.1: Calculate the number of gateways that meet the node coverage requirements:
[0143]
[0144] Square=πR 2 (2)
[0145] Where SA is the total area of the network, R is the coverage radius of the gateway, and Square is the coverage area of the gateway;
[0146] Step S101.2: Calculate the number of gateways that meet the node traffic requirements:
[0147]
[0148] Where n is the total number of nodes in the network area, T is the flow rate of each node to meet the target demand, and L large is the maximum load of each gateway, therefore, the number of gateways N that meet the node traffic demand and coverage requirements objective for;
[0149] N objective =max(N cov ,N sern ) (4)
[0150] In order to find the optimal number of gateways, set the initial gateway N = 2N objective ;
[0151] Step S101.3: Establish the constraints of the gateway coverage as shown in formula (6):
[0152]
[0153]
[0154] For any node i, the distance to gateway j is D ij ; If node i is within the coverage of gateway j, C ij is 1, otherwise C ij is 0;
[0155] Step S101.4: Establish the constraints of the gateway load capacity as shown in formula (9):
[0156] d ij =min{D j1 ,D j2 ,…D jN} (7)
[0157]
[0158]
[0159] Among them, d ij is the shortest distance from node i to all gateways. If node i selects the nearest gateway, then S ij =1, otherwise S ij =0;n j The number of nodes served by gateway j. The load of each gateway is the sum of the traffic of the nodes it serves, which cannot exceed the maximum load of the gateway;
[0160] Step S101.5: Establishing the optimal number of gateways that meets coverage constraints and capacity constraints:
[0161]
[0162] Step S101.6: Establish the standard deviation of the gateway load as shown in formula (11):
[0163]
[0164]
[0165] Where L(j) is the load of gateway j, is the average gateway load of the current system;
[0166] Step S107: Integrate formula (1) to formula (13) as a multi-objective optimized adaptive gateway deployment mathematical model.
[0167] Furthermore, in step S102, the steps of initializing the gateway using the particle swarm algorithm are as follows:
[0168] Step S102.1: In the self-organizing network system, there is a gateway set G consisting of N gateways. The coordinates of gateway j in G on the two-dimensional plane are (x j ,y j )(j=1,2…N);
[0169] Step S102.2: In order to search for the optimal gateway position, we set the number of particles to K;
[0170] Step S102.3: For any gateway particle k, its position vector w (k) for:
[0171] w (k) =(x 1 ,x 2 …x N ,y 1 ,y 2 …,y N );k=1,2…K (14)
[0172] Step S102.4: Calculate the individual optimal position that particle k passes through, that is, the individual extreme value Pbest:
[0173] Pbest=(p k1 ,p k2 …p k2N ) (15)
[0174] Step S102.5: Calculate the optimal position searched by the entire particle swarm so far, that is, the global extreme value gbest, which can be expressed as:
[0175] gbest=(g k1 ,g k2 …g k2N) (16)
[0176] Step S102.6: The position and velocity update equations of particle k are as follows:
[0177]
[0178]
[0179] Where ω is the inertia weight, c1 and c2 are constants, r1 and r2 are uniform random numbers in the range [0,1], t represents the number of iterations, 1≤d≤2N and d is a natural number; as an implementation method, the inertia weight ω=0.8, c 1 =c 2 =1.5;
[0180] Step S102.7: The maximum number of iterations P of the particle swarm algorithm; as an implementable method, P=100.
[0181] Furthermore, in S103, the variable-length particle swarm algorithm is used to solve the gateway deployment mathematical model to obtain the optimal number of gateways that meet the constraint conditions. The specific steps are as follows:
[0182] Step S103.1: If the node satisfies formula (6), set the variable otherwise The number of nodes A not covered by the gateway corresponding to the gateway particle k is calculated according to the following formula: k and gateway coverage
[0183]
[0184]
[0185] Step S103.2: If the node satisfies formula (9), set the variable otherwise The service rate of the gateway is calculated according to the following formula
[0186]
[0187] Step S103.3: First, set the fitness function U to When the gateway coverage reaches Then set the fitness function When the gateway service rate reaches When the number of gateways decreases by 1 (N=N-1), the above search process is repeated until the minimum number of gateways N that meets the constraints is found. min That is, the optimal number of gateways.
[0188] Furthermore, in step S104, the standard particle swarm algorithm is used to solve the gateway deployment mathematical model to obtain the optimal location of the gateway to achieve gateway load balancing. The specific steps are as follows:
[0189] Step S104.1: Randomly deploy gateways with the optimal number N of gateways;
[0190] Step S104.2: Calculate the coverage of the gateway using formula (20);
[0191] Step S104.3: Calculate the service rate of the gateway using formula (21);
[0192] Step S104.4: Calculate the standard deviation of the gateway load using formula (11);
[0193] Step S104.5: define an array to store the standard deviation of the gateway load obtained in each iteration, define a matrix to store the gateway position coordinates of each iteration, and when the iteration is completed, find the gateway position with the smallest standard deviation of the gateway load, which is the optimal deployment of the gateway.
[0194] In order to better understand the present invention, the following specific examples are given:
[0195] As an implementation method, the nodes of the self-organizing network are randomly distributed in a 100*100 deployment area; the number of nodes in the network is 100, the number of initial gateways is 20, and the network model is as follows: Figure 2 As shown, the following steps are used to complete the optimal location deployment of the gateway:
[0196] Step 1: Establish a multi-objective optimized self-organizing (adaptive) gateway deployment mathematical model, where the gateway radius is 10, the node traffic that meets the target demand is 3, the maximum load of the gateway is 30, the coverage of the gateway is 95%, the gateway service rate is 95%, and the number of iterations is 100.
[0197] Step 2: Initialize the gateway using the particle swarm algorithm and set the number of particles to 100;
[0198] Step 3: Use variable-length particle swarm algorithm to calculate the optimal number of gateways. The calculation process is as follows: Figure 3 As shown in Figure 2, the number of gateways gradually stabilizes as the number of iterations increases. The change in the number of gateways is shown in Figure 2. Figure 4 shown.
[0199] Step 4: Use the standard particle swarm algorithm to calculate the standard deviation of the gateway load. The calculation process is as follows: Figure 5 As shown, the standard deviation of gateway load changes as Figure 6 shown.
[0200] Step 5: Determine the best location for gateway deployment, such as Figure 7 shown.
[0201] Based on the above embodiments, Figure 8 As shown, on the other hand, the present invention proposes an adaptive gateway deployment system based on multi-objective optimization, comprising:
[0202] A model building module is used to establish a multi-objective optimized adaptive gateway deployment mathematical model;
[0203] Initialization module, used to initialize the gateway deployment mathematical model using particle swarm algorithm;
[0204] The first model solving module is used to solve the gateway deployment mathematical model using a variable-length particle swarm algorithm to obtain the optimal number of gateways that meet the constraint conditions;
[0205] The second model solving module is used to solve the gateway deployment mathematical model using a standard particle swarm algorithm to obtain the optimal location of the gateway to achieve gateway load balancing.
[0206] Furthermore, the model building module includes:
[0207] The first calculation submodule is used to calculate the number of gateways that meet the node coverage requirements:
[0208]
[0209] Square=πR 2 (2)
[0210] Where SA is the total area of the network, R is the coverage radius of the gateway, and Square is the coverage area of the gateway;
[0211] The second calculation submodule is used to calculate the number of gateways that meet the node traffic requirements:
[0212]
[0213] Where n is the total number of nodes in the network area, T is the flow rate of each node to meet the target demand, and L large is the maximum load of each gateway, therefore, the number of gateways N that meet the node traffic demand and coverage requirements objective for:
[0214] N objective =max(N cov ,N sern ) (4)
[0215] In order to find the optimal number of gateways, set the initial gateway N = 2N objective ;
[0216] The first constraint establishment submodule is used to establish the constraints of the gateway coverage as shown in formula (6):
[0217]
[0218]
[0219] Where D ij represents the distance from node i to gateway j; if node i is within the coverage of gateway j, C ij is 1, otherwise C ij is 0;
[0220] The second constraint establishment submodule is used to establish the constraint of the gateway load capacity as shown in formula (9):
[0221] d ij =min{D j1 ,D j2 ,…D jN} (7)
[0222]
[0223]
[0224] Among them, d ij is the shortest distance from node i to all gateways. If node i selects the nearest gateway, then S ij =1, otherwise S ij =0;n j The number of nodes served by gateway j. The load of each gateway is the sum of the traffic of the nodes it serves, which cannot exceed the maximum load of the gateway;
[0225] The optimal gateway quantity equation establishment submodule is used to establish the optimal gateway quantity that meets the coverage constraint and capacity constraint:
[0226]
[0227] The gateway load standard deviation equation establishment submodule is used to establish the standard deviation of the gateway load as shown in formula (11):
[0228]
[0229]
[0230]
[0231] Where L(j) is the load of gateway j, is the average gateway load of the current system;
[0232] The model deriving submodule is used to integrate formula (1) to formula (13) as a multi-objective optimized adaptive gateway deployment mathematical model.
[0233] Furthermore, the initialization module includes:
[0234] The gateway coordinates deriving submodule is used in a self-organizing network system to obtain the coordinates of a gateway set G consisting of N gateways in the two-dimensional plane as (x j ,y j ), j = 1, 2…N;
[0235] The particle number setting submodule is used to set the particle number to K;
[0236] The position vector deriving submodule is used to obtain the position vector w for any gateway particle k. (k) According to the following formula:
[0237] w (k) =(x 1 ,x 2 …x N ,y 1 ,y 2 …,y N );k=1,2…K (14)
[0238] The third calculation submodule is used to calculate the individual optimal position that particle k passes through, that is, the individual extreme value Pbest:
[0239] Pbest=(p k1 ,p k2 …p k2N ) (15)
[0240] The fourth calculation submodule is used to calculate the optimal position searched by the entire particle swarm, that is, the global extreme value gbest:
[0241] gbest=(g k1 ,g k2 …g k2N ) (16)
[0242] The position and velocity update submodule is used to update the position and velocity of particle k according to the following formula:
[0243]
[0244]
[0245] Where ω is the inertia weight, c1 and c2 are constants, t represents the number of iterations, r1 and r2 are uniform random numbers in the range of [0,1], 1≤d≤2N and d is a natural number;
[0246] The maximum number of iterations setting submodule is used to set the maximum number of iterations P of the particle swarm algorithm.
[0247] Furthermore, the first model solving module includes:
[0248] The fifth calculation submodule is used to set the variable if the node satisfies formula (6). otherwise The number of nodes A not covered by the gateway corresponding to the gateway particle k is calculated according to the following formula: k and gateway coverage
[0249]
[0250]
[0251] The sixth calculation submodule is used to set the variable if the node satisfies formula (9). otherwise The service rate of the gateway is calculated according to the following formula
[0252]
[0253] The first iterative solution submodule is used to first set the fitness function to When the gateway coverage reaches Then set the fitness function to Where 0<ρ<1; when the gateway service rate reaches When , the number of gateways decreases by 1, and the above search process is repeated until the minimum number of gateways that meets the constraints, that is, the optimal number of gateways, is found.
[0254] Furthermore, the second model solving module includes:
[0255] The random deployment submodule is used to randomly deploy gateways with the optimal number of gateways;
[0256] A seventh calculation submodule, used to calculate the coverage of the gateway using formula (20);
[0257] An eighth calculation submodule, used to calculate the service rate of the gateway using formula (21);
[0258] A ninth calculation submodule, used to calculate the standard deviation of the gateway load using formula (11);
[0259] The second iterative solution submodule is used to define an array to store the standard deviation of the gateway load obtained in each iteration, and define a matrix to store the gateway position coordinates of each iteration. When the iteration is completed, the gateway position with the smallest standard deviation of the gateway load and the gateway load is obtained, which is the optimal deployment of the gateway.
[0260] In summary, the present invention sets the gateway coverage rate and the gateway service rate as constraints, and uses the variable-length particle swarm algorithm to optimize the number of gateways, thereby reducing the cost and expense of gateway deployment. The present invention proposes the gateway load standard deviation as an indicator of network load. On the premise of satisfying the gateway coverage rate and the service rate, the gateway load standard deviation of each gateway deployment scheme is calculated, and the deployment scheme with the smallest gateway load standard deviation is found to achieve gateway load balancing and improve network service quality.
[0261] The above is only a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications should also be regarded as within the scope of protection of the present invention.
Claims
1. An adaptive gateway deployment method based on multi-objective optimization, characterized in that: include: Step 1: Establish a multi-objective optimization mathematical model for adaptive gateway deployment; Step 2: Initialize the gateway deployment mathematical model using particle swarm algorithm; Step 3: Use variable-length particle swarm algorithm to solve the gateway deployment mathematical model and obtain the optimal number of gateways that meet the constraints; Step 4: Use the standard particle swarm algorithm to solve the gateway deployment mathematical model and obtain the optimal location of the gateway to achieve gateway load balancing; The step 1 comprises: Step 101: Calculate the number of gateways that meet the node coverage requirements: Square=πR 2 (2) Where SA is the total area of the network, R is the coverage radius of the gateway, and Square is the coverage area of the gateway; Step 102: Calculate the number of gateways that meet the node traffic requirements: Where n is the total number of nodes in the network area, T is the traffic that each node needs to meet the target demand, and Llarge is the maximum load of each gateway. Therefore, the number of gateways that meet the node traffic demand and coverage demand is N objective for: N objective =max(N cov ,N sern ) (4) In order to find the optimal number of gateways, set the initial gateway N = 2N objective ; Step 103: Establish the constraints of the gateway coverage as shown in formula (6): Where D ij represents the distance from node i to gateway j; if node i is within the coverage of gateway j, C ij is 1, otherwise C ij is 0; Step 104: Establish the constraints of the gateway load capacity as shown in formula (9): the ij =min{D j1 ,D j2 ,…D jN } (7) Among them, d ij is the shortest distance from node i to all gateways. If node i selects the nearest gateway, then S ij =1, otherwise S ij =0;n j The number of nodes served by gateway j. The load of each gateway is the sum of the traffic of the nodes it serves, which cannot exceed the maximum load of the gateway; Step 105: Establish the optimal number of gateways that meets the coverage constraint and capacity constraint: Step 106: Establish the standard deviation of the gateway load as shown in formula (11): Where L(j) is the load of gateway j, is the average gateway load of the current system; Step 107: Integrate formula (1) to formula (13) as a multi-objective optimization adaptive gateway deployment mathematical model; The step 3 comprises: Step 301: If the node satisfies formula (6), set the variable otherwise The number of nodes A not covered by the gateway corresponding to the gateway particle k is calculated according to the following formula: k and gateway coverage Step 302: If the node satisfies formula (9), set the variable otherwise The service rate of the gateway is calculated according to the following formula Step 303: First, set the fitness function to When the gateway coverage reaches Then set the fitness function to Where 0<ρ<1; when the gateway service rate reaches When , the number of gateways decreases by 1, and the above search process is repeated until the minimum number of gateways that meets the constraints, that is, the optimal number of gateways, is found; The step 4 comprises: Step 401: randomly deploying gateways with an optimal number of gateways; Step 402: Calculate the coverage of the gateway using formula (20); Step 403: Calculate the service rate of the gateway using formula (21); Step 404: Calculate the standard deviation of the gateway load using formula (11); Step 405: define an array to store the standard deviation of the gateway load obtained in each iteration, and define a matrix to store the gateway position coordinates of each iteration. When the iteration is completed, the gateway position with the smallest standard deviation of the gateway load and the gateway load is obtained, which is the optimal deployment of the gateway.
2. The adaptive gateway deployment method based on multi-objective optimization according to claim 1 is characterized in that: The step 2 comprises: Step 201: In the self-organizing network system, there is a gateway set G consisting of N gateways. The coordinates of gateway j in G on the two-dimensional plane are (x j ,y j ), j = 1, 2…N; Step 202: Set the number of particles to K; Step 203: For any gateway particle k, its position vector w (k) According to the following formula: w (k) =(x1,x2...x N ,y1,y2…,y N );k=1,2...K (14) Step 204: Calculate the individual optimal position that particle k passes through, that is, the individual extreme value Pbest: Pbest=(p k1 ,p k2 … p k2N ) (15) Step 205: Calculate the optimal position searched by the entire particle swarm, that is, the global extreme value gbest: gbest=(g k1 ,g k2 … g k2N ) (16) Step 206: Update the position and velocity of particle k according to the following formula: Where ω is the inertia weight, c1 and c2 are constants, r1 and r2 are uniform random numbers in the range of [0,1], t represents the number of iterations, 1≤d≤2N and d is a natural number; Step 207: Setting the maximum number of iterations P of the particle swarm algorithm.
3. An adaptive gateway deployment system based on multi-objective optimization, characterized in that: include: A model building module is used to establish a multi-objective optimized adaptive gateway deployment mathematical model; Initialization module, used to initialize the gateway deployment mathematical model using particle swarm algorithm; The first model solving module is used to solve the gateway deployment mathematical model using a variable-length particle swarm algorithm to obtain the optimal number of gateways that meet the constraint conditions; The second model solving module is used to solve the gateway deployment mathematical model using a standard particle swarm algorithm to obtain the optimal location of the gateway to achieve gateway load balancing; The model building module includes: The first calculation submodule is used to calculate the number of gateways that meet the node coverage requirements: Square=πR 2 (2) Where SA is the total area of the network, R is the coverage radius of the gateway, and Square is the coverage area of the gateway; The second calculation submodule is used to calculate the number of gateways that meet the node traffic requirements: Where n is the total number of nodes in the network area, T is the flow rate of each node to meet the target demand, and L large is the maximum load of each gateway, therefore, the number of gateways N that meet the node traffic demand and coverage requirements objective for: N objective =max(N cov ,N sern ) (4) In order to find the optimal number of gateways, set the initial gateway N = 2N objective ; The first constraint establishment submodule is used to establish the constraints of the gateway coverage as shown in formula (6): Where D ij represents the distance from node i to gateway j; if node i is within the coverage of gateway j, C ij is 1, otherwise C ij is 0; The second constraint establishment submodule is used to establish the constraint of the gateway load capacity as shown in formula (9): the ij =min{D j1 ,D j2 ,…D jN } (7) Among them, d ij is the shortest distance from node i to all gateways. If node i selects the nearest gateway, then S ij =1, otherwise S ij =0;n j The number of nodes served by gateway j. The load of each gateway is the sum of the traffic of the nodes it serves, which cannot exceed the maximum load of the gateway; The optimal gateway quantity equation establishment submodule is used to establish the optimal gateway quantity that meets the coverage constraint and capacity constraint: The gateway load standard deviation equation establishment submodule is used to establish the standard deviation of the gateway load as shown in formula (11): Where L(j) is the load of gateway j, is the average gateway load of the current system; A model deriving submodule, for synthesizing formula (1) to formula (13) as a multi-objective optimized adaptive gateway deployment mathematical model; The first model solving module comprises: The fifth calculation submodule is used to set the variable if the node satisfies formula (6). otherwise The number of nodes A not covered by the gateway corresponding to the gateway particle k is calculated according to the following formula: k and gateway coverage The sixth calculation submodule is used to set the variable if the node satisfies formula (9). otherwise The service rate of the gateway is calculated according to the following formula The first iterative solution submodule is used to first set the fitness function to When the gateway coverage reaches Then set the fitness function to Where 0<ρ<1; when the gateway service rate reaches When , the number of gateways decreases by 1, and the above search process is repeated until the minimum number of gateways that meets the constraints, that is, the optimal number of gateways, is found; The second model solving module comprises: The random deployment submodule is used to randomly deploy gateways with the optimal number of gateways; A seventh calculation submodule, used to calculate the coverage of the gateway using formula (20); An eighth calculation submodule, used to calculate the service rate of the gateway using formula (21); A ninth calculation submodule, used to calculate the standard deviation of the gateway load using formula (11); The second iterative solution submodule is used to define an array to store the standard deviation of the gateway load obtained in each iteration, and define a matrix to store the gateway position coordinates of each iteration. When the iteration is completed, the gateway position with the smallest standard deviation of the gateway load and the gateway load is obtained, which is the optimal deployment of the gateway.
4. The adaptive gateway deployment system based on multi-objective optimization according to claim 3 is characterized in that: The initialization module includes: The gateway coordinates deriving submodule is used in a self-organizing network system to obtain the coordinates of a gateway set G consisting of N gateways in the two-dimensional plane as (x j ,y j ), j = 1, 2…N; The particle number setting submodule is used to set the particle number to K; The position vector deriving submodule is used to obtain the position vector w for any gateway particle k. (k) According to the following formula: w (k) =(x1,x2...x N ,y1,y2…,y N );k=1,2...K (14) The third calculation submodule is used to calculate the individual optimal position that particle k passes through, that is, the individual extreme value Pbest: Pbest=(p k1 ,p k2 …p k2N ) (15) The fourth calculation submodule is used to calculate the optimal position searched by the entire particle swarm, that is, the global extreme value gbest: gbest=(g k1 ,g k2 …g k2N ) (16) The position and velocity update submodule is used to update the position and velocity of particle k according to the following formula: Where ω is the inertia weight, c1 and c2 are constants, r1 and r2 are uniform random numbers in the range of [0,1], t represents the number of iterations, 1≤d≤2N and d is a natural number; The maximum number of iterations setting submodule is used to set the maximum number of iterations P of the particle swarm algorithm.
