Quantum computing driven multi-vehicle path optimization qubo modeling and solving method and system

By employing a hierarchical dimensionality reduction architecture and a time window iterative feedback mechanism, the problems of variable explosion and difficulty in embedding time window constraints in large-scale multi-vehicle path optimization problems on quantum hardware are solved, enabling efficient solution of legal vehicle scheduling paths on current quantum hardware and adapting to logistics business needs.

CN122864863BActive Publication Date: 2026-11-24SOUTH CHINA UNIV OF TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611354806.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-09-03
Publication Date
2026-11-24
Estimated Expiration
2046-09-03

AI Technical Summary

Technical Problem

Existing technologies face challenges when mapping vehicle routing problems to quantum hardware, including variable explosion, difficulty in physically embedding time window constraints, and failures caused by multiple constraint coupling. These challenges make it difficult to effectively solve large-scale multi-vehicle routing optimization problems on current noisy, medium-scale quantum hardware.

Method used

Employing a hierarchical dimensionality reduction architecture and a time window iterative feedback mechanism, a two-layer decomposition architecture consisting of upper-layer capacity feasible allocation and lower-layer single-vehicle path sorting is used. Combining bit compression and quantum-classical physics solution closed loop, a compressed QUBO matrix is ​​constructed and optimized through quantum-classical iterative feedback to output legal paths that satisfy time window and capacity constraints.

Benefits of technology

It significantly improves the model embedding success rate of quantum annealers and coherent Ising machines, stably outputs legal scheduling schemes, adapts to the needs of logistics business decision-making, reduces computational complexity and improves solution efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122864863B_ABST
    Figure CN122864863B_ABST
Patent Text Reader

Abstract

This invention discloses a quantum computing-driven method and system for QUBO modeling and solving of multi-vehicle route optimization. The method includes: calculating a lower bound on the number of vehicles and generating a set of candidate vehicles based on the acquired physical data of the delivery task; performing upper-level capacity feasible allocation on each candidate vehicle in the candidate vehicle set to obtain a subset of customers for each vehicle, then constructing a position encoding matrix for single-vehicle route sorting and performing bit compression, determining the set of free variables and boundary variable recovery rules, and then constructing a compressed QUBO matrix Q; based on the compressed QUBO matrix Q, performing a time-window iterative feedback quantum-classical physical solution closed loop to obtain the optimal permutation solution for single-vehicle routes; based on the optimal permutation solution, obtaining the route scheme corresponding to the number of candidate vehicles, and then selecting the recommended scheme. This invention outputs a legal path that satisfies the time window and capacity constraints without significantly increasing the number of qubits.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of quantum computing and traffic data processing technology, and in particular to a quantum computing-driven multi-vehicle route optimization (QUBO) modeling and solution method, system, terminal equipment, computer-readable storage medium, and computer program product. Background Technology

[0002] Smart logistics and urban delivery systems need to generate executable vehicle scheduling routes under physical constraints such as customer demand, vehicle capacity, service time windows, distribution center locations, and road network transportation times. Real-world tasks typically require providing unique service to a single customer, avoiding vehicle overloading, and completing services within the designated time window. Minimizing only transportation time can easily lead to subsequent customer delays; conversely, prioritizing punctuality may require additional vehicles or detours. Therefore, engineering approaches need to simultaneously address optimization methods that balance route length, time window penalties, capacity constraints, and vehicle quantity.

[0003] Traditional exact algorithms (such as dynamic programming, branch and bound, integer programming, and column generation) are suitable for small-scale exact verification, but face memory and time bottlenecks in scenarios with dozens of clients or more. Classical heuristics and metaheuristics are flexible in implementation and suitable for larger-scale problems, but they are parameter-sensitive, highly random, and lack adaptation to native quantum hardware models.

[0004] Novel physical computing architectures such as quantum annealers and coherent Ising machines offer alternative approaches to solving combinatorial optimization problems. Coherent Ising machines typically use the Ising Hamiltonian as the physical objective, evolving through optical parametric oscillators or equivalent spin networks to find low-energy states. Quantum annealers typically encode the problem into an Ising model or a QUBO (Quadratic Unconstrained Binary Optimization) model before performing annealing evolution. Previous studies have mapped capacity vehicle routing problems and vehicle routing problems with time and capacity states to QUBO and tested them on quantum annealing systems.

[0005] However, existing schemes that map the vehicle routing problem to quantum hardware still face the following serious technical problems that limit their feasibility:

[0006] First, the scale of variables explodes: Standard position coding requires a large number of binary variables (n clients require n² level variables), which is difficult to directly adapt to the capacity limitations of current noisy intermediate-scale quantum (NISQ) hardware.

[0007] Second, time window constraints are difficult to embed physically: the client time window penalty is a nonlinear temporal function induced by path order. Existing technologies (such as the method proposed by Irie et al. in 2019) handle time states by introducing explicit time-schedule qubits, which leads to a sharp increase in the number of auxiliary variables, far exceeding the processing capabilities of existing quantum hardware.

[0008] Third, multiple constraints coupled together lead to solution failure: large-scale multi-vehicle problems simultaneously involve vehicle allocation, capacity constraints and path ordering. Directly constructing the overall QUBO will make the variable dimension and penalty term extremely large, making it difficult for the quantum solver to converge to a valid solution. Summary of the Invention

[0009] In view of this, the present invention provides a quantum computing-driven multi-vehicle path optimization QUBO modeling and solution method, system, terminal device, computer-readable storage medium and computer program product, which guides quantum hardware to output a legal physical path that meets time window and capacity constraints without significantly increasing the number of qubits.

[0010] The first objective of this invention is to provide a quantum computing-driven method for modeling and solving multi-vehicle path optimization (QUBO).

[0011] The second objective of this invention is to provide a quantum computing-driven QUBO modeling and solution system for multi-vehicle path optimization.

[0012] A third objective of this invention is to provide a terminal device.

[0013] A fourth objective of this invention is to provide a computer-readable storage medium.

[0014] The fifth objective of this invention is to provide a computer program product.

[0015] The first objective of this invention can be achieved by adopting the following technical solution:

[0016] A quantum computing-driven QUBO modeling and solution method for multi-vehicle path optimization, the method comprising:

[0017] Obtain physical data for delivery tasks;

[0018] Based on the physical data of the delivery task, calculate the lower bound of the number of vehicles and generate a set of candidate vehicle numbers;

[0019] For each candidate vehicle k in the candidate vehicle set, perform upper-level capacity feasible allocation with the goal of balancing the load of each vehicle to obtain a subset of customers for each vehicle in the candidate vehicle k.

[0020] Based on the customer subset of each vehicle, a location encoding matrix for single-vehicle route sorting is constructed; bit compression is performed on the location encoding matrix to determine the set of free variables and the boundary variable recovery rules; bit compression includes symmetry fixing and constraint elimination;

[0021] Based on the set of free variables and the boundary variable recovery rule, a compressed QUBO matrix Q is constructed; based on the compressed QUBO matrix Q, a quantum-classical physics solution closed loop with time window iterative feedback is executed to obtain the optimal permutation solution of the single vehicle path;

[0022] Based on the optimal permutation solution of single-vehicle routes, local search and cross-vehicle verification are performed on each vehicle route to obtain multi-vehicle route schemes corresponding to the number of candidate vehicles k.

[0023] Sensitivity analysis is performed on the multi-vehicle routing schemes corresponding to all candidate vehicle numbers in the candidate vehicle number set, and the recommended scheme is selected.

[0024] The second objective of this invention can be achieved by adopting the following technical solution:

[0025] A quantum computing-driven multi-vehicle path optimization QUBO modeling and solution system, the system comprising:

[0026] The data acquisition module is used to acquire physical data for delivery tasks;

[0027] The calculation module is used to calculate the lower bound of the number of vehicles and generate a set of candidate vehicles based on the physical data of the delivery task.

[0028] The allocation module is used to perform upper-level capacity feasible allocation on each candidate vehicle k in the candidate vehicle set with the goal of balancing the load of each vehicle, and to obtain a subset of customers for each vehicle in the candidate vehicle k.

[0029] The construction and compression module is used to construct a location encoding matrix for single-vehicle route sorting based on a subset of customers for each vehicle; perform bit compression on the location encoding matrix; and determine the set of free variables and boundary variable recovery rules; bit compression includes symmetry fixing and constraint elimination.

[0030] The construction and solution module is used to construct a compressed QUBO matrix Q based on the set of free variables and the boundary variable recovery rule; based on the compressed QUBO matrix Q, a quantum-classical physics solution closed loop with time window iterative feedback is executed to obtain the optimal permutation solution of the single vehicle path;

[0031] The search and verification module is used to perform local search and cross-vehicle verification on each vehicle path based on the optimal permutation solution of the single vehicle path, so as to obtain the multi-vehicle path scheme corresponding to the number of candidate vehicles k.

[0032] The recommendation module is used to perform sensitivity analysis on the multi-vehicle routing schemes corresponding to all candidate vehicle numbers in the candidate vehicle number set, and select the recommended scheme.

[0033] The third objective of this invention can be achieved by adopting the following technical solution:

[0034] A terminal device includes a processor and a memory for storing processor-executable programs. When the processor executes the program stored in the memory, it implements the above-described quantum computing-driven multi-vehicle path optimization QUBO modeling and solution method.

[0035] The fourth objective of this invention can be achieved by adopting the following technical solution:

[0036] A computer-readable storage medium storing a program that, when executed by a processor, implements the aforementioned quantum computing-driven multi-vehicle path optimization QUBO modeling and solution method.

[0037] The fifth objective of this invention can be achieved by adopting the following technical solution:

[0038] A computer program product includes a computer program that, when executed by a processor, implements the aforementioned quantum computing-driven multi-vehicle path optimization (QUBO) modeling and solution method.

[0039] The present invention has the following advantages over the prior art:

[0040] (1) The hierarchical dimensionality reduction architecture eliminates the explosion of multiple constraints and adapts to the computing power boundary of NISQ hardware.

[0041] A two-layer decomposition architecture is adopted, consisting of upper-layer capacity feasible allocation and lower-layer vehicle path sorting: the upper layer uses lower bound scanning of vehicle numbers and capacity balancing priority allocation to pre-extract capacity constraints into a quantum solution subproblem; the lower layer performs two-level bit compression on the position encoding matrix of the vehicle customer subset, using symmetry fixing and row / column constraint elimination to compress the original... The size of the binary variable is compressed to This architecture uses several free variables and auxiliary bits to process higher-order terms to ensure that valid permutations can be fully recovered. It reduces the dimensionality of ultra-large-scale VRP problems to the range that current noisy medium-scale quantum (NISQ) hardware can handle, significantly improving the model embedding success rate of physical computing devices such as quantum annealers and coherent Ising machines.

[0042] (2) The time window iterative feedback mechanism avoids state bit explosion and achieves soft constraint embedding with extremely low classical cost. Overcoming the technical bias of introducing explicit time state bits in existing technologies, the time window violation is transformed into physical energy penalty, and a quantum-classical physical solution closed loop of time window iterative feedback is constructed. By using the direction guidance function to dynamically correct the QUBO diagonal elements with position penalty and the adjacent column off-diagonal elements with edge bias penalty, the classical computational overhead of matrix element addition is used to replace the exponential time state quantum bit overhead, and the physical embedding of time window soft constraints is achieved without increasing the hardware bit size.

[0043] (3) Fault-tolerant quantum-classical closed-loop control system with noise-resistant stable output legal scheduling scheme.

[0044] A complete solution chain is constructed, consisting of "Ising model mapping—physical spin evolution—Hungarian algorithm projection decoding—iterative feedback optimization": the compressed QUBO matrix Q is mapped to the Ising Hamiltonian and sent to the quantum computing device. After outputting low-energy spin samples through physical evolution, the noisy candidate solutions are projected into strictly valid permutation solutions using the Hungarian algorithm. Combined with the historical optimal solution tracking mechanism in the iteration process, it can resist the interference of physical noise in quantum hardware and stably output vehicle scheduling paths that satisfy permutation constraints. Experimental results show that the accurate algorithm benchmark (transport time 29) can be achieved in a scenario with 15 customers; in a scenario with 50 customers, the deviation of this method from the target value of the classical strong heuristic algorithm is only about 0.043%.

[0045] (4) A compromise solution for vehicle quantity sensitivity scanning output to meet the needs of logistics business decision-making.

[0046] Based on a set of candidate vehicles, a full scan and sensitivity analysis are performed. Without pre-setting difficult-to-interpret vehicle cost weight parameters, it directly outputs a complete decision matrix for different numbers of vehicles, showing the trade-off between vehicle deployment and service timeliness. This provides logistics scheduling systems with highly interpretable and business-target-adaptive recommended solutions. For example, in a standard test scenario with 50 customers, configuring 9 vehicles is sufficient to achieve zero time window penalties, with a total target value of 124. Attached Figure Description

[0047] To more clearly illustrate the technical solutions in the embodiments of the present 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 only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the structures shown in these drawings without creative effort.

[0048] Figure 1This is a flowchart of the quantum computing-driven multi-vehicle path optimization QUBO modeling and solution method of Embodiment 1 of the present invention;

[0049] Figure 2 This is a schematic diagram of multi-vehicle layered QUBO modeling in Embodiment 1 of the present invention;

[0050] Figure 3 This is a schematic diagram of the construction of the single-vehicle sub-path QUBO matrix in Embodiment 1 of the present invention;

[0051] Figure 4 This is a schematic diagram of bit compression and projection decoding in Embodiment 1 of the present invention;

[0052] Figure 5 This is a schematic diagram of the time window iteration penalty feedback mechanism in Embodiment 1 of the present invention;

[0053] Figure 6 This is a schematic diagram of the vehicle quantity sensitivity output and recommended scheme selection in Embodiment 1 of the present invention;

[0054] Figure 7 This is a block diagram of the quantum computing-driven multi-vehicle path optimization QUBO modeling and solving system of Embodiment 2 of the present invention;

[0055] Figure 8 This is a structural block diagram of the terminal device according to Embodiment 3 of the present invention. Detailed Implementation

[0056] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention. It should be understood that the specific embodiments described are merely used to explain this application and are not intended to limit this application.

[0057] Example 1:

[0058] This embodiment provides a quantum computing-driven QUBO modeling and solution method for multi-vehicle route optimization. Based on the physical data of the delivery task, the method first determines the range of selectable vehicles, and then performs capacity-feasible allocation for each candidate vehicle number. For each allocated vehicle customer subset, a QUBO model for single-vehicle route ranking is established and bit compression is performed. Then, candidate routes are obtained through quantum-classical closed-loop solution, local search, and cross-vehicle verification. Finally, a recommended solution is output based on vehicle number sensitivity analysis.

[0059] like Figure 1As shown, the quantum computing-driven multi-vehicle path optimization QUBO modeling and solution method provided in this embodiment specifically includes:

[0060] S101. Obtain the physical data of the delivery task.

[0061] Obtain the distribution center number 0, customer set V={1,2,...,i,...,n}, and customer i's demand through the logistics system interface. Customer i's service duration Customer i's time window [ , Vehicle capacity Maximum number of candidate vehicles The inter-node transportation time matrix t and the penalty coefficient A.

[0062] Specifically, For customer i's demand for goods. and These are the earliest and latest times that customer i is allowed to start the service, respectively. Given by vehicle resources or scheduling rules, it serves as an upper bound on the set of candidate vehicles. Elements in matrix t Let be the transportation time from node i to node j, where nodes include distribution center node 0 and customer nodes 1 to n. The penalty coefficient A is the constraint penalty weight, and its value must be greater than the maximum value of all unit path costs to ensure that the energy penalty for constraint violation is higher than the path optimization benefit.

[0063] In this embodiment, i and j are both node indices, and the nodes include distribution center node 0 and customer nodes 1~n; r is the vehicle index, and p is the access location index in the path of vehicle r.

[0064] In one embodiment, a standard delivery test scenario with 50 customers is used, with all vehicles having the same configuration. The basic parameters of the scenario are as follows:

[0065] Distribution center number 0, customer collection Total number of customers ;

[0066] Total customer demand Rated capacity of a single vehicle ;

[0067] The duration of a single customer service session is uniformly set at 2 units of time, with customer i's time window being... The delivery time should be evenly distributed throughout the delivery period.

[0068] Maximum number of candidate vehicles The transport time matrix between nodes satisfies the triangle inequality;

[0069] Constraint penalty coefficient It is greater than the maximum value of all single-segment transportation times, ensuring that the constraint violation energy is higher than the path optimization benefit.

[0070] S102. Based on physical data, calculate the lower bound of the number of vehicles and generate a set of candidate vehicle numbers.

[0071] The physical lower bound of the number of vehicles is determined by the total customer demand and the capacity per vehicle, and is defined as follows:

[0072]

[0073] In one embodiment, The set of vehicle numbers is: .

[0074] In the case of heterogeneous vehicles... For the rated capacity of the r-th vehicle, the maximum capacity among all vehicles is taken as the lower bound when calculating the capacity. The value is then verified separately for each vehicle in the allocation process based on its actual capacity.

[0075] Subsequently, S103 to S107 are executed for each candidate vehicle number k in set K.

[0076] S103. Perform upper-level capacity feasible allocation on each candidate vehicle number k in the candidate vehicle number set to obtain a customer subset for each vehicle in the candidate vehicle number k.

[0077] like Figure 2 As shown, multi-vehicle hierarchical QUBO modeling consists of two parts: upper-level capacity feasible allocation and lower-level vehicle path ranking. The upper level first allocates customers to each vehicle according to capacity constraints, forming vehicle-customer subsets; the lower level then establishes a vehicle path ranking QUBO model for each customer subset. This allows capacity constraints to be pre-processed from the quantum solution subproblem, making the size of each sub-QUBO primarily depend on the number of customers per vehicle, *m*.

[0078] For the current number of candidate vehicles k, initialize the customer subset for each vehicle. For an empty set, the initial load of each vehicle =0.

[0079] Process customer i sequentially and construct a set of feasible vehicles that satisfy the capacity constraint:

[0080]

[0081] When customer i is assigned to vehicle r, the load of vehicle r at this time is... Update to the original load Plus customer i's demand .

[0082] like If the value is not empty, a two-layer greedy algorithm, prioritizing load balancing and secondarily considering path cost, is used to allocate customers.

[0083] Primary allocation rule: Prioritize assigning customer i to [the primary allocation method]. Current load The smallest vehicle is used to balance the load capacity of each vehicle from the customer segmentation level, reduce the load pressure on a single vehicle, avoid excessive load on some vehicles leading to subsequent capacity violations, and ensure the capacity flexibility of the allocation plan.

[0084] Secondary allocation rule: When there are multiple vehicles with current load in the feasible vehicle set. If they are identical, assign customer i to the vehicle with the smallest expected incremental insertion transportation time.

[0085] The expected insertion time increment refers to the minimum additional transportation time incurred when inserting customer i into the currently formed delivery route of vehicle r. Its calculation follows the classic cheapest insertion criterion: Let the semi-closed route formed by the currently assigned customers of vehicle r be... (The initial path when there are no customers in the vehicle is) ), total There are several possible insertion locations (after shipment from the distribution center, between any two adjacent customers, and before returning to the distribution center). For the p-th insertion location (located at node...) and Between them, the boundary nodes are agreed upon. , The increase in transportation time caused by inserting customer i is:

[0086]

[0087] After inserting customer i, in the original path The direct route was replaced with The difference between the two additional routes and the original routes is the extra time cost brought about by the insertion position.

[0088] Iterate through all possible insertion positions and take the minimum increment as the expected insertion transportation time increment for vehicle r to customer i:

[0089]

[0090] The smaller this value, the smaller the increase in total transportation time after assigning customer i to this vehicle. This rule allows for early optimization of the initial level of the total path length based on capacity balancing, providing a better customer subset partition for the subsequent QUBO path sorting of individual vehicles and reducing the optimization difficulty of the subsequent quantum solution.

[0091] like If the value is empty, it means that the current number of candidate vehicles k cannot meet the capacity constraint. In this case, skip k and continue to process the number of candidate vehicles k+1.

[0092] After allocation, we obtain the customer subset corresponding to each of the k vehicles. Furthermore, it must meet the following constraints: no duplicate customers, full customer coverage, and vehicle capacity.

[0093]

[0094] This step implements capacity constraints at the customer ownership level, reducing the introduction of additional capacity state variables into the underlying QUBO model.

[0095] S104. Based on the customer subset of each vehicle, construct the location encoding matrix of the single vehicle path; perform bit compression on the location encoding matrix to determine the set of free variables and the boundary variable recovery rules.

[0096] like Figure 3 As shown, this step first establishes a binary location encoding matrix corresponding to "customer-access location", and then determines the set of free variables and boundary recovery rules through bit compression (two-level progressive dimensionality reduction of fixed symmetry and constraint elimination). Under the premise of ensuring that a legal path can be restored, the number of free binary variables is reduced to adapt to the bit capacity limit of the current NISQ hardware.

[0097] (1) Construct a location coding matrix for a single vehicle path based on the customer subset of each vehicle.

[0098] For the customer subset of vehicle r Let the subset contain m customers. Construct a dimension with customer i as the row dimension and access location p as the column dimension. binary positional encoding matrix The matrix elements are defined as position-encoded variables:

[0099]

[0100] row index : Corresponds to the i-th customer in the current vehicle customer subset;

[0101] Column Index : The p-th access location in the vehicle delivery route;

[0102] when When, it means that customer i is assigned to the p-th access location on the vehicle path; when When this occurs, it indicates that client i is not in the access location.

[0103] The location encoding matrix corresponding to a valid vehicle path is a permutation matrix that must satisfy two basic properties: ① Each row has exactly one element that is 1: each customer is visited exactly once in the path; ② Each column has exactly one element that is 1: each access location has exactly one customer served.

[0104] To accommodate subsequent matrix operations, the two-dimensional positional encoding matrix is ​​expanded into a one-dimensional binary vector according to row-major rules. The total length of the vector is The index of the expanded one-dimensional vector. Compared with the original matrix index The mapping relationship is as follows:

[0105]

[0106] That is, the original matrix The variable in the i-th row and p-th column Corresponding one-dimensional vector The kth element Subsequent compression variables and the indices of the QUBO matrix all follow this mapping rule.

[0107] For example: If a vehicle's customer subset contains 3 customers (m=3), and the path order is customer 2 → customer 1 → customer 3, then the corresponding location encoding matrix is:

[0108]

[0109] After expanding into a one-dimensional vector in row-major order The total length is 9.

[0110] (2) Perform bit compression on the position encoding matrix to determine the set of free variables and the boundary variable recovery rules.

[0111] refer to Figure 4 Bit compression as defined above Based on a binary positional encoding matrix, the variable size is compressed through a two-stage operation of symmetry fixing and constraint elimination, as follows:

[0112] (2-1) Perform a symmetry fixation operation on the position encoding matrix to obtain the corresponding submatrix.

[0113] Select the first customer in the customer subset as the baseline customer (renumbered as customer 1), and fix its first access position in the path, that is:

[0114]

[0115] This operation eliminates the cyclic translation symmetry of the path, reducing redundant search space. Based on the core property of the permutation matrix that "each row and each column has exactly one element equal to 1", the path is fixed. After that, the remaining positions in the first row ( The value must be 0, and the remaining customers in the first column ( The value must also be 0, so we can directly delete the first row and the first column to get the remaining values. The submatrix, corresponding to the customer set With access location set The matching relationship.

[0116] If necessary, the second visiting customer or the path access direction can be further fixed to eliminate the symmetry of forward and reverse equivalent paths; in multi-vehicle scenarios, the vehicle order can be fixed according to the total vehicle demand or number to eliminate vehicle replacement symmetry and further compress the overall variable scale.

[0117] (2-2) Perform constraint elimination on the submatrix to obtain the set of free variables.

[0118] Based on the row and column uniqueness constraints of the permutation matrix, the above... Further variable elimination is performed on the submatrix, retaining only the core free variables for quantum solution. After the solution is completed, the complete matrix is ​​recovered in reverse through the constraint relationship.

[0119] The set of free variables is defined as: selecting the first... Line (corresponding customer) ),forward Column (corresponding position) ), forming the set of free variables Y:

[0120]

[0121] The total number of free variables is Quantum hardware only needs to encode and evolve the variables of this set. (Based on the number of customers per vehicle) For example, the original position encoding matrix has 25 binary variables, which are reduced to only a few after two levels of compression. With one free variable, the number of bits is reduced by 64%; the standard model's 226 bits are compressed to 170 bits.

[0122] (2-3) Construct boundary variable inverse recovery rules based on the set of free variables.

[0123] The remaining variables for the last row (customer m), last column (position m), and bottom right corner intersection can all be uniquely derived from the free variables through the arrangement constraint that "the sum of elements in each row is 1, and the sum of elements in each column is 1". The derivation formula is as follows:

[0124] No. The last element of the row (corresponding to position m):

[0125]

[0126] No. The last row element of the column (corresponding to customer m):

[0127]

[0128] Bottom right corner intersection element (customer m, position m):

[0129]

[0130] Combined with the pre-fixed values ​​in the first row and first column ( (with the remaining positions set to 0), the result can be completely restored from the free variables. The position encoding matrix.

[0131] S105. Based on the set of free variables and the boundary variable recovery rule, construct a compressed QUBO matrix Q; based on the compressed QUBO matrix Q, execute a quantum-classical physics solution closed loop with time window iterative feedback to obtain the optimal permutation solution for each vehicle path.

[0132] This step, based on the set of free variables and boundary restoration rules output by S104, first encodes the transportation time objective, permutation constraint penalty, and initial time window penalty into a compressed QUBO matrix Q, then maps it to an Ising Hamiltonian and sends it to the quantum hardware for evolution. After classical decoding and projection, and time window violation calculation, the compressed QUBO matrix Q is dynamically corrected and iteratively optimized, finally outputting the optimal legal permutation solution that satisfies the constraints. .

[0133] (1) Based on the set of free variables and the boundary variable recovery rule, construct the compressed QUBO matrix Q.

[0134] By combining the definitions of free variables and the derivation of boundary variables, the objectives and constraints of path optimization are uniformly encoded, directly constructing a dimension-based system. compressed QUBO matrix The matrix row and column indices correspond one-to-one with the one-dimensional indices of the free variables. Compressed QUBO matrix. During initialization, all diagonal and off-diagonal elements are initialized to 0. The coefficients of the three types of terms—transportation time, arrangement constraint penalty, and time window penalty—are written into the corresponding positions in a cumulative manner to form a complete compressed QUBO matrix.

[0135] The standard form of the QUBO model is to minimize a quadratic objective function:

[0136]

[0137] in, for Real symmetric matrix: diagonal elements Corresponding one-dimensional variable Linear coefficients, off-diagonal elements Corresponding variable product The quadratic coefficient.

[0138] During construction, the transportation time target, arrangement constraint penalty, and time window penalty are decomposed item by item and mapped to the corresponding positions in the QUBO matrix Q. These are then superimposed to obtain the complete matrix. The construction rules for each item are as follows:

[0139] (1-1) Based on the set of free variables, the boundary variable recovery rule, and the inter-node transportation time matrix, the transportation time term is mapped to the corresponding position in the QUBO matrix Q.

[0140] The total transportation time for vehicle r is divided into three parts: the outbound segment, the intermediate segment, and the return segment, as shown in the formula:

[0141]

[0142] The three items are written into the QUBO matrix Q according to the following rules:

[0143] Outbound transportation time This represents the transportation time from the distribution center (node ​​0) to the first customer. Since it's a single-variable linear term, it's all written into the diagonal elements of the QUBO matrix Q: for each customer i, the corresponding position... diagonal elements Superposition coefficient , .

[0144] Return journey transportation time This represents the transit time from the last customer's visit to the distribution center. Also a linear item, it's written entirely in the diagonal elements: for each customer i, the corresponding position... The superposition coefficient of diagonal elements .

[0145] The intermediate segment transportation time is the sum of the transportation times between adjacent visited locations in the path, and its expanded form is:

[0146]

[0147] Since transportation only occurs between two consecutive access locations, it is only possible if the column index satisfies... At that time, only the off-diagonal elements contain the transportation time coefficient. For each pair of adjacent positions (p, p+1) and each pair of different customers (i, j), the corresponding values ​​in the QUBO matrix Q are... and Off-diagonal element position superposition coefficient Since the QUBO matrix Q is a symmetric matrix, the corresponding positions in the upper and lower triangular parts of the matrix are assigned values ​​simultaneously. Except for the off-diagonal elements corresponding to adjacent positions, none of the other off-diagonal elements contain the transportation time term.

[0148] (1-2) Based on the set of free variables and the boundary variable recovery rule, the permutation constraint penalty term is mapped to the corresponding position of the QUBO matrix Q.

[0149] To ensure that the solution is a valid permutation matrix, position uniqueness constraints and customer uniqueness constraints are introduced and written into the objective function in the form of a squared penalty.

[0150] Location uniqueness constraint penalty , Each access location p has one and only one customer. Expanding the squared terms:

[0151]

[0152] The rule for mapping to the QUBO matrix Q is:

[0153] Diagonal elements: for each customer i, each position p The corresponding diagonal elements are stacked. ;

[0154] Off-diagonal elements: For any two different customers i and j at the same position p, the corresponding off-diagonal elements are superimposed. ;

[0155] constant term after expansion It does not affect the relative size of the optimal solution and can be stored in an independent constant term.

[0156] Customer uniqueness constraint penalty , Each customer i appears exactly once in the path. After square expansion:

[0157]

[0158] The rule for mapping to the QUBO matrix Q is:

[0159] Diagonal elements: for each customer i, each position p The corresponding diagonal elements are stacked. ;

[0160] Off-diagonal elements: For any two different positions p and q under the same customer i, the corresponding off-diagonal elements are superimposed. ;

[0161] constant term after expansion Similarly, store the independent constant terms.

[0162] (1-3) Map the initial time window penalty term to the corresponding position in the QUBO matrix Q.

[0163] Time window penalty As a soft constraint, the initial value is set to 0. In the quantum-classical closed-loop iteration, it is dynamically corrected according to the violation of the path arrival time. The correction is divided into two categories: diagonal element position penalty and adjacent off-diagonal element edge bias.

[0164] (1-4) Execute higher-order term processing and auxiliary bit mechanism.

[0165] When constructing a compressed Q matrix based on the above rules for restoring free and boundary variables, if the linear expansion of the boundary constraints introduces higher-order coupling terms of degree three or above, a small number of auxiliary binary bits can be introduced. The penalty constraint ensures that the product of the auxiliary bits and the higher-order terms takes the same value, reducing the higher-order terms to quadratic terms. Since the number of auxiliary bits is much smaller than the number of main variables that are eliminated, the overall compression of the bit scale is still achieved.

[0166] With typical cubic terms For example: Introducing auxiliary bits Make it equivalent to a binary product At the same time, a penalty item was added. When the penalty weight A is large enough, the optimal solution of the system must satisfy... At this point, the original cubic term can be equivalently replaced by That is, it is reduced to a standard quadratic term.

[0167] (2) Using the Ising model, the compressed QUBO matrix Q is mapped to the Ising Hamiltonian to obtain the linear bias vector and coupling matrix.

[0168] Physical computing devices such as quantum annealers and coherent Ising machines use the Ising Hamiltonian as their native computational model. Therefore, it is necessary to transform the binary variable form of the QUBO model into the spin variable form of the Ising Hamiltonian through variable substitution to obtain the linear bias vector. and coupling matrix .

[0169] Variable mapping rule: assign values ​​to binary variables Mapped to a value spin variable The transformation relationship is as follows:

[0170]

[0171] Among them, subscript It is a one-dimensional index for the free variables, consistent with the row-major expansion indexing rule in step S104.

[0172] Hamiltonian coefficient calculation: The standard form of the QUBO model is as follows: Expanding to the sum of linear and quadratic terms, substituting the variable substitution formula, and simplifying, we obtain the standard form of the Ising Hamiltonian:

[0173]

[0174] Each coefficient is directly calculated from the elements of the QUBO matrix Q:

[0175] Linear bias coefficient (corresponding to the first) (single spin bias term)

[0176]

[0177] Secondary coupling coefficient (corresponding to the first) The and the first (each spin pairwise coupling term)

[0178]

[0179] constant term (The relative magnitude of the optimal solution does not affect the spin evolution; it is only used for objective value restoration):

[0180]

[0181] Calculated Construct a linear bias vector ,Depend on Constructing a coupling matrix ,Will and The data is sent to the quantum computing device; if a CPQC-type coherent Ising machine is used, the data can be processed according to the hardware integer bit width. and Scaling and quantization are performed to adapt to the hardware input bit width requirements.

[0182] (3) Send the linear bias vector and coupling matrix to the quantum computing device, perform physical evolution, and output low-energy spin samples.

[0183] Quantum computing devices receive linear bias vectors With coupling matrix Subsequently, the spin network is driven to evolve through physical processes such as quantum annealing and optical parametric oscillation, eventually converging to the low-energy state of the system and outputting multiple sets of low-energy spin sample sets. ,in Let be the spin vector of the t-th group, and S be the total number of samples.

[0184] (4) After receiving the low-energy spin sample, the classical device performs decoding and restoration to obtain the candidate position encoding matrix; the candidate position encoding matrix is ​​projected using the Hungarian algorithm to obtain the legal permutation solution.

[0185] After receiving the spin sample output by the quantum hardware, the classical device performs a three-step decoding and reconstruction to obtain a valid permutation solution that satisfies the permutation constraints, which corresponds to a valid vehicle delivery route.

[0186] (4-1) Spin variable inverse mapping.

[0187] Based on each set of spin vectors in the above low-energy spin configuration sample set ,pass The spin variable is restored to a free binary variable.

[0188] (4-2) Based on the boundary recovery rule and the set of free variables, the corresponding free binary variables are recovered from each set of mapped free binary variables. Candidate position encoding matrix. Due to quantum hardware noise and conflicting free variable values, the directly recovered candidate position encoding matrix may not satisfy the permutation constraint of "the sum of elements in each row / column is 1, and the element value is 0 or 1", and is not a strictly valid permutation solution. In order to obtain a valid solution while preserving the characteristics of quantum low-energy state paths to the greatest extent, this embodiment transforms the validity correction into a bipartite graph minimum weight perfect matching problem, and projects the candidate position encoding matrix into the nearest valid permutation matrix using the Hungarian algorithm. The specific execution process is as follows:

[0189] Construct the assignment cost matrix C: using the customer set as the left node of the bipartite graph and the access location set as the right node, construct... The assignment cost matrix C, where elements This represents the cost of assigning customer i to the p-th access location. The cost value is negatively correlated with the degree of matching of the candidate location encoding matrix: if the recovered matrix contains... This indicates that the quantum low-energy state tends towards this matching relationship, and the corresponding assignment cost is set to the minimum value, so it is preferentially retained; if The corresponding assignment cost is set to a higher value. In engineering implementation, Hamming distance can be used to simplify the cost (…). Alternatively, the exact cost can be calculated based on the QUBO energy increment to ensure that the increase in the total objective function after projection is minimized.

[0190] Solving for the optimal assignment result: Using the constructed assignment cost matrix C as input, the Hungarian algorithm is called to solve for the minimum weight perfect matching of the bipartite graph. The output is the one-to-one mapping relationship between customers and visited locations, which is the optimal assignment result. The cost matrix quantifies the degree of difference between each customer-location assignment and the quantum reduction candidate matrix. The Hungarian algorithm finds the scheme with the minimum total cost among all legal permutations that satisfy the "one-to-one correspondence", that is, the legal permutation with the smallest overall difference from the candidate matrix and the maximum preservation of the quantum low-energy state path characteristics. This result naturally satisfies the permutation constraint, and the quality degradation of the projected solution is controllable.

[0191] Reconstructing the valid location encoding matrix: For the one-to-one mapping relationship of the optimal assignment result, if customer i corresponds to access location p, then let the matrix correspond to the location... The remaining positions are 0, and the final result is a 0-1 position encoding matrix that strictly satisfies the permutation constraints. That is, each row and each column has one and only one 1, and the element takes the value of 0 or 1. This position encoding matrix can be directly used for subsequent time window calculation and path target value evaluation.

[0192] (5) Based on the valid permutation solution, the arrival time is recursively calculated along the path to calculate the time window violation amount for each customer at each access location.

[0193] After decoding to obtain a valid permutation solution, let the i-th permutation in the path be... The customer ID corresponding to each access location is: (i.e., path sequence) (For the access location index), the arrival time of the customer corresponding to each access location is calculated recursively along the path.

[0194] The first access location corresponds to the customer. Arrival time: The vehicle departs from the distribution center (node ​​0) and goes directly to the first customer, therefore:

[0195]

[0196] in, For the customer corresponding to the first access location from the distribution center The transportation time, compared with step S101 Consistent definitions.

[0197] No. Each access location corresponds to the customer's arrival time ( The vehicle travels to the current customer location after completing service at the previous customer location. Therefore, the arrival time is the arrival time of the customer at the previous customer location + the service duration of the customer at the previous customer location + the transportation time between the two adjacent customers.

[0198]

[0199] in, For the first Each access location corresponds to the customer's service duration; For the first The access location corresponds to the customer's journey to the [number]th [location]. Each access location corresponds to a customer's shipping time.

[0200] Based on arrival time, calculate the first... The number of early arrivals and late arrivals for each access location:

[0201]

[0202] in, , The first Each access location corresponds to the upper and lower bounds of the customer's time window.

[0203] Early arrival quantity The duration of late arrivals compared to the earliest arrival time. This represents the duration by which the arrival time is later than the latest time. If both values ​​are 0, it indicates that there is no time window violation.

[0204] (6) Based on the time window violation of all access locations for customers, dynamically adjust the next round of compression QUBO matrix Q.

[0205] The constraint violation monitor statistically analyzes the number of time-window violations, the magnitude of violations, the number of permutation constraint violations, the proportion of feasible solutions, and the high-frequency transition edges in low-energy feasible solutions for all samples (customers corresponding to access locations) in this round. Based on this, the penalty update engine calculates two independent types of penalty increments: position penalty increments acting on diagonal elements and edge bias penalty increments acting on off-diagonal elements. The QUBO reconstructor writes the penalty increments into the next round's compressed QUBO matrix. The corresponding positions are used to achieve dynamic correction of the energy surface. The correction is divided into two categories: position penalty for diagonal elements and edge offset for off-diagonal elements.

[0206] Position penalty feedback (modification of diagonal elements): Applied to a single free variable, it modifies the diagonal elements of the QUBO matrix Q. The update formula is as follows:

[0207]

[0208] in, Indicates the first Round iteration In the QUBO matrix Q, the first... The diagonal values ​​corresponding to each free variable (free variable index) Customer-Location Pair (corresponding one-to-one according to row priority rules) The position penalty feedback step size is used to control the adjustment range of diagonal elements in a single round; cap is the upper limit of correction for elements in a single round to avoid excessively rapid penalty accumulation that could cause violent oscillations in the energy surface. , For the first The number of early arrivals and late arrivals for each access location corresponds to the total violation rate for that location within a given time window. This is a directional guiding function. If the arrival is early, the energy at that position is increased to delay the visit; if the arrival is late, the energy is increased to advance the visit.

[0209] In this embodiment, under the scenario where the adaptation constraint penalty coefficient A=1000, the position penalty feedback step size is... The value is 5, the upper limit of single-round element correction cap is 50, and the direction guidance function is uniformly set to 50 in its basic implementation. The single-round correction amplitude of this set of parameters is much smaller than the constraint penalty intensity, which can avoid violent oscillations of the energy surface.

[0210] Edge offset penalty (modifying off-diagonal elements): applies to client transfer edges adjacent to the access position, and modifies accordingly. The update formula for the non-diagonal elements in adjacent columns is:

[0211]

[0212] in, Indicates the first In the round of iterations, the QUBO matrix Q, "customer" At the access location "Corresponding free variable index" ,"client At the access location "Corresponding free variable index" The off-diagonal element values; The edge bias feedback step size controls the adjustment range of the quadratic term in a single round.

[0213] Since the QUBO matrix Q is a real symmetric matrix, the symmetric position... Synchronous updates are required. For transition edges that repeatedly appear in the time window violation path, their energy is increased through positive penalties to reduce their occurrence probability; for high-quality transition edges that appear frequently in multiple rounds of low-energy feasible solutions and help compress transportation time, negative biases can be applied to enhance their occurrence probability.

[0214] Through the above dynamic correction, the QUBO energy surface is gradually adjusted according to the solution history, continuously reducing the probability of constraint violation structures and guiding the quantum hardware to converge to a low-energy state that satisfies the time window constraint.

[0215] (7) Iterative convergence control and optimal permutation solution Output.

[0216] The corrected QUBO matrix Q ( ) as the QUBO matrix in the next iteration Repeat the above closed loop (2) to (6), tracking the historical best legal permutation solution throughout the iteration process, and finally output the best permutation solution. The specific rules are as follows:

[0217] After obtaining all legal permutation solutions in each iteration, the complete target value (transportation time + permutation constraint penalty + time window penalty) corresponding to each solution is calculated; where the time window penalty in the first round is 0, and the time window penalty in other rounds is the position penalty feedback and the edge offset penalty;

[0218] The legal permutation solution with the smallest objective value in this round is compared with the historical best legal permutation solution, and the legal permutation solution with the smaller objective value is retained as the new historical best legal permutation solution;

[0219] During the iteration process, the penalty increment can be multiplied by a decay coefficient. This gradually reduces the impact of poor solutions on the QUBO matrix Q in the early iterations, thereby improving convergence stability.

[0220] When the change in the target value of the historical best legal permutation solution is lower than the preset convergence threshold or the preset maximum number of iterations is reached, the iteration loop is terminated.

[0221] After the iteration terminates, the valid permutation solution with the smallest objective value obtained throughout the entire process is taken as the final optimal permutation solution. The corresponding objective value is the minimized objective value of the vehicle sub-path, and this solution also corresponds to a valid vehicle delivery route. The entire iterative process can be found in [reference needed]. Figure 5 .

[0222] S106. Based on the optimal permutation solution, perform classical local search and cross-vehicle verification on each vehicle path to obtain the multi-vehicle path scheme corresponding to the number of vehicles k.

[0223] Local search includes operations such as 2-opt inversion, Or-opt insertion, customer swapping, adjacent swapping, and block movement. The optimization objective is the sum of transportation time and time window penalty. Cross-vehicle verification includes customer uniqueness verification, vehicle capacity verification, path closure verification, and overall objective value verification. If the verification fails, the corresponding allocation, solution, or projection stage is returned for correction; if the verification passes, the multi-vehicle path scheme corresponding to the current number of candidate vehicles k is output.

[0224] S107. Perform sensitivity analysis on the results obtained with different numbers of vehicles and select the recommended scheme.

[0225] After performing steps S103 to S107 for each vehicle number k value in the candidate vehicle number set K, the corresponding relationship between the number of vehicles, transportation time, time window penalty, and total target value is obtained, as shown in Table 1. A sensitivity curve is then generated with the vehicle number k on the horizontal axis and the total target value on the vertical axis, as shown in Table 1. Figure 6 The overall goal = transportation time + time window penalty, based on... Figure 6 It is recommended that k=9, which corresponds to a time window penalty of 0 and a minimum overall goal. The scheduler can use this to determine the minimum number of vehicles required for the penalty to first drop to zero, or to assess the number of vehicles that can be saved while allowing for a small amount of penalty.

[0226] Table 1. Results of Candidate Vehicle Count Scan

[0227]

[0228] This embodiment uses a decision table composed of the number of vehicles, transportation time, penalties, and total target value to assist dispatchers in making choices between vehicle usage costs and on-time service quality.

[0229] Those skilled in the art will understand that all or part of the steps in the methods of the above embodiments can be implemented by a program instructing related hardware, and the corresponding program can be stored in a computer-readable storage medium.

[0230] It should be noted that although the method operations of the above embodiments are described in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in that specific order, or that all the operations shown must be performed to achieve the desired result. On the contrary, the order of execution of the described steps may be changed. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step, and / or one step may be broken down into multiple steps.

[0231] Example 2:

[0232] like Figure 7 As shown, this embodiment provides a quantum computing-driven multi-vehicle path optimization QUBO modeling and solving system. The system includes a data acquisition module 701, a calculation module 702, an allocation module 703, a construction and compression module 704, a construction and solving module 705, a search and verification module 706, and a recommendation module 707, wherein:

[0233] The data acquisition module 701 is used to acquire physical data of the delivery task;

[0234] The calculation module 702 is used to calculate the lower bound of the number of vehicles and generate a set of candidate vehicle numbers based on the physical data of the delivery task.

[0235] The allocation module 703 is used to perform upper-level capacity feasible allocation on each candidate vehicle number k in the candidate vehicle number set with the goal of balancing the load of each vehicle, and to obtain a customer subset of each vehicle in the candidate vehicle number k.

[0236] The construction and compression module 704 is used to construct a location encoding matrix for a single vehicle path based on a subset of customers for each vehicle; perform bit compression on the location encoding matrix; and determine the set of free variables and boundary variable recovery rules; bit compression includes symmetry fixing and constraint elimination.

[0237] The construction and solution module 705 is used to construct a compressed QUBO matrix Q based on the set of free variables and the boundary variable recovery rule; based on the compressed QUBO matrix Q, a quantum-classical physics solution closed loop with time window iterative feedback is executed to obtain the optimal permutation solution of the single vehicle path;

[0238] The search and verification module 706 is used to perform local search and cross-vehicle verification on each vehicle path based on the optimal permutation solution of the single vehicle path, so as to obtain the multi-vehicle path scheme corresponding to the number of candidate vehicles k.

[0239] The recommendation module 707 is used to perform sensitivity analysis on the multi-vehicle route schemes corresponding to all candidate vehicle numbers in the candidate vehicle number set, and select the recommended scheme.

[0240] The specific implementation of each module in this embodiment can be found in Embodiment 1 above, and will not be repeated here. It should be noted that the system provided in this embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure can be divided into different functional modules to complete all or part of the functions described above.

[0241] Example 3:

[0242] This embodiment provides a terminal device, which can be a computer, such as... Figure 8 As shown, it is connected via a system bus 801 to a processor 802, a memory, an input device 803, a display 804, and a network interface 805. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium 806 and an internal memory 807. The non-volatile storage medium 806 stores an operating system, computer programs, and a database. The internal memory 807 provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. When the processor 802 executes the computer programs stored in the memory, it implements the quantum computing-driven multi-vehicle path optimization QUBO modeling and solution method of Embodiment 1 described above.

[0243] Example 4:

[0244] This embodiment provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the quantum computing-driven multi-vehicle path optimization QUBO modeling and solution method of Embodiment 1 above.

[0245] It should be noted that the computer-readable storage medium in this embodiment can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof.

[0246] Example 5:

[0247] This embodiment provides a computer program product, including a computer program that, when executed by a processor, implements the quantum computing-driven multi-vehicle path optimization QUBO modeling and solution method of Embodiment 1 above.

[0248] The above description is merely a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope disclosed in the present invention, based on the technical solution and inventive concept of the present invention, shall fall within the scope of protection of the present invention.

Claims

1. A quantum computing-driven QUBO modeling and solution method for multi-vehicle path optimization, characterized in that, The method includes: Obtain physical data for delivery tasks; Based on the physical data of the delivery task, calculate the lower bound of the number of vehicles and generate a set of candidate vehicle numbers; For each candidate vehicle k in the candidate vehicle set, perform upper-level capacity feasible allocation with the goal of balancing the load of each vehicle to obtain a subset of customers for each vehicle in the candidate vehicle k. Based on the customer subset of each vehicle, a location encoding matrix for single-vehicle route sorting is constructed; bit compression is performed on the location encoding matrix to determine the set of free variables and the boundary variable recovery rules; bit compression includes symmetry fixing and constraint elimination; Based on the set of free variables and the boundary variable recovery rule, a compressed QUBO matrix Q is constructed; based on the compressed QUBO matrix Q, a quantum-classical physics solution closed loop with time window iterative feedback is executed to obtain the optimal permutation solution of the single vehicle path; Based on the optimal permutation solution of single-vehicle routes, local search and cross-vehicle verification are performed on each vehicle route to obtain multi-vehicle route schemes corresponding to the number of candidate vehicles k. Sensitivity analysis is performed on the multi-vehicle routing schemes corresponding to all candidate vehicle counts in the candidate vehicle count set, and the recommended scheme is selected. The process of obtaining the optimal permutation solution for the single-vehicle path based on the compressed QUBO matrix Q and the time-window iterative feedback quantum-classical physics solution loop includes: The compressed QUBO matrix Q is mapped using the Ising model to obtain the linear bias vector and coupling matrix; The linear bias vector and coupling matrix are sent to the quantum computing device, and after physical evolution, low-energy spin samples are output. Decoding and reconstruction of low-energy spin samples yields candidate position encoding matrices; Hungarian algorithm projection is then applied to these candidate position encoding matrices to obtain valid permutation solutions. Based on the valid permutations obtained in each iteration, calculate the target value corresponding to each solution; compare the valid permutation with the smallest target value in this round with the historical best valid permutation, and retain the valid permutation with the smaller target value as the new historical best valid permutation; After the iteration terminates, the historical best legal permutation solution is taken as the final best permutation solution; During the iteration process, based on the valid permutation solution, the time window violation amount of the customer corresponding to each access location in the vehicle delivery route is calculated; based on the time window violation amount of the customers corresponding to all access locations, the compressed QUBO matrix Q in the next iteration is dynamically corrected; the time window violation amount includes early arrival amount and late arrival amount.

2. The multi-vehicle path optimization QUBO modeling and solution method according to claim 1, characterized in that, The target value is the sum of transportation time, arrangement constraint penalty, and time window penalty; the arrangement constraint penalty includes location uniqueness constraint penalty and customer uniqueness constraint penalty, and the time window penalty includes location penalty and edge offset penalty.

3. The multi-vehicle route optimization QUBO modeling and solution method according to any one of claims 1 to 2, characterized in that, The process of dynamically correcting the compressed QUBO matrix Q in the next iteration is as follows: The diagonal elements of the compressed QUBO matrix Q in the next iteration are corrected using position penalties: ; In the formula, , The first +1、 In the QUBO matrix Q of the round of iterations The diagonal elements corresponding to each free variable; The step size is the position penalty feedback step size; cap is the upper limit of element correction in a single round. , The first Each access location corresponds to the number of early arrivals and late arrivals for customers; This is the direction guiding function; For customers At the access location Corresponding free variable index; The off-diagonal elements of adjacent columns of the compressed QUBO matrix Q in the next iteration are corrected using edge bias penalties: ; In the formula, For customers At the access location Corresponding free variable index, For customers At the access location Corresponding free variable index, , The first +1、 In the round of iteration, the QUBO matrix Q is... , Non-diagonal elements; The edge bias feedback step size; The compressed QUBO matrix Q is a real symmetric matrix, and the symmetric positions are... and Synchronized updates.

4. The multi-vehicle route optimization QUBO modeling and solution method according to any one of claims 1 to 2, characterized in that, The physical data for the delivery task includes the inter-node transportation time matrix and penalty coefficient; Let vehicle r be a subset of customers. The total number of customers is m; The position encoding matrix is ​​expanded row-wise into a one-dimensional vector with a total length of [value missing]. ; index of the expanded one-dimensional vector with index in the position encoding matrix The correspondence is as follows: ; That is, the variable in the i-th row and p-th column of the position encoding matrix corresponds to the d-th variable in the one-dimensional vector. ; Compress the diagonal elements of the QUBO matrix Q Corresponding one-dimensional variable Linear coefficients, off-diagonal elements Corresponding variable product The quadratic coefficient; where, ; The construction of the compressed QUBO matrix Q based on the set of free variables and the boundary variable recovery rule includes: Based on the set of free variables, the boundary variable recovery rule, and the inter-node transportation time matrix, the transportation time is mapped to the corresponding position in the QUBO matrix Q; Based on the set of free variables and the boundary variable recovery rule, the permutation constraint penalty is mapped to the corresponding position in the QUBO matrix Q; the permutation constraint penalty includes position uniqueness constraint penalty and customer uniqueness constraint penalty. Map the initial value of the time window penalty to the corresponding position in the QUBO matrix Q; When constructing the compressed QUBO matrix Q, if the number of high-order variable terms (more than three-dimensional) is introduced using the boundary variable recovery rule, then auxiliary bits are introduced, and the number of high-order variable terms is reduced to quadratic terms through the penalty coefficient.

5. The multi-vehicle path optimization QUBO modeling and solution method according to claim 1, characterized in that, let... Customer subset of vehicle r The total number of customers is m; The bit compression of the position encoding matrix and the determination of the set of free variables and boundary variable recovery rules include: A subset of customers of vehicle r The first customer is used as the baseline customer, which is the element in the first row and first column of the location coding matrix. ; Delete the elements in the first row and first column of the position encoding matrix to obtain the corresponding submatrix; Select the first submatrix line and front The elements of the column are used as a set of free variables; Based on the set of free variables, a boundary variable recovery rule is constructed to recover the boundary variables in the position encoding matrix.

6. The multi-vehicle route optimization QUBO modeling and solution method according to any one of claims 1 and 5, characterized in that, let... Customer subset of vehicle r The total number of customers is m; The construction of a location encoding matrix for single-vehicle route sorting based on a subset of customers for each vehicle includes: With customer subset The dimensions are: customer i is the row dimension, vehicle r is the access location p in the delivery route is the column dimension, and the constructed dimension is... binary positional encoding matrix The matrix elements are position-encoded variables. : ; when When, it means that customer i is assigned to the p-th access location in the delivery route of vehicle r; when When, it means that customer i is not at the p-th access location in the delivery route of vehicle r; Binary positional encoding matrix It must satisfy the following conditions: each row has exactly one element that is 1, and each column has exactly one element that is 1.

7. The multi-vehicle route optimization QUBO modeling and solution method according to any one of claims 1 to 2, characterized in that, The physical data for the delivery task includes the customer set V and the demand of customer i. Vehicle capacity and the inter-node transportation time matrix; The step of performing upper-level capacity feasible allocation on each candidate vehicle k in the candidate vehicle set with the goal of balancing the load of each vehicle includes: For the number of candidate vehicles k, initialize the customer subset for each vehicle. For an empty set, the initial load of each vehicle =0; When customer i is assigned to vehicle r, the load of vehicle r at this time is... Update to the original load Plus customer i's demand ; Based on the following capacity constraints, customer i will be assigned to the corresponding vehicle from the candidate vehicle number k; ; like If not empty, then: assign customer i to Current load The smallest vehicle, if there are multiple vehicles currently under load If they are completely identical, then customer i will be assigned to the vehicle with the smallest expected insertion transportation time increment; the expected insertion transportation time increment is the minimum additional transportation time generated when customer i is inserted into the vehicle's currently formed delivery route; the minimum additional transportation time is calculated from the inter-node transportation time matrix; After allocation, a subset of customers corresponding to each candidate vehicle is obtained. The following conditions must be met: no duplicate customers, full customer coverage, and vehicle capacity constraints. ; ; ; In the formula, variables ,variable ,and .

8. A quantum computing-driven multi-vehicle path optimization QUBO modeling and solution system, characterized in that, The system includes: The data acquisition module is used to acquire physical data for delivery tasks; The calculation module is used to calculate the lower bound of the number of vehicles and generate a set of candidate vehicles based on the physical data of the delivery task. The allocation module is used to perform upper-level capacity feasible allocation on each candidate vehicle k in the candidate vehicle set with the goal of balancing the load of each vehicle, and to obtain a subset of customers for each vehicle in the candidate vehicle k. The construction and compression module is used to construct a location encoding matrix for single-vehicle route sorting based on a subset of customers for each vehicle; perform bit compression on the location encoding matrix; and determine the set of free variables and boundary variable recovery rules; bit compression includes symmetry fixing and constraint elimination. The construction and solution module is used to construct a compressed QUBO matrix Q based on the set of free variables and the boundary variable recovery rule; based on the compressed QUBO matrix Q, a quantum-classical physics solution closed loop with time window iterative feedback is executed to obtain the optimal permutation solution of the single vehicle path; The search and verification module is used to perform local search and cross-vehicle verification on each vehicle path based on the optimal permutation solution of the single vehicle path, so as to obtain the multi-vehicle path scheme corresponding to the number of candidate vehicles k. The recommendation module is used to perform sensitivity analysis on the multi-vehicle routing schemes corresponding to all candidate vehicle numbers in the candidate vehicle number set and select the recommended scheme; The process of obtaining the optimal permutation solution for the single-vehicle path based on the compressed QUBO matrix Q and the time-window iterative feedback quantum-classical physics solution loop includes: The compressed QUBO matrix Q is mapped using the Ising model to obtain the linear bias vector and coupling matrix; The linear bias vector and coupling matrix are sent to the quantum computing device, and after physical evolution, low-energy spin samples are output. Decoding and reconstruction of low-energy spin samples yields candidate position encoding matrices; Hungarian algorithm projection is then applied to these candidate position encoding matrices to obtain valid permutation solutions. Based on the valid permutations obtained in each iteration, calculate the target value corresponding to each solution; compare the valid permutation with the smallest target value in this round with the historical best valid permutation, and retain the valid permutation with the smaller target value as the new historical best valid permutation; After the iteration terminates, the historical best legal permutation solution is taken as the final best permutation solution; During the iteration process, based on the valid permutation solution, the time window violation amount of the customer corresponding to each access location in the vehicle delivery route is calculated; based on the time window violation amount of the customers corresponding to all access locations, the compressed QUBO matrix Q in the next iteration is dynamically corrected; the time window violation amount includes early arrival amount and late arrival amount.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the multi-vehicle path optimization QUBO modeling and solution method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Unmanned global path planning method and system based on quantum annealing optimization

    CN121089768A

  • Route generation for vehicle routing problem and variants thereof

    US20240183670A1