A multi-objective path optimization method, device and medium

By constructing a weighted graph model and multi-dimensional verification, and combining the nearest neighbor greedy strategy and local search operator, an optimized path sequence is generated. This solves the problems of high computational cost and insufficient multi-dimensional constraint handling in existing path planning methods in large-scale real-time scenarios, and achieves efficient and stable path planning.

CN120912097BActive Publication Date: 2026-03-20山东浪潮智慧建筑科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-10-10
Publication Date
2026-03-20

AI Technical Summary

Technical Problem

Existing path planning methods have high computational overhead in large-scale real-time scenarios, making them difficult to apply. They also lack the ability to handle multi-dimensional constraints, resulting in unstable path generation and unreasonable resource allocation, and they cannot adapt to dynamic environmental changes.

Method used

A weighted graph model is constructed for multi-dimensional verification. The shortest path distance matrix and predecessor records are calculated. The optimized access sequence is generated by combining the nearest neighbor greedy strategy and the local search operator. The composite path cost is accumulated in real time, and time window, capacity and risk constraints are checked. The path is expanded into an executable path and then optimized in the neighborhood.

Benefits of technology

It improves the efficiency and stability of path planning, enhances adaptability and robustness in dynamic environments, reduces the total path cost, reduces reliance on manual parameter tuning, and improves the transferability and robustness of the method.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120912097B_ABST
    Figure CN120912097B_ABST
Patent Text Reader

Abstract

The application discloses a multi-target path optimization method and device and a medium, and relates to the technical field of path planning. The method comprises the following steps: constructing a weighted graph model of a region to be planned and verifying an adjacency matrix to obtain verified weighted graph data; calculating the shortest path distance between all node pairs to form a full-source shortest path distance matrix and a predecessor record set, performing connectivity detection and feasible region pruning processing on unreachable node pairs; generating an optimized access sequence covering all target nodes based on the processed full-source shortest path metric data and a nearest neighbor greedy strategy, accumulating a composite path cost, performing a feasibility test on a time window, a capacity and a risk constraint to generate an initial path sequence and accumulated cost data; expanding adjacent node pairs in the initial path sequence into specific executable paths on the original graph according to the predecessor record set, and performing neighborhood optimization on the executable paths by using a local search operator, and outputting an optimized final path scheme and an accumulated cost report.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of path planning, in particular to a multi-objective path optimization method, device and medium. BACKGROUND

[0002] With the popularization of smart park inspection, logistics distribution scheduling and multi-agent collaborative navigation applications, path planning technology has become the core support for improving task execution efficiency and resource utilization. There are mainly two kinds of path planning methods in current engineering practice. One is to rely on global optimization models such as the traveling salesman problem or the vehicle routing problem, to seek the theoretical optimal solution through complex mathematical modeling and accurate search, but the calculation and storage overhead increases exponentially with the node size, which is difficult to apply to large-scale real-time scenarios. The other is to use simple heuristic rules or empirical strategies to quickly generate feasible paths, which has improved the calculation efficiency, but due to the lack of systematic optimization mechanism and constraint processing capability, it often leads to unstable solution quality, unreasonable resource allocation and other prominent problems in complex graph structures or dynamic environments.

[0003] The existing methods are generally single in the path evaluation dimension. Most schemes only use geometric distance as the core cost index, which is difficult to effectively integrate time window constraints, energy consumption limits, risk area avoidance and other multi-dimensional factors. This single evaluation mechanism often leads to time conflicts, energy shortages or safety risks in the actual execution of the generated path, which seriously restricts the global quality and practicality of the path scheme. At the same time, the traditional heuristic path construction process lacks dynamic feedback and adaptive adjustment capability. Once the initial path sequence is generated, it cannot be optimized online according to real-time environmental changes, which makes the robustness and adaptability of the path planning result in dynamic scenarios significantly insufficient.

[0004] In addition, most existing technologies do not fully utilize graph structure information, and fail to effectively integrate prior metric information such as all-source shortest path distance matrix into the path generation process. The path construction stage still needs to repeatedly perform local exploration and cost calculation on the original graph, which not only increases the computational overhead, but also may lead to missed path connectivity detection or improper handling of weakly connected areas. On the other hand, existing systems often rely on manual experience to set cost weights, heuristic thresholds and other parameters, which need to be frequently adjusted manually in different scenarios. This not only reduces the portability of the scheme, but also introduces additional uncertainty, making it difficult to maintain stable path planning results when the scale expands or constraints change. SUMMARY

[0005] The embodiments of the present application provide a multi-objective path optimization method, device and medium to solve the above technical problems.

[0006] In one aspect, the embodiments of the present application provide a multi-objective path optimization method, comprising:

[0007] construct a weighted graph model of the region to be planned, represent the path cost relationship between nodes in the form of an adjacency matrix, and perform symmetry, non-negativity, dimensional consistency and connectivity checks on the adjacency matrix to generate the checked weighted graph data;

[0008] Based on the checked weighted graph data, use the shortest path algorithm to calculate the shortest path distance between all node pairs, form the all-source shortest path distance matrix and the predecessor record set, and perform connectivity detection and feasible region pruning processing on the unreachable node pairs;

[0009] Based on the processed all-source shortest path metric data and the nearest neighbor greedy strategy, generate an optimized access sequence covering all target nodes, and at each step, accumulate the composite path cost in real time, and perform feasibility verification of time window, capacity and risk constraints to generate the initial path sequence and cumulative cost data;

[0010] When all target nodes have been visited, expand the adjacent node pairs in the initial path sequence into specific executable paths on the original graph according to the predecessor record set, and use local search operators to optimize the executable paths in the neighborhood to reduce the total path cost. When the termination condition is met, output the optimized final path scheme and cumulative cost report.

[0011] In an implementation manner of the present application, a weighted graph model of the region to be planned is constructed, the path cost relationship between nodes is represented in the form of an adjacency matrix, and the adjacency matrix is checked for symmetry, non-negativity, dimensional consistency and connectivity to generate the checked weighted graph data, specifically including:

[0012] Obtain node data and edge data of the region to be planned, and based on the node data and edge data, construct an adjacency matrix; wherein the node data includes a location identifier, the edge data includes a connection relationship identifier, the element value of the adjacency matrix represents the edge weight value between the corresponding nodes, and the edge weight value in the adjacency matrix is calculated based on at least one of path distance, time, energy consumption or risk;

[0013] Perform symmetry checking on the adjacency matrix to correct the asymmetric edge weight values checked out to symmetric values, and perform non-negativity checking on the symmetric adjacency matrix to replace the negative weight edges checked out with preset positive weight values;

[0014] Perform dimensional consistency detection on the non-negative adjacency matrix, perform unit uniform conversion on the edge weight values with inconsistent dimensions, and perform connectivity checking on the adjacency matrix with consistent dimensions, identify and mark isolated nodes or edges through a graph traversal algorithm, and generate a connected component report;

[0015] Based on the connected component report, the abnormal edges are corrected, and the final checked weighted graph data is generated.

[0016] In an implementation of the present application, based on the checked weighted graph data, the shortest path algorithm is used to calculate the shortest path distance between all node pairs to form a full-source shortest path distance matrix and a predecessor record set, specifically including:

[0017] Each node is selected in turn as a source point, and the improved Dijkstra algorithm is executed to calculate the shortest distance vector and the predecessor vector from the source point to all other nodes;

[0018] The shortest distance vectors of all source points are superimposed to form a full-source shortest path distance matrix, and the predecessor vectors of all source points are integrated to form a predecessor record set.

[0019] In an implementation of the present application, the connectivity detection and feasible region pruning processing are performed on the unreachable node pairs, specifically including:

[0020] The full-source shortest path distance matrix is detected for unreachable node pairs, the node pairs with infinite distance values are identified, and unreachable marking data is generated;

[0021] Based on the unreachable marking data, connectivity analysis is performed, the maximum connected subgraph is determined through a graph traversal algorithm, and feasible region pruning processing is performed to eliminate non-connected nodes to generate a pruned node set;

[0022] Based on the pruned node set, the full-source shortest path distance matrix and the predecessor record set are updated to generate corrected full-source shortest path metric data.

[0023] In an implementation of the present application, based on the processed full-source shortest path metric data and the nearest neighbor greedy strategy, an optimized access sequence covering all target nodes is generated, specifically including:

[0024] The path starting node is selected, and the current node state, the unvisited node set, the path sequence, and the cumulative cost variable are initialized;

[0025] In each iteration, based on the full-source shortest path distance matrix, the node with the shortest distance from the current node is selected from the unvisited node set as the next node to generate nearest neighbor selection data;

[0026] Based on the nearest neighbor selection data, the path sequence is updated, the next node is appended to the path sequence, and updated path sequence data is generated.

[0027] In an implementation of the present application, the composite path cost is accumulated in real time after each step selection, and the feasibility check of time window, capacity and risk constraints is performed to generate the initial path sequence and accumulated cost data, specifically including:

[0028] Based on the composite cost function, the composite cost from the current node to the next node is calculated and accumulated into the total cost variable in real time to generate the accumulated cost data; the composite cost function integrates the distance cost, time cost, energy consumption cost and risk penalty cost;

[0029] Based on the time window, capacity and risk constraints, the feasibility of the next node is checked to generate a constraint check report; the feasibility check includes time window conflict detection, capacity overrun check and risk area avoidance;

[0030] According to the constraint check report, the path sequence or composite cost parameter is adjusted to generate the initial path sequence and accumulated cost data after feasibility processing, and the iteration process is repeated until the set of unvisited nodes is empty, and the path sequence generation is completed.

[0031] In an implementation of the present application, when all target nodes are visited, the adjacent node pairs in the initial path sequence are unfolded into specific executable paths on the original graph according to the predecessor record set, specifically including:

[0032] Get the adjacent node pair data in the initial path sequence, and based on the predecessor record set, find the intermediate node sequence through which the shortest path of each adjacent node pair passes on the original graph;

[0033] Splice the intermediate node sequences between all node pairs, remove the repeated nodes after splicing to generate a preliminary executable path, and perform a smoothness check on the preliminary executable path to generate an optimized executable path;

[0034] Verify the connectivity and effectiveness of the executable path in the original graph to ensure that all node pairs are correctly unfolded based on the predecessor record, generate a corresponding verification report, and based on the verification report, modify the abnormal unfolding sequence, retrace and splice the modified node sequence to generate the final executable path;

[0035] Store the detailed node sequence and edge sequence of the final executable path, and output the complete path description containing all intermediate nodes.

[0036] In an implementation of the present application, a local search operator is used to optimize the executable path in the neighborhood to reduce the total path cost, and when the termination condition is met, the optimized final path scheme and accumulated cost report are output, specifically including:

[0037] initializing local optimization iteration parameters and improvement threshold, and performing neighborhood search on the executable path by using a path exchange operator to generate a candidate path variant;

[0038] calculating a total composite cost of each candidate path variant, comparing cost difference between the candidate path variant and the current path, and if an improved solution is found and the constraint condition is met, taking the candidate path variant as a new current solution, repeating the neighborhood search and acceptance judgment until a termination condition is met;

[0039] generating a final optimized executable path sequence, calculating each dimension cost component and total composite cost of the final path, and outputting a comprehensive report; the comprehensive report includes the path sequence, each dimension cost details, and constraint satisfaction condition.

[0040] In another aspect, the embodiments of the present application also provide a multi-objective path optimization device, which comprises:

[0041] at least one processor;

[0042] and a memory in communication connection with the at least one processor;

[0043] wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform a multi-objective path optimization method as described above.

[0044] In another aspect, the embodiments of the present application also provide a non-volatile computer storage medium storing computer executable instructions, and the computer executable instructions are executed to implement a multi-objective path optimization method as described above.

[0045] The embodiments of the present application provide a multi-objective path optimization method, device and medium, which at least have the following beneficial effects:

[0046] By constructing a weighted graph model and performing multi-dimensional checking, the accuracy and consistency of the path planning basic data can be ensured, and the problem of unfeasible or low-efficiency path caused by data anomaly can be eliminated from the source; based on the checked data, the all-source shortest path distance matrix and the predecessor record set are pre-computed, and the connectivity detection and feasible region pruning are implemented, which significantly improves the efficiency and stability of path search, and avoids the calculation overhead and connectivity risk caused by repeated exploration of local path in the traditional method; by combining the nearest neighbor greedy strategy and the real-time composite cost accumulation mechanism, the dynamic generation of optimized access sequence is realized, and the system integrates the feasibility test of multi-dimensional constraints such as time window, capacity and risk, so that the path planning process is not only efficient, but also can adapt to complex environmental changes, overcoming the defects of single evaluation dimension and lack of dynamic adjustment capability in the prior art; by expanding the abstract sequence into an original graph executable path and applying a local search operator for neighborhood optimization, the total path cost is reduced, the practicability and quality of the path scheme are enhanced, and the dependence on manual parameter tuning is reduced through an automated process, improving the migratability and robustness of the method in different scenarios. BRIEF DESCRIPTION OF DRAWINGS

[0047] The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and serve to explain the principles of the application, and do not limit the application. In the drawings:

[0048] Figure 1 A flowchart of a multi-objective path optimization method provided by an embodiment of the application;

[0049] Figure 2 An internal structure diagram of a multi-objective path optimization device provided by an embodiment of the application. DETAILED DESCRIPTION

[0050] To make the objectives, technical solutions and advantages of the application clearer, the technical solutions of the application will be described below in conjunction with specific embodiments of the application and corresponding drawings. Obviously, the described embodiments are only some of the embodiments of the application, not all the embodiments. Based on the embodiments in the application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the application.

[0051] The technical solutions provided by the embodiments of the application will be described in detail below with reference to the drawings.

[0052] Figure 1 A flowchart of a multi-objective path optimization method provided by an embodiment of the application.

[0053] The implementation of the analysis method related by the embodiments of the present application can be a terminal device or a server, and the present application does not make special limitations thereon. For the convenience of understanding and description, the following embodiments are described in detail by taking the server as an example.

[0054] It should be noted that the server can be a single device, or a system composed of multiple devices, i.e., a distributed server, and the present application does not make specific limitations thereon.

[0055] As shown in the method for multi-target path optimization provided by the embodiments of the present application, the method comprises the following steps. Figure 1

[0056] Step 101, constructing a weighted graph model of a region to be planned, representing the path cost relationship between nodes in the form of an adjacency matrix, and performing symmetry, non-negativity, dimensional consistency and connectivity verification on the adjacency matrix to generate the verified weighted graph data.

[0057] In the present embodiment, the system obtains node data and edge data of the region to be planned. The node data contains a position identifier, which is used to uniquely identify the position of each node in space or logic, for example, in the scenario of a smart park, the position identifier can be a device number, a GPS coordinate or a building code; the edge data contains a connection relationship identifier, which is used to describe the topological connection between nodes, for example, a road number or a passage name. These data can come from a geographic information system, a building information model or a task planning database, and are automatically imported through a data interface. Based on these data, the system constructs an initial adjacency matrix, which is a two-dimensional array structure, the row and column indexes of which correspond to the node identifiers, and the element values represent the edge weights between the corresponding nodes. It can be understood that the edge weight is a composite measure, which can be calculated based on at least one of path distance, travel time, energy consumption or risk assessment. Exemplarily, in the scenario of logistics distribution, the edge weight can contain both the transportation distance and the expected travel time, and the comprehensive cost value is obtained by weighted calculation.

[0058] ​The system performs a symmetry check on the initial adjacency matrix. The symmetry check is an important validation step for undirected graph structures, aiming to ensure consistency in bidirectional path costs between nodes. Specifically, the system traverses the non-diagonal elements of the matrix, comparing the weights of each pair of symmetric positions (e.g., W[i, j] and W[j, i]). If an asymmetry is detected, such as data inconsistency due to one-way traffic restrictions, the system automatically performs a correction process. Correction methods include taking the average, taking the maximum, or setting a uniform value based on business rules. For example, in a campus inspection path, if the round-trip time of a certain passage differs due to slope differences, the system can achieve symmetry by taking the average. After completing the symmetry check, the system performs a non-negativity check on the corrected adjacency matrix. The non-negativity check aims to eliminate negative weight edges, as negative weights can cause ambiguity in shortest path calculations. The system scans all edge weights, identifies values less than zero, which may be caused by data collection errors or transmission abnormalities, and replaces them with a pre-set positive weight (such as zero or the smallest reasonable positive value) or directly removes the edge. It should be noted that this processing ensures the mathematical rigor of subsequent algorithm execution.

[0059] The system performs a dimension consistency check on the non-negative adjacency matrix. Dimension consistency means that all edge weights should have a uniform unit of measurement to avoid calculation bias caused by direct comparison of different dimensions. Specifically, the system identifies the dimension type of the edge weight, such as distance, time, or energy consumption, and performs unit conversion for inconsistent dimensions, such as converting meters to kilometers or seconds to minutes. After conversion, the system normalizes the weights to fall within a standard numerical range, eliminating the impact of magnitude differences on path evaluation. For example, in a multi-UAV coordination scenario, the system needs to unify battery consumption (milliampere-hours) and flight distance (meters) into dimensionless standardized values. Subsequently, the system performs a connectivity check on the dimensionally consistent adjacency matrix. Connectivity check is achieved through graph traversal algorithms such as depth-first search or breadth-first search, which traverse all reachable nodes from any node, identify and mark isolated nodes or edges, and generate a connected component report. The report describes the connectivity structure of the graph in detail, including the number of connected components, the nodes included in each component, and boundary information.

[0060] The system corrects abnormal edges based on the connected component report. Abnormal edges include missing edges, weight abnormal edges or logical conflict edges that cause the graph to be disconnected. The correction methods include automatically supplementing key edges (such as adding a virtual path to ensure connectivity), adjusting abnormal weights, or removing invalid edges. For example, in a digital twin park, if two areas are not connected due to modeling omissions, the system can automatically add a connected path based on the actual spatial location. After all corrections are completed, the system generates the final verified weighted graph data, which includes a normalized adjacency matrix, a node attribute table, and a verification log, providing high-quality input for subsequent all-source shortest path calculation. It can be understood that the multi-level verification mechanism of the embodiment fundamentally improves the quality of path planning data and lays a solid foundation for generating feasible and efficient path solutions.

[0061] Step 102, based on the verified weighted graph data, the shortest path algorithm is used to calculate the shortest path distance between all node pairs, forming an all-source shortest path distance matrix and a predecessor record set, and performing connectivity detection and feasible region pruning processing on unreachable node pairs.

[0062] In this embodiment, the system performs all-source shortest path calculation based on the verified weighted graph data. It can be understood that the all-source shortest path refers to the shortest path between any two nodes in the graph, and its distance information is stored in the distance matrix, and the path composition information is stored in the predecessor record set. Specifically, the system selects each node as a source point in turn and performs an improved Dijkstra algorithm. It should be noted that the improved Dijkstra algorithm introduces a priority queue optimization and an early termination mechanism based on the traditional algorithm. The priority queue uses a min-heap data structure to quickly locate the current shortest distance node, significantly reducing the time complexity. The early termination mechanism terminates the search in advance under certain conditions, such as terminating the calculation of the current source point when all target nodes have been processed. For example, in the intelligent park inspection scenario, taking a certain device monitoring point as the source point, the algorithm calculates the shortest distance from this point to all other monitoring points in the park and records the predecessor node information on the path. After the calculation of each source point is completed, the system obtains the shortest distance vector and the predecessor vector, where the distance vector stores the shortest distance from the source point to all nodes, and the predecessor vector stores the direct predecessor node identifier of each node on the shortest path.

[0063] Next, the system superimposes the calculation results of all source points to form a complete data structure. Specifically, the shortest distance vectors of each source point are combined by rows to construct a full-source shortest path distance matrix, which is a square matrix structure, with row and column indices corresponding to node numbers, and element values representing the shortest path distance between corresponding node pairs. At the same time, the predecessor vectors of all source points are integrated to form a predecessor record set, which is a three-dimensional data structure, with the first dimension index representing the source point, the second dimension index representing the target point, and the stored value being the predecessor node on the shortest path from the source point to the target point. It should be noted that this structured storage method allows the shortest path between any node pair to be quickly reconstructed by backtracking the predecessor records. For example, in a logistics distribution path planning, the distance matrix can quickly query the shortest driving distance between any two distribution points, and the predecessor record set can restore the specific driving route.

[0064] Then, the system performs connectivity detection and feasible region pruning. Specifically, the full-source shortest path distance matrix is detected for unreachable node pairs, and the system scans all elements in the distance matrix to identify node pairs with infinite distance values, which represent pairs of points that do not have a connected path in the original graph. After detection, an unreachable marking data is generated, and all unreachable node pairs and their associated information are recorded in a list form. For example, in a multi-UAV cooperative inspection scenario, due to building obstructions or flight restricted areas, some monitoring points may not be directly accessible, and these point pairs will be marked as unreachable.

[0065] Based on the unreachable marking data, the system performs connectivity analysis to determine the maximum connected subgraph by graph traversal algorithm. Specifically, the depth-first search or breadth-first search algorithm is used to traverse all reachable nodes from any node, identify connected components in the graph, and select the connected component with the most nodes as the maximum connected subgraph. Then, feasible region pruning is performed to automatically exclude non-connected nodes, which are usually located in isolated areas or cannot access the main network due to path network defects. For example, in a warehouse logistics environment, if a shelf area becomes isolated due to temporary obstacles, the system will exclude the nodes in that area from the planning range. After pruning, a pruned node set is generated, which only contains all nodes in the maximum connected subgraph.

[0066] Finally, the system updates the all-source shortest path metric data based on the pruned node set. Specifically, the distance matrix is updated, the rows and columns related to the pruned nodes are removed, a distance sub-matrix containing only the connected nodes is reconstructed, and the predecessor record set is updated synchronously, with the records related to the pruned nodes being deleted, to ensure the consistency of the data structure. It can be understood that this dynamic updating mechanism ensures that subsequent path planning is only performed in the feasible connected area, avoiding invalid calculations in unreachable areas. After generating the revised all-source shortest path metric data, the system also pre-generates multi-dimensional cost tensors such as time cost and energy cost, and aligns them with the shortest path metric, providing complete data support for the subsequent composite cost evaluation in the path construction stage. It should be noted that through the comprehensive processing of the present embodiment, the system establishes a stable and reliable path metric space, laying a solid foundation for generating high-quality path solutions.

[0067] Step 103, based on the processed all-source shortest path metric data and the nearest neighbor greedy strategy, an optimized access sequence covering all target nodes is generated, and the composite path cost is accumulated in real time at each step, and the feasibility test of time window, capacity and risk constraints is performed, to generate an initial path sequence and cumulative cost data.

[0068] In the present embodiment, the system first selects a path starting node. The starting point selection can use fixed rules (such as specifying the warehouse location), heuristic rules (such as selecting the central node), or multi-start point parallel exploration mechanisms. After selecting the starting point, the system initializes the core state variables required for path construction, sets the current node as the starting point, establishes a set of unvisited nodes containing all nodes to be visited, initializes an empty path sequence, and sets the cumulative cost variable to zero. Illustratively, in the park inspection scenario, the starting point can be set as the main control center, the unvisited node set contains all equipment points that need to be inspected, and the path sequence initially contains only the main control center node.

[0069] In each iteration, based on the all-source shortest path distance matrix, the system selects the node with the shortest distance from the current node as the next node from the unvisited node set. Specifically, the system queries the row vector corresponding to the current node in the distance matrix, filters out the nodes belonging to the unvisited set, compares the distance values of these nodes and selects the node corresponding to the minimum value, thereby generating nearest neighbor selection data, which records the current node, the selected next node and their distance information. It should be noted that this selection mechanism based on the precomputed distance matrix avoids the overhead of online path calculation, significantly improving the construction efficiency. Based on the nearest neighbor selection data, the system updates the path sequence, appends the next node to the end of the existing sequence to generate updated path sequence data. At the same time, the system updates the current node state and the unvisited node set to ensure the correct advancement of the iteration state.

[0070] After each step of node selection, the system calculates the composite cost from the current node to the next node based on the composite cost function. The composite cost function is a multi-dimensional evaluation model that integrates distance cost, time cost, energy consumption cost, and risk penalty cost, among other factors. It should be understood that each cost component is combined through a weighting coefficient, and the weight parameter can be dynamically configured according to the specific scene. Exemplarily, in the logistics distribution scene, the distance cost reflects the transportation mileage, the time cost considers the traffic conditions, the energy consumption cost reflects the vehicle power consumption, and the risk cost assesses the road safety level. The system accumulates the calculated composite cost into the total cost variable in real time, generating cumulative cost data containing detailed information in each dimension.

[0071] At the same time, the system performs feasibility verification of multi-dimensional constraints. The time window conflict detection verifies whether the node access time is within the preset time range, and generates a detailed constraint verification report, recording the satisfaction of each constraint condition and its deviation degree. For example, in express delivery, the receiver's acceptable time period is checked; the capacity overrun check assesses whether resource consumption exceeds the limit, such as whether AGV power consumption exceeds battery capacity; the risk area avoidance identifies whether the node is located in a forbidden area or a high-risk area. Specifically, the system dynamically adjusts the path construction strategy according to the verification report. For minor constraint conflicts, the composite cost can be adjusted by adding a penalty term; for serious conflicts, the next node needs to be reselected or the access order needs to be adjusted. Exemplarily, when a delivery point is detected to be outside the time window, the system can automatically delay its access order or adjust the driving speed to meet the time requirement.

[0072] The system repeatedly performs the above iteration process, completing node selection, cost accumulation, and constraint verification in each round until the set of unvisited nodes is empty. Finally, the initial path sequence after feasibility processing and the complete cumulative cost data are generated. It should be noted that this method combines greedy construction with real-time verification, ensuring both the efficiency of path generation and the feasibility of the scheme in a complex constraint environment. It should be understood that through the implementation of this embodiment, the system can quickly generate an optimized access sequence covering all target nodes while considering multi-dimensional actual constraints.

[0073] Step 104, when all target nodes are visited, the system expands the adjacent node pairs in the initial path sequence into specific executable paths on the original graph according to the predecessor record set, and uses local search operators to optimize the executable paths in the neighborhood to reduce the total path cost. When the termination condition is met, the optimized final path scheme and cumulative cost report are output.

[0074] In this embodiment, when all target nodes are visited, the system obtains adjacent node pair data in the initial path sequence, which records the adjacent node combinations in the visiting sequence in the form of ordered pairs. Based on the predecessor record set, the system performs path backtracking for each adjacent node pair to find the intermediate node sequence through which the shortest path on the original graph passes. Illustratively, in the AGV navigation scenario, if the initial sequence contains nodes A→B→C, the system needs to expand the specific paths of A→B and B→C respectively. Specifically, for a node pair (u, v), the system first finds the predecessor node of v corresponding to the source point u in the predecessor set, and then continues to query the predecessor node to the predecessor node of u until it backtracks to the starting point u, and finally obtains the complete intermediate node sequence.

[0075] In the splicing process, the system automatically identifies and removes duplicate nodes between adjacent sequences, such as the endpoint of the previous path and the starting point of the next path being the same node, to ensure the generation of continuous preliminary executable paths. It should be noted that the de-duplication process can avoid redundant nodes in the path, ensuring the simplicity and execution efficiency of the path. Subsequently, the system performs smoothness checking on the preliminary executable path to detect and eliminate unnecessary turning points or stopping points, generating an optimized executable path. It can be understood that in the mobile robot navigation scenario, path smoothness directly affects the stability and energy efficiency of motion control.

[0076] Then, the system verifies the connectivity and effectiveness of the executable path in the original graph. Connectivity verification can ensure that all adjacent nodes are indeed reachable in the actual road network, and effectiveness verification checks whether the path meets basic geometric and kinematic constraints. During the verification process, a detailed verification report is generated, recording the verification results of each path segment. Based on the verification report, the system automatically corrects abnormal expansion sequences. For connectivity-abnormal segments, the system reselects alternative paths for backtracking; for effectiveness-abnormal segments, the system adjusts the intermediate node sequence or inserts auxiliary nodes. Illustratively, in the UAV inspection path, if a segment of the path is blocked by an obstacle and cannot be traveled, the system will automatically plan a detour path. After the correction is completed, the system re-performs backtracking and splicing to generate the final executable path and store its detailed node sequence and edge sequence information.

[0077] After obtaining the executable path, the system first initializes the local optimization parameters and uses the path exchange operator to perform neighborhood search on the executable path to generate candidate path variants. It should be noted that the local optimization parameters include control parameters such as the maximum number of iterations, the improvement threshold, and the time upper limit. Specifically, the 2-opt operator reconstructs the path sequence by exchanging two edges in the path, and the Or-opt operator adjusts the path structure by moving consecutive node blocks. Illustratively, in the logistics distribution path optimization, the 2-opt operation may exchange the connection order between two distribution points, thereby shortening the total travel distance.

[0078] For each candidate path variant, the system calculates its total composite cost value, taking into account multiple dimensions such as distance, time, energy consumption, and risk. By comparing the cost difference between the candidate path and the current path, the system adopts an improved acceptance strategy. If an improved solution is found and all constraint conditions are met, the candidate path is taken as the new current solution. It can be understood that this acceptance strategy ensures that the optimization process is always directed towards reducing the cost. The system repeatedly performs neighborhood search and acceptance judgment until the termination condition is met, such as reaching the maximum number of iterations or not finding an improved solution for a certain number of generations.

[0079] Finally, the system generates the final optimized executable path sequence and calculates the cost components and total composite cost in each dimension. The output comprehensive report includes a complete path sequence description, detailed cost breakdown in each dimension (such as distance, time, energy consumption, etc.), and a summary of constraint satisfaction. It should be noted that this multi-dimensional report output provides a comprehensive basis for the evaluation and execution of the path scheme. Exemplarily, in the smart park inspection system, the output report not only includes the inspection route, but also details the estimated time consumption, energy consumption statistics, and risk assessment, providing data support for operation and maintenance decision-making, and realizing the complete transformation from abstract sequence to executable path.

[0080] The above is an embodiment of the method of the present application. Based on the same inventive concept, the embodiments of the present application also provide a multi-objective path optimization device, the structure of which is as shown in Figure 2 .

[0081] Figure 2 An internal structure diagram of a multi-objective path optimization device provided by an embodiment of the present application. As shown in Figure 2 , the device comprises:

[0082] at least one processor;

[0083] and a memory in communication connection with the at least one processor;

[0084] wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to:

[0085] construct a weighted graph model of the region to be planned, represent the path cost relationship between nodes in the form of an adjacency matrix, and perform symmetry, non-negativity, dimensional consistency, and connectivity verification on the adjacency matrix to generate verified weighted graph data;

[0086] based on the verified weighted graph data, use a shortest path algorithm to calculate the shortest path distance between all node pairs, form a full-source shortest path distance matrix and a predecessor record set, and perform connectivity detection and feasible region pruning processing on unreachable node pairs;

[0087] Based on the processed all-source shortest path metric data and the nearest neighbor greedy strategy, an optimized access sequence covering all target nodes is generated, and the composite path cost is accumulated in real time after each step selection, and the feasibility test of time window, capacity and risk constraints is performed, to generate an initial path sequence and accumulated cost data;

[0088] When all target nodes are accessed, the adjacent node pairs in the initial path sequence are unfolded into specific executable paths on the original graph according to the predecessor record set, and a local search operator is used to optimize the executable paths in the neighborhood to reduce the total path cost, and when the termination condition is met, the optimized final path scheme and the accumulated cost report are output.

[0089] The embodiments of the present application also provide a non-volatile computer storage medium, which stores computer executable instructions, and the computer executable instructions can be executed to:

[0090] A weighted graph model of the region to be planned is constructed, the path cost relationship between nodes is represented in the form of an adjacency matrix, and the adjacency matrix is checked for symmetry, non-negativity, dimensional consistency and connectivity to generate checked weighted graph data;

[0091] Based on the checked weighted graph data, a shortest path algorithm is used to calculate the shortest path distances between all node pairs, to form an all-source shortest path distance matrix and a predecessor record set, and the connectivity of unreachable node pairs is detected and the feasible region is pruned;

[0092] Based on the processed all-source shortest path metric data and the nearest neighbor greedy strategy, an optimized access sequence covering all target nodes is generated, and the composite path cost is accumulated in real time after each step selection, and the feasibility test of time window, capacity and risk constraints is performed, to generate an initial path sequence and accumulated cost data;

[0093] When all target nodes are accessed, the adjacent node pairs in the initial path sequence are unfolded into specific executable paths on the original graph according to the predecessor record set, and a local search operator is used to optimize the executable paths in the neighborhood to reduce the total path cost, and when the termination condition is met, the optimized final path scheme and the accumulated cost report are output.

[0094] Each of the embodiments in the present application is described in a progressive manner, and the same or similar parts of each embodiment can be referred to each other, and each embodiment mainly explains the difference from other embodiments. Especially, for the device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the related parts can be referred to the part of the method embodiment.

[0095] The device and medium provided by the embodiments of the present application are one-to-one corresponding, and therefore the device and medium also have similar beneficial technical effects to the corresponding method. Since the beneficial technical effects of the method have been described in detail above, the beneficial technical effects of the device and medium will not be described here again.

[0096] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. In addition, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage, etc.) containing computer-usable program code.

[0097] The present application is described with reference to flowcharts and / or block diagrams of the method, device (system), and computer program product according to the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of flows and / or blocks in the flowcharts and / or block diagrams 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 produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device implemented in the flowcharts and / or block diagrams. Figure 1 one or more flows and / or blocks Figure 1 an apparatus that performs the functions specified in the flow(s) or block(s).

[0098] These computer program instructions can also be stored in a computer-readable memory that can direct the computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including instruction apparatus, which implements the flowcharts and / or block diagrams. Figure 1 one or more flows and / or blocks Figure 1 an apparatus that performs the functions specified in the flow(s) or block(s).

[0099] These computer program instructions can also be loaded into a computer or other programmable data processing device, so that a series of operation steps are performed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide a process for implementing the flowcharts and / or block diagrams. Figure 1 one or more flows and / or blocks Figure 1 an apparatus that performs the functions specified in the flow(s) or block(s).

[0100] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memories.

[0101] Memory can include non-persistent memory and / or volatile memory, such as random access memory (RAM) and / or cache memory, etc. in the form of a computer-readable medium, read only memory (ROM), or flash memory, etc. Memory is an example of computer readable media.

[0102] Computer readable media includes permanent and non-permanent, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital versatile disc (DVD), or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible to a computing device. According to the definition herein, computer readable media does not include transitory media, such as modulated data signals and carrier waves.

[0103] It should also be noted that the terms "comprising", "containing", or any other variant thereof, are intended to encompass a non-exclusive inclusion, such that a process, method, article or apparatus that comprises a list of elements does not include only those elements in the list, but can also include other elements not expressly listed or inherent to such process, method, article or apparatus. Without further limitation, an element defined by the statement "comprising a" does not exclude the presence of additional identical elements in the process, method, article or apparatus that includes the element.

[0104] The above only is an embodiment of the present application, and is not intended to limit the present application. For those skilled in the art, the present application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. within the spirit and principle of the present application shall be included in the scope of claims of the present application.

Claims

1. A multi-objective path optimization method, characterized in that, The method includes: A weighted graph model of the area to be planned is constructed, representing the path cost relationship between nodes in the form of an adjacency matrix. The adjacency matrix is ​​then checked for symmetry, nonnegativity, dimensional consistency, and connectivity to generate the checked weighted graph data. The weighted model of the area to be planned obtains the node data and edge data of the area to be planned through the system. The node data includes location identifiers, which include device numbers, GPS coordinates, or building codes in the smart park scenario. The edge data includes connection relationship identifiers, which include road numbers or channel names. Based on the verified weighted graph data, the shortest path algorithm is used to calculate the shortest path distance between all node pairs, forming a full-source shortest path distance matrix and a set of predecessor records. Connectivity detection and feasible region pruning are then performed on unreachable node pairs. Based on the processed full-source shortest path metric data and the nearest neighbor greedy strategy, an optimized access sequence covering all target nodes is generated. After each selection step, the composite path cost is accumulated in real time, and the feasibility of time window, capacity and risk constraints is checked to generate the initial path sequence and accumulated cost data. After all target nodes have been visited, the adjacent node pairs in the initial path sequence are expanded into specific executable paths on the original graph based on the predecessor record set. Local search operators are then used to optimize the neighborhood of the executable paths to reduce the total path cost. When the termination condition is met, the optimized final path scheme and cumulative cost report are output. After each selection step, the cost of the composite path is accumulated in real time, and feasibility checks are performed based on time windows, capacity, and risk constraints to generate an initial path sequence and accumulated cost data, specifically including: Based on the composite cost function, the composite cost from the current node to the next node is calculated and accumulated in real time into the total cost variable to generate cumulative cost data; the composite cost function integrates distance cost, time cost, energy cost and risk penalty cost. Based on time windows, capacity, and risk constraints, a feasibility test is performed on the next node, and a constraint test report is generated. The feasibility test includes time window conflict detection, capacity over-limit check, and risk area avoidance. Based on the constraint verification report, adjust the path sequence or composite cost parameters to generate the initial path sequence and cumulative cost data after feasibility processing. Repeat the iterative process until the set of unvisited nodes is empty, and complete the path sequence generation. After all target nodes have been visited, the adjacent node pairs in the initial path sequence are expanded into specific executable paths on the original graph based on the predecessor record set, specifically including: Obtain the adjacent node pair data in the initial path sequence, and based on the predecessor record set, find the intermediate node sequence passed by the shortest path in the original graph for each adjacent node pair; The intermediate node sequence between all node pairs is concatenated, duplicate nodes are removed after concatenation, a preliminary executable path is generated, and the smoothness of the preliminary executable path is checked to generate an optimized executable path. Verify the connectivity and validity of the executable path in the original graph, ensure that all node pairs are correctly expanded based on the predecessor record, generate the corresponding verification report, and based on the verification report, correct the abnormal expansion sequence, backtrack and splice the corrected node sequence to generate the final executable path. Store the detailed node sequence and edge sequence of the final executable path, and output a complete path description including all intermediate nodes; The executable path is optimized using a local search operator to reduce the total path cost. Upon meeting the termination condition, the optimized final path scheme and cumulative cost report are output, specifically including: Initialize the local optimization iteration parameters and the improved threshold, and use the path exchange operator to perform a neighborhood search on the executable path to generate candidate path variants; Calculate the total composite cost of each candidate path variant and compare the cost difference between the candidate path variant and the current path. If an improved solution is found and the constraints are met, the candidate path variant is taken as the new current solution. Repeat the neighborhood search and acceptance judgment until the termination condition is met. Generate the final optimized executable path sequence, calculate the cost components of each dimension and the total composite cost of the final path, and output a comprehensive report; the comprehensive report includes the path sequence, cost details of each dimension, and constraint satisfaction status.

2. The multi-objective path optimization method according to claim 1, characterized in that, A weighted graph model of the region to be planned is constructed, representing the path cost relationships between nodes in the form of an adjacency matrix. The adjacency matrix is ​​then validated for symmetry, non-negativity, dimensional consistency, and connectivity. The validated weighted graph data is then generated, specifically including: Obtain node data and edge data of the area to be planned, and construct an adjacency matrix based on the node data and edge data; wherein, the node data includes location identifiers, the edge data includes connection relationship identifiers, the element values ​​of the adjacency matrix represent the edge weights between corresponding nodes, and the edge weights in the adjacency matrix are calculated based on at least one of path distance, time, energy consumption, or risk; The adjacency matrix is ​​subjected to a symmetry check to correct the detected asymmetric edge weights to symmetric values, and the symmetric adjacency matrix is ​​subjected to a non-negativity check to replace the detected negative weight edges with preset positive weights. Perform dimension consistency checks on non-negative adjacency matrices, unify the units of edge weights with inconsistent dimensions, perform connectivity checks on adjacency matrices with consistent dimensions, identify and mark isolated nodes or edges through graph traversal algorithms, and generate connected component reports. Based on the connected component report, abnormal edges are corrected, and the final verified weighted graph data is generated.

3. The multi-objective path optimization method according to claim 1, characterized in that, Based on the verified weighted graph data, the shortest path distance between all node pairs is calculated using the shortest path algorithm, forming a full-source shortest path distance matrix and a predecessor record set, specifically including: Each node is selected sequentially as the source point, and the improved Dijkstra algorithm is executed to calculate the shortest distance vector from the source point to all other nodes and the predecessor vector. The shortest distance vectors of all source points are superimposed to form the shortest path distance matrix of all sources, and the predecessor vectors of all source points are integrated to form a predecessor record set.

4. The multi-objective path optimization method according to claim 1, characterized in that, For unreachable node pairs, connectivity detection and feasible region pruning are performed, specifically including: Unreachable node pairs are detected on the full-source shortest path distance matrix, node pairs with infinite distance values ​​are identified, and unreachable marker data is generated. Based on the unreachable marker data, connectivity analysis is performed, the maximum connected subgraph is determined by graph traversal algorithm, and feasible region pruning is performed to remove non-connected nodes and generate a pruned node set. Based on the pruned node set, update the all-source shortest path distance matrix and the predecessor record set to generate corrected all-source shortest path metric data.

5. The multi-objective path optimization method according to claim 1, characterized in that, Based on the processed full-source shortest path metric data and the nearest neighbor greedy strategy, an optimized access sequence covering all target nodes is generated, specifically including: Select the starting node of the path and initialize the current node state, the set of unvisited nodes, the path sequence, and the cumulative cost variables; In each iteration, based on the full-source shortest path distance matrix, the node with the shortest distance to the current node is selected from the set of unvisited nodes as the next node, and nearest neighbor selection data is generated. Based on the nearest neighbor selection data, the path sequence is updated, the next node is appended to the path sequence, and the updated path sequence data is generated.

6. A multi-objective path optimization device, characterized in that, The device includes: At least one processor; And, a memory communicatively connected to the at least one processor; The memory stores instructions that can be executed by the at least one processor, which are executed by the at least one processor to enable the at least one processor to perform a multi-objective path optimization method as described in any one of claims 1-5.

7. A non-volatile computer storage medium storing computer-executable instructions, characterized in that, When the computer-executable instructions are executed, they implement a multi-objective path optimization method as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Path planning method and device based on improved Dijkstra algorithm

    CN118195115A

  • Optimal path query method under multi-keyword coverage based on component reconstruction and XGBoost

    CN120011658A