Vehicle-mounted edge server scheduling method and system capable of minimizing total cost

By determining the warehouse's open selection and service area set in mobile edge computing, and scheduling vehicle-mounted edge servers, the problems of fixed edge server load dynamics and resource waste are solved, and dynamic scheduling and cost savings are achieved.

CN118590939AActive Publication Date: 2024-09-03NANJING UNIV OF POSTS & TELECOMM
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410621505.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-17
Publication Date
2024-09-03
Estimated Expiration
2044-05-17

AI Technical Summary

Technical Problem

In existing mobile edge computing, the load of fixed edge servers is highly dynamic and unbalanced, resulting in high total scheduling costs, and static deployment leads to resource waste and shortage.

Method used

By determining the open selection of the warehouse and the set of regions it serves, the vehicle-mounted edge servers in the warehouse are scheduled to provide computing services for the regions. Network models and optimization algorithms are used to minimize the total cost of scheduling the vehicle-mounted edge servers and ensure dynamic scheduling and flexibility.

Benefits of technology

It achieves the dynamic scheduling and flexibility and balance of vehicle-mounted edge servers, and at the same time saves the total cost of scheduling the vehicle-mounted edge servers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118590939A
    Figure CN118590939A
Patent Text Reader

Abstract

The invention relates to a vehicle-mounted edge server scheduling method and system capable of minimizing total cost, and relates to the field of mobile edge computing. The method comprises the following steps: acquiring an area and a warehouse set, and establishing a network model; determining the cost of the vehicle-mounted edge server for providing calculation service for the region by the vehicle-mounted edge server, and establishing a problem of minimizing the total scheduling cost of the vehicle-mounted edge server; and carrying out optimization solution on the scheduling total cost minimization problem, determining an open scheme of the warehouse and a region set of services, and scheduling the vehicle-mounted edge server in the warehouse. According to the method, the dynamic scheduling of the vehicle-mounted edge server and the flexibility and balance of the scheduling can be realized, and meanwhile, the total scheduling cost of the vehicle-mounted edge server is saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of mobile edge computing, and in particular to a vehicle-mounted edge server scheduling method and system for minimizing total cost. Background Art

[0002] Mobile edge computing can offload computationally intensive tasks running on terminal devices to nearby mobile edge computing servers for computing, so that users' computing tasks do not need to be uploaded to remote cloud servers, thereby significantly reducing the latency of applications. Mobile edge computing has attracted widespread attention from academia and industry. Some industry associations and standardization organizations, including the 5G Automotive Association and the European Telecommunications Standards Institute, have identified many use cases for mobile edge computing, such as augmented reality technology, autonomous driving, etc.

[0003] The main research contents of mobile edge computing are computing task offloading, edge service caching and edge system deployment. At present, a large number of works are based on statically deployed edge servers, that is, research based on existing fixed edge servers on the ground. However, in actual applications, due to user mobility, dynamic resource demand and regional differences, the load of fixed edge servers is highly dynamic and unbalanced, and the total scheduling cost of edge servers is high. Summary of the invention

[0004] The main purpose of the present invention is to overcome the shortcomings and deficiencies of the prior art and to provide a method and system for scheduling vehicle-mounted edge servers that minimizes the total cost. By determining the open options of the warehouse and the set of areas it serves, and then scheduling the vehicle-mounted edge servers in the warehouse to provide computing services for the areas, it is possible to achieve dynamic scheduling of the vehicle-mounted edge servers as well as flexibility and balance in scheduling, while saving the total scheduling cost of the vehicle-mounted edge servers.

[0005] According to one aspect of the present invention, the present invention provides a vehicle-mounted edge server scheduling method that minimizes total cost, the method comprising:

[0006] Obtain a set of regions and warehouses and establish a network model, wherein the vehicle-mounted edge servers in the warehouse provide computing services for multiple regions, the vehicle-mounted edge servers in the same warehouse are of the same type, and the vehicle-mounted edge servers in different warehouses are of different types;

[0007] Determine the cost of the vehicle-mounted edge server to provide computing services for the region, and establish the total scheduling cost minimization problem of the vehicle-mounted edge server;

[0008] The total scheduling cost minimization problem is optimized and solved, the warehouse opening plan and the service area set are determined, and the vehicle-mounted edge server in the warehouse is scheduled.

[0009] Preferably, determining the vehicle edge server cost for providing computing services for the region by the vehicle edge server comprises:

[0010] Order ij Represents warehouses j The vehicle-mounted edge server is region v i The cost of the vehicle-mounted edge server that provides computing services is

[0011] co ij =d*T ij +q*(2w(e ij )+ex j (v i ))

[0012]

[0013] Among them, T ij is the time cost, w(e ij ) is driving energy consumption, ex j (v i ) is the energy consumption, e ij Represents the connected area v i With warehouses j The path of |e ij | indicates area v i With warehouses j The path length between i Represents computing task a i The number of CPU cycles required, let F j For warehouses j The CPU frequency of the vehicle edge server in R j Represents warehouses j The driving rate of the vehicle-mounted edge server in; is the driving energy consumption per unit driving distance of the vehicle-mounted edge server, Represents the energy consumption of a CPU cycle, Represents the capacitive switch related to the vehicle chip; d is the time cost coefficient, and q is the energy consumption cost coefficient.

[0014] Preferably, the problem of minimizing the total scheduling cost of establishing the vehicle-mounted edge server includes:

[0015] The total scheduling cost minimization problem is expressed as:

[0016]

[0017] Among them, F(V j ) indicates warehouse s j The total scheduling cost, V j For warehousesj The set of regions that provide computing services. When , it means warehouse s j Selected for use when When , it means warehouse s j Not selected for use, c j Represents warehouses j operation and maintenance costs.

[0018] Preferably, the optimizing and solving the problem of minimizing the total scheduling cost to determine the warehouse opening plan and the service area set includes:

[0019] Input graph G = (V∪S, E), warehouse set S, region set V; E represents the set of paths between warehouses and regions and between regions;

[0020] Initialize each warehouse j The set of regions providing computing services V j is an empty set; let N′ represent the set of unserved areas, initialized to V;

[0021] If N′ is not an empty set, proceed to the next step; otherwise, output each warehouse s j The set of regions providing computing services V j ;

[0022] Traverse all warehouses, call the preset algorithm, and generate each warehouse s j The set of expansion areas V′ with the minimum average marginal cost j ;

[0023] Find the warehouse with the smallest average marginal cost The operation arg min returns the expression The warehouse with the smallest value of , updates warehouse s j The set of regions providing computing services V j =V′ j and the set of unserved areas N′=N′\V j , until N′ is an empty set;

[0024] Output each warehouse s j The set of regions providing computing services V j .

[0025] Preferably, the calling of a preset algorithm comprises:

[0026] Input warehouses j , warehouses j The set of regions providing computing services V j , the set of unallocated regions N′;

[0027] Let l denote the set Vj The number of regions added in V j (l) means that in the set V j The extended area set after adding l areas, N * Represents the set of unserved areas; initialize l to zero, let V j (l) is equal to V j , N * is equal to N′;

[0028] If l<|N′|, then find the edge server with the minimum vehicle cost co ij Area v i , the set of regions that have never been served is N * Delete region v i , let the number of added regions l = l + 1, and update the extended region set V after adding l regions j (l) = V j (l-1)∪{v i}; Repeat this step until l = |N′| and the iteration ends;

[0029] Find the set of expanded areas with the minimum average marginal cost, and set the number of newly added areas in the set of expanded areas with the minimum average marginal cost Let V′ j =V j (l′);

[0030] Output warehouses j The minimum marginal cost expansion area set V′ j .

[0031] According to another aspect of the present invention, the present invention also provides a vehicle-mounted edge server scheduling system that minimizes total cost, the system comprising:

[0032] An acquisition module is used to acquire a set of regions and warehouses and establish a network model, wherein the vehicle-mounted edge servers in the warehouse provide computing services for multiple regions, the vehicle-mounted edge servers in the same warehouse are of the same type, and the vehicle-mounted edge servers in different warehouses are of different types;

[0033] Establish a module for determining the cost of the vehicle-mounted edge server providing computing services for the region, and establish the total cost minimization problem of scheduling the vehicle-mounted edge server;

[0034] The scheduling module is used to optimize and solve the problem of minimizing the total scheduling cost, determine the warehouse's open plan and the set of service areas, and schedule the vehicle-mounted edge servers in the warehouse.

[0035] Preferably, the establishing module determines the vehicle edge server cost for the vehicle edge server to provide computing services for the region, including:

[0036] Order ij Represents warehouses j The vehicle-mounted edge server is region v i The cost of the vehicle-mounted edge server that provides computing services is

[0037] co ij =d*T ij +q*(2w(e ij )+ex j (v i ))

[0038]

[0039] Among them, T ij is the time cost, w(e ij ) is driving energy consumption, ex j (v i ) is the energy consumption, e ij Represents the connected area v i With warehouses j The path of |e ij | indicates area v i With warehouses j The path length between i Represents computing task a i The number of CPU cycles required, let F j For warehouses j The CPU frequency of the vehicle edge server in R j Represents warehouses j The driving rate of the vehicle-mounted edge server in; is the driving energy consumption per unit driving distance of the vehicle-mounted edge server, Represents the energy consumption of a CPU cycle, Represents the capacitive switch related to the vehicle chip; d is the time cost coefficient, and q is the energy consumption cost coefficient.

[0040] Preferably, the establishment module establishes the scheduling total cost minimization problem of the vehicle-mounted edge server including:

[0041] The total scheduling cost minimization problem is expressed as:

[0042]

[0043] Among them, F(V j ) indicates warehouse s j The total scheduling cost, V j For warehouses jThe set of regions that provide computing services. When , it means warehouse s j Selected for use when When , it means warehouse s j Not selected for use, c j Represents warehouses j operation and maintenance costs.

[0044] Preferably, the optimization module optimizes and solves the total scheduling cost minimization problem, and determines the warehouse opening plan and the service area set including:

[0045] Input graph G = (V∪S, E), warehouse set S, region set V; E represents the set of paths between warehouses and regions and between regions;

[0046] Initialize each warehouse j The set of regions providing computing services V j is an empty set; let N′ represent the set of unserved areas, initialized to V;

[0047] If N′ is not an empty set, proceed to the next step; otherwise, output each warehouse s j The set of regions providing computing services V j ;

[0048] Traverse all warehouses, call the preset algorithm, and generate each warehouse s j The set of expansion areas V′ with the minimum average marginal cost j ;

[0049] Find the warehouse with the smallest average marginal cost The operation arg min returns the expression The warehouse with the smallest value of , updates warehouse s j The set of regions providing computing services V j =V′ j and the set of unserved areas N′=N′\V j , until N′ is an empty set;

[0050] Output each warehouse s j The set of regions providing computing services V j .

[0051] Preferably, the calling of a preset algorithm comprises:

[0052] Input warehouses j , warehouses j The set of regions providing computing services V j , the set of unallocated regions N′;

[0053] Let l denote the set Vj The number of regions added in V j (l) means that in the set V j The extended area set after adding l areas, N * Represents the set of unserved areas; initialize l to zero, let V j (l) is equal to V j , N * is equal to N′;

[0054] If l<|N′|, then find the vehicle edge server with the minimum cost co ij Area v i , the set of regions that have never been served is N * Delete region v i , let the number of added regions l = l + 1, update the extended region set V after adding l regions j (l) = V j (l-1)∪{v i}; Repeat this step until l = |N′| and the iteration ends;

[0055] Find the set of expanded areas with the minimum average marginal cost, and set the number of newly added areas in the set of expanded areas with the minimum average marginal cost Let V′ j =V j (l′);

[0056] Output warehouses j The minimum marginal cost expansion area set V′ j .

[0057] Beneficial effect: In the mobile edge computing scenario, the present invention takes into account the resource waste and shortage problems caused by the static deployment of edge servers, determines the open selection of the warehouse and the set of areas it serves according to the computing needs of different areas, and then schedules the on-board edge servers in the warehouse to provide computing services for the area, which can realize the dynamic scheduling of the on-board edge servers as well as the flexibility and balance of the scheduling, while saving the total scheduling cost of the on-board edge servers.

[0058] The features and advantages of the present invention will become clear through reference to the following drawings and detailed description of specific embodiments of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 A flow chart of a vehicle-mounted edge server scheduling method for minimizing total cost in the present invention;

[0060] Figure 2 It is a schematic diagram of the network model in the present invention;

[0061] Figure 3It is a flow chart of the total cost minimization optimization algorithm in the present invention;

[0062] Figure 4 It is a flow chart of the preset algorithm in the present invention;

[0063] Figure 5 Schematic diagram of the vehicle-mounted edge server scheduling system for minimizing the total cost in the present invention. DETAILED DESCRIPTION

[0064] The following is a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0065] Example 1

[0066] Figure 1 FIG. 1 is a flow chart of the vehicle-mounted edge server scheduling method for minimizing the total cost in the present invention. Figure 1 As shown, this embodiment provides a vehicle-mounted edge server scheduling method that minimizes total cost, and the method includes:

[0067] S1: Obtain a set of regions and warehouses and establish a network model, in which the vehicle-mounted edge servers in the warehouse provide computing services for multiple regions, the vehicle-mounted edge servers in the same warehouse are of the same type, and the vehicle-mounted edge servers in different warehouses are of different types;

[0068] Specifically, refer to Figure 2 , let V = {v1, v2, ..., v n} represents a set of n regions, let S = {s1, s2, ..., s h} represents a set of h warehouses, and defines a graph G = (V∪S, E), where E represents the set of paths between warehouses and regions and between regions.

[0069] Each area v i ∈V generates computing task a i , let ρ i Represents computing task a i The number of CPU cycles required;

[0070] Each warehouse has at least n vehicle-mounted edge servers. The warehouse dispatches vehicle-mounted edge servers to provide computing services for multiple regions. The number of vehicle-mounted edge servers that can be dispatched by each warehouse is different. Let M j Represents each warehouse s j∈S is a set of vehicle-mounted edge servers scheduled by the system. The vehicle-mounted edge servers start from the warehouse, arrive at the regional location to perform computing tasks, and finally return to the warehouse;

[0071] Assume that the vehicle-mounted edge servers in the same warehouse are of the same type, and the CPU frequency, energy, and driving speed of the vehicle-mounted edge servers in the same warehouse are the same; the vehicle-mounted edge servers in different warehouses are of different types, and the CPU frequency, energy, and driving speed of the vehicle-mounted edge servers in different warehouses are different; let F j , R j and R j Respectively represent warehouses j The CPU frequency, energy and driving speed of the vehicle-mounted edge server in the figure; assuming that the energy of any vehicle-mounted edge server is sufficient to reach the area farthest from the warehouse;

[0072] It is necessary to select a warehouse from the available warehouse set S to open, so as to schedule the vehicle-mounted edge server in the warehouse to provide computing services for all regions. Each vehicle-mounted edge server can only provide computing services for one region, and the goal is to minimize the total cost. The open warehouse requires personnel to perform operation and maintenance, so it will incur certain operation and maintenance costs. Let c j Represents warehouses j operation and maintenance costs.

[0073] S2: Determine the cost of the vehicle-mounted edge server that provides computing services for the region, and establish the total scheduling cost minimization problem of the vehicle-mounted edge server;

[0074] S3: Optimize and solve the total scheduling cost minimization problem, determine the warehouse opening plan and service area set, and schedule the vehicle-mounted edge server in the warehouse.

[0075] This method can realize dynamic scheduling of the vehicle-mounted edge server as well as scheduling flexibility and balance, while saving the total scheduling cost of the vehicle-mounted edge server.

[0076] Preferably, determining the vehicle edge server cost for providing computing services for the region by the vehicle edge server comprises:

[0077] Order ij Represents warehouses j The vehicle-mounted edge server is region v i The cost of the vehicle-mounted edge server that provides computing services is

[0078] co ij =d*T ij +q*(2w(e ij )+ex j (v i ))

[0079]

[0080] Among them, T ij is the time cost, w(e ij ) is driving energy consumption, ex j (v i ) is the energy consumption, e ij Represents the connected area v i With warehouses j The path of |e ij | indicates area v i With warehouses j The path length between i Represents computing task a i The number of CPU cycles required, let F j For warehouses j The CPU frequency of the vehicle edge server in R j Represents warehouses j The driving rate of the vehicle-mounted edge server in; is the driving energy consumption per unit driving distance of the vehicle-mounted edge server, Represents the energy consumption of a CPU cycle, Represents the capacitive switch related to the vehicle chip; d is the time cost coefficient, and q is the energy consumption cost coefficient.

[0081] Specifically, the vehicle-mounted edge server will also incur certain costs in providing computing services to the region. ij Represents warehouses j The vehicle-mounted edge server is region v i The cost of the vehicle edge server that provides computing services; the cost of the vehicle edge server includes the time cost and the energy cost of the vehicle edge server; the time cost includes the moving time cost of the vehicle edge server and the time cost of the vehicle edge server computing regional tasks, then the time cost T ij for:

[0082]

[0083] Among them, e ij Represents the connected area v i With warehouses j The path of |e ij | indicates area v i With warehouses j The length of the path between

[0084] The vehicle-mounted edge server will generate driving energy consumption when driving. The driving energy consumption per unit driving distance of the vehicle-mounted edge server is defined as , then the vehicle-mounted edge computing server receives data from the warehouse sj Arrival Area v i The driving energy consumption w(e ij )for:

[0085]

[0086] Warehouses j The vehicle-mounted edge server in the execution area v i The computational energy consumption ex j (v i )for:

[0087]

[0088] in, Represents the energy consumption of a CPU cycle, Indicates the capacitance switch related to the vehicle chip,

[0089] By setting the time cost coefficient d and the energy cost system q, the time cost and energy cost are converted into economic cost; therefore, warehouse s j The vehicle-mounted edge server is region v i Cost of the vehicle-mounted edge server providing computing services ij for:

[0090] co ij =d*T ij +q*(2w(e ij )+ex j (v i )) (4)

[0091] Preferably, the problem of minimizing the total scheduling cost of establishing the vehicle-mounted edge server includes:

[0092] The total scheduling cost minimization problem is expressed as:

[0093]

[0094] Among them, F(V j ) indicates warehouse s j The total scheduling cost, V j For warehouses j The set of regions that provide computing services. When , it means warehouse s j Selected for use when When , it means warehouse s j Not selected for use, c j Represents warehouses j operation and maintenance costs.

[0095] Specifically, combined with the vehicle-mounted edge server scheduling model, the total cost minimization problem is formalized, namely:

[0096] (P1)

[0097]

[0098] Among them, the decision variable y in constraint (5-3) j Represents warehouses j Is it selected? If warehouse s is selected j , then y j =1, otherwise y j =0; decision variable x ij Represents region v i Whether it is by warehouses j Services, if provided by warehouses j Provide services, x ij =1, otherwise x ij = 0; constraint (5-1) represents any region v i There must be a warehouse providing service; Constraint (5-2) means that if region v i By Warehouses j If the service is provided, the warehouse s j must be chosen;

[0099] Problem P1 is equivalent to generating a set V of regions where computing services are provided for each warehouse. j , the P1 problem can be reformulated as the P2 problem:

[0100] (P2)

[0101]

[0102]

[0103] Among them, F(V j ) indicates warehouse s j The total cost, when When , it means warehouse s j is selected for use, and its total cost is the sum of the warehouse operation and maintenance cost and the vehicle-mounted edge server cost; when When , it means warehouse s j Not selected for use, the total cost is zero. j ) can be calculated by the following formula:

[0104] Constraint (6-1) indicates that all regions will be provided with computing services by the warehouse. Constraint (6-2) indicates that any region can only be provided with computing services by the vehicle-mounted edge server in one warehouse at most.

[0105] Preferably, the optimizing and solving the problem of minimizing the total scheduling cost to determine the warehouse opening plan and the service area set includes:

[0106] Input graph G = (V∪S, E), warehouse set S, region set V; E represents the set of paths between warehouses and regions and between regions;

[0107] Initialize each warehouse j The set of regions providing computing services V j is an empty set; let N′ represent the set of unserved areas, initialized to V;

[0108] If N′ is not an empty set, proceed to the next step; otherwise, output each warehouse s j The set of regions providing computing services V j ;

[0109] Traverse all warehouses, call the preset algorithm, and generate each warehouse s j The set of expansion areas V′ with the minimum average marginal cost j ;

[0110] Find the warehouse with the smallest average marginal cost The operation argmin returns the expression The warehouse with the smallest value of , updates warehouse s j The set of regions providing computing services V j =V′ j and the set of unserved areas N′=N′\V j , until N′ is an empty set;

[0111] Output each warehouse s j The set of regions providing computing services V j .

[0112] For detailed implementation process, see Figure 3 .

[0113] Preferably, the calling of a preset algorithm comprises:

[0114] Input warehouses j , warehouses j The set of regions providing computing services V j , the set of unallocated regions N′;

[0115] Let l denote the set V j The number of regions added in Vj (l) means that in the set V j The extended area set after adding l areas, N * Represents the set of unserved areas; initialize l to zero, let V j (l) is equal to V j , N * is equal to N′;

[0116] If l<|N′|, then find the edge server with the minimum vehicle cost co ij Area v i , the set of regions that have never been served is N * Delete region v i , let the number of added regions l = l + 1, and update the extended region set V after adding l regions j (l) = V j (l-1)∪{v i}; Repeat this step until l = |N′| and the iteration ends;

[0117] Find the set of expanded areas with the minimum average marginal cost, and set the number of newly added areas in the set of expanded areas with the minimum average marginal cost Let V′ j =V j (l′);

[0118] Output warehouses j The minimum marginal cost expansion area set V′ j .

[0119] For detailed implementation process, see Figure 4 .

[0120] In order to more fully understand the vehicle-mounted edge server optimization scheduling method in this embodiment, another example is given below.

[0121] Taking a mobile edge computing scenario as an example, the warehouse opening and the regional set of generated services include the following steps:

[0122] On the two-dimensional plane Ω, V = {v1, v2, v3, v, v5, v6} represents the region set, S = {s1, s2, s3} represents the warehouse set, and the parameters of the warehouses are shown in Table 1.

[0123] Table 1 Warehouse parameters

[0124]

[0125] The service request parameters of the region are shown in Table 2:

[0126] Table 2 Service request parameters for the region

[0127] area CPU Requirements <![CDATA[v1]]> 1408 <![CDATA[v2]]> 591 <![CDATA[v3]]> 1141 <![CDATA[v4]]> 1141 <![CDATA[v5]]> 817 <![CDATA[v6]]> 596

[0128] The distance parameters between warehouses and regions are shown in Table 3:

[0129] Table 3 Distance parameters between warehouses and regions

[0130]

[0131]

[0132] (1) Input graph G = (V∪S, E), warehouse set S, region set V;

[0133] (2) Initialize each warehouse s j The set of regions providing computing services V j is an empty set; let N′ represent the set of unserved areas, initialized to V;

[0134] (3) If N′ is not an empty set, execute step (4); otherwise, execute step (6);

[0135] (4) Traverse all warehouses and call the extended area set search algorithm to generate each warehouse s j The set of expansion areas V with the minimum average marginal cost j ′;

[0136] At this time, V1′ of warehouse s1 = {v1, v2, v3, v4, v5, v6}, with an average cost of 19.86; V2′ of warehouse s2 = {v1, v2, v3, v4, v5, v6}, with an average cost of 17.24; V3′ of warehouse s3 = {v1, v2, v3, v4, v5, v6}, with an average cost of 16.46;

[0137] (5) Find the warehouse with the lowest average marginal cost: The operation argmin returns the expression The warehouse with the smallest value of , updates warehouse s j The set of regions providing computing services V j =V j ′ and the set of unserved areas N′=N′\V j ; Execute step (3);

[0138] (6) Output each warehouse s j The set of regions providing computing services V j .

[0139] At this time, V1 and V2 are empty sets, and V3 = {v1, v2, v3, v4, v5, v6}.

[0140] In the mobile edge computing scenario, this embodiment takes into account the resource waste and shortage problems caused by the static deployment of edge servers. According to the computing needs of different regions, the open selection of the warehouse and the set of regions it serves are determined, and then the vehicle-mounted edge servers in the warehouse are scheduled to provide computing services for the region. This can achieve dynamic scheduling of the vehicle-mounted edge servers as well as scheduling flexibility and balance, while saving the total scheduling cost of the vehicle-mounted edge servers.

[0141] In order to better illustrate the technical effect achieved by the method of the present invention, three algorithms are designed to conduct actual comparative tests with the total cost minimization optimization algorithm of the present invention to verify the real effect of the method of the present invention, specifically including:

[0142] (1) K-means clustering algorithm: The idea of ​​the Bisecting K-Means clustering algorithm is used to cluster the regions, and then the nearest warehouse is found for the k cluster centers. All regions of the cluster are served by the nearest warehouse. The k value is traversed from 1 to the number of warehouses, and the allocation method with the lowest cost is found.

[0143] (2) Random algorithm: A warehouse is randomly selected for use, and then the area is allocated to the nearest warehouse.

[0144] (3) Set covering algorithm: The area is assigned to the three nearest warehouses, each warehouse generates a set of its service area, and then the set covering algorithm is used to select the warehouse.

[0145] In this embodiment, the test range is set to 10km*10km, and the range is randomly distributed in 30 areas. Assume that the number of CPU cycles required for tasks in each area is different, and they are uniformly distributed in the interval [500, 1500] Mcyc l es. There are 5 warehouses, and the warehouse operation and maintenance costs are uniformly distributed in the interval [50, 150]. Each warehouse can provide multiple vehicle-mounted edge servers. The CPU frequency of the vehicle-mounted edge server is uniformly distributed in the interval [150, 400] Mcyc l es / s, and the driving energy consumption per unit time of the vehicle-mounted edge server is 0.12kWh / k. The driving speed of the vehicle-mounted edge server is uniformly distributed in the interval [30, 50] km / h.

[0146] The experimental results show that the total cost of the K-means clustering algorithm, random algorithm, set covering algorithm, and total cost minimization optimization algorithm increases as the number of regions increases. This is because as the number of regions increases, the vehicle-mounted edge server needs to consume more time and energy to provide computing services for them. The performance of the total cost minimization optimization algorithm is always better than the comparison algorithm. The total cost minimization optimization algorithm selects the warehouse with the smallest average marginal cost for each region to provide computing services. The random selection of the random algorithm and the set covering algorithm assigning regions to the nearest warehouse cannot guarantee that the average marginal cost is the smallest each time. The K-means clustering algorithm clusters regions according to their locations, and then assigns regions belonging to the same cluster to the warehouse closest to the cluster center, ignoring the options with lower costs. Specifically, the total cost of the total cost minimization optimization algorithm is reduced by 60.5%, 26.9%, and 22.9% compared with the random algorithm, set covering algorithm, and K-means clustering algorithm, respectively.

[0147] The experimental results further show that considering the impact of the number of CPU cycles required for the task on the total cost, the total cost is reduced by 34.1%, 66.6%, and 42.5% compared with the K-means clustering algorithm, random algorithm, and set covering algorithm, respectively. Considering the impact of the CPU frequency of the vehicle edge server on the total cost, the total cost is reduced by 24.7%, 58.6%, and 26.8% compared with the K-means clustering algorithm, random algorithm, and set covering algorithm, respectively. Considering the impact of the vehicle edge server rate on the total cost, the total cost is reduced by 37%, 63.1%, and 55.1% compared with the K-means clustering algorithm, random algorithm, and set covering algorithm, respectively.

[0148] Example 2

[0149] Figure 5 FIG. 1 is a schematic diagram of a vehicle-mounted edge server scheduling system for minimizing the total cost in the present invention. Figure 5 As shown, this embodiment provides a vehicle-mounted edge server scheduling system that minimizes total cost, and the system includes:

[0150] An acquisition module 501 is used to acquire a set of regions and warehouses and establish a network model, wherein the vehicle-mounted edge servers in the warehouse provide computing services for multiple regions, the vehicle-mounted edge servers in the same warehouse are of the same type, and the vehicle-mounted edge servers in different warehouses are of different types;

[0151] Establishing module 502, for determining the cost of the vehicle edge server for providing computing services for the region, and establishing a scheduling total cost minimization problem for the vehicle edge server;

[0152] The scheduling module 503 is used to optimize and solve the problem of minimizing the total scheduling cost, determine the warehouse's open plan and the set of service areas, and schedule the vehicle-mounted edge servers in the warehouse.

[0153] Preferably, the establishment module 502 determines the vehicle edge server cost of the vehicle edge server providing computing services for the region, including:

[0154] Order ij Represents warehouses j The vehicle-mounted edge server is region v i The cost of the vehicle-mounted edge server that provides computing services is

[0155] co ij =d*T ij +q*(2w(e ij )+ex j (v i ))

[0156]

[0157] Among them, T ij is the time cost, w(e ij ) is driving energy consumption, ex j (v i ) is the energy consumption, e ij Represents the connected area v i With warehouses j The path of |ei j | indicates area v i With warehouses j The path length between i Represents computing task a i The number of CPU cycles required, let F j For warehouses j The CPU frequency of the vehicle edge server in R j Represents warehouses j The driving rate of the vehicle-mounted edge server in; is the driving energy consumption per unit driving distance of the vehicle-mounted edge server, Represents the energy consumption of a CPU cycle, Represents the capacitive switch related to the vehicle chip; d is the time cost coefficient, and q is the energy consumption cost coefficient.

[0158] Preferably, the establishment module 502 establishes the scheduling total cost minimization problem of the vehicle-mounted edge server including:

[0159] The total scheduling cost minimization problem is expressed as:

[0160]

[0161]

[0162]

[0163] Among them, F(V j ) indicates warehouse s j The total scheduling cost, V j For warehouses j The set of regions that provide computing services. When , it means warehouse s j Selected for use when When , it means warehouse s j Not selected for use, c j Represents warehouses j operation and maintenance costs.

[0164] Preferably, the optimization module 503 optimizes and solves the total scheduling cost minimization problem, and determines the warehouse opening plan and the service area set including:

[0165] Input graph G = (V∪S, E), warehouse set S, region set V; E represents the set of paths between warehouses and regions and between regions;

[0166] Initialize each warehouse j The set of regions providing computing services V j is an empty set; let N′ represent the set of unserved areas, initialized to V;

[0167] If N′ is not an empty set, proceed to the next step; otherwise, output each warehouse s j The set of regions providing computing services V j ;

[0168] Traverse all warehouses, call the preset algorithm, and generate each warehouse s j The set of expansion areas V′ with the minimum average marginal cost j ;

[0169] Find the warehouse with the smallest average marginal cost The operation argmin returns the expression The warehouse with the smallest value of , updates warehouse s j The set of regions providing computing services V j =V′ j and the set of unserved areas N′=N′\V j , until N′ is an empty set;

[0170] Output each warehouse s j The set of regions providing computing services V j .

[0171] Preferably, the calling of a preset algorithm comprises:

[0172] Input warehouses j , warehouses j The set of regions providing computing services V j , the set of unallocated regions N′;

[0173] Let l denote the set V j The number of regions added in V j (l) means that in the set V j The extended area set after adding l areas, N * Represents the set of unserved areas; initialize l to zero, let V j (l) is equal to V j , N * is equal to N′;

[0174] If l<|N′|, then find the edge server with the minimum vehicle cost co ij Area v i , remove region v from the set of unserved regions N* i , let the number of added regions l = l + 1, and update the extended region set V after adding l regions j (l) = V j (l-1)∪{v i}; Repeat this step until l = |N′| and the iteration ends;

[0175] Find the set of expanded areas with the minimum average marginal cost, and set the number of newly added areas in the set of expanded areas with the minimum average marginal cost Let V′ j =V j (l′);

[0176] Output warehouses j The minimum marginal cost expansion area set V′ j .

[0177] The specific implementation process of the functions realized by each module in this embodiment 2 is the same as the implementation process in embodiment 1, and will not be repeated here.

[0178] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the concept of the present invention, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present invention.

Claims

1. A vehicle-mounted edge server scheduling method for minimizing total cost, characterized in that: The method comprises: Obtain a set of regions and warehouses and establish a network model, wherein the vehicle-mounted edge servers in the warehouse provide computing services for multiple regions, the vehicle-mounted edge servers in the same warehouse are of the same type, and the vehicle-mounted edge servers in different warehouses are of different types; Determine the cost of the vehicle-mounted edge server to provide computing services for the region, and establish the total scheduling cost minimization problem of the vehicle-mounted edge server; The total scheduling cost minimization problem is optimized and solved, the warehouse opening plan and the service area set are determined, and the vehicle-mounted edge server in the warehouse is scheduled.

2. The method according to claim 1, characterized in that The cost of the vehicle-mounted edge server for determining the vehicle-mounted edge server to provide computing services for the region includes: Order ij Represents warehouses j The vehicle-mounted edge server is region v i The cost of the vehicle-mounted edge server that provides computing services is co ij =d*T ij +q*(2w(e ij )+ex j (v i )) Among them, T ij is the time cost, w(e ij ) is driving energy consumption, ex j (v i ) is the energy consumption, e ij Represents the connected area v i With warehouses j The path of |e ij | indicates area v i With warehouses j The path length between i Represents computing task a i The number of CPU cycles required, let F j For warehouses j The CPU frequency of the vehicle-mounted edge server in R j Represents warehouses j The driving rate of the vehicle-mounted edge server in; is the driving energy consumption per unit driving distance of the vehicle-mounted edge server, Represents the energy consumption of a CPU cycle, Represents the capacitive switch related to the vehicle chip; d is the time cost coefficient, and q is the energy consumption cost coefficient.

3. The method according to claim 2, characterized in that The problem of minimizing the total scheduling cost of establishing the vehicle-mounted edge server includes: The total scheduling cost minimization problem is expressed as: Among them, F(V j ) indicates warehouse s j The total scheduling cost, V j For warehouses j The set of regions that provide computing services. When , it means warehouse s j Selected for use when When , it means warehouse s j Not selected for use, c j Represents warehouses j operation and maintenance costs.

4. The method according to claim 3, characterized in that: The optimization solution to the problem of minimizing the total scheduling cost is performed to determine the warehouse opening plan and the service area set, including: Input graph G = (V∪S, E), warehouse set S, region set V; E represents the set of paths between warehouses and regions and between regions; Initialize each warehouse j The set of regions providing computing services V j is an empty set; let N′ represent the set of unserved areas, initialized to V; If N′ is not an empty set, proceed to the next step; otherwise, output each warehouse s j The set of regions providing computing services V j ; Traverse all warehouses, call the preset algorithm, and generate each warehouse s j The set of expansion areas V′ with the minimum average marginal cost j ; Find the warehouse with the smallest average marginal cost The operation argmin returns the expression The warehouse with the smallest value of , updates warehouse s j The set of regions providing computing services V j =V′ j and the set of unserved areas N′=N′\V j , until N′ is an empty set; Output each warehouse s j The set of regions providing computing services V j .

5. The method according to claim 4, characterized in that The calling of the preset algorithm comprises: Input warehouses j , warehouses j The set of regions providing computing services V j , the set of unallocated regions N′; Let l denote the set V j The number of regions added in V j (l) means that in the set V j The extended area set after adding l areas, N * Represents the set of unserved areas; initialize l to zero, let V j (l) is equal to V j , N * is equal to N′; If l<|N′|, then find the edge server with the minimum vehicle cost co ij Area v i , the set of regions that have never been served is N * Delete region v i , let the number of added regions l = l + 1, and update the extended region set V after adding l regions j (l) = V j (l-1)∪{v i }; Repeat this step until l = |N′| and the iteration ends; Find the set of expanded areas with the minimum average marginal cost, and set the number of newly added areas in the set of expanded areas with the minimum average marginal cost Let V′ j =V j (l′); Output warehouses j The minimum marginal cost expansion area set V′ j .

6. A vehicle-mounted edge server scheduling system that minimizes total cost, characterized in that: The system comprises: An acquisition module is used to acquire a set of regions and warehouses and establish a network model, wherein the vehicle-mounted edge servers in the warehouse provide computing services for multiple regions, the vehicle-mounted edge servers in the same warehouse are of the same type, and the vehicle-mounted edge servers in different warehouses are of different types; Establish a module for determining the cost of the vehicle-mounted edge server providing computing services for the region, and establish the total cost minimization problem of scheduling the vehicle-mounted edge server; The scheduling module is used to optimize and solve the problem of minimizing the total scheduling cost, determine the warehouse's open plan and the set of service areas, and schedule the vehicle-mounted edge servers in the warehouse.

7. The system according to claim 6, characterized in that The establishment module determines the vehicle edge server cost for providing computing services for the region by the vehicle edge server, including: Order ij Represents warehouses j The vehicle-mounted edge server is region v i The cost of the vehicle-mounted edge server that provides computing services is co ij =d*T ij +q*(2w(e ij )+ex j (v i )) Among them, T ij is the time cost, w(e ij ) is driving energy consumption, ex j (v i ) is the energy consumption, e ij Represents the connected area v i With warehouses j The path of |e ij | indicates area v i With warehouses j The path length between i Represents computing task a i The number of CPU cycles required, let F j For warehouses j The CPU frequency of the vehicle-mounted edge server in R j Represents warehouses j The driving rate of the vehicle-mounted edge server in; is the driving energy consumption per unit driving distance of the vehicle-mounted edge server, Represents the energy consumption of a CPU cycle, Represents the capacitive switch related to the vehicle chip; d is the time cost coefficient, and q is the energy consumption cost coefficient.

8. The system according to claim 7, characterized in that The establishment module establishes the scheduling total cost minimization problem of the vehicle-mounted edge server, including: The total scheduling cost minimization problem is expressed as: Among them, F(V j ) indicates warehouse s j The total scheduling cost, V j For warehouses j The set of regions that provide computing services. When , it means warehouse s j Selected for use when When , it means warehouse s j Not selected for use, c j Represents warehouses j operation and maintenance costs.

9. The system according to claim 8, characterized in that The optimization module optimizes and solves the problem of minimizing the total scheduling cost, and determines the warehouse opening plan and the service area set including: Input graph G = (V∪S, E), warehouse set S, region set V; E represents the set of paths between warehouses and regions and between regions; Initialize each warehouse j The set of regions providing computing services V j is an empty set; let N′ represent the set of unserved areas, initialized to V; If N′ is not an empty set, proceed to the next step; otherwise, output each warehouse s j The set of regions providing computing services V j ; Traverse all warehouses, call the preset algorithm, and generate each warehouse s j The set of expansion areas V′ with the minimum average marginal cost j ; Find the warehouse with the smallest average marginal cost The operation argmin returns the expression The warehouse with the smallest value of , updates warehouse s j The set of regions providing computing services V j =V j ′ and the set of unserved areas N′=N′\V j , until N′ is an empty set; Output each warehouse s j The set of regions providing computing services V j .

10. The system according to claim 9, characterized in that The calling of the preset algorithm comprises: Input warehouses j , warehouses j The set of regions providing computing services V j , the set of unallocated regions N′; Let l denote the set V j The number of regions added in V j (l) means that in the set V j The extended area set after adding l areas, N * Represents the set of unserved areas; initialize l to zero, let V j (l) is equal to V j , N * is equal to N′; If l<|N′|, then find the edge server with the minimum vehicle cost co ij Area v i , the set of regions that have never been served is N * Delete region v i , let the number of added regions l = l + 1, and update the extended region set V after adding l regions j (l) = V j (l-1)∪{v i }; Repeat this step until l = |N′| and the iteration ends; Find the set of expanded areas with the minimum average marginal cost, and set the number of newly added areas in the set of expanded areas with the minimum average marginal cost Let V j ′=V j (l′); Output warehouses j The minimum marginal cost expansion area set V′ j .

Citation Information

Patent Citations

  • Vehicle path optimization method for multi-warehouse transportation

    CN113139774A

  • Vehicle scheduling method and device

    CN113762667A

  • Warehouse site selection method

    CN114926109A

  • Vehicle-mounted edge computing scheduling optimization method and system

    CN117648172A

  • Transportation planning for a regional logistics network

    US20160048802A1