CN115915278B - Task unloading method for Internet of vehicles - Google Patents
Task unloading method for Internet of vehicles Download PDFInfo
- Publication number
- CN115915278B CN115915278B CN202310194757.8A CN202310194757A CN115915278B CN 115915278 B CN115915278 B CN 115915278B CN 202310194757 A CN202310194757 A CN 202310194757A CN 115915278 B CN115915278 B CN 115915278B
- Authority
- CN
- China
- Prior art keywords
- user
- system loss
- solution
- task
- representing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 13
- 238000004364 calculation method Methods 0.000 claims abstract description 16
- 230000005540 biological transmission Effects 0.000 claims description 21
- 238000005265 energy consumption Methods 0.000 claims description 20
- 230000007704 transition Effects 0.000 claims description 17
- 238000004422 calculation algorithm Methods 0.000 claims description 12
- 239000003016 pheromone Substances 0.000 claims description 6
- 241000257303 Hymenoptera Species 0.000 claims description 3
- 230000003595 spectral effect Effects 0.000 claims description 3
- 230000006870 function Effects 0.000 description 14
- 206010042135 Stomatitis necrotising Diseases 0.000 description 7
- 201000008585 noma Diseases 0.000 description 7
- 238000001228 spectrum Methods 0.000 description 4
- 230000007423 decrease Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000013135 deep learning Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000002068 genetic effect Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 239000003595 mist Substances 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 238000013468 resource allocation Methods 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a task unloading method oriented to the Internet of vehicles, which relates to the field of mobile edge calculation and comprises the following steps: s1, constructing a system loss model; s2, calculating the system loss and the overall constraint violation degree of an initial solution of a system loss model; s3, ordering initial solutions of the system loss model, and initializing weights of the initial solutions of the system loss model; when the global constraint violation of the non-feasible solution is at the thresholdεWhen inside, as a feasible solution; s4, solving a system loss model to obtainMNew solutions; s5, obtaining the current optimal feasible solution, and repeating the step S3 to the step until the preset times to obtain the optimal feasible solution which minimizes the system loss; and S6, taking the optimal feasible solution as an internet of vehicles task unloading strategy. The invention considers the problem that the residence time of the user in the RSU service range is smaller than the round trip time of the unloading task between the two, reduces the system loss and improves the frequency utilization rate.
Description
Technical Field
The invention relates to the field of mobile edge calculation, in particular to a task unloading method oriented to the Internet of vehicles.
Background
Thanks to the advent of mobile edge computing (mobile edge computing, MEC), vehicle users can offload part of the computation-intensive tasks to Roadside Service Units (RSUs) for execution to alleviate the trouble of local resource limitation, thereby reducing the computation latency and the energy consumption of the costs of the tasks. Currently, there have been many related studies including: considering the situation of concurrent multiple multi-priority computing tasks and uneven resource load of the MEC server, providing an unloading strategy based on a genetic algorithm so as to improve the unloading success rate of the security type tasks; the method comprises the steps of providing a combined calculation unloading, calculation resource and wireless resource allocation algorithm under a cloud and mist mixed network architecture, and minimizing system energy consumption and resource cost on the premise of meeting time delay requirements; an orthogonal frequency division multiple access (orthogonal frequencydivision multiple access, OFDMA) technology is adopted for communication among nodes, one sub-channel can only be used by one user in a certain time, and the spectrum utilization rate is low; a policy that minimizes reasonable time allocation and computation offloading of MEC system computation time periods for a plurality of wireless sensor devices to minimize computation periods; a deep learning network-based gaming algorithm optimizes user offload latency and energy consumption, however, RSU service coverage is limited and users are typically mobile, so that if the user's residence time in the RSU service coverage is less than the round trip time of the offload task between the two, the task result will fail back.
Disclosure of Invention
Aiming at the defects in the prior art, the task unloading method for the Internet of vehicles solves the problems of low spectrum utilization rate, low inspection efficiency and high system loss in the prior art.
In order to achieve the aim of the invention, the invention adopts the following technical scheme: a task unloading method facing the Internet of vehicles comprises the following steps:
s1, acquiring user data and constructing a system loss model;
s2, initializing parameters of a system loss model, and calculating system loss and overall constraint violation degree of an initial solution of the system loss model;
s3, sorting initial solutions of the system loss model according to the system loss, and initializing weights of the initial solutions of the system loss model; when the global constraint violation of the non-feasible solution is at the thresholdεWhen the solution is within, the solution is regarded as a feasible solution to be subjected to sorting treatment;
s4, solving a system loss model through an ant colony algorithm to obtain a sub-channel comprising a user task unloading proportion, user transmission power and user usageMNew solutions;
s5, sorting the new solutions and the initial solutions of the system loss model to obtain the current optimal feasible solution, and repeating the step S3 to the step until the preset times to obtain the optimal feasible solution which minimizes the system loss;
and S6, taking the optimal feasible solution which minimizes the system loss as an Internet of vehicles task unloading strategy.
Further, the specific implementation manner of step S1 is as follows:
constructing a system loss model:
wherein ,representing minimum system loss; />Representing a system loss function; />A solution representing a system loss function; />Representing user +.>Task unloading time; />Representing user +.>The length of the resident time RSU service section in the RSU service range is +.>User->Is +.>,/>The position of (2) is +.>;/>Representing sharing ofUA user;CHrepresenting sharing ofCHSubchannel, & gt>;/>Representing user +.>Task offload ratio of (2); />Representing user +.>Is used for the transmission power of the (a); />Representing user +.>The sub-channels used; />Representing the user's preference between latency and energy consumption; />Representing user +.>The computation delay of all tasks executed locally; />Representing user +.>The energy consumed by all tasks performed locally; />Representing user +.>Total energy consumption required by a task; />For user->Actual computation delay of task,/->For user->Local calculation time delay of the task; />Representing a userIn subchannel->Channel gain on; />Is->At->Power gain on; />Is the path loss coefficient; />Representing a transmission power threshold; />Representing user +.>In subchannel->Channel gain on the upper.
Further, in step S1, the userTotal energy consumption required for a task, user +.>The specific implementation mode of the task unloading time is as follows: />
According to the formula:
obtaining local calculation energy consumptionAnd user->Local computation delay of task->; wherein ,/>For user->CPU average power,/,>is->CPU power consumption coefficient of the same; />For user->The working frequency of the local CPU; />Representing the size of the task data; />Representing the number of CPU cycles required to calculate each bit of data;
according to the formula:
obtaining the user received by the RSUSignal-to-interference-plus-noise ratio of signal>The method comprises the steps of carrying out a first treatment on the surface of the The number of users in the set isS;Indicating all used subchannels>Is a set of users; />For usersDistance between RSU and->Distance between RSU and service section; />Representing user +.>Is used for the transmission power of the (a); />Maximum transmission power for the user; />Is Gaussian white noise power spectral density; />The bandwidth allocated for each sub-channel for the RSU;
according to the formula:
According to the formula:
According to the formula:
obtaining the calculation time delay required by the RSU to execute the task; wherein ,/>For RSU server for user +.>CPU working frequency allocated by the unloaded task;
according to the formula:
obtaining the userTask offloading latency->And user->Total energy consumption required for a task->。
Further, the specific implementation manner of step S2 is as follows:
s2-1, initializing the number of initial solutions in the ant colonyKInitializing weights of an initial solutionNumber of antsMUpper limit of iteration numberT,Overall constraint violation mean of all non-viable solutions in ant colonyε;
S2-2, according to the formula:
obtaining an overall constraint violation function; wherein ,/>A violation degree function for time constraint;a violation degree function for the power constraint; when->When (I)>For the system loss function->Or else, a non-viable solution;
s2-3, calculating the system loss of all solutions according to the system loss function, and calculating the overall constraint violation of all solutions according to the overall constraint violation function.
Further, the specific implementation manner of step S3 is as follows:
s3-1, according to the formula:
based on the possible and non-possible solutions together in an ant colonyεIs a comparison ordering of (2);indicate->System loss of individual solutions,/->Indicate->System loss of the solution; />Indicate->A solution power constraint violation degree; />Indicate->Power constraint violation degrees of the individual solutions;
s3-2, according to the formula:
obtaining a subchannelWeight of +.>And initial solution->Weight of +.>; wherein ,/>Is a super parameter; />The more preferred is that,the greater the +.>The thicker the pheromone is left, the ant is +.>Is-> and />The greater the probability of nearby movement;for users in ant colony->Sub-channel +.>Weights of the optimal solution of ∈1->For users in ant colony->Sub-channel +.>The number of solutions of>Indicating the number of sub-channels that are not used by the users in all solutions in the ant colony.
Further, the specific implementation manner of step S4 is as follows:
s4-1, according to the formula:
s4-2, according to the formula:
get ants to move toContinuous zoneProbability of transition at any point in the space +.>;/>Solution selected for ants->Middle user->Task offload ratio of (2); />,/>Is a super parameter; />
S4-3, according to the transition probabilityRandomly move to interval +.>Any point in the above, get the user in the new solutionTask offloading ratio of->;
S4-4, according to the formula:
S4-5, according to the transition probabilityIn the continuous interval +.>Randomly moving to any point to obtain user +.>Is +.>;
S4-6, according to the formula:
s4-7, according to the sub-channel transition probability of the userMove to discrete interval +.>Inner one point->Obtaining the user's->Subchannel number->;
S4-8, according to the users in the new solutionSubchannel number->User->Is +.>And user ∈>Task offloading ratio of->Obtaining ant->A new solution of 3 XU times in the value space of each variable>;
S4-9, repeating the steps S4-1 to S4-8 untilMNext, obtainMNew solutions are provided.
Further, the specific implementation manner of step S5 is as follows:
s5-1, to be obtainedMNew solutions and current existing solutionsKThe solutions are subjected to epsilon-based comparison and sorting, and used beforeKThe original solution in the ant colony is replaced by the optimal solution to obtain a replaced solution;
s5-2, judging whether the current iteration reaches the set times, if so, outputting an optimal feasible solution which minimizes the system loss; otherwise, enter step S5-3;
s5-3, calculating the pheromone of the replaced solution, namely the weight of the replaced solution;
s5-4, according to the formula:
obtaining the current iteration timesAdding 1 to the iteration times and returning to the step S5-1; wherein (1)>For the current iteration number>For the upper limit of the iteration number, +.>For the initialized global constraint violation mean value of all non-feasible solutions in the ant colony->For the proportion of feasible solutions in the current ant colony, < >> and />Are super parameters; when->In the time-course of which the first and second contact surfaces,εthe value of (2) decreases exponentially with increasing iteration number, when +.>In the time-course of which the first and second contact surfaces,εthe value of (2) is adjusted to approximately the initial value +.>The proportion of the non-feasible solution is too low, so that the acceptance degree of the non-feasible solution is properly improved; the initial value of the iteration number is 0.
The beneficial effects of the invention are as follows: the invention comprehensively considers the RSU service range pairsEstablishing a system loss model under the constraint of unloading decision, and adding a model based on a mixed variable ant colony algorithmεThe constraint processing technology of the system has smaller system loss and high spectrum utilization rate, and effectively improves the task unloading efficiency of the user.
Drawings
FIG. 1 is a flow chart of the present invention;
FIG. 2 is a block diagram of a system according to the present invention;
FIG. 3 is a graph comparing the effects of user speed on system loss for different approaches;
FIG. 4 is a graph comparing the effect of the number of users on the system loss for different methods.
Detailed Description
The following description of the embodiments of the present invention is provided to facilitate understanding of the present invention by those skilled in the art, but it should be understood that the present invention is not limited to the scope of the embodiments, and all the inventions which make use of the inventive concept are protected by the spirit and scope of the present invention as defined and defined in the appended claims to those skilled in the art.
As shown in fig. 1, a task unloading method for internet of vehicles includes the following steps:
s1, acquiring user data and constructing a system loss model;
s2, initializing parameters of a system loss model, and calculating system loss and overall constraint violation degree of an initial solution of the system loss model;
s3, sorting initial solutions of the system loss model according to the system loss, and initializing weights of the initial solutions of the system loss model; when the global constraint violation of the non-feasible solution is at the thresholdεWhen the solution is within, the solution is regarded as a feasible solution to be subjected to sorting treatment;
s4, solving a system loss model through an ant colony algorithm to obtain a sub-channel comprising a user task unloading proportion, user transmission power and user usageMNew solutions;
s5, sorting the new solutions and the initial solutions of the system loss model to obtain the current optimal feasible solution, and repeating the step S3 to the step until the preset times to obtain the optimal feasible solution which minimizes the system loss;
and S6, taking the optimal feasible solution which minimizes the system loss as an Internet of vehicles task unloading strategy.
Further, the specific implementation manner of step S1 is as follows:
constructing a system loss model:
wherein ,representing minimum system loss; />Representing a system loss function; />A solution representing a system loss function; />Representing user +.>Task unloading time; />Representing user +.>The residence time within the RSU service range; the length of the RSU service section is +.>User->Is +.>,/>The position of (2) is +.>;/>Representing sharing ofUA user;CHrepresenting sharing ofCHSubchannel, & gt>;/>Representing user +.>Task offload ratio of (2); />Representing user +.>Is used for the transmission power of the (a); />Representing user +.>The sub-channels used; />Representing the user's preference between latency and energy consumption; />Representing user +.>The computation delay of all tasks executed locally; />Representing user +.>The energy consumed by all tasks performed locally; />Representing user +.>Total energy consumption required by a task; />For user->Actual computation delay of task,/->For user->Local calculation time delay of the task; />Representing user +.>In subchannel->Channel gain on; />Is->At->Power gain on; />Is the path loss coefficient; />Representing a transmission power threshold; />Representing user +.>In subchannel->Channel gain on the upper.
In step S1, the userTotal energy consumption required for a task, user +.>The specific implementation mode of the task unloading time is as follows:
according to the formula:
obtaining local calculation energy consumptionAnd user->Local computation delay of task->; wherein ,/>For user->CPU average power,/,>is->CPU power consumption coefficient of the same; />For user->The working frequency of the local CPU; />Representing the size of the task data; />Representing the number of CPU cycles required to calculate each bit of data;
according to the formula:
get user received by RSU->Signal-to-interference-plus-noise ratio of signal>The method comprises the steps of carrying out a first treatment on the surface of the The number of users in the set isS;/>Indicating all used subchannels>Is a set of users; />For user->Distance between RSU and->Distance between RSU and service section; />Representing user +.>Is used for the transmission power of the (a); />Maximum transmission power for the user; />Is Gaussian white noise power spectral density; />The bandwidth allocated for each sub-channel for the RSU;
according to the formula:
According to the formula:
According to the formula:
obtaining the calculation time delay required by the RSU to execute the task; wherein ,/>For RSU server for user +.>CPU working frequency allocated by the unloaded task;
according to the formula:
obtaining the userTask offloading latency->And user->Total energy consumption required for a task->。
The specific implementation manner of the step S2 is as follows:
s2-1, initializing the number of initial solutions in the ant colonyKInitializing weights of an initial solutionNumber of antsMUpper limit of iteration numberT,Overall constraint violation mean of all non-viable solutions in ant colonyε;
S2-2, according to the formula:
obtaining an overall constraint violation function; wherein ,/>A violation degree function for time constraint;a violation degree function for the power constraint; when->When (I)>For the system loss function->Or else, a non-viable solution;
s2-3, calculating the system loss of all solutions according to the system loss function, and calculating the overall constraint violation of all solutions according to the overall constraint violation function.
The specific implementation manner of the step S3 is as follows:
s3-1, according to the formula:
based on the possible and non-possible solutions together in an ant colonyεIs a comparison ordering of (2);indicate->System loss of individual solutions,/->Indicate->System loss of the solution; />Indicate->A solution power constraint violation degree; />Indicate->Power constraint violation for individual solutionsA degree;
s3-2, according to the formula:
obtaining a subchannelWeight of +.>And initial solution->Weight of +.>; wherein ,/>Is a super parameter; />The more preferred is that,the greater the +.>The thicker the pheromone is left, the ant is +.>Is-> and />The greater the probability of nearby movement;for users in ant colony->Sub-channel +.>Weights of the optimal solution of ∈1->For users in ant colony->Sub-channel +.>The number of solutions of>Indicating the number of sub-channels that are not used by the users in all solutions in the ant colony.
The specific implementation manner of the step S4 is as follows:
s4-1, according to the formula:
s4-2, according to the formula:
get ants to move toTransition probability of any point in continuous interval +.>;/>Solution selected for ants->Middle user->Task offload ratio of (2); />,/>Is a super parameter;
s4-3, according to the transition probabilityRandomly move to interval +.>Any point in the above, get the user in the new solutionTask offloading ratio of->;
S4-4, according to the formula:
S4-5, according to the transition probabilityIn the continuous interval +.>Randomly moving to any point to obtain user +.>Is +.>;
S4-6, according to the formula:
s4-7, according to the sub-channel transition probability of the userMove to discrete interval +.>Inner one point->Obtaining the user's->Subchannel number->;
S4-8, according to the users in the new solutionSubchannel number->User->Is +.>And user ∈>Task offloading ratio of->Obtaining ant->A new solution of 3 XU times in the value space of each variable>;
S4-9, repeating the steps S4-1 to S4-8 untilMNext, obtainMNew solutions are provided.
The specific implementation manner of the step S5 is as follows:
s5-1, to be obtainedMNew solutions and current existing solutionsKThe solutions are subjected to epsilon-based comparison and sorting, and used beforeKThe original solution in the ant colony is replaced by the optimal solution to obtain a replaced solution;
s5-2, judging whether the current iteration reaches the set times, if so, outputting an optimal feasible solution which minimizes the system loss; otherwise, enter step S5-3;
s5-3, calculating the pheromone of the replaced solution, namely the weight of the replaced solution;
s5-4, according to the formula:
obtaining the current iteration timesAdding 1 to the iteration times and returning to the step S5-1; wherein (1)>For the current iteration number>For the upper limit of the iteration number, +.>For the initialized global constraint violation mean value of all non-feasible solutions in the ant colony->For the proportion of feasible solutions in the current ant colony, < >> and />Are super parameters; when->In the time-course of which the first and second contact surfaces,εthe value of (2) decreases exponentially with increasing iteration number, when +.>In the time-course of which the first and second contact surfaces,εthe value of (2) is adjusted to approximately the initial value +.>The proportion of the non-feasible solution is too low, so that the acceptance degree of the non-feasible solution is properly improved; the initial value of the iteration number is 0.
As shown in fig. 2, NOMA-basedA single RSU in a car networking environment serves multiple users, with the RSU being equipped with edge servers to assist in computing the tasks offloaded by the users. NOMA allows each sub-channel to be used by a plurality of users at the same time, so that the task unloading efficiency of the users can be greatly improved; each user generates a plurality of tasks which are not decomposed and are not associated with each other, and the network topology structure and the channel gain between the RSU and the user are kept unchanged from the beginning of task unloading of the user to the end of returning the calculation result to the user by the RSU. RSU hasCHAnd the available mutually orthogonal sub-channels. Within the service range of RSUUThe number of users is far greater than the number of sub-channels, i.e。
As shown in fig. 3 and fig. 4, as the number of users increases, the number of computing resources allocated to each task by the RSU server decreases, increasing the computation delay for offloading tasks, and at the same time, as the inter-channel interference increases, the transmission energy consumption and the delay increase, which results in a corresponding increase in system loss of all algorithms. It can also be seen that the performance of the present invention is similar to NOMA-B and OFDMA when the number of users is small, whereas the system loss of the present invention is lower than other algorithms when the number of users increases. When (when)UWhen=29, the system loss of the present invention is 21.14%, 17.33% and 6.79% lower than AL, OFDMA and NOMA-B, respectively. When the upper limit of the transmission power of the user is changed between 17dBm and 31dBm, the system loss of the invention is lower than that of other algorithms. When the upper limit of the user transmission power is 31dBm, the system loss of the present invention is 38.00%, 15.74% and 8.54% lower than AL, OFDMA and NOMA-B, respectively.
In one embodiment of the present invention, the present invention is compared with the system losses of AL, NOMA-B and OFDMA under the same parameters, and the simulation environment parameters and the policy-related parameter results are shown in tables 1 and 2.
TABLE 1
TABLE 2
As can be seen from tables 1 and 2, the system loss of the invention is lower than other strategies at different speeds, when the user speed is gradually increased from 10m/s to 40m/s, the residence time of the user in the service range of the RSU is reduced, so that the user can reduce the task proportion unloaded to the RSU in order to ensure that the RSU can return the calculation result to the requesting vehicle within the residence time of the RSU, and the local calculation energy consumption is increased. The system losses of the present invention are reduced by 34.62%, 17.55% and 8.23% compared to AL, OFDMA and NOMA-B, respectively, when the user speed reaches 40m/s, and by 38.05%, 14.28% and 7.08% when the user speed is 10m/s, respectively.
The invention comprehensively considers the constraint of the RSU service range on the unloading decision, establishes a system loss model, and adds a load-based algorithm based on the mixed variable ant colony algorithmεThe constraint processing technology of the system has smaller system loss and high spectrum utilization rate, and effectively improves the task unloading efficiency of the user.
Claims (1)
1. The task unloading method for the Internet of vehicles is characterized by comprising the following steps of:
s1, acquiring user data and constructing a system loss model;
s2, initializing parameters of a system loss model, and calculating system loss and overall constraint violation degree of an initial solution of the system loss model;
s3, sorting initial solutions of the system loss model according to the system loss, and initializing weights of the initial solutions of the system loss model; when the global constraint violation of the non-feasible solution is at the thresholdεWhen the solution is within, the solution is regarded as a feasible solution to be subjected to sorting treatment;
s4, solving a system loss model through an ant colony algorithm to obtain a sub-channel comprising a user task unloading proportion, user transmission power and user usageMNew solutions;
s5, sorting the new solutions and the initial solutions of the system loss model to obtain the current optimal feasible solution, and repeating the step S3 to the step until the preset times to obtain the optimal feasible solution which minimizes the system loss;
s6, taking the optimal feasible solution which minimizes the system loss as an Internet of vehicles task unloading strategy;
the specific implementation manner of the step S1 is as follows:
constructing a system loss model:
wherein ,representing minimum system loss; />Representing a system loss function; />A solution representing a system loss function; />Representing user +.>Task unloading time; />Representing user +.>The residence time in the RSU service area, the length of the RSU service section is +.>User->Is +.>,/>The position of (2) is +.>;/>Representing sharing ofUA user;CHrepresenting sharing ofCHSubchannel, & gt>;/>Representing user +.>Task offload ratio of (2); />Representing a userIs used for the transmission power of the (a); />Representing user +.>The sub-channels used; />Representing the user's preference between latency and energy consumption; />Representing user +.>The computation delay of all tasks executed locally; />Representing user +.>The energy consumed by all tasks performed locally; />Representing user +.>Total energy consumption required by a task; />For user->Actual computation delay of task,/->For user->Local calculation time delay of the task; />Representing user +.>In subchannel->Channel gain on; />Is->At->Power gain on; />Is the path loss coefficient; />Representing user +.>In subchannel->Channel gain on; />Representing a transmission power threshold;
in step S1, the userTotal energy consumption required for a task, user +.>The specific implementation mode of the task unloading time is as follows:
according to the formula:
obtaining local calculation energy consumptionAnd user->Local computation delay of task->; wherein ,/>For usersCPU average power,/,>is->CPU power consumption coefficient of the same; />For user->The working frequency of the local CPU; />Representing the size of the task data; />Representing the number of CPU cycles required to calculate each bit of data;
according to the formula:
obtaining the user received by the RSUSignal-to-interference-plus-noise ratio of signal>The method comprises the steps of carrying out a first treatment on the surface of the The number of users in the set is S; />Indicating all used subchannels>Is a set of users; />For user->And the distance between the RSUs,distance between RSU and service section; />Representing user +.>Is used for the transmission power of the (a); />Maximum transmission power for the user; />Is Gaussian white noise power spectral density; />The bandwidth allocated for each sub-channel for the RSU;
according to the formula:
According to the formula:
According to the formula:
obtaining the calculation time delay required by the RSU to execute the task; wherein ,/>For RSU server for user +.>CPU working frequency allocated by the unloaded task;
according to the formula:
obtaining the userTask offloading latency->And user->Total energy consumption required for a task->;
The specific implementation manner of the step S2 is as follows:
s2-1, initializing the number of initial solutions in the ant colonyKInitializing weights of an initial solutionNumber of antsMUpper limit of iteration numberT,Overall constraint violation mean of all non-viable solutions in ant colonyε;
S2-2, according to the formula:
obtaining an overall constraint violation function; wherein ,/>A violation degree function for time constraint;a violation degree function for the power constraint; when->When (I)>For the system loss function->Or else, a non-viable solution;
s2-3, calculating the system loss of all solutions according to the system loss function, and calculating the overall constraint violation of all solutions according to the overall constraint violation function;
the specific implementation manner of the step S3 is as follows:
s3-1, according to the formula:
based on the possible and non-possible solutions together in an ant colonyεIs a comparison ordering of (2);indicate->System loss of individual solutions,/->Indicate->System loss of the solution; />Indicate->A solution power constraint violation degree;indicate->Power constraint violation degrees of the individual solutions;
s3-2, according to the formula:
obtaining a subchannelWeight of +.>And initial solution->Weight of +.>; wherein ,/>Is a super parameter; />The more optimal (i.e. ->The greater the +.>The thicker the pheromone is left, the ant is +.>Is-> and />The greater the probability of nearby movement; />For users in ant colony->Sub-channel +.>Weights of the optimal solution of ∈1->For users in ant colony->Sub-channels are usedThe number of solutions of>Representing the number of sub-channels that are not used by the users in all solutions in the ant colony;
the specific implementation manner of the step S4 is as follows:
s4-1, according to the formula:
s4-2, according to the formula:
get ants to move toContinuous zoneProbability of transition at any point in the space +.>;/>Solution selected for ants->Middle user->Task offload ratio of (2); />,/>Is a super parameter;
s4-3, according to the transition probabilityRandomly move to interval +.>At any point above, get the user +.>Task offloading ratio of->;
S4-4, according to the formula:
S4-5, according to the transition probabilityIn the continuous interval +.>Randomly moving to any point to obtain user +.>Is +.>;
S4-6, according to the formula:
s4-7, according to the sub-channel transition probability of the userMove to discrete interval +.>Inner one point->Obtaining the user's->Subchannel number->;
S4-8, according to the users in the new solutionSubchannel number->User->Is +.>And user ∈>Task offloading ratio of->Obtaining ant->A new solution of 3 XU times in the value space of each variable>;
S4-9, repeating the steps S4-1 to S4-8 untilMNext, obtainMNew solutions are obtained;
the specific implementation manner of the step S5 is as follows:
s5-1, to be obtainedMNew solutions and current existing solutionsKThe solutions are subjected to epsilon-based comparison and sorting, and used beforeKThe original solution in the ant colony is replaced by the optimal solution to obtain a replaced solution;
s5-2, judging whether the current iteration reaches the set times, if so, outputting an optimal feasible solution which minimizes the system loss; otherwise, enter step S5-3;
s5-3, calculating the pheromone of the replaced solution, namely the weight of the replaced solution;
s5-4, according to the formula:
obtaining the current iteration timesAdding 1 to the iteration times and returning to the step S5-1; wherein (1)>For the current number of iterations,for the upper limit of the iteration number, +.>For the initialized global constraint violation mean value of all non-feasible solutions in the ant colony->For the proportion of feasible solutions in the current ant colony, < >> and />Are super parameters; the initial value of the iteration number is 0./>
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310194757.8A CN115915278B (en) | 2023-03-03 | 2023-03-03 | Task unloading method for Internet of vehicles |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310194757.8A CN115915278B (en) | 2023-03-03 | 2023-03-03 | Task unloading method for Internet of vehicles |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115915278A CN115915278A (en) | 2023-04-04 |
CN115915278B true CN115915278B (en) | 2023-05-05 |
Family
ID=85751883
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310194757.8A Active CN115915278B (en) | 2023-03-03 | 2023-03-03 | Task unloading method for Internet of vehicles |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115915278B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111741050A (en) * | 2020-04-07 | 2020-10-02 | 北京邮电大学 | Data distribution method and system based on roadside unit |
CN112367640A (en) * | 2020-11-09 | 2021-02-12 | 中科怡海高新技术发展江苏股份公司 | V2V mode multitask unloading method and system based on mobile edge calculation |
CN114827191A (en) * | 2022-03-15 | 2022-07-29 | 华南理工大学 | Dynamic task unloading method for fusing NOMA in vehicle-road cooperative system |
EP4037352A1 (en) * | 2019-09-27 | 2022-08-03 | Tencent Technology (Shenzhen) Company Limited | Access processing method for user equipment, device, electronic apparatus, and computer storage medium |
-
2023
- 2023-03-03 CN CN202310194757.8A patent/CN115915278B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP4037352A1 (en) * | 2019-09-27 | 2022-08-03 | Tencent Technology (Shenzhen) Company Limited | Access processing method for user equipment, device, electronic apparatus, and computer storage medium |
CN111741050A (en) * | 2020-04-07 | 2020-10-02 | 北京邮电大学 | Data distribution method and system based on roadside unit |
CN112367640A (en) * | 2020-11-09 | 2021-02-12 | 中科怡海高新技术发展江苏股份公司 | V2V mode multitask unloading method and system based on mobile edge calculation |
CN114827191A (en) * | 2022-03-15 | 2022-07-29 | 华南理工大学 | Dynamic task unloading method for fusing NOMA in vehicle-road cooperative system |
Non-Patent Citations (2)
Title |
---|
5G网络下移动云计算节能措施研究;李继蕊;李小勇;高云全;高雅丽;;计算机学报(07);全文 * |
自供电路侧单元能量-时延均衡分组调度策略;代亮;翟一鸣;汪贵平;;交通运输工程学报(02);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN115915278A (en) | 2023-04-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Liu et al. | A computation offloading algorithm based on game theory for vehicular edge networks | |
CN108809695B (en) | Distributed uplink unloading strategy facing mobile edge calculation | |
Qin et al. | Power-constrained edge computing with maximum processing capacity for IoT networks | |
CN109767117B (en) | Power distribution method for joint task scheduling in mobile edge computing | |
CN110233755B (en) | Computing resource and frequency spectrum resource allocation method for fog computing in Internet of things | |
CN107995660A (en) | Support Joint Task scheduling and the resource allocation methods of D2D- Edge Servers unloading | |
Hou et al. | Joint allocation of wireless resource and computing capability in MEC-enabled vehicular network | |
CN111124531B (en) | Method for dynamically unloading calculation tasks based on energy consumption and delay balance in vehicle fog calculation | |
Saleem et al. | Performance guaranteed partial offloading for mobile edge computing | |
CN110149401B (en) | Method and system for optimizing edge calculation task | |
Wei et al. | Optimal offloading in fog computing systems with non-orthogonal multiple access | |
Liu et al. | Fog computing vehicular network resource management based on chemical reaction optimization | |
Wang et al. | Multi-agent reinforcement learning-based user pairing in multi-carrier NOMA systems | |
CN113286329A (en) | Communication and computing resource joint optimization method based on mobile edge computing | |
Zu et al. | Smeto: Stable matching for energy-minimized task offloading in cloud-fog networks | |
Trrad et al. | Application of fuzzy logic to cognitive wireless communications | |
Nur et al. | Priority-based offloading and caching in mobile edge cloud | |
Zhang et al. | Energy minimization task offloading mechanism with edge-cloud collaboration in IoT networks | |
CN115915278B (en) | Task unloading method for Internet of vehicles | |
Fan et al. | Task caching and computation offloading for muti-user mobile edge computing network | |
CN114928611B (en) | IEEE802.11p protocol-based energy-saving calculation unloading optimization method for Internet of vehicles | |
Jothi et al. | Nelder mead-based spider monkey optimization for optimal power and channel allocation in MANET | |
Jin et al. | Computation offloading and resource allocation for MEC in C-RAN: A deep reinforcement learning approach | |
Wang et al. | Task and resource allocation in mobile edge computing: An improved reinforcement learning approach | |
Malik et al. | A user-centric qos-aware multi-path service provisioning in mobile edge computing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |