Truck queue coordination path optimization method and system based on large language model

By constructing a common and personalized experience base, and using a large language model for path optimization and reflective correction, the problem of insufficient utilization of historical experience in existing technologies has been solved, and comprehensive optimization of truck queue operation efficiency and transportation costs has been achieved.

CN123180482APending Publication Date: 2026-11-27BEIJING UNIV OF CIVIL ENG & ARCHITECTURE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611321988.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-28
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing truck route optimization methods struggle to effectively utilize historical experience when faced with complex transportation tasks and dynamic road environments, and lack a reflective mechanism for route decisions, making it difficult to balance operational efficiency, transportation costs, and platooning coordination.

Method used

A collaborative path optimization method for truck platoons based on a large language model is constructed. By acquiring truck operation characteristics and historical trajectories, a common and personalized experience base is built. The large language model is used for path reasoning and decision-making, and a reflection mechanism is used to correct the path scheme to generate an optimized path that balances efficiency and cost.

Benefits of technology

It has improved the efficiency of truck platooning operations and reduced transportation costs, while also enhancing the reliability of route decisions and the efficiency of utilizing historical experience, adapting to different transportation tasks and vehicle operation scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123180482A_ABST
    Figure CN123180482A_ABST
Patent Text Reader

Abstract

The application relates to the field of traffic transportation engineering, and provides a truck queue cooperative path optimization method and system based on a large language model, which comprises the following steps: quantifying a truck running track, a transportation task and vehicle running characteristics, and constructing a parallel truck queue; based on historical track data and a driver portrait, constructing a common historical experience library and an individualized heterogeneous experience library; driving the large language model to infer a path scheme for the truck queue; for a suboptimal path, constructing a reflection mechanism to correct and secondarily infer, and simultaneously updating an effective decision result to the experience library; and verifying the optimization effect of the method through an example study. The method can solve the defects that an existing truck path optimization method is insufficient in utilizing historical transportation experience, path decision lacks evaluation and correction, and it is difficult to simultaneously consider running efficiency, transportation cost and teaming cooperation, and the scheme can realize comprehensive optimization of truck queue running efficiency, transportation cost and teaming cooperation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of transportation engineering technology, and in particular to a method and system for optimizing cooperative routes for truck queues based on a large language model. Background Technology

[0002] Road freight transport is a crucial component of the integrated transportation system. Trucks incur significant fuel consumption, toll fees, and time costs during long-distance transport. In actual transport operations, some trucks share similar origins, destinations, and travel times, making collaborative driving feasible. By rationally organizing parallel truck platoons, vehicle operating efficiency can be improved, and the fuel-saving effect of platooning can reduce transportation costs. However, due to differences in departure and arrival times, operating conditions, and driving characteristics among trucks, coupled with the dynamic nature of road conditions, the collaborative route selection for parallel truck platoons is quite complex.

[0003] Existing truck route planning methods primarily select routes based on travel distance, estimated travel time, or toll costs. Some studies employ heuristic algorithms, reinforcement learning, or deep reinforcement learning to solve the route optimization problem. Traditional heuristic methods typically rely on fixed rules and parameter settings, limiting their adaptability to complex transportation tasks and dynamic road environments. While reinforcement learning and deep reinforcement learning methods can acquire route selection strategies through training, their performance is significantly affected by training samples, state space, and reward function. When transportation tasks, vehicle characteristics, or road environments change, retraining or parameter adjustments are often necessary, and the utilization of existing transportation experience is also relatively limited.

[0004] In recent years, large language models have provided new technical means for route selection under complex transportation conditions due to their strong information understanding, comprehensive analysis, and reasoning capabilities. Large language models can simultaneously process truck platoon information, candidate route features, historical route experience, driver preferences, and road conditions. However, existing methods mostly focus on single route decisions, lacking the categorized storage and targeted recall of historical experience, and also lacking a reflective mechanism for evaluating, providing feedback, and correcting selected routes, making it difficult to avoid suboptimal routes. Therefore, it is still necessary to construct a collaborative route optimization method that integrates quantitative perception of truck platoons, historical experience recall, large language model decision-making, reflective correction, and experience updates to achieve comprehensive optimization of truck platoon operating efficiency, transportation costs, and platooning coordination. Summary of the Invention

[0005] This invention provides a method and system for optimizing truck platooning collaborative routes based on a large language model. It addresses the shortcomings of existing truck route optimization methods, such as insufficient utilization of historical transportation experience, lack of evaluation and correction of route decisions, and difficulty in simultaneously considering operational efficiency, transportation costs, and platooning collaboration. The solution of this invention can achieve comprehensive optimization of truck platooning operational efficiency, transportation costs, and platooning collaboration.

[0006] This invention provides a truck queue cooperative path optimization method based on a large language model, comprising: The operation characteristics of the trucks are obtained, and vehicle queue information is extracted based on the operation characteristics. The degree of cooperative operation adaptation between trucks is determined based on the extracted vehicle queue information, and a parallel truck queue is constructed. The operation characteristics include the operation trajectory characteristics and transportation task characteristics of the trucks, and the vehicle queue information includes the origin and destination location data, transportation time window data and vehicle attribute data between different trucks. Based on the historical operating trajectories of trucks, route selection information under different transportation scenarios is extracted to construct a common historical experience database; based on driver profiles, driver road selection preferences and transportation behavior characteristics are extracted to construct a personalized heterogeneous experience database. Based on the transportation task, candidate route information is generated. The vehicle queue information, the candidate route information, the common historical experience base, and the personalized heterogeneous experience base are converted into text prompt words and input into a large language model for path reasoning and decision-making. The goal of path optimization is to minimize the transportation cost of parallel truck queues, and to generate a route scheme that takes into account operational efficiency, transportation cost, and platooning coordination. A reflection mechanism is constructed to evaluate and correct the path schemes generated by the large language model. When the path scheme does not meet the preset evaluation conditions, the evaluation results are fed back to the large language model for secondary path reasoning until a path scheme that meets the preset evaluation conditions is obtained. The effective path scheme and its corresponding transportation scenario, vehicle characteristics and evaluation results are then updated to the common historical experience base. The performance of the parallel truck queue collaborative path optimization method based on a large language model is evaluated and verified using real truck operation trajectory data, transportation task data, and driver profile data.

[0007] According to the truck queue cooperative path optimization method based on a large language model provided by the present invention, the step of determining the degree of cooperative operation adaptation between trucks based on the extracted vehicle queue information and constructing a parallel truck queue includes: Calculate the starting and ending spatial distances between any two trucks in the truck queue based on the origin and destination location data; Calculate the departure time difference and arrival time difference between any two trucks in the truck queue based on the transportation time window data; The degree of trajectory overlap between any two trucks in the truck queue is calculated based on the aforementioned trajectory characteristics, and the difference in travel distance is also calculated. Based on the starting point spatial distance, ending point spatial distance, departure time difference, arrival time difference, trajectory overlap degree, and travel distance difference, the degree of cooperative operation compatibility between the two trucks is determined. If the degree of adaptation of the cooperative operation meets the pre-set cooperative operation conditions, the corresponding trucks will be matched to form a parallel truck queue, and a queue identifier will be set for each parallel truck queue. Based on the origin and destination location data, transportation time window data, transportation distance data, vehicle attribute data, and trajectory overlap of each truck in the parallel truck queue, truck queue status information is generated, providing input for candidate path generation and path reasoning of the large language model.

[0008] According to the truck queue cooperative path optimization method based on a large language model provided by the present invention, the cooperative operation conditions include: The starting point spatial distance does not exceed a preset starting point spatial distance threshold, and the ending point spatial distance does not exceed a preset ending point spatial distance threshold. The departure time difference does not exceed a preset departure time difference threshold, and the arrival time difference does not exceed a preset arrival time difference threshold. The trajectory overlap is not lower than a preset trajectory overlap threshold, and the travel distance difference does not exceed a preset travel distance difference threshold.

[0009] According to the truck platooning collaborative path optimization method based on a large language model provided by the present invention, the method extracts path selection information under different transportation scenarios based on the historical operating trajectories of trucks to construct a common historical experience base; and extracts drivers' road selection preferences and transportation behavior characteristics based on driver profiles to construct a personalized heterogeneous experience base, including: Obtain the truck's historical operating trajectory, transportation tasks, and corresponding route selection results. Extract the starting coordinates, ending coordinates, route selection strategy, driving distance, driving time, and toll for each historical transportation task. The route selection result refers to the specific route that the truck ultimately determines and actually travels between the starting point and the ending point based on the adopted route selection strategy. The preset geographical area is divided into spatial grids, and the starting coordinates and ending coordinates of each historical transportation task are mapped to the corresponding starting grid and ending grid, respectively. The combination of the starting grid and the ending grid is used as the index of the historical transportation task. The truck routes are classified according to the historical transportation tasks. The number of times different path selection strategies are selected, the path selection frequency and the path selection probability under each historical transportation task are counted. The historical path selection strategies are sorted according to the path selection frequency and the path selection probability to build a common historical experience database. Obtain the driver profile corresponding to the driver, which includes multi-dimensional data such as road type preference, driving time, driving speed, rest pattern, historical route selection characteristics and vehicle operation characteristics; Based on the driver profile, the driver's road selection preferences and transportation behavior characteristics are determined. The driver identifier, vehicle identifier, transportation scenario, road selection preference, transportation behavior characteristics and corresponding route selection results are associated and stored to construct a personalized heterogeneous experience library.

[0010] According to the truck platoon cooperative path optimization method based on a large language model provided by the present invention, the step of converting the vehicle platoon information, the candidate path information, the common historical experience base, and the personalized heterogeneous experience base into text prompt words and inputting them into a large language model for path reasoning and decision-making includes: Based on the starting point, ending point, and transportation task of the parallel truck queue, multiple candidate routes are generated using different path planning strategies, and the driving distance, estimated driving time, toll, and road traffic information of each candidate route are obtained. Calculate the total cost of the parallel truck queue, and sort the candidate paths according to the total cost of the parallel truck queue to form a set of candidate paths for the large language model to choose from; Based on the origin and destination locations and transportation scenario of the current transportation task, the matching historical path experience is recalled from the common historical experience database and the personalized heterogeneous experience database. The vehicle queue information, candidate path information, historical path experience, path optimization goals, and road conditions are converted into text prompts and input into a large language model. The large language model then infers and compares the candidate paths and outputs the target candidate path and the reasons for its selection.

[0011] According to the truck queue cooperative path optimization method based on a large language model provided by the present invention, the calculation of the total cost of the parallel truck queue includes: The total cost is calculated using the following formula (1). : ; (1) in, Represents a set of parallel truck queues. This represents any parallel truck queue. Represents a parallel truck queue The corresponding set of candidate paths, Indicates any candidate path, Represents the path selection variable, when a parallel truck queue... Select candidate path hour, ,otherwise , Represents a parallel truck queue Select candidate path The driving distance at that time Indicates the estimated travel time. Indicates basic operating costs, This indicates the fuel-saving benefits of the formation. , and These represent the respective weights of driving distance, estimated driving time, and basic operating costs in the total cost; The basic operating costs Expressed by formula (2): ; (2) in, Represents a parallel truck queue Select candidate path The resulting toll costs This indicates the corresponding fuel cost; The fuel-saving benefits of the formation Expressed by formula (3): ; (3) in, Represents a parallel truck queue Select candidate path The platooning fuel saving rate is determined based on the degree of coordination and adaptation between trucks.

[0012] According to the truck queue collaborative path optimization method based on a large language model provided by the present invention, the construction of a reflection mechanism to evaluate and correct the path scheme generated by the large language model includes: Obtain the target candidate path output by the large language model, and extract the total cost, driving distance, estimated driving time, average driving speed, road conditions, driver road selection preferences, and platooning coordination information of the target candidate path; The target candidate path is comprehensively evaluated based on its total cost, travel distance, estimated travel time, average travel speed, road conditions, driver road selection preferences, and platooning coordination information to obtain a path evaluation result. The path evaluation results are compared with preset evaluation conditions. When the target candidate path meets the preset evaluation conditions, the target candidate path is determined as a valid path scheme. When the target candidate path does not meet the preset evaluation conditions, the reasons for the suboptimal nature of the target candidate path are identified, and reflection feedback information is generated based on the reasons for the suboptimal nature. The reflection feedback information, remaining candidate path information and historical path experience are converted back into text prompt words and input into the large language model to guide the large language model to perform secondary path reasoning and decision-making on the remaining candidate paths, and obtain the corrected target candidate path. The revised target candidate path is re-evaluated until a path scheme that meets the preset evaluation conditions or a preset number of reflections is obtained. The effective route schemes that meet the preset evaluation conditions, the corresponding transportation scenarios, truck queue characteristics, reasons for route selection, and route evaluation results are formed into route experience records and updated to the common historical experience library and / or the personalized heterogeneous experience library for subsequent similar transportation scenarios to call.

[0013] According to the truck platooning cooperative path optimization method based on a large language model provided by the present invention, the method is evaluated and validated through examples using real truck trajectory data, transportation task data, and driver profile data, including: Multiple parallel truck queues are constructed using real truck trajectory data, transportation task data, and driver profile data. The transportation tasks corresponding to each parallel truck queue are input into a large language model to obtain the corresponding collaborative path optimization results. Using the original path corresponding to the actual truck running trajectory as the path before optimization, the optimization results of the cooperative path are evaluated by the speed improvement rate and cost saving rate, and the performance evaluation results of the truck queue cooperative path optimization method based on the large language model are obtained in terms of improving truck running efficiency and reducing transportation costs.

[0014] This invention also provides a truck queue cooperative path optimization system based on a large language model, which applies a truck queue cooperative path optimization method based on a large language model, including: The data acquisition and queue construction module is used to acquire the operating characteristics of trucks, extract vehicle queue information based on the operating characteristics, determine the degree of cooperative operation adaptation between trucks based on the extracted vehicle queue information, and construct a parallel truck queue. The operating characteristics include the operating trajectory characteristics and transportation task characteristics of the trucks, and the vehicle queue information includes the origin and destination location data, transportation time window data, and vehicle attribute data between different trucks. The experience base construction module is used to extract route selection information under different transportation scenarios based on the historical operation trajectory of trucks and build a common historical experience base; and to extract drivers' road selection preferences and transportation behavior characteristics based on driver profiles and build a personalized heterogeneous experience base. The large model optimization module is used to generate candidate route information based on the transportation task, and to convert the vehicle queue information, the candidate route information, the common historical experience base and the personalized heterogeneous experience base into text prompt words, which are then input into the large language model for path reasoning and decision-making. The goal of the path optimization is to minimize the transportation cost of the parallel truck queue, and to generate a route scheme that takes into account the operating efficiency, transportation cost and platooning coordination. The result reflection module is used to evaluate and correct the path scheme generated by the large language model. When the path scheme does not meet the preset evaluation conditions, the evaluation result is fed back to the large language model for secondary path reasoning until a path scheme that meets the preset evaluation conditions is obtained. The effective path scheme and its corresponding transportation scenario, vehicle characteristics and evaluation results are updated to the common historical experience base. The instance verification module is used to evaluate and verify the performance of the parallel truck queue collaborative path optimization method based on a large language model by using real truck operation trajectory data, transportation task data, and driver profile data.

[0015] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement any of the above-described methods for truck queue cooperative path optimization based on a large language model.

[0016] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-described methods for truck queue cooperative path optimization based on a large language model.

[0017] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements any of the above-described methods for truck queue cooperative path optimization based on a large language model.

[0018] The freight truck platooning collaborative path optimization method provided by this invention can quantitatively perceive freight truck trajectories, transportation tasks, and vehicle operation characteristics. It constructs parallel freight truck platoons based on the origin and destination locations, transportation time windows, trajectory overlap, and vehicle attributes. Through a common historical experience database and a personalized heterogeneous experience database, it provides matching historical path experience for the current transportation task. Utilizing a large language model, it comprehensively analyzes freight truck platooning information, candidate path information, historical path experience, and road conditions to generate path solutions that balance operational efficiency, transportation costs, and platooning collaboration. Furthermore, through a reflection mechanism, it evaluates and corrects suboptimal paths, updates effective path experience, thereby improving the utilization efficiency of historical transportation experience and the reliability of path decisions, achieving comprehensive optimization of parallel freight truck platooning operational efficiency, transportation costs, and platooning collaboration. Attached Figure Description

[0019] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0020] Figure 1 This is one of the flowcharts illustrating the truck queue collaborative path optimization method based on a large language model provided in this embodiment of the invention; Figure 2 This is the second flowchart of the truck queue collaborative path optimization method based on a large language model provided in this embodiment of the invention; Figure 3 This is a schematic diagram of the structure of the truck queue cooperative path optimization system based on a large language model provided in an embodiment of the present invention; Figure 4 This is a schematic diagram of the physical structure of the electronic device provided in an embodiment of the present invention. Detailed Implementation

[0021] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0022] Figure 1 This is one of the flowcharts of the truck queue collaborative path optimization method based on a large language model provided in the embodiments of the present invention.

[0023] Figure 2 This is the second flowchart of the truck queue collaborative path optimization method based on a large language model provided in this embodiment of the invention.

[0024] like Figure 1 As shown, this embodiment provides a truck queue cooperative path optimization method based on a large language model, including: Step 101: Obtain the operating characteristics of the trucks, extract vehicle queue information based on the operating characteristics, determine the degree of cooperative operation adaptation between trucks based on the extracted vehicle queue information, and construct a parallel truck queue. The operating characteristics include the operating trajectory characteristics and transportation task characteristics of the trucks, and the vehicle queue information includes the origin and destination location data, transportation time window data, and vehicle attribute data between different trucks. In practical applications, the starting and ending spatial distances between any two trucks in a truck queue can be calculated based on the origin and destination location data. Calculate the departure time difference and arrival time difference between any two trucks in the truck queue based on the transportation time window data; The degree of trajectory overlap between any two trucks in the truck queue is calculated based on the aforementioned trajectory characteristics, and the difference in travel distance is also calculated. Based on the starting point spatial distance, ending point spatial distance, departure time difference, arrival time difference, trajectory overlap degree, and travel distance difference, the degree of cooperative operation compatibility between the two trucks is determined. If the degree of adaptation of the cooperative operation meets the pre-set cooperative operation conditions, the corresponding trucks will be matched to form a parallel truck queue, and a queue identifier will be set for each parallel truck queue. Based on the origin and destination location data, transportation time window data, transportation distance data, vehicle attribute data, and trajectory overlap of each truck in the parallel truck queue, truck queue status information is generated, providing input for candidate path generation and path reasoning of the large language model.

[0025] Specifically, when the starting point spatial distance does not exceed a preset starting point spatial distance threshold, the ending point spatial distance does not exceed a preset ending point spatial distance threshold, the departure time difference does not exceed a preset departure time difference threshold, the arrival time difference does not exceed a preset arrival time difference threshold, the trajectory overlap degree is not lower than a preset trajectory overlap degree threshold, and the travel distance difference does not exceed a preset travel distance difference threshold, the cooperative operation conditions can be determined to be met.

[0026] Step 102: Extract route selection information under different transportation scenarios based on the historical operation trajectory of the truck to build a common historical experience database; extract the driver's road selection preferences and transportation behavior characteristics based on the driver profile to build a personalized heterogeneous experience database. During implementation, the historical operating trajectory of the truck, transportation tasks and corresponding route selection results can be obtained, and the starting coordinates, ending coordinates, route selection strategy, driving distance, driving time and toll fees of each historical transportation task can be extracted. Among them, the route selection result refers to the specific route that the truck finally determines and actually travels between the starting point and the ending point based on the route selection strategy adopted (such as shortest path, least time, lowest cost, etc.). The preset geographical area is divided into spatial grids, and the starting coordinates and ending coordinates of each historical transportation task are mapped to the corresponding starting grid and ending grid, respectively. The combination of the starting grid and the ending grid is used as the index of the historical transportation task. The truck routes are classified according to the historical transportation tasks. The number of times different path selection strategies are selected, the path selection frequency and the path selection probability under each historical transportation task are counted. The historical path selection strategies are sorted according to the path selection frequency and the path selection probability to build a common historical experience database. Obtain the driver profile corresponding to the driver, which includes multi-dimensional data such as road type preference, driving time, driving speed, rest pattern, historical route selection characteristics and vehicle operation characteristics; Based on the driver profile, the driver's road selection preferences and transportation behavior characteristics are determined. The driver identifier, vehicle identifier, transportation scenario, road selection preference, transportation behavior characteristics and corresponding route selection results are associated and stored to construct a personalized heterogeneous experience library.

[0027] Step 103: Generate candidate route information based on the transportation task, and convert the vehicle queue information, the candidate route information, the common historical experience base, and the personalized heterogeneous experience base into text prompt words, input them into a large language model for path reasoning and decision-making, with the goal of minimizing the transportation cost of parallel truck queues, and generate a route scheme that takes into account operating efficiency, transportation cost, and platooning coordination. Specifically, the vehicle queue information, candidate route information, common historical experience base, and personalized heterogeneous experience base can be converted into text prompts and input into a large language model for path reasoning and decision-making, including: Based on the starting point, ending point, and transportation task of the parallel truck queue, multiple candidate routes are generated using different path planning strategies, and the driving distance, estimated driving time, toll, and road traffic information of each candidate route are obtained. Calculate the total cost of the parallel truck queue, and sort the candidate paths according to the total cost of the parallel truck queue to form a set of candidate paths for the large language model to choose from; Based on the origin and destination locations and transportation scenario of the current transportation task, the matching historical path experience is recalled from the common historical experience database and the personalized heterogeneous experience database. The vehicle queue information, candidate path information, historical path experience, path optimization goals, and road conditions are converted into text prompts and input into a large language model. The large language model then infers and compares the candidate paths and outputs the target candidate path and the reasons for its selection.

[0028] The calculation of the total cost of the parallel truck queue includes: The total cost is calculated using the following formula (1). : ; (1) in, Represents a set of parallel truck queues. This represents any parallel truck queue. Represents a parallel truck queue The corresponding set of candidate paths, Indicates any candidate path, Represents the path selection variable, when a parallel truck queue... Select candidate path hour, ,otherwise , Represents a parallel truck queue Select candidate path The driving distance at that time Indicates the estimated travel time. Indicates basic operating costs, This indicates the fuel-saving benefits of the formation. , and These represent the respective weights of driving distance, estimated driving time, and basic operating costs in the total cost; The basic operating costs Expressed by formula (2): ; (2) in, Represents a parallel truck queue Select candidate path The resulting toll costs This indicates the corresponding fuel cost; The fuel-saving benefits of the formation Expressed by formula (3): ; (3) in, Represents a parallel truck queue Select candidate path The platooning fuel saving rate is determined based on the degree of coordination and adaptation between trucks.

[0029] Step 104: Construct a reflection mechanism to evaluate and correct the path schemes generated by the large language model; when the path scheme does not meet the preset evaluation conditions, the evaluation results are fed back to the large language model for secondary path reasoning until a path scheme that meets the preset evaluation conditions is obtained, and the effective path scheme and its corresponding transportation scenario, vehicle characteristics and evaluation results are updated to the common historical experience base. In practical applications, the target candidate path output by the large language model can be obtained, and the total cost, driving distance, estimated driving time, average driving speed, road conditions, driver road selection preferences and platooning information of the target candidate path can be extracted. The target candidate path is comprehensively evaluated based on its total cost, travel distance, estimated travel time, average travel speed, road conditions, driver road selection preferences, and platooning coordination information to obtain a path evaluation result. The path evaluation results are compared with preset evaluation conditions. When the target candidate path meets the preset evaluation conditions, the target candidate path is determined as a valid path scheme. When the target candidate path does not meet the preset evaluation conditions, the reasons for the suboptimal nature of the target candidate path are identified, and reflection feedback information is generated based on the reasons for the suboptimal nature. The reflection feedback information, remaining candidate path information and historical path experience are converted back into text prompt words and input into the large language model to guide the large language model to perform secondary path reasoning and decision-making on the remaining candidate paths, and obtain the corrected target candidate path. The revised target candidate path is re-evaluated until a path scheme that meets the preset evaluation conditions or a preset number of reflections is obtained. The effective route schemes that meet the preset evaluation conditions, the corresponding transportation scenarios, truck queue characteristics, reasons for route selection, and route evaluation results are formed into route experience records and updated to the common historical experience library and / or the personalized heterogeneous experience library for subsequent similar transportation scenarios to call.

[0030] Step 105: Using real truck trajectory data, transportation task data, and driver profile data, the performance of the parallel truck queue collaborative path optimization method based on a large language model is evaluated and verified through examples.

[0031] In practice, multiple parallel truck queues can be constructed using real truck trajectory data, transportation task data, and driver profile data. The transportation tasks corresponding to each parallel truck queue are then input into the truck queue collaborative path optimization method based on a large language model to obtain the corresponding collaborative path optimization results. Using the original path corresponding to the real historical running trajectory of the truck as the path before optimization, the optimization results of the cooperative path are evaluated by the speed improvement rate and cost saving rate, and the performance evaluation results of the method in improving the truck running efficiency and reducing transportation costs are obtained. By comparing the proposed truck queue collaborative path optimization method and its components with traditional heuristic path optimization methods, reinforcement learning path optimization methods, deep reinforcement learning path optimization methods, and other large language model path decision-making methods, and by ablation verification through the removal of historical experience bases, reflection modules, or formation control, the path optimization effect of the proposed large language model-based truck queue collaborative path optimization method and its components is evaluated.

[0032] The truck platooning collaborative path optimization method provided in this embodiment can quantitatively perceive truck operating trajectories, transportation tasks, and vehicle operating characteristics. It constructs parallel truck platoons based on the origin and destination locations, transportation time windows, trajectory overlap, and vehicle attributes among trucks. Through a common historical experience database and a personalized heterogeneous experience database, it provides matching historical path experience for the current transportation task. Using a large language model, it comprehensively analyzes truck platooning information, candidate path information, historical path experience, and road conditions to generate path solutions that balance operational efficiency, transportation costs, and platooning collaboration. Furthermore, through a reflection mechanism, it evaluates and corrects suboptimal paths, updates effective path experience, thereby improving the utilization efficiency of historical transportation experience and the reliability of path decisions, achieving comprehensive optimization of parallel truck platooning operational efficiency, transportation costs, and platooning collaboration.

[0033] The following specific embodiment illustrates the parallel truck queue collaborative path optimization method based on a large language model provided in this application.

[0034] (1) Work environment: This embodiment uses the PyTorch framework to write model code. All experimental code runs on a Windows 11 workstation equipped with an "Intel(R) Core(TM) i9-14900HX @ 2.20 GHz" CPU and an "NVIDIA GeForce RTX 4070 Laptop GPU (8 GB) Intel(R) UHD Graphics (128 MB)" GPU.

[0035] (2) Introduction to the dataset: The experiment used self-collected truck GPS trajectory data as input. The data collection area was a certain region, and the collection period was from June 1, 2019 to June 15, 2019. The trajectory data sampling interval was 2 seconds. This embodiment specifically selected 10 days of truck trajectory data with a contour coefficient of not less than 0.3 within the collection period as experimental data. The data included the running trajectories of more than 5,000 trucks.

[0036] (3) Experimental parameter settings: To construct a realistic truck collaborative transportation scenario, this study first matches self-collected truck GPS trajectory data based on the origin and destination locations, departure and arrival times, transportation distances, and trajectory overlap of the truck transportation journeys. Trucks meeting the collaborative operation conditions are then selected, and corresponding parallel truck queues are constructed. For each truck queue, the average of the origin and destination locations of two trucks is used as the common origin and destination of the queue. Truck queue status information is generated based on the two trucks' operating trajectories, transportation times, and vehicle operating characteristics.

[0037] For the transportation tasks of each parallel truck queue, six path planning strategies were used to generate candidate paths: shortest static time, lowest cost, shortest distance, optimal multi-strategy combination, congestion avoidance, and highway priority. The travel distance, estimated travel time, toll, and road traffic information for each candidate path were obtained. The truck traffic conditions, continuous driving time, and continuous travel distance of the candidate paths were tested in the experiment. Paths that did not meet the constraints of truck restrictions, speed limits, and fatigue driving were eliminated, forming a set of valid candidate paths.

[0038] To utilize historical transportation experience, this embodiment divides the study area into spatial grids. Using the starting and ending grids of the current transportation task as transportation scenario indices, it retrieves historical route selection information for similar or identical transportation scenarios from a common historical experience database, and extracts effective route experiences that have undergone reflection and evaluation from a dynamic route experience database. Based on driver profiles, including road type preferences, driving speed, cruising ability, and driving stability, it extracts personalized transportation experience that matches the current truck queue.

[0039] The system combines truck platoon status information, candidate route distance, estimated travel time, basic operating costs, platoon fuel-saving benefits, road conditions, and historical route experience into a pre-defined text structure to form prompt words. These prompts are then input into a large language model for route reasoning and decision-making. The fuel cost of the candidate route is estimated based on the truck's basic fuel consumption, fuel price, and operating speed. The platoon fuel-saving benefits are calculated based on the truck platoon's degree of coordination and the maximum platoon fuel-saving rate, reflecting the transportation cost savings achieved through the collaborative operation of parallel truck platoons.

[0040] After the large language model outputs the target candidate path and the rationale for the path selection, it uses a reflection mechanism to evaluate the travel time, overall path cost, time synchronization degree, and formation coordination conditions of the selected path. When the target candidate path does not meet the preset evaluation conditions, the evaluation results and reasons for its suboptimal performance are fed back to the large language model, guiding it to perform secondary path reasoning on the remaining candidate paths. When the target candidate path passes the evaluation, it is determined as the final path solution, and the effective path solution and its evaluation results are updated to the dynamic path experience base to provide a reference for path decision-making in subsequent similar transportation scenarios.

[0041] (4) Selection of evaluation indicators: This embodiment uses two core indicators to evaluate the model performance: speed improvement rate and cost saving rate. By statistically analyzing the average driving speed and unit transportation distance cost before and after optimization of each parallel truck platoon, the system obtains transportation efficiency and transportation cost data under different route schemes, providing a basis for comprehensively evaluating the performance of the method in improving truck operating efficiency, reducing transportation costs, and improving platooning coordination.

[0042] (5) Baseline model selection In the comparison and ablation experiments, a benchmark model and the deep reinforcement learning model are selected for performance comparison on a given dataset. The benchmark models provided in this embodiment include: The ACO-VRP (Ant Colony Optimization for Vehicle Routing Problem) model is a vehicle routing method based on the ant colony optimization idea. It iteratively searches candidate paths by simulating the ant colony search process and pheromone update mechanism, thereby obtaining a better vehicle routing solution. OR-Tools (Google Operations Research Tools) is a solution tool for combinatorial optimization problems. It completes vehicle routing through constraint modeling and heuristic search to obtain route solutions that meet the constraints of transportation tasks. The RL-VRP (Reinforcement Learning for Vehicle Routing Problem) model is a vehicle routing optimization method based on reinforcement learning. Through the interaction between the agent and the routing environment, the route selection strategy is continuously adjusted according to reward feedback to optimize the transportation route. The DRL-MHA (Deep Reinforcement Learning with Multi-Head Attention) model is a deep reinforcement learning path optimization method that integrates multi-head attention mechanisms. It improves the path decision-making ability in complex vehicle path problems by learning the correlation between different nodes and path features. DRL-HCVRP (Deep Reinforcement Learning for Heterogeneous Capacitated Vehicle Routing Problem) is a deep reinforcement learning method for heterogeneous vehicle routing problems. It comprehensively considers the different vehicle operating characteristics and transportation task constraints, and learns the matching relationship between vehicles and transportation tasks through deep neural networks to generate route solutions. The DRL-PIP (Deep Reinforcement Learning with Proactive InfeasibilityPrevention) model is a deep reinforcement learning method that integrates path feasibility prediction mechanism. It improves the efficiency and feasibility of path search under complex constraints by identifying and avoiding candidate solutions that do not meet the constraints during the path generation process. The GPT-4o-mini model is a route decision-making method based on a large language model. It transforms truck queue information and candidate route information into text prompts, and the large language model compares the candidate routes and outputs the target route. DeepSeek-V4-Pro model is a path decision-making method based on the reasoning capabilities of a large language model. It comprehensively analyzes and selects different candidate paths based on transportation tasks, candidate path characteristics, and path optimization objectives. The Qwen-Plus model is a route decision-making method based on a large language model. It infers candidate routes and outputs corresponding route solutions by understanding the truck queue status, candidate route information, and transportation constraints.

[0043] (6) Experimental results and analysis a) Baseline model comparison Table 1 reflects the performance improvement of the proposed method. As shown in the table, the proposed method outperforms the other nine path optimization models, exhibiting better average speed improvement and average cost savings. This fully demonstrates that the introduction of a historical experience base, a reflection module, and formation control in this invention helps improve the path optimization performance of parallel truck platoons.

[0044] Table 1 Comparison of Speed ​​Improvement Rate and Average Cost Saving Rate of Each Model

[0045] b) Comparison of ablation test results Table 2 reflects the impact of the historical experience base, reflection module, and formation control on the optimization effect of the proposed method. As shown in the table, the cost savings rate is significantly improved after adding formation control. Furthermore, by introducing the historical experience base and reflection module, the model can utilize historical path experience from similar transportation scenarios and correct the path output by the large language model. The speed increment and cost savings rate of the complete method reach 16.2182% and 6.7490%, respectively, indicating that the synergistic effect of each module helps to improve the overall path optimization effect of parallel truck platoons.

[0046] Table 2 Speed ​​Improvement Rate and Average Cost Saving Rate under Different Module Combinations

[0047] Based on the above examples, it can be determined that the truck queue cooperative path optimization method based on a large language model provided in this application has the following beneficial effects: (1) To address the problems of insufficient utilization of historical transportation experience, lack of verification of route selection results, and difficulty in balancing operational efficiency, transportation costs, and platooning coordination in existing truck route optimization methods, a parallel truck platooning collaborative route optimization method based on a large language model is proposed. The method comprehensively considers truck operating trajectories, transportation tasks, vehicle operating characteristics, and historical route experience, constructs a common historical experience database and a personalized heterogeneous experience database, and guides the large language model to select and correct routes through a reflection mechanism.

[0048] (2) The solution of this application effectively serves the field of intelligent freight and transportation organization optimization, which can improve the operating efficiency of parallel truck queues and reduce transportation costs. At the same time, the present invention has the ability to update experience and provide feedback correction, which can adapt to different transportation tasks and vehicle operation scenarios, reduce the reliance on manual path judgment, and not only provide technical support for collaborative path optimization of truck queues, but also lay the foundation for the application of large language models in road freight decision-making.

[0049] The following describes the truck queue collaborative path optimization system based on a large language model provided by the present invention. The truck queue collaborative path optimization system based on a large language model described below can be referred to in correspondence with the truck queue collaborative path optimization method based on a large language model described above.

[0050] Figure 3 This is a schematic diagram of the structure of the truck queue collaborative path optimization system based on a large language model provided in an embodiment of the present invention.

[0051] like Figure 3 As shown, the truck queue cooperative path optimization system based on a large language model provided in this embodiment includes: The queue construction module 301 is used to acquire the operating characteristics of trucks, extract vehicle queue information based on the operating characteristics, determine the degree of cooperative operation adaptation between trucks based on the extracted vehicle queue information, and construct a parallel truck queue. The operating characteristics include the operating trajectory characteristics and transportation task characteristics of the trucks, and the vehicle queue information includes the origin and destination location data, transportation time window data and vehicle attribute data between different trucks. The experience base construction module 302 is used to extract route selection information under different transportation scenarios based on the historical operation trajectory of trucks and build a common historical experience base; and to extract drivers' road selection preferences and transportation behavior characteristics based on driver profiles and build a personalized heterogeneous experience base. The large model optimization module 303 is used to generate candidate path information based on the transportation task, and to convert the vehicle queue information, the candidate path information, the common historical experience base and the personalized heterogeneous experience base into text prompt words, input them into the large language model for path reasoning and decision-making, with the goal of minimizing the transportation cost of parallel truck queues, and to generate a path scheme that takes into account operating efficiency, transportation cost and platooning coordination. The result reflection module 304 is used to evaluate and correct the path scheme generated by the large language model. When the path scheme does not meet the preset evaluation conditions, the evaluation result is fed back to the large language model for secondary path reasoning until a path scheme that meets the preset evaluation conditions is obtained. The effective path scheme and its corresponding transportation scenario, vehicle characteristics and evaluation results are updated to the common historical experience base. The instance verification module 305 is used to evaluate and verify the performance of the parallel truck queue collaborative path optimization method based on a large language model by using real truck running trajectory data, transportation task data and driver profile data.

[0052] The specific implementation method of the truck queue collaborative path optimization system based on a large language model provided in this embodiment can be implemented with reference to the above embodiment, and will not be repeated here.

[0053] Figure 4 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 4 As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430, and a communication bus 440, wherein the processor 410, the communication interface 420, and the memory 430 communicate with each other through the communication bus 440. The processor 410 can call logical instructions in the memory 430 to execute a truck queue cooperative path optimization method based on a large language model, the method including: The operation characteristics of the trucks are obtained, and vehicle queue information is extracted based on the operation characteristics. The degree of cooperative operation adaptation between trucks is determined based on the extracted vehicle queue information, and a parallel truck queue is constructed. The operation characteristics include the operation trajectory characteristics and transportation task characteristics of the trucks, and the vehicle queue information includes the origin and destination location data, transportation time window data and vehicle attribute data between different trucks. Based on the historical operating trajectories of trucks, route selection information under different transportation scenarios is extracted to construct a common historical experience database; based on driver profiles, driver road selection preferences and transportation behavior characteristics are extracted to construct a personalized heterogeneous experience database. Based on the transportation task, candidate route information is generated. The vehicle queue information, the candidate route information, the common historical experience base, and the personalized heterogeneous experience base are converted into text prompt words and input into a large language model for path reasoning and decision-making. The goal of path optimization is to minimize the transportation cost of parallel truck queues, and to generate a route scheme that takes into account operational efficiency, transportation cost, and platooning coordination. A reflection mechanism is constructed to evaluate and correct the path schemes generated by the large language model. When the path scheme does not meet the preset evaluation conditions, the evaluation results are fed back to the large language model for secondary path reasoning until a path scheme that meets the preset evaluation conditions is obtained. The effective path scheme and its corresponding transportation scenario, vehicle characteristics and evaluation results are then updated to the common historical experience base. The performance of the parallel truck queue collaborative path optimization method based on a large language model is evaluated and verified using real truck operation trajectory data, transportation task data, and driver profile data.

[0054] Furthermore, the logical instructions in the aforementioned memory 430 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0055] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer is able to execute the truck queue cooperative path optimization method based on a large language model provided by the above methods, the method including: The operation characteristics of the trucks are obtained, and vehicle queue information is extracted based on the operation characteristics. The degree of cooperative operation adaptation between trucks is determined based on the extracted vehicle queue information, and a parallel truck queue is constructed. The operation characteristics include the operation trajectory characteristics and transportation task characteristics of the trucks, and the vehicle queue information includes the origin and destination location data, transportation time window data and vehicle attribute data between different trucks. Based on the historical operating trajectories of trucks, route selection information under different transportation scenarios is extracted to construct a common historical experience database; based on driver profiles, driver road selection preferences and transportation behavior characteristics are extracted to construct a personalized heterogeneous experience database. Based on the transportation task, candidate route information is generated. The vehicle queue information, the candidate route information, the common historical experience base, and the personalized heterogeneous experience base are converted into text prompt words and input into a large language model for path reasoning and decision-making. The goal of path optimization is to minimize the transportation cost of parallel truck queues, and to generate a route scheme that takes into account operational efficiency, transportation cost, and platooning coordination. A reflection mechanism is constructed to evaluate and correct the path schemes generated by the large language model. When the path scheme does not meet the preset evaluation conditions, the evaluation results are fed back to the large language model for secondary path reasoning until a path scheme that meets the preset evaluation conditions is obtained. The effective path scheme and its corresponding transportation scenario, vehicle characteristics and evaluation results are then updated to the common historical experience base. The performance of the parallel truck queue collaborative path optimization method based on a large language model is evaluated and verified using real truck operation trajectory data, transportation task data, and driver profile data.

[0056] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to perform the truck queue cooperative path optimization method based on a large language model provided by the above methods, the method comprising: The operation characteristics of the trucks are obtained, and vehicle queue information is extracted based on the operation characteristics. The degree of cooperative operation adaptation between trucks is determined based on the extracted vehicle queue information, and a parallel truck queue is constructed. The operation characteristics include the operation trajectory characteristics and transportation task characteristics of the trucks, and the vehicle queue information includes the origin and destination location data, transportation time window data and vehicle attribute data between different trucks. Based on the historical operating trajectories of trucks, route selection information under different transportation scenarios is extracted to construct a common historical experience database; based on driver profiles, driver road selection preferences and transportation behavior characteristics are extracted to construct a personalized heterogeneous experience database. Based on the transportation task, candidate route information is generated. The vehicle queue information, the candidate route information, the common historical experience base, and the personalized heterogeneous experience base are converted into text prompt words and input into a large language model for path reasoning and decision-making. The goal of path optimization is to minimize the transportation cost of parallel truck queues, and to generate a route scheme that takes into account operational efficiency, transportation cost, and platooning coordination. A reflection mechanism is constructed to evaluate and correct the path schemes generated by the large language model. When the path scheme does not meet the preset evaluation conditions, the evaluation results are fed back to the large language model for secondary path reasoning until a path scheme that meets the preset evaluation conditions is obtained. The effective path scheme and its corresponding transportation scenario, vehicle characteristics and evaluation results are then updated to the common historical experience base. The performance of the parallel truck queue collaborative path optimization method based on a large language model is evaluated and verified using real truck operation trajectory data, transportation task data, and driver profile data.

[0057] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0058] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., including several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods of various embodiments or some parts of embodiments.

[0059] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A truck queue cooperative path optimization method based on a large language model, characterized in that, include: The operation characteristics of the trucks are obtained, and vehicle queue information is extracted based on the operation characteristics. The degree of cooperative operation adaptation between trucks is determined based on the extracted vehicle queue information, and a parallel truck queue is constructed. The operation characteristics include the operation trajectory characteristics and transportation task characteristics of the trucks, and the vehicle queue information includes the origin and destination location data, transportation time window data and vehicle attribute data between different trucks. Based on the historical operating trajectories of trucks, route selection information under different transportation scenarios is extracted to construct a common historical experience database; based on driver profiles, driver road selection preferences and transportation behavior characteristics are extracted to construct a personalized heterogeneous experience database. Based on the transportation task, candidate route information is generated. The vehicle queue information, the candidate route information, the common historical experience base, and the personalized heterogeneous experience base are converted into text prompt words and input into a large language model for path reasoning and decision-making. The goal of path optimization is to minimize the transportation cost of parallel truck queues, and to generate a route scheme that takes into account operational efficiency, transportation cost, and platooning coordination. A reflection mechanism is constructed to evaluate and correct the path schemes generated by the large language model. When the path scheme does not meet the preset evaluation conditions, the evaluation results are fed back to the large language model for secondary path reasoning until a path scheme that meets the preset evaluation conditions is obtained. The effective path scheme and its corresponding transportation scenario, vehicle characteristics and evaluation results are then updated to the common historical experience base. The performance of the parallel truck queue collaborative path optimization method based on a large language model is evaluated and verified using real truck operation trajectory data, transportation task data, and driver profile data.

2. The truck queue cooperative path optimization method based on a large language model as described in claim 1, characterized in that, The step of determining the degree of cooperative operation compatibility between trucks based on the extracted vehicle queue information and constructing a parallel truck queue includes: Calculate the starting and ending spatial distances between any two trucks in the truck queue based on the origin and destination location data; Calculate the departure time difference and arrival time difference between any two trucks in the truck queue based on the transportation time window data; The degree of trajectory overlap between any two trucks in the truck queue is calculated based on the aforementioned trajectory characteristics, and the difference in travel distance is also calculated. Based on the starting point spatial distance, ending point spatial distance, departure time difference, arrival time difference, trajectory overlap degree, and travel distance difference, the degree of cooperative operation compatibility between the two trucks is determined. If the degree of adaptation of the cooperative operation meets the pre-set cooperative operation conditions, the corresponding trucks will be matched to form a parallel truck queue, and a queue identifier will be set for each parallel truck queue. Based on the origin and destination location data, transportation time window data, transportation distance data, vehicle attribute data, and trajectory overlap of each truck in the parallel truck queue, truck queue status information is generated, providing input for candidate path generation and path reasoning of the large language model.

3. The truck queue cooperative path optimization method based on a large language model as described in claim 2, characterized in that, The conditions for coordinated operation include: The starting point spatial distance does not exceed a preset starting point spatial distance threshold, and the ending point spatial distance does not exceed a preset ending point spatial distance threshold. The departure time difference does not exceed a preset departure time difference threshold, and the arrival time difference does not exceed a preset arrival time difference threshold. The trajectory overlap is not lower than a preset trajectory overlap threshold, and the travel distance difference does not exceed a preset travel distance difference threshold.

4. The truck queue cooperative path optimization method based on a large language model as described in claim 1, characterized in that, The method extracts route selection information under different transportation scenarios based on the historical operating trajectory of trucks, and constructs a common historical experience database; Based on driver profiles, driver route selection preferences and transportation behavior characteristics are extracted to construct a personalized, heterogeneous experience database, including: Obtain the truck's historical operating trajectory, transportation tasks, and corresponding route selection results. Extract the starting coordinates, ending coordinates, route selection strategy, driving distance, driving time, and toll for each historical transportation task. The route selection result refers to the specific route that the truck ultimately determines and actually travels between the starting point and the ending point based on the adopted route selection strategy. The preset geographical area is divided into spatial grids, and the starting coordinates and ending coordinates of each historical transportation task are mapped to the corresponding starting grid and ending grid, respectively. The combination of the starting grid and the ending grid is used as the index of the historical transportation task. The truck routes are classified according to the historical transportation tasks. The number of times different path selection strategies are selected, the path selection frequency and the path selection probability under each historical transportation task are counted. The historical path selection strategies are sorted according to the path selection frequency and the path selection probability to build a common historical experience database. Obtain the driver profile corresponding to the driver, which includes multi-dimensional data such as road type preference, driving time, driving speed, rest pattern, historical route selection characteristics and vehicle operation characteristics; Based on the driver profile, the driver's road selection preferences and transportation behavior characteristics are determined. The driver identifier, vehicle identifier, transportation scenario, road selection preference, transportation behavior characteristics and corresponding route selection results are associated and stored to construct a personalized heterogeneous experience library.

5. The truck queue cooperative path optimization method based on a large language model as described in claim 1, characterized in that, The step of converting the vehicle queue information, the candidate route information, the common historical experience base, and the personalized heterogeneous experience base into text prompt words and inputting them into a large language model for path reasoning and decision-making includes: Based on the starting point, ending point, and transportation task of the parallel truck queue, multiple candidate routes are generated using different path planning strategies, and the driving distance, estimated driving time, toll, and road traffic information of each candidate route are obtained. Calculate the total cost of the parallel truck queue, and sort the candidate paths according to the total cost of the parallel truck queue to form a set of candidate paths for the large language model to choose from; Based on the origin and destination locations and transportation scenario of the current transportation task, the matching historical path experience is recalled from the common historical experience database and the personalized heterogeneous experience database. The vehicle queue information, candidate path information, historical path experience, path optimization goals, and road conditions are converted into text prompts and input into a large language model. The large language model then infers and compares the candidate paths and outputs the target candidate path and the reasons for its selection.

6. The truck queue cooperative path optimization method based on a large language model as described in claim 5, characterized in that, The calculation of the total cost of the parallel truck queue includes: The total cost is calculated using the following formula (1). : ; (1) in, Represents a set of parallel truck queues. This represents any parallel truck queue. Represents a parallel truck queue The corresponding set of candidate paths, Indicates any candidate path, Represents the path selection variable, when a parallel truck queue... Select candidate path hour, ,otherwise , Represents a parallel truck queue Select candidate path The driving distance at that time Indicates the estimated travel time. Indicates basic operating costs, This indicates the fuel-saving benefits of the formation. , and These represent the respective weights of driving distance, estimated driving time, and basic operating costs in the total cost; The basic operating costs Expressed by formula (2): ; (2) in, Represents a parallel truck queue Select candidate path The resulting toll costs This indicates the corresponding fuel cost; The fuel-saving benefits of the formation Expressed by formula (3): ; (3) in, Represents a parallel truck queue Select candidate path The platooning fuel saving rate is determined based on the degree of coordination and adaptation between trucks.

7. The truck queue cooperative path optimization method based on a large language model as described in claim 5, characterized in that, The aforementioned reflection mechanism evaluates and corrects the path schemes generated by the large language model, including: Obtain the target candidate path output by the large language model, and extract the total cost, driving distance, estimated driving time, average driving speed, road conditions, driver road selection preferences, and platooning coordination information of the target candidate path; The target candidate path is comprehensively evaluated based on its total cost, travel distance, estimated travel time, average travel speed, road conditions, driver road selection preferences, and platooning coordination information to obtain a path evaluation result. The path evaluation results are compared with preset evaluation conditions. When the target candidate path meets the preset evaluation conditions, the target candidate path is determined as a valid path scheme. When the target candidate path does not meet the preset evaluation conditions, the reasons for the suboptimal nature of the target candidate path are identified, and reflection feedback information is generated based on the reasons for the suboptimal nature. The reflection feedback information, remaining candidate path information and historical path experience are converted back into text prompt words and input into the large language model to guide the large language model to perform secondary path reasoning and decision-making on the remaining candidate paths, and obtain the corrected target candidate path. The revised target candidate path is re-evaluated until a path scheme that meets the preset evaluation conditions or a preset number of reflections is obtained. The effective route schemes that meet the preset evaluation conditions, the corresponding transportation scenarios, truck queue characteristics, reasons for route selection, and route evaluation results are formed into route experience records and updated to the common historical experience library and / or the personalized heterogeneous experience library for subsequent similar transportation scenarios to call.

8. The truck queue cooperative path optimization method based on a large language model as described in claim 1, characterized in that, The method for optimizing truck queue collaborative paths based on a large language model is evaluated and validated using real truck trajectory data, transportation task data, and driver profile data. This includes: Multiple parallel truck queues are constructed using real truck trajectory data, transportation task data, and driver profile data. The transportation tasks corresponding to each parallel truck queue are input into a large language model to obtain the corresponding collaborative path optimization results. Using the original path corresponding to the actual truck running trajectory as the path before optimization, the optimization results of the cooperative path are evaluated by the speed improvement rate and cost saving rate, and the performance evaluation results of the truck queue cooperative path optimization method based on the large language model are obtained in terms of improving truck running efficiency and reducing transportation costs.

9. A truck queue cooperative path optimization system based on a large language model, employing the truck queue cooperative path optimization method based on a large language model as described in any one of claims 1-8, characterized in that, include: The queue construction module is used to acquire the operating characteristics of trucks, extract vehicle queue information based on the operating characteristics, determine the degree of cooperative operation adaptation between trucks based on the extracted vehicle queue information, and construct a parallel truck queue. The operating characteristics include the operating trajectory characteristics and transportation task characteristics of the trucks, and the vehicle queue information includes the origin and destination location data, transportation time window data, and vehicle attribute data between different trucks. The experience base construction module is used to extract route selection information under different transportation scenarios based on the historical operation trajectory of trucks and build a common historical experience base; and to extract drivers' road selection preferences and transportation behavior characteristics based on driver profiles and build a personalized heterogeneous experience base. The large model optimization module is used to generate candidate route information based on the transportation task, and to convert the vehicle queue information, the candidate route information, the common historical experience base and the personalized heterogeneous experience base into text prompt words, which are then input into the large language model for path reasoning and decision-making. The goal of the path optimization is to minimize the transportation cost of the parallel truck queue, and to generate a route scheme that takes into account the operating efficiency, transportation cost and platooning coordination. The results reflection module is used to evaluate and correct the path schemes generated by the large language model. When the path scheme does not meet the preset evaluation conditions, the evaluation result is fed back to the large language model for secondary path reasoning until a path scheme that meets the preset evaluation conditions is obtained, and the effective path scheme and its corresponding transportation scenario, vehicle characteristics and evaluation results are updated to the common historical experience base. The instance verification module is used to evaluate and verify the performance of the parallel truck queue collaborative path optimization method based on a large language model by using real truck operation trajectory data, transportation task data, and driver profile data.

10. An electronic 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 program, it implements the truck queue cooperative path optimization method based on any one of claims 1-8.