A vehicle dispatching method, system, device and medium based on antlion algorithm

The vehicle scheduling method based on the Ant Lion algorithm solves the problems of slow convergence speed and local optimality of the existing algorithm, achieves a more efficient vehicle scheduling scheme, and improves the time utilization and cost-effectiveness of logistics distribution.

CN114626632BActive Publication Date: 2024-10-15STATE GRID BEIJING ELECTRIC POWER CO +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210327175.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-30
Publication Date
2024-10-15
Estimated Expiration
2042-03-30

AI Technical Summary

Technical Problem

Existing vehicle scheduling algorithms have slow convergence speeds, are prone to fall into local optimal solutions, have complex parameters and complex implementation, and are difficult to effectively optimize the routes and time utilization of logistics distribution vehicles.

Method used

A vehicle scheduling method based on the Ant Lion algorithm is adopted. By obtaining cargo transportation orders and vehicle information, it is transformed into a feasible solution suitable for the Ant Lion algorithm. The Ant Lion optimization algorithm is used to solve the cost function, and finally reconstructed into the transportation target and path of the vehicle. Combined with Random walk, roulette, and elite strategies to improve convergence speed and search capabilities.

Benefits of technology

It improves the search capability and convergence speed of vehicle dispatching, obtains higher optimal solution probability and system robustness, simplifies parameter adjustment, and reduces the complexity of algorithm implementation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114626632B_ABST
    Figure CN114626632B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of logistics and transportation, and specifically relates to a vehicle scheduling method, system, equipment and medium based on the ant lion algorithm. The method includes the following steps: obtaining detailed demand tables of all orders for cargo transportation and freight vehicle information, generating a distribution sequence, and converting the distribution sequence into a feasible solution suitable for the ant lion algorithm; according to the feasible solution, using the ant lion optimization algorithm to optimize and solve the selected cost function, and obtain the optimal transportation plan corresponding to the minimum value of the cost function, and the optimal transportation plan corresponds to the optimal vehicle scheduling method; reconstructing and parsing the optimal vehicle scheduling method into the transportation target and path of each specific vehicle. The present invention combines various matching schemes for vehicle scheduling with ants wandering around the traps dug by ant lions, thereby improving the convergence speed of the population, having strong optimization performance, few adjustment parameters and being easy to implement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of logistics and transportation, and specifically relates to a vehicle scheduling method, system, equipment and medium based on the ant lion algorithm. Background Art

[0002] Logistics and transportation play a very important role in the logistics industry and logistics supply chain, and logistics vehicle scheduling management occupies an important position in the logistics and transportation process. Effectively improving the efficiency and level of logistics vehicle scheduling management is conducive to improving the efficiency of the entire logistics and transportation. The problem of logistics and distribution vehicle scheduling optimization has always been the core issue of modern logistics management. It aims to improve the time utilization of logistics and distribution vehicles on the basis of reducing distribution costs. The optimization and scheduling of distribution vehicles mainly includes the optimization of collection routes, the optimization of distribution routes, and the integration of cargo assembly and distribution. Distribution transportation is used for a large number of distribution users, and there are route intersections and time limits between multiple orders. Therefore, the best distribution route is constructed to effectively complete orders and efficiently complete tasks, which can significantly reduce the cost and benefits of distribution. Distribution is an important issue at the end of logistics, and it is also a powerful weapon to reduce logistics expenses.

[0003] At present, the commonly used heuristic optimization algorithms for vehicle scheduling problems are mainly based on PSO, genetic algorithm, hybrid bat algorithm and various improved algorithms corresponding to traditional algorithms. These algorithms often have a general convergence speed, are prone to fall into local optimal solutions, have a large number of conditional parameters, and the algorithm implementation is also relatively complex. Summary of the invention

[0004] In order to solve the problem of slow convergence speed of traditional algorithms in the prior art, the present invention provides a vehicle scheduling method, system, device and medium based on the ant lion algorithm.

[0005] In a first aspect, the present invention provides a vehicle scheduling method based on the ant lion algorithm, comprising the following steps: obtaining detailed demand tables of all orders for cargo transportation and freight vehicle information, generating a distribution sequence, and converting the distribution sequence into a feasible solution suitable for the ant lion algorithm; calculating the cost function value of the feasible solution, optimizing and solving it through the ant lion algorithm, and obtaining an optimal transportation plan corresponding to the minimum value of the cost function, wherein the optimal transportation plan corresponds to an optimal vehicle scheduling method; and reconstructing and parsing the optimal vehicle scheduling method into the transportation target and path of each specific vehicle.

[0006] Furthermore, converting the delivery sequence into a feasible solution suitable for the ant lion algorithm specifically includes:

[0007] A check function is used to determine whether the delivery sequence meets the hard requirements of the task. If the hard requirements are met, the delivery sequence is converted into a feasible solution suitable for the ant lion algorithm; if the hard requirements are not met, the delivery sequence is modified by adjusting the function and re-judged.

[0008] Furthermore, using the check function to determine whether the delivery sequence meets the rigid requirements of the task specifically includes:

[0009] Load each vehicle with goods in the order of delivery until the total weight of the goods exceeds the total load of one vehicle, and then send a new vehicle to transport the current goods;

[0010] When all goods can be assigned to a certain vehicle respectively, the total number of vehicles used is counted to see whether it is less than or equal to the number of vehicles allowed to be used for all tasks. If it is not more than the number of vehicles allowed to be used for all tasks, it is considered that the hard requirement is met. If it exceeds the number of vehicles allowed to be used for all tasks, it is considered that the hard requirement is not met at all.

[0011] Furthermore, the parameters of the ant lion algorithm include: population size P, maximum number of iterations nIter, search space dimension dim and cost function Cost, wherein the cost function value Cost is calculated as follows:

[0012]

[0013] Among them, PE is the waiting coefficient of the vehicle's early arrival for the task; PL is the penalty coefficient of the vehicle's delayed completion of the task for the target; distTime(a,b) represents the time taken by the vehicle to run from a to b; X i-1 and X i Indicates the location of the vehicle before executing task i and the location of task i; serviceTime i Indicates the execution time required for task i; Start i and End i Indicates the start time and end time of task i; Arrive i and Finish i It represents the arrival time and completion time of the vehicle when executing task i.

[0014] Furthermore, the specific method of optimizing the cost function value of the feasible solution by the ant lion algorithm is as follows:

[0015] Sort the cost function values ​​in ascending order, and select the top Antlions After selection The individuals in the population act as ants Recording the first Antlion AL 1 is the optimal individual S1 , the cost function value of the first ant lion Cost(S 1 ) is the global optimal function value Score best , the position of the first ant lion is the global optimal transportation solution S best .

[0016] Furthermore, in the ant lion algorithm, as the number of iterations increases, the ant's wandering range is gradually reduced.

[0017] Furthermore, the reconstructing and parsing the optimal vehicle scheduling method into the specific transportation target and path of each vehicle specifically includes:

[0018] Obtain a delivery sequence, and set the sequence number of the current delivery sequence to 1;

[0019] Check the allocation status of each vehicle from the perspective of the vehicle, set the current vehicle as vehicle 1, and check whether the number of goods required by the current sequence task can be loaded by the first vehicle. If the amount of goods already loaded by the current vehicle plus the number of goods required by the current sequence task is less than or equal to the current vehicle load, the goods are allocated to the current vehicle, and the sequence number of the current distribution sequence is increased by 1. If the amount of goods already loaded plus the number of goods required by the current sequence task is greater than the current vehicle load, the current vehicle number is increased by 1 and this step is executed again;

[0020] If the sequence number of the current delivery sequence is less than the total number of tasks N, continue to distribute the goods, otherwise complete the reconstruction analysis.

[0021] In a second aspect, the present invention provides a vehicle dispatching system based on the ant lion algorithm, specifically comprising:

[0022] Conversion module: used to obtain detailed demand tables of all orders for cargo transportation and information on cargo vehicles, generate a delivery sequence, and convert the delivery sequence into a feasible solution suitable for the ant lion algorithm;

[0023] Calculation module: used to optimize and solve the selected cost function using the ant lion optimization algorithm according to the feasible solution, and obtain the optimal transportation plan corresponding to the minimum value of the cost function, and the optimal transportation plan corresponds to the optimal vehicle scheduling method;

[0024] Analysis module: used to reconstruct and analyze the optimal vehicle scheduling method into the transportation target and path of each specific vehicle.

[0025] In a third aspect, the present invention provides a computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the vehicle scheduling method based on the ant lion algorithm is implemented when the processor executes the computer program.

[0026] In a fourth aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the vehicle scheduling method based on the ant lion algorithm is implemented.

[0027] Compared with the prior art, the present invention has the following beneficial effects:

[0028] The method of the present invention uses a vehicle scheduling solution based on the antlion optimization algorithm, combines various matching solutions for vehicle scheduling with ants walking around traps dug by antlions, then uses ant walking to perform local search, and uses antlions to select the optimal result. Not only does the random walk process in the algorithm provide a good search capability for solving scheduling problems, but it also improves the convergence speed of the population. Due to the introduction of random walks, roulette strategies and elite strategies, using this method to solve problems becomes a solution with diverse search populations, strong optimization performance, few adjustment parameters, and easy implementation. The method has achieved good results in solving NP-difficult problems such as vehicle scheduling, and the solution obtained is more likely to be the actual optimal solution, and the robustness is also strong. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0030] In the attached picture:

[0031] Figure 1 The overall flow diagram of a vehicle dispatching method based on the ant lion algorithm of the present invention is shown;

[0032] Figure 2 A flowchart of a feasible solution method for vehicle scheduling involved in a vehicle scheduling method based on an ant lion algorithm of the present invention;

[0033] Figure 3 A flowchart of an implementation of the ant lion algorithm involved in a vehicle scheduling method based on the ant lion algorithm of the present invention;

[0034] Figure 4 The present invention discloses a decoding flow chart of a solution sequence encoding used in a vehicle scheduling method based on the ant lion algorithm. DETAILED DESCRIPTION

[0035] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present invention can be combined with each other without conflict.

[0036] The following detailed description is an exemplary description, which is intended to provide further detailed description of the present invention. Unless otherwise specified, all technical terms used in the present invention have the same meaning as those generally understood by those skilled in the art to which the present invention belongs. The terms used in the present invention are only for describing specific embodiments, and are not intended to limit the exemplary embodiments according to the present invention.

[0037] Example 1

[0038] like Figure 1 As shown, a vehicle scheduling method based on the ant lion algorithm comprises the following steps:

[0039] Step 1: Obtain all detailed order demand tables TInfo and freight vehicle information TrunkInfo for cargo transportation, and convert the complex vehicle scheduling sequence steps into feasible solution variables Solution suitable for the Ant Lion Algorithm.

[0040] like Figure 2 As shown, the specific steps include:

[0041] Step 11: Obtain all detailed order demand tables TInfo and freight vehicle information TrunkInfo for cargo transportation. The detailed order demand table TInfo includes a batch of task sequences T marked with serial numbers. i (i=1,2,3…N, each task includes the number of cargo required by the task Ncargo, the task start time beginTime, the task deadline endTime, the necessary service time for task execution and the number of vehicles allowed to be used for all tasks Nmax, and the cargo vehicle information TrunkInfo includes the set of vehicles available for dispatch for this task Trunks={Vol 1 ,Vol 2 ,Vol 3 …Vol Nmax}, expressed in terms of the load of the corresponding vehicle, mainly including the load information and total number of vehicles.

[0042] Step 12: Combine all order detail demand tables TInfo and the freight vehicle information TrunkInfo, assign vehicles for transportation in sequence, and use the random function R = Random(N) to randomly generate a delivery sequence S r =[g 1 ,g 2 ,g 3 …g N ] as the transportation plan, and use the check function C = Check (S) to check the delivery sequence S r Check whether the hard requirements of the task are met; if not, continue with step 13; if the hard requirements of the task are met, jump to step 14.

[0043] The Check function determines whether the delivery sequence meets the rigid requirements of the task: 1 , S 2 , S 3 ...load each truck with cargo until the total weight of the cargo, volNow, exceeds the total weight of the truck, volTrunk i Then a new car, Trunk i+1 Transport the current goods; when all the goods can be assigned to a certain vehicle respectively, count whether the total number of vehicles used is less than or equal to the number of vehicles allowed for all tasks Nmax. If not, it is considered that the hard requirements of the task are met. If it exceeds the number of vehicles allowed for all tasks Nmax, it is considered that the hard requirements of the task are not met at all.

[0044] Step 13: Use the adjustment function A = Adjust(S) to adjust the delivery sequence S r Make the modification and then re-execute step 12. The adjustment function A = Adjust(S) is obtained by selecting the delivery sequence S r The task sequence that occupies more resources i Move back and replace the task sequence g that occupies less resources in other vehicles j .

[0045] Step 14: For a reasonable transportation plan generated in step 12, combine it into a feasible solution.

[0046] Step 2: Use the Ant Lion Optimization Algorithm to optimize and solve the selected cost function Cost and obtain the minimum value C of the cost function min The corresponding optimal transportation solution Score best , optimal transportation solution Score best Corresponding to the optimal vehicle scheduling method.

[0047] like Figure 3 As shown, the specific steps include:

[0048] Step 21: Determine the parameters of the ant lion algorithm, including the population size P, the maximum number of iterations nIter, the search space dimension dim, and the cost function Cost;

[0049] Determine the cost function Cost, and take the linear weighted sum of a vehicle's running distance, service time, early waiting time, and delay penalty time as the cost function of a single vehicle; add up the cost functions of all vehicles as the total cost function of this transportation plan, that is, the cost function Cost, which is specifically:

[0050]

[0051] Among them, PE is the waiting coefficient of the vehicle's early arrival for the task; PL is the penalty coefficient of the vehicle's delayed completion of the task for the target; distTime(a,b) represents the time taken by the vehicle to run from a to b; X i-1 and X i Indicates the location of the vehicle before executing task i and the location of task i; serviceTime i Indicates the execution time required for task i; Start i and End i Indicates the start time and end time of task i; Arrive i and Finish i It represents the arrival time and completion time of the vehicle when executing task i.

[0052] Step 22: Use the feasible solution Solution to initialize the population individuals, including the ant population AT and the ant lion population AL.

[0053] Step 23: Calculate the cost function value Cost(S r ), sort in ascending order, select the first one after sorting Antlions After selection The individuals in the population act as ants Recording the first Antlion AL 1 is the optimal individual S 1 , the cost function value of the first ant lion Cost(S 1 ) is the global optimal function value Score best , the position of the first ant lion is the global optimal transportation solution S best .

[0054] Step 24: Execute the ant lion algorithm, traverse the current ant set AT, and for each ant AT i , use the roulette algorithm to select a corresponding antlion AL J .

[0055] Step 25: Before each ant is ready to wander, calculate the trap range of the antlion number j selected by the ant in this round t:

[0056]

[0057] Among them, d min and d min Respectively represent the lower and upper bounds of the solution space; represents the position of the jth antlion in round t; ratio is a function of the iteration round t:

[0058]

[0059] As the ants get deeper and deeper into the antlion's trap, the antlion's trap scaling ratio ratio always decreases with the number of iterations, so the ant's random walk range will also gradually decrease; then the ants will randomly walk according to the trap range and the total number of iterations t;

[0060] At this time, Ant AT i The random walk position X is:

[0061]

[0062] in, Indicates AT i In the tth round, the position on the kth dimension; a i and b i Represents the minimum and maximum values ​​of the random walk of the i-th variable; and Antlion AL j The minimum and maximum values ​​of the trap range at iteration t;

[0063]

[0064] Among them, X real Indicates the location of the ant in this round of the algorithm; ave() is the average function, which means to find the average value of all parameters passed into ave(); X best represents the position of the ant's random walk around the global optimal antlion, X random Indicates the position of the ants' random walk around the antlion selected in this round.

[0065] Step 26: After the random walk is completed, normalization should be performed according to the set upper and lower boundaries to prevent crossing the boundary.

[0066] Step 27: Before the optimization target or the number of iterations is reached, repeat steps 23, 24, 25 and 26; after the optimization target is reached or the specified number of iterations is completed, execute step 28.

[0067] Step 28: The algorithm ends and the current global optimal transportation solution S is obtained best And its corresponding global optimal function value Score best .

[0068] Step 3: The global optimal transportation solution S best Reconstruct and analyze the transportation target and path of each specific vehicle, such as vehicle i: 0→ga→gb…. Figure 4 As shown, specifically including:

[0069] Step 31: Get a delivery sequence Sr =[g 1 ,g 2 ,g 3 …g N ];

[0070] Step 32: traverse the delivery sequence and set the sequence number of the current delivery sequence to 1;

[0071] Step 33: Check the allocation status of each vehicle from the perspective of the vehicle, set the current vehicle as vehicle 1, and check whether the number of goods required by the current task is loaded by the first vehicle. If the amount of goods already loaded by the current vehicle plus the number of goods required by the current task is less than or equal to the current vehicle load, the goods are allocated to the current vehicle; if the amount of goods already loaded plus the number of goods required by the current task is greater than the current vehicle load, add 1 to the current vehicle number and execute this step again;

[0072] Step 34: The sequence number of the current delivery sequence is increased by 1;

[0073] Step 35: If the sequence number of the current delivery sequence is less than the total number of tasks N, jump to step 33; otherwise, continue to step 36;

[0074] Step 36: After completing the sequence decoding of the solution, the result should be:

[0075] Vehicle 1: 0 → g a → b → c →0

[0076] Vehicle 2: 0 → g d → e → f → g →0

[0077] Vehicle 3: …

[0078] Example 2

[0079] A vehicle dispatching system based on the antlion algorithm includes the following modules:

[0080] Example 3

[0081] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the vehicle scheduling method based on the ant lion algorithm described in Example 1 when executing the computer program.

[0082] Example 4

[0083] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the vehicle scheduling method based on the ant lion algorithm described in Example 1 is implemented.

[0084] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0085] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0086] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0087] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0088] It is known from common technical knowledge that the present invention can be implemented by other embodiments that do not deviate from its spirit or essential features. Therefore, the above disclosed embodiments are only illustrative in all respects and are not exclusive. All changes within the scope of the present invention or within the scope equivalent to the present invention are included in the present invention.

[0089] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A vehicle dispatching method based on the ant lion algorithm, characterized in that: The method comprises the following steps: obtaining detailed demand tables of all orders for cargo transportation and information on cargo vehicles, generating a delivery sequence, and converting the delivery sequence into a feasible solution suitable for the ant lion algorithm; Calculate the cost function of the feasible solution, optimize and solve it through the ant lion algorithm, and obtain the optimal transportation plan corresponding to the minimum value of the cost function, wherein the optimal transportation plan corresponds to the optimal vehicle scheduling method; Reconstructing and parsing the optimal vehicle scheduling method into the specific transportation target and path of each vehicle; The parameters of the ant lion algorithm include: population size P, maximum number of iterations nIter, search space dimension dim and cost function Cost, wherein the cost function Cost is calculated as follows: Among them, PE is the waiting coefficient of the vehicle's early arrival for the task; PL is the penalty coefficient of the vehicle's delayed completion of the task for the target; distTime(a,b) represents the time taken by the vehicle to run from a to b; X i-1 and X i Indicates the location of the vehicle before executing task i and the location of task i; serviceTime i Indicates the execution time required for task i; Start i and End i Indicates the start time and end time of task i; Arrive i and Finish i It represents the arrival time and completion time of the vehicle when executing task i; The specific method of optimizing the cost function of the feasible solution by the ant lion algorithm is as follows: Sort the cost functions in ascending order, and select the top Antlions After selection The individuals in the population act as ants Record the first ant lion AL1 as the optimal individual S1, and the cost function Cost(S1) of the first ant lion is the global optimal function value Score best , the position of the first ant lion is the global optimal transportation solution S best ; In the ant lion algorithm, as the number of iterations increases, the ant's wandering range is gradually reduced; The reconstructing and parsing the optimal vehicle scheduling method into the specific transportation target and path of each vehicle specifically includes: Obtain a delivery sequence, and set the sequence number of the current delivery sequence to 1; Check the allocation status of each vehicle from the perspective of the vehicle, set the current vehicle as vehicle 1, and check whether the number of goods required by the current sequence task can be loaded by the first vehicle. If the amount of goods already loaded by the current vehicle plus the number of goods required by the current sequence task is less than or equal to the current vehicle load, the goods are allocated to the current vehicle, and the sequence number of the current distribution sequence is increased by 1. If the amount of goods already loaded plus the number of goods required by the current sequence task is greater than the current vehicle load, the current vehicle number is increased by 1 and this step is executed again; If the sequence number of the current delivery sequence is less than the total number of tasks N, continue to distribute the goods, otherwise complete the reconstruction analysis.

2. The vehicle dispatching method based on the ant lion algorithm according to claim 1, characterized in that: The step of converting the delivery sequence into a feasible solution suitable for the ant lion algorithm specifically includes: A check function is used to determine whether the delivery sequence meets the hard requirements of the task. If the hard requirements are met, the delivery sequence is converted into a feasible solution suitable for the ant lion algorithm; if the hard requirements are not met, the delivery sequence is modified by adjusting the function and re-judged.

3. The vehicle dispatching method based on the ant lion algorithm according to claim 2, characterized in that: Using the check function to determine whether the delivery sequence meets the hard requirements of the task specifically includes: Load each vehicle with goods in the order of delivery until the total weight of the goods exceeds the total load of one vehicle, and then send a new vehicle to transport the current goods; When all goods can be assigned to a certain vehicle respectively, the total number of vehicles used is counted to see whether it is less than or equal to the number of vehicles allowed to be used for all tasks. If it is not more than the number of vehicles allowed to be used for all tasks, it is considered that the hard requirement is met. If it exceeds the number of vehicles allowed to be used for all tasks, it is considered that the hard requirement is not met at all.

4. A vehicle dispatching system based on the ant lion algorithm, used to implement the vehicle dispatching method based on the ant lion algorithm according to any one of claims 1 to 3, characterized in that: include: Conversion module: used to obtain detailed demand tables of all orders for cargo transportation and information on cargo vehicles, generate a delivery sequence, and convert the delivery sequence into a feasible solution suitable for the ant lion algorithm; Calculation module: used to optimize and solve the selected cost function using the ant lion optimization algorithm according to the feasible solution, and obtain the optimal transportation plan corresponding to the minimum value of the cost function, and the optimal transportation plan corresponds to the optimal vehicle scheduling method; Analysis module: used to reconstruct and analyze the optimal vehicle scheduling method into the transportation target and path of each specific vehicle.

5. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the vehicle scheduling method based on the ant lion algorithm according to any one of claims 1 to 3 is implemented.

6. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the vehicle scheduling method based on the ant lion algorithm according to any one of claims 1 to 3 is implemented.