NOMA-assisted task unloading and resource allocation joint optimization method under vehicle networking system
By combining the improved artificial hummingbird algorithm with chaotic mapping and Levy flight strategy, the task offloading and resource allocation of the NOMA-MEC system are optimized, and the delay optimization problem of task offloading and resource allocation in the multi-user scenario of the Internet of Vehicles system is solved, achieving Lower system latency and better user experience.
Patent Information
- Application Number
- CN202410737095.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-09-24
AI Technical Summary
In the Internet of Vehicles system, it is difficult for the existing technology to effectively optimize the task offloading and resource allocation of the NOMA-MEC system in multi-user scenarios, resulting in high system latency and inability to meet the needs of latency-sensitive applications, and the traditional algorithm is in multi-dimensional Poor problem solving.
A method based on the improved Artificial Hummingbird Algorithm (AHA) is proposed, which combines chaos mapping, adaptive Levy flight strategy and whale algorithm to optimize task offloading and resource allocation, and minimize the total system time by adjusting the SIC decoding order and constraint correction. delayed goal.
It effectively reduces system delay, improves user experience, improves the search range and convergence of the algorithm, avoids local optimal solutions, and significantly improves system performance.
Smart Images

Figure CN118695300A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of wireless communication technology, and specifically relates to a joint optimization method for task offloading and resource allocation in a NOMA-assisted Internet of Vehicles system. Background Art
[0002] With the rapid development of the Internet of Vehicles, a series of new intelligent applications have emerged, such as unmanned driving, ultra-high-definition video, and real-time high-precision map navigation. These applications require a large amount of computing resources to support them, and need to meet the requirements of high transmission rate and low latency. However, the processing capacity of vehicle users themselves is limited and cannot meet the needs of these application devices. Mobile Edge Computing (MEC) technology has the ability to provide a large amount of cloud computing for network devices. It effectively solves the above problems by deploying multiple edge computing nodes. When the user's computing power is insufficient, the remaining computing tasks are offloaded to the edge computing server for processing, thereby achieving the goals of saving resources and reducing offloading latency. At the same time, the access and processing tasks of a large number of vehicle users will lead to problems such as insufficient network channel resources. Compared with the traditional Orthogonal Multiple Access (OMA) technology, NOMA technology breaks through the limitation of orthogonality of spectrum resources, allowing different users to transmit on the same channel resources and perform serial interference elimination at the receiving end, thereby improving spectrum utilization and reducing latency. Applying NOMA technology to edge computing can not only support massive connections, but also avoid serious computing delays and improve the performance of system task processing.
[0003] How to combine MEC with NOMA to improve system performance has attracted widespread attention from scholars. For a variety of in-vehicle service applications, especially delay-sensitive applications, it is crucial to minimize the time delay of processing tasks and alleviate data traffic congestion. Therefore, the delay optimization of NOMA-MEC systems has also become a hot research issue. In reference [1], the author considered the minimization of transmission delay in task offloading, proposed a multi-task offloading algorithm based on NOMA, studied the problems of vehicle user grouping and transmission power allocation, effectively improved channel resource utilization, and reduced transmission delay. Reference [2] considered minimizing the transmission and computing processing delays in the offloading phase under the constraints of user transmission power and MEC server computing power in a MIMO-NOMA-assisted MEC system, and converted the optimization problem into a linear problem for solution. Both of the above articles are based on the method of full offloading, but the Internet of Vehicles system has strict requirements on delay. Due to the bandwidth limitation in the wireless network, it is more reasonable to partially offload computing tasks than to fully offload them. In the literature [3], the authors offloaded part of the user's tasks to the MEC server for processing. Since the task offloading ratio has a great impact on the system performance, they proposed to use a method based on deep deterministic policy gradient to jointly optimize the task offloading ratio and transmission power allocation under the constraint of energy consumption. Although better performance was achieved, reasonable resource allocation was not considered considering the business needs of each user.
[0004] In summary, in the application scenarios of the Internet of Vehicles, reasonable resource allocation is required for the latency optimization problem of the NOMA-MEC system, and the needs of vehicle users need to be considered. Various constraints should be integrated to complete task offloading more scientifically and improve user experience. In addition, most current studies use traditional methods to solve the problem, but it is too complicated to use traditional algorithms to solve multi-dimensional problems, and the improvement in algorithm effect is not very obvious. The present invention proposes an improved algorithm based on the artificial hummingbird algorithm to optimize and solve the NOMA-assisted Internet of Vehicles offloading model, reduce system latency, and improve user experience.
[0005] The references mentioned in the background technology are as follows:
[0006] [1] Wang Lian, Yan Runbo, Xu Jing. Research on multi-task partial offloading scheme in vehicle edge computing[J]. Journal of Electronics & Information Technology, 2023, 45(03): 1094-1101.
[0007] [2] SS,Ozbek B.Massive MIMO-NOMA based MEC in task offloadingfor delay minimization[J].IEEEAccess,2022,11:162-170.
[0008] [3]Wang J, Wang Y, Cheng P, et al.DDPG-Based Joint Resource Management for Latency Minimization in NOMA-MEC Networks[J]. IEEE Communications Letters, 2023, 27(7):1814-1818. Summary of the invention
[0009] The purpose of the present invention is to provide a joint optimization method for task offloading and resource allocation in a NOMA-assisted Internet of Vehicles system in response to the above problems. The present invention targets the scenario of multi-user applications based on the Internet of Vehicles, and under multiple constraints, studies the problem of task offloading and resource optimization with minimizing the total system delay as the optimization goal, and proposes an improved algorithm based on the AHA algorithm to achieve the optimal offloading strategy for vehicle users.
[0010] In order to achieve the above technical objectives, the technical solution adopted by the present invention is:
[0011] A joint optimization method for task offloading and resource allocation in a NOMA-assisted connected vehicle system includes the following steps:
[0012] (1) Combine NOMA technology with the MEC-based IOV system, build an IOV system model based on the IOV multi-user application scenario, and initialize relevant parameters;
[0013] (2) Based on the IoV system model constructed in step (1), a task offloading model in an IoV scenario is constructed;
[0014] (3) Based on the task offloading model constructed in step (2), the transmission power of vehicle users and the computing resources of MEC servers are used as constraints, the task priority of vehicle users is considered, the SIC decoding order is changed, and the total system delay is minimized as the optimization goal, and a mathematical model is established;
[0015] (4) The artificial hummingbird algorithm (AHA) is improved by using chaotic mapping, adaptive Levy flight strategy and whale algorithm. Meanwhile, the constraint correction of the hummingbird position is considered to achieve the joint optimization solution of task offloading and resource allocation problems.
[0016] Further, in step (1), the Internet of Vehicles system model includes roadbed equipment RSU, MEC server and N vehicle users VUE;
[0017] Each VUE has a delay-sensitive visual processing task that needs to be offloaded to the RSU to be processed by the MEC server. Each visual processing task has different delay sensitivities, that is, different vehicle users have different priorities. The tasks are described as:
[0018]
[0019] Where D n Represents user V n The total amount of tasks that need to be calculated, C n represents the computing resources required for each bit task, χ n Indicates V n The task priority weight, χ n The larger the value is, the higher the priority of the task. The range of priority weight factor is Indicates V n The maximum task computation delay limit, Indicates V n The maximum task computing energy consumption limit.
[0020] Further, in step (3), the changing of the SIC decoding order is specifically as follows: the user decoding order is arranged in ascending order of task priority, the user with a low task priority is decoded first, and the user with a high priority is decoded later;
[0021] Vehicle User V n The task transfer rate is:
[0022]
[0023] Where B is the system bandwidth, p n For user V n The transmission power, For user V n The SIC decoding order within the mth cluster, The larger user is decoded first. The mean of the Gaussian white noise at the RSU is 0 and the variance is
[0024] Further, in step (3), the mathematical model is:
[0025]
[0026] Among them, C1-C6 are constraints, and constraint C1 means that user V nThe transmission power cannot exceed the maximum transmission power; constraint C2 indicates that the task offloading amount must not exceed the total task amount; C3 ensures that the user task is processed within the allowed delay; C4 is a constraint on user energy consumption; C5-C6 are constraints on computing resources, C5 indicates that the computing resources allocated to all users cannot exceed the total computing resources owned by the MEC server, which can ensure that the computing resources are fully utilized, and C6 indicates that the computing resources allocated to the user cluster will not be less than 0.
[0027] Furthermore, in step (4), the chaotic mapping is used to initialize the hummingbird population to increase the diversity of individuals in the population. The mapping expression is:
[0028]
[0029] Among them, r is the chaos parameter, which usually takes a value between [0,2];
[0030] Chaotic vector Z generated by tent mapping i , you can initialize the hummingbird population:
[0031] x i =Low+(Up-Low)·Z.
[0032] Furthermore, in step (4), the adaptive Levy flight strategy is used to update the step length, and is combined with guided foraging and territorial foraging to expand the search range of the algorithm; the random step length calculation formula is as follows:
[0033]
[0034] Among them, u and v obey u~N(0,σ 2 ),ν~N(0,1), where
[0035]
[0036] Where θ is the Levy constant, which is usually [0,2], Γ is the factorial calculation function, Γ(N+1)=N!;
[0037] The improved guided foraging and territory foraging candidate locations are expressed as:
[0038] v i (t+1)=x i,tar (t)+Levy·D·[x i (t)-x i,tar (t)]
[0039] v i (t+1)=x i (t)+Levy·b·D·x i (t)
[0040] Where D is the flight vector, x i (t) represents the food source location of the i-th hummingbird at the current time t, x i,tar (t) represents the location of the target food source that the i-th hummingbird intends to visit, v i (t+1) is the new food source location of the hummingbird, that is, the new candidate solution, b is the flight step length of the territory foraging, b=rand().
[0041] Furthermore, in step (4), the whale algorithm is used to adjust the migration foraging strategy, and the spinning net hunting behavior of the whale algorithm is integrated into the hummingbird migration foraging process. The improved migration foraging expression is:
[0042] x i (t+1)=ω(t)·x best (t)+|x best (t)-x i (t)|·e vl ·cos(2πl)
[0043] Among them, x best (t) is the global optimal solution, ω(t) is the adaptive inertia weight, v is the coefficient in the screw equation, and l is a random number in [-1,1].
[0044] The adaptive inertia weight calculation formula is as follows:
[0045]
[0046] Among them, ω max is the maximum initial value of the inertia weight, ω min is the minimum initial value of inertia weight, α 1 is the adaptive convergence factor.
[0047] Furthermore, in step (4), the specific method of constraining the position of the hummingbird is as follows: the initial position of the hummingbird individual is represents the offloading ratio of user i allocated to local computing, The offload ratio of user i allocated to the MEC server calculation must satisfy f i MEC is the ratio of computing resources allocated by the MEC server to user i, ensuring that the total computing resources allocated by MEC does not exceed the maximum computing resources; p i is the transmit power of user i, which is ensured to be less than the maximum transmit power. After constraining the hummingbird position according to the above constraints, the hummingbird position matrix X' is obtained.
[0048] Furthermore, in step (4), the joint optimization solution to the task offloading and resource allocation problem includes the following steps:
[0049] Step 1. Initialize various parameters, including population size, maximum number of iterations, and variable range;
[0050] Step 2. Generate the position of the initial population using chaotic mapping and calculate the fitness value of each individual;
[0051] Step 3. Initialize the optimal position and optimal value, find the individual with the best fitness in the initial population, record its position and fitness value, and initialize the access table;
[0052] Step 4. Randomly select three flight skills: omnidirectional flight, axial flight, and diagonal flight to update the flight direction vector table;
[0053] Step 5. Select guided foraging or territorial foraging according to different probabilities, update the position, and then update the visit table. While updating the position, ensure that the position is within the appropriate range through motion smoothing and boundary processing;
[0054] Step 6. When the number of iterations t reaches the migration coefficient M, the hummingbird migration foraging strategy updates the position and then updates the visit table;
[0055] Step 7. Update the optimal position and optimal fitness value of the hummingbird;
[0056] Step 8. Determine whether the maximum number of iterations has been reached. If not, re-enter step 3 until the iteration ends, end the loop, output the optimal result, and obtain the optimal unloading strategy.
[0057] The present invention has the following beneficial effects:
[0058] (1) Aiming at the task offloading problem in the IoV scenario, the mathematical model proposed in this paper aims to minimize the weighted total delay of all vehicle users, takes into account the task priority weights of each vehicle, and improves the SIC decoding mechanism, which has certain advantages in improving system performance and user experience;
[0059] (2) The present invention improves the artificial hummingbird algorithm (AHA algorithm) by introducing tent chaotic mapping to initialize the population, increasing the diversity of individuals in the population, and solving the problems of uneven population distribution and duplicate individuals in the original algorithm; introducing the levy flight algorithm to update the step size, and combining it with leader foraging and territory foraging to expand the search range of the algorithm and solve the problem that the overall update step size of the original algorithm is relatively small and the number is relatively concentrated; the spiral net hunting behavior of the whale algorithm is integrated into the process of hummingbird migration and foraging to improve the limitation that the algorithm is prone to fall into local optimal solutions; through simulation experiments, the improved algorithm proposed in the present invention can achieve smaller system delay and better convergence. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] Figure 1 It is a flowchart of a joint optimization method for task offloading and resource allocation in a NOMA-assisted Internet of Vehicles system according to Example 1;
[0061] Figure 2 A schematic diagram of a vehicle networking system model constructed in Example 1;
[0062] Figure 3 This is a flow chart of the joint optimization solution of the task offloading and resource allocation problem in Example 1;
[0063] Figure 4 It is the convergence of the total system delay under the MAHA offloading scheme, IAHA offloading scheme and AHA offloading scheme under the same simulation conditions;
[0064] Figure 5 The relationship between the total system delay and the number of vehicle users under the joint optimization scheme of Example 1 and the MAHA scheme, AHA scheme, GWO scheme, and PSO scheme;
[0065] Figure 6 The relationship between the total system delay and the amount of task data under the joint optimization scheme of Example 1 and the MAHA scheme, AHA scheme, GWO scheme, and PSO scheme;
[0066] Figure 7 This is the relationship between the total system delay and the SIC decoding order under the joint optimization scheme of Example 1 and the MAHA scheme. DETAILED DESCRIPTION
[0067] The technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments.
[0068] Example 1
[0069] A joint optimization method for task offloading and resource allocation in NOMA-assisted connected vehicle systems, such as Figure 1 As shown, the following steps are included:
[0070] (1) Combine NOMA technology with the MEC-based IoV system, build an IoV system model based on the multi-user application scenario of the IoV, and initialize relevant data parameters such as vehicle user pending tasks and MEC servers;
[0071] The schematic diagram of the vehicle networking system model is as follows Figure 2 As shown, the whole system includes roadbed equipment RSU, MEC server and N vehicle users VUE;
[0072] Each VUE has a delay-sensitive visual processing task that needs to be offloaded to the RSU to be processed by the MEC server. Each visual processing task has different delay sensitivities, that is, different vehicle users have different priorities. The tasks are described as:
[0073]
[0074] Where D n Represents user V n The total amount of tasks that need to be calculated, C n represents the computing resources required for each bit task, χ n Indicates V n The task priority weight, χ n The larger the value is, the higher the priority of the task. The range of priority weight factor is Indicates V n The maximum task computation delay limit, Indicates V n The maximum task computing energy consumption limit.
[0075] (2) Based on the IoV system model constructed in step (1), a task offloading model in an IoV scenario is constructed;
[0076] Calculate the uplink transmission rate of the vehicle user offloading task to the MEC server, the local computing delay, the upload delay of the task transmission to the MEC server, and the processing delay of the offloaded task.
[0077] This example uses a NOMA-based uplink wireless transmission model, and the RSU can communicate with multiple vehicle users. In order to optimize the computing performance of the entire system, reasonable user clustering is required. All vehicle users are divided into M clusters, and the set is M = {1, 2, ..., M}. To prevent interference between NOMA clusters, it is assumed that each NOMA cluster is orthogonal. This example uses the traditional uniform channel gain difference (UCGD) pairing algorithm to group users and obtain the set Q = {Q 1 ,Q 2 ,...,Q M} represents the matching result of user clustering. In particular, for the IoV system, due to the characteristics of rapid vehicle movement, the channel characteristics in the IoV system are very different from those of the traditional cellular system. Therefore, when calculating the channel state of the IoV system, not only large-scale fading but also small-scale fading caused by the rapid movement of vehicles should be considered. The channel model used in this example comprehensively considers large-scale fading and small-scale fading in the channel. The vehicle user V n The channel gain can be expressed as in represents the large-scale fading coefficient, PL(dn )(unit: dB), d n (in km) are the path loss and distance between user device n and MEC server, respectively. Small-scale fading is modeled using the Rayleigh fading channel model, γ n is the Rayleigh fading coefficient.
[0078] During the unloading phase, the NOMA subchannel will send a group of superimposed user signals to the MEC server, which will cause interference between users in the group. The base station uses the successive interference cancellation (SIC) technology to decode computing tasks from users. The traditional SIC decoding mechanism is to first decode the user signals with strong channel gain according to the descending order of channel gain, and other user signals are regarded as interference information, and so on, until the last user is decoded. At this time, if the user with a higher task priority is decoded first, the user will be interfered by other users, resulting in task timeout, which seriously affects the overall performance of the system. Therefore, this example proposes a SIC decoding mechanism based on task priority. The user decoding order is arranged in ascending order of task priority. Users with low task priority are decoded first, and users with high priority are decoded later. In addition, users with high priority can remove interference by decoding users with low priority first to improve the signal-to-interference-plus-noise ratio (SINR), increase system throughput, and reduce transmission delay. Therefore, the vehicle user V n The task transfer rate is:
[0079]
[0080] Where B is the system bandwidth, p n For user V n The transmission power, For user V n The SIC decoding order within the mth cluster, The larger user is decoded first. The mean of the Gaussian white noise at the RSU is 0 and the variance is
[0081] Assuming that the vehicle equipment has limited computing power, according to the offloading decision, the user can use part of the task for local computing to improve computing efficiency. This example introduces the task offloading ratio β n To represent user V n The ratio of offloaded tasks to the total computing tasks, then the amount of offloaded data is β n D n , the amount of local computing data is (1-β n )D n , where 0≤β n ≤1. When β n = 0, all computing tasks are completed locally. n=1, all computing tasks are offloaded to the MEC server for processing. If the user offloads the task, the latency of the entire MEC system mainly includes: local computing latency, task upload latency, and MEC task execution latency. Since the amount of task calculation result data is usually much smaller than the amount of uploaded task data, and the base station transmission power is relatively large, the latency caused by task return can be ignored.
[0082] Assume that the local computing power of all vehicle users is the same as f loc , user V n The local computing latency and energy consumption can be expressed as:
[0083]
[0084] Among them, ε represents the energy consumption parameter.
[0085] When the vehicle equipment cannot process the message locally, user V n Task S n Offload to MEC processor for processing, user V n The transmission delay of task offloading can be expressed as:
[0086]
[0087] User V n The energy consumption when performing task offloading can be expressed as:
[0088]
[0089] After the user offloads the task to the MEC server, the MEC server completes the calculation of the offloaded task. The total computing power of the MEC server is F max , which is assigned to user V n The computing resources are Then user V n The task processing delay on the server is:
[0090]
[0091] Therefore, user V n The total task delay in the offloading calculation phase is:
[0092]
[0093] (3) Based on the task offloading model constructed in step (2), the transmission power of vehicle users and the computing resources of MEC servers are used as constraints, the task priority of vehicle users is considered, the SIC decoding order is changed, and the total system delay is minimized as the optimization goal, and a mathematical model is established;
[0094] The changing of the SIC decoding order is specifically as follows: the user decoding order is arranged in ascending order of task priority, the user with a low task priority is decoded first, and the user with a high task priority is decoded later;
[0095] Vehicle User V n The task transfer rate is:
[0096]
[0097] Where B is the system bandwidth, p n For user V n The transmission power, For user V n The SIC decoding order within the mth cluster, The larger user is decoded first. The mean of the Gaussian white noise at the RSU is 0 and the variance is
[0098] The mathematical model is:
[0099]
[0100] Among them, C1-C6 are constraints, and constraint C1 means that user V n The transmission power cannot exceed the maximum transmission power; constraint C2 indicates that the task offloading amount must not exceed the total task amount; C3 ensures that the user task is processed within the allowed delay; C4 is a constraint on user energy consumption; C5-C6 are constraints on computing resources, C5 indicates that the computing resources allocated to all users cannot exceed the total computing resources owned by the MEC server, which can ensure that the computing resources are fully utilized, and C6 indicates that the computing resources allocated to the user cluster will not be less than 0.
[0101] (4) The artificial hummingbird algorithm is improved by using chaotic mapping, adaptive Levy flight strategy and whale algorithm. Meanwhile, the constraint correction of the hummingbird position is considered to achieve the joint optimization solution of task offloading and resource allocation problems.
[0102] The chaotic mapping is used to initialize the hummingbird population and increase the diversity of individuals in the population. The mapping expression is:
[0103]
[0104] Among them, r is the chaos parameter, which usually takes a value between [0,2];
[0105] Chaotic vector Z generated by tent mapping i , you can initialize the hummingbird population:
[0106] x i =Low+(Up-Low)·Z.
[0107] The adaptive Levy flight strategy is used to update the step length and combine it with guided foraging and territorial foraging to expand the search range of the algorithm; the random step length calculation formula is as follows:
[0108]
[0109] Among them, u and v obey u~N(0,σ 2 ),ν~N(0,1), where
[0110]
[0111] Where θ is the Levy constant, which is usually [0,2], Γ is the factorial calculation function, Γ(N+1)=N!;
[0112] The improved guided foraging and territory foraging candidate locations are expressed as:
[0113] v i (t+1)=x i,tar (t)+Levy·D·[x i (t)-x i,tar (t)]
[0114] v i (t+1)=x i (t)+Levy·b·D·x i (t)
[0115] Where D is the flight vector, x i (t) represents the food source location of the i-th hummingbird at the current time t, x i,tar (t) represents the location of the target food source that the i-th hummingbird intends to visit, v i (t+1) is the new food source location of the hummingbird, that is, the new candidate solution, b is the flight step length of the territory foraging, b=rand().
[0116] The whale algorithm is used to adjust the migration foraging strategy, and the spinning net hunting behavior of the whale algorithm is integrated into the migration foraging process of hummingbirds. The improved migration foraging expression is:
[0117] x i (t+1)=ω(t)·x best (t)+|x best (t)-x i (t)|·e vl ·cos(2πl)
[0118] Among them, x best (t) is the global optimal solution, ω(t) is the adaptive inertia weight, v is the coefficient in the screw equation, and l is a random number in [-1,1].
[0119] The adaptive inertia weight calculation formula is as follows:
[0120]
[0121] Among them, ω max is the maximum initial value of the inertia weight, ω min is the minimum initial value of inertia weight, α 1 is the adaptive convergence factor.
[0122] The specific method of constraining the position of the hummingbird is as follows: the initial position of the hummingbird individual is represents the offloading ratio of user i allocated to local computing, The offload ratio of user i allocated to the MEC server calculation must satisfy f i MEC is the ratio of computing resources allocated by the MEC server to user i, ensuring that the total computing resources allocated by MEC does not exceed the maximum computing resources; p i is the transmission power of user i, which is ensured to be less than the maximum transmission power. After constraining the hummingbird position according to the above constraints, the hummingbird position matrix X' is obtained. Since the values of the hummingbird population after initialization are random values and do not meet the constraints of the aforementioned mathematical model, it is necessary to constrain the particles that do not meet the requirements according to the hummingbird position constraint correction algorithm in Table 1.
[0123] Table 1 Hummingbird position constraint correction algorithm
[0124]
[0125] This example is based on the artificial hummingbird algorithm, and adds chaos mapping, Levy flight strategy and whale algorithm to improve the population initialization and migration strategy in the AHA algorithm. At the same time, the constraint correction of the hummingbird position is considered to achieve the joint optimization solution of task offloading and resource allocation problems. The flowchart of the joint optimization solution of task offloading and resource allocation problems is as follows: Figure 3 As shown, the specific steps include:
[0126] Step 1. Initialize various parameters, including population size, maximum number of iterations, and variable range;
[0127] Step 2. Generate the position of the initial population using chaotic mapping and calculate the fitness value of each individual;
[0128] Step 3. Initialize the optimal position and optimal value, find the individual with the best fitness in the initial population, record its position and fitness value, and initialize the access table;
[0129] Step 4. Randomly select three flight skills: omnidirectional flight, axial flight, and diagonal flight to update the flight direction vector table;
[0130] Step 5. Select guided foraging or territorial foraging according to different probabilities, update the position, and then update the visit table. While updating the position, ensure that the position is within the appropriate range through motion smoothing and boundary processing;
[0131] Step 6. When the number of iterations t reaches the migration coefficient M, the hummingbird migration foraging strategy updates the position and then updates the visit table;
[0132] Step 7. Update the optimal position and optimal fitness value of the hummingbird;
[0133] Step 8. Determine whether the maximum number of iterations has been reached. If not, re-enter step 3 until the iteration ends, end the loop, output the optimal result, and obtain the optimal unloading strategy.
[0134] Simulation experiment:
[0135] Based on the MATLAB2021a simulation platform, the experimental verification is carried out. In order to verify the effectiveness of the proposed algorithm, a comparative experiment is designed. In the NOMA-MEC scenario, consider N vehicle users and set the computing task data size D n 10~50kbit, task computing intensity C n The simulation parameters are shown in Table 2.
[0136] Table 2 Parameter settings
[0137]
[0138] In order to test the optimization performance of the improved algorithm, the following four intelligent optimization algorithms are selected for comparison and solving the model: based on the improved artificial hummingbird algorithm (i.e. the improved artificial hummingbird algorithm in Example 1, denoted as IAHA), the original artificial hummingbird algorithm (denoted as AHA), the gray wolf algorithm (denoted as GWO) and the particle swarm algorithm (denoted as PSO). The population size of all algorithms is uniformly set to 500, the maximum number of iterations is set to 200, 50 experiments are performed independently, and the average value of the running results is taken as the optimization result. The comparison algorithms are all experimented with the unloading model in the present invention.
[0139] Figure 4The convergence of the total system delay under the MAHA unloading scheme, IAHA unloading scheme and AHA unloading scheme under the same simulation conditions shows that the total system delay decreases with the increase of the number of iterations, and all three algorithms can reach convergence. Compared with the original algorithm, the improved artificial hummingbird algorithm adds chaotic mapping in the population initialization stage, which makes the total system delay corresponding to the initial position of MAHA lower; secondly, the convergence curve of MAHA is below that of IAHA and AHA algorithms, indicating that it has the fastest convergence speed, and when the convergence curve of MAHA reaches the maximum number of iterations, the total system delay is the smallest, indicating that its convergence accuracy is also the highest.
[0140] Figure 5 This is the relationship between the total system delay and the number of vehicle users under the joint optimization scheme of Example 1 and the MAHA scheme, AHA scheme, GWO scheme, and PSO scheme. It can be seen that with the increase in the number of vehicle users, the total system delay under all schemes is gradually increasing. When the number of vehicles (N≤12), the performance of the unloading strategy under the MAHA algorithm is close to that under the IAHA algorithm. When the number of vehicles (N≥12), MAHA is slightly better than the IAHA algorithm, which is obviously due to the other three schemes. In addition, as the number of vehicle users increases, the gap in system delay between the MAHA scheme and the other four schemes becomes larger. This is because when the number of vehicle users increases, there will be serious resource competition between vehicles and lower system energy efficiency. Therefore, according to the strategy proposed in this article, the unloading decision and resource allocation problems of NOMA-MEC are optimized, which can effectively reduce the total system delay.
[0141] Figure 6 The relationship between the total system delay and the amount of task data under the joint optimization scheme of Example 1 and the MAHA scheme, AHA scheme, GWO scheme, and PSO scheme. It can be seen that with the increase in the amount of task data, the total system delay under all schemes is gradually increasing. This is because with the increase in the amount of task data, the task will consume more delay in the process of local calculation and offloading calculation, but the upward trend of the MAHA algorithm is the smallest and always remains the lowest, which shows that the MAHA scheme has the best unloading effect. When the task data volume is 50kb, the total delay under the MAHA strategy is reduced by 41.55% compared with IAHA, 84.97% compared with AHA, 89% compared with GWO, and 89.53% compared with PSO.
[0142] Figure 7 To illustrate the relationship between the total system delay and the SIC decoding order under the joint optimization scheme and the MAHA scheme in Example 1, this experiment conducted two sets of comparative experiments based on the MAHA scheme and the IAHA scheme, and analyzed the system delay under the decoding mechanism based on the traditional channel gain and the decoding mechanism based on the task priority. Figure 7It can be seen that as the number of vehicle users increases, the system delay gradually increases, and the delay obtained by the offloading strategy based on task priority decoding is lower than the delay obtained by the channel gain decoding strategy. This is because in the SIC decoding mechanism based on task priority proposed in this paper, the user decoding order is arranged in ascending order of task priority. Users with low task priority are decoded first, and users with high priority are decoded later. In addition, users with high priority can remove interference by decoding users with low priority first to improve the signal-to-interference-noise ratio, increase system throughput, and reduce transmission delay, thereby reducing the total system delay.
[0143] The above are only preferred embodiments of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should be regarded as the protection scope of the present invention.
Claims
1. A joint optimization method for task offloading and resource allocation in a NOMA-assisted connected vehicle system. It is characterized in that The following steps are involved: (1) Combine NOMA technology with the MEC-based IOV system, build an IOV system model based on the IOV multi-user application scenario, and initialize relevant parameters; (2) Based on the IoV system model constructed in step (1), a task offloading model in an IoV scenario is constructed; (3) Based on the task offloading model constructed in step (2), the transmission power of vehicle users and the computing resources of MEC servers are used as constraints, the task priority of vehicle users is considered, the SIC decoding order is changed, and the total system delay is minimized as the optimization goal, and a mathematical model is established; (4) The artificial hummingbird algorithm is improved by using chaotic mapping, adaptive Levy flight strategy and whale algorithm. Meanwhile, the constraint correction of the hummingbird position is considered to achieve the joint optimization solution of task offloading and resource allocation problems.
2. The joint optimization method for task offloading and resource allocation in the NOMA-assisted connected vehicle system as claimed in claim 1, It is characterized in that In step (1), the Internet of Vehicles system model includes roadbed equipment RSU, MEC server and N vehicle users VUE; Each VUE has a delay-sensitive visual processing task that needs to be offloaded to the RSU to be processed by the MEC server. Each visual processing task has different delay sensitivities, that is, different vehicle users have different priorities. The tasks are described as: Where D n Represents user V n The total amount of tasks that need to be calculated, C n represents the computing resources required for each bit task, χ n Indicates V n The task priority weight, χ n The larger the value is, the higher the priority of the task. The range of priority weight factor is Indicates V n The maximum task computation delay limit, Indicates V n The maximum task computing energy consumption limit.
3. The joint optimization method for task offloading and resource allocation in the NOMA-assisted Internet of Vehicles system as claimed in claim 1, It is characterized in that In step (3), the SIC decoding order is changed specifically as follows: the user decoding order is arranged in ascending order of task priority, the user with a low task priority is decoded first, and the user with a high priority is decoded later; Vehicle User V n The task transfer rate is: Where B is the system bandwidth, p n For user V n The transmission power, For user V n The SIC decoding order within the mth cluster, The larger user is decoded first. The mean of the Gaussian white noise at the RSU is 0 and the variance is 4. The joint optimization method for task offloading and resource allocation in the NOMA-assisted Internet of Vehicles system as claimed in claim 1, It is characterized in that In step (3), the mathematical model is: Among them, C1-C6 are constraints, and constraint C1 means that user V n The transmission power cannot exceed the maximum transmission power; constraint C2 indicates that the task offloading amount cannot exceed the total task amount; C3 ensures that user tasks are processed within the allowed delay; C4 is a constraint on user energy consumption; C5-C6 are constraints on computing resources. C5 means that the computing resources allocated to all users cannot exceed the total computing resources owned by the MEC server, which can ensure that the computing resources are fully utilized. C6 means that the computing resources allocated to the user cluster will not be less than 0.
5. The joint optimization method for task offloading and resource allocation in the NOMA-assisted Internet of Vehicles system as claimed in claim 1, It is characterized in that In step (4), the chaotic mapping is used to initialize the hummingbird population and increase the diversity of individuals in the population. The mapping expression is: Among them, r is the chaos parameter, which usually takes a value between [0,2]; Chaotic vector Z generated by tent mapping i , you can initialize the hummingbird population: x i =Low+(Up-Low)·Z。 6. The joint optimization method for task offloading and resource allocation in the NOMA-assisted connected vehicle system as claimed in claim 1, It is characterized in that In step (4), the adaptive Levy flight strategy is used to update the step length, and is combined with guided foraging and territorial foraging to expand the search range of the algorithm; the random step length calculation formula is as follows: Among them, u and v obey u~N(0,σ 2 ),ν~N(0,1), where Where θ is the Levy constant, which is usually [0,2], Γ is the factorial calculation function, Γ(N+1)=N!; The improved guided foraging and territory foraging candidate locations are expressed as: v i (t+1)=x i,tar (t)+Levy·D·[x i (t)-x i,tar (t)] v i (t+1)=x i (t)+Levy·b·D·x i (t) Where D is the flight vector, x i (t) represents the food source location of the i-th hummingbird at the current time t, x i,tar (t) represents the location of the target food source that the i-th hummingbird intends to visit, v i (t+1) is the new food source location of the hummingbird, that is, the new candidate solution, b is the flight step length of the territory foraging, b=rand().
7. The joint optimization method for task offloading and resource allocation in the NOMA-assisted Internet of Vehicles system as claimed in claim 1, It is characterized in that In step (4), the whale algorithm is used to adjust the migration foraging strategy, and the rotating net hunting behavior of the whale algorithm is integrated into the hummingbird migration foraging process. The improved migration foraging expression is: x i (t+1)=ω(t)·x best (t)+|x best (t)-x i (t)|·e vl ·cos(2πl) Among them, x best (t) is the global optimal solution, ω(t) is the adaptive inertia weight, v is the coefficient in the screw equation, and l is a random number in [-1,1]. The adaptive inertia weight calculation formula is as follows: Among them, ω max is the maximum initial value of the inertia weight, ω m in is the minimum initial value of inertia weight, α 1 is the adaptive convergence factor.
8. The joint optimization method for task offloading and resource allocation in the NOMA-assisted Internet of Vehicles system as claimed in claim 1, It is characterized in that In step (4), the specific method of constraining the position of the hummingbird is as follows: the initial position of the hummingbird individual is represents the offloading ratio of user i allocated to local computing, The offload ratio of user i allocated to the MEC server calculation must satisfy f i MEC is the ratio of computing resources allocated by the MEC server to user i, ensuring that the total computing resources allocated by MEC does not exceed the maximum computing resources; p i is the transmit power of user i, which is ensured to be less than the maximum transmit power. After constraining the hummingbird position according to the above constraints, the hummingbird position matrix X' is obtained.
9. The joint optimization method for task offloading and resource allocation in the NOMA-assisted connected vehicle system as claimed in claim 1, It is characterized in that In step (4), the joint optimization solution to the task offloading and resource allocation problem includes the following steps: Step 1. Initialize various parameters, including population size, maximum number of iterations, and variable range; Step 2. Generate the position of the initial population using chaotic mapping and calculate the fitness value of each individual; Step 3. Initialize the optimal position and optimal value, find the individual with the best fitness in the initial population, record its position and fitness value, and initialize the access table; Step 4. Randomly select three flight skills: omnidirectional flight, axial flight, and diagonal flight to update the flight direction vector table; Step 5. Select guided foraging or territorial foraging according to different probabilities, update the position, and then update the visit table. While updating the position, ensure that the position is within the appropriate range through motion smoothing and boundary processing; Step 6. When the number of iterations t reaches the migration coefficient M, the hummingbird migration foraging strategy updates the position and then updates the visit table; Step 7. Update the optimal position and optimal fitness value of the hummingbird; Step 8. Determine whether the maximum number of iterations has been reached. If not, re-enter step 3 until the iteration ends, end the loop, output the optimal result, and obtain the optimal unloading strategy.
Citation Information
Cited By
Novel IIOT-MEC task unloading method oriented to time delay and energy consumption joint optimization
CN118972903A
Resource allocation method based on meta-heuristic optimization strategy
CN119743798A
Speed control method for high-speed water pump engine
CN120042706A
