Path optimization method for realizing dynamic user balance under strong heterogeneous cost field

Through the improved NES strategy and transfer learning technology of fully connected neural networks, the path optimization problem of dynamic user equilibrium under strong heterogeneous cost fields is solved, and efficient and accurate path optimization in complex traffic networks is achieved, which is suitable for a variety of applications. Complex geometries and arbitrary cost fields.

CN118607740APending Publication Date: 2024-09-06NINGBO UNIV
0 Cites 1 Cited by

Patent Information

Application Number
CN202410742961.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing dynamic traffic allocation methods are difficult to achieve accurate user balancing under strong heterogeneous cost fields, especially in traffic networks with complex geometries. The calculation cost is high and the accuracy is insufficient, and traditional methods require fine meshing or Introduce complexity.

Method used

An improved NES strategy based on a fully connected neural network is used to determine the cost potential through the cost function and distance information matrix at the initial moment. Combined with the Eikonal decomposition factor, the dynamic user equilibrium model is solved, and the path is optimized through transfer learning at the dynamic moment to avoid Pre-defined grid structure.

Benefits of technology

It improves the accuracy of distance information and the efficiency of path optimization, reduces neural network training time, is suitable for traffic networks with various complex geometric shapes and arbitrary cost fields, and significantly improves response speed and solution accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118607740A
    Figure CN118607740A
Patent Text Reader

Abstract

The invention discloses a path optimization method for realizing dynamic user balance under a strong heterogeneous cost field, relates to the field of traffic path distribution, and aims to accurately determine distance information of each position point by considering cost influence without predefining an accurate grid structure. According to the method, an Eikoral decomposition factor is determined by combining a preset physical information-based improved NES strategy designed according to a full-connection neural network, and a result of point multiplication distance information of the decomposition factor is determined as a cost potential, so that the decomposition of the Eikoral equation is reliably realized, and the processing efficiency is high; the preset dynamic user equilibrium model can be solved subsequently according to the cost potential to obtain an optimal initial path; according to the new cost function of the ith dynamic moment, the distance information corresponding to the previous moment of the dynamic moment and the improved NES strategy, the cost potential at the dynamic moment is obtained so as to obtain the optimized path at the moment, and efficient solving of the cost potential at the ith dynamic moment is achieved through the thought of transfer learning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of traffic path allocation, and in particular to a path optimization method for realizing dynamic user equilibrium under a strong heterogeneous cost field. Background Art

[0002] Dynamic traffic assignment based on continuous space model is an effective tool for managing traffic systems. In this modeling method, the road network is conceptualized as a two-dimensional continuous space, the traffic state is represented by macro variables, and the path can be predicted by solving a set of partial differential equations. In this framework, the dynamic user equilibrium model assumes that pedestrians move reactively along the lowest-cost path determined by the existing traffic conditions.

[0003] Specifically, the dynamic user equilibrium model is composed of a group of partial differential equations, which includes a group of continuous equations represented by a set of Euler equations and a path strategy equation represented by the Eikonal equation. The Eikonal equation is a key component of the model. It is a partial differential equation that can describe the wavefront propagation problem. Combined with appropriate boundary conditions in traffic modeling, the minimum cost path in the traffic flow can be determined, and different cost fields reflect the traffic costs of different paths. Solving the Eikonal equation is the top priority for solving the dynamic user equilibrium model. The current methods for solving the Eikonal equation mainly use the FSM method (Fast Sweeping Method) or the FMM method (Fast Marching Method). However, the defects of these two methods are that, on the one hand, the computational cost is too high. Since dynamic traffic distribution usually occurs in a two-dimensional space characterized by irregular physical boundaries, the accuracy of the solution of the above methods when solving complex user equilibrium problems depends on the size of the largest unit after discretization in the computational domain, which means that very fine grid division is required. This requirement leads to a significant increase in computational costs. On the other hand, when using the low-order above methods, the solution accuracy is often insufficient, and when using the high-order above methods, additional complexity is introduced during use.

[0004] In addition, in actual transportation networks, there may be significant cost differences in different regions. Therefore, how to design an effective technical solution to achieve dynamic user equilibrium in a strongly heterogeneous cost field to obtain an effective path is a problem that needs to be solved urgently. Summary of the invention

[0005] The problem solved by the present invention is to provide a path optimization method for realizing dynamic user equilibrium under a strongly heterogeneous cost field, which does not require the precise grid structure to be pre-determined, is applicable to traffic networks of various complex geometric shapes and path optimization under arbitrary cost fields, and is conducive to practical applications.

[0006] To solve the above problems, the present invention provides a path optimization method for realizing dynamic user balancing under a strongly heterogeneous cost field, comprising:

[0007] At an initial moment, determining a distance information matrix from a starting point to each position point under a given road network according to a cost function corresponding to the initial moment and a preset distance information solving strategy, so as to determine the distance information corresponding to each position point based on the distance information matrix;

[0008] Determine the Eikonal decomposition factor corresponding to the location point according to the distance information corresponding to the location point and the preset improved NES strategy based on physical information, so as to determine the result of multiplying the distance information by the Eikonal decomposition factor as the cost potential corresponding to the location point; wherein the preset improved NES strategy based on physical information is designed according to a fully connected neural network; the cost potential represents the decomposition result of the Eikonal equation in the preset dynamic user equilibrium model;

[0009] Solving the preset dynamic user equilibrium model according to the cost potential to obtain the optimal initial path at the initial time under the given road network;

[0010] At the M dynamic moments after the initial moment, a new cost function corresponding to the ith dynamic moment is determined, so as to obtain the cost potential corresponding to the ith dynamic moment according to the new cost function, the distance information corresponding to the previous moment of the ith dynamic moment, and the preset improved NES strategy based on physical information, and then solve the preset dynamic user equilibrium model according to the cost potential to obtain the optimized path at the ith dynamic moment under the given road network, wherein 1≤i≤M and i is an integer, and M is an integer greater than 1.

[0011] The beneficial effects of the present invention are as follows: the present application considers the cost impact to determine the distance information under a given road network, so that the distance determination is more accurate; the preset improved NES strategy based on physical information is designed according to the fully connected neural network, and has higher processing efficiency than the existing numerical method; the determination of the cost potential combines the distance information and the Eikonal decomposition factor, which is conducive to avoiding the singularity near the destination, and the priority determination of the distance information effectively reduces the subsequent training time of the fully connected neural network to obtain accurate cost potential; at the M dynamic moments after the initial moment, the cost potential of the i-th dynamic moment is efficiently solved through the idea of ​​transfer learning, which is conducive to improving the response speed in a complex and dynamic road network environment; and the present scheme does not need to pre-define an accurate grid structure, and is suitable for traffic road networks of various complex geometric shapes and path optimization under arbitrary cost fields, which is conducive to practical application.

[0012] Furthermore, before obtaining the cost potential corresponding to the i-th dynamic moment according to the new cost function, the distance information corresponding to the previous moment of the i-th dynamic moment and the preset improved NES strategy based on physical information, it also includes:

[0013] Determine whether the current i-th dynamic moment is the preset distance information update moment;

[0014] If so, determine a new distance information matrix according to the new cost function corresponding to the current i-th dynamic moment and the preset distance information solution strategy, and then determine the new distance information corresponding to each of the position points according to the new distance information matrix;

[0015] The cost potential corresponding to the i-th dynamic moment is obtained according to the new cost function, the distance information corresponding to the previous moment of the i-th dynamic moment, and the preset improved NES strategy based on physical information, including:

[0016] The cost potential corresponding to the current i-th dynamic moment is obtained according to the new cost function, the new distance information and the preset improved NES strategy based on physical information.

[0017] In this solution, the above settings can be used to recalibrate the distance information after several dynamic moments to correct the cumulative errors that may be introduced by transfer learning, which is conducive to further improving the accuracy of the optimized path determined at the dynamic moment.

[0018] Furthermore, determining the distance information matrix from the starting point to each location point under a given road network according to the cost function corresponding to the initial moment and the preset distance information solution strategy includes:

[0019] Determine an initial distance information matrix from the starting point to each location point under a given road network according to a cost function corresponding to the initial moment and a preset distance estimation method, wherein the preset distance estimation method is a FSM method or a FMM method;

[0020] Performing a conversion process on the initial distance information matrix according to a first preset interpolation method to obtain a first intermediate distance information matrix with smooth and continuous data;

[0021] Performing interpolation processing on the first intermediate distance information matrix according to a second preset interpolation method to obtain a second intermediate distance information matrix with increased data density;

[0022] The second intermediate distance information matrix is ​​transformed according to the first preset interpolation method to obtain a third intermediate distance information matrix with smooth and continuous data, and then the third intermediate distance information matrix is ​​used as a distance information matrix representing the distance from the starting point to each of the position points under a given road network.

[0023] In this solution, the above settings are helpful to accurately and reliably determine the distance information of each location point.

[0024] Furthermore, the first preset interpolation method is the Tensorflow interpolation method.

[0025] Furthermore, the second preset interpolation method is the MAKIMA interpolation method.

[0026] Further, determining the Eikonal decomposition factor corresponding to the location point according to the distance information corresponding to the location point and the preset improved NES strategy based on physical information, so as to determine the result of multiplying the distance information by the Eikonal decomposition factor as the cost potential corresponding to the location point, including:

[0027] The decomposition formula that represents the decomposition of the Eikonal equation is constructed as follows:

[0028] φ θ (X r )=R β (X r )·F θ (X r )

[0029] Among them, X r Represents any location point under the given road network, R β (X r ) represents the position point X r The corresponding distance information, F θ (X r ) represents the decomposition factor of the output of the fully connected neural network with parameter θ, φ θ (X r ) represents the position point X r The corresponding cost potential;

[0030] A loss function is constructed according to the decomposition formula, so as to train the fully connected neural network according to the loss function until the training error reaches a preset expected threshold value, and then X r Input into the trained fully connected neural network to obtain the precise decomposition factor of its output, and then obtain X according to the precise decomposition factor, the distance information and the decomposition formula r The corresponding cost potential.

[0031] In this solution, the above-mentioned setting can effectively avoid the singularity of the destination, which is conducive to reliably obtaining the accurate cost potential corresponding to the location point.

[0032] Furthermore, constructing a loss function according to the decomposition formula includes:

[0033] Initializing the parameters θ of the fully connected neural network;

[0034] X r As an input item, it is input into a fully connected neural network under the current parameter θ to obtain a current decomposition factor of the corresponding output, and then the current cost potential is determined according to the current decomposition factor, the distance information and the decomposition formula;

[0035] Determine X based on the current cost potential and the cost function r The corresponding Hamiltonian;

[0036] Constructing a preset loss function L according to the first preset relationship;

[0037] The first preset relationship is:

[0038]

[0039] Among them, N sr represents the total number of position pairs, and the position pairs are composed of the starting point and each position point, K represents the total number of the position points, and H k (X r ) represents the Hamiltonian corresponding to the kth position point.

[0040] In this scheme, the loss function relies on the Hamiltonian setting to ensure that the output of the neural network satisfies the physical constraints.

[0041] Further, initializing the parameter θ of the fully connected neural network includes:

[0042] The parameters θ of the fully connected neural network are initialized according to the Kaiming initialization method.

[0043] In this scheme, the Kaiming initialization method can reasonably initialize the parameters, so as to better adapt to the training of the fully connected neural network, avoid the problem of gradient disappearance or gradient explosion, and help improve the convergence speed and training effect of the network.

[0044] Further, X is determined according to the current cost potential and the cost function. r The corresponding Hamiltonian includes:

[0045] Determine X according to the second preset relationship r The corresponding Hamiltonian;

[0046] The second preset relationship is:

[0047]

[0048] Among them, H(X r ) indicates Xr The corresponding Hamiltonian, p is the preset parameter, represents the current cost potential φ θ (X r ) The norm of C(X r ) represents X determined according to the cost function r The cost of the place.

[0049] Furthermore, X r Before being input into the fully connected neural network under the current parameter θ, it also includes:

[0050] According to the third preset relationship, X r The two-dimensional coordinates of r The two-dimensional coordinates of

[0051] The third preset relationship is:

[0052]

[0053] Among them, X r (x) indicates X before scaling r Coordinate in the x dimension, X′ r (x) indicates the scaled X r The coordinate in the x dimension, X r (y) represents X before scaling r Coordinate in the y dimension, X′ r (y) represents the scaled X r The coordinate in the y dimension.

[0054] In this solution, the above scaling can reduce the significant differences between different features, which is beneficial to improving the efficiency and stability of the training process. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 A flow chart of a path optimization method for realizing dynamic user balancing under a strongly heterogeneous cost field provided by the present invention;

[0056] Figure 2 A schematic diagram of a training process of a fully connected neural network provided by the present invention. DETAILED DESCRIPTION

[0057] First, those skilled in the art should understand that these implementations are only used to explain the technical principles of the embodiments of the present application, and are not intended to limit the protection scope of the embodiments of the present application. Those skilled in the art can make adjustments to them as needed to adapt to specific application scenarios.

[0058] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present application is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0059] The present invention provides an embodiment, a path optimization method for realizing dynamic user balancing in a strongly heterogeneous cost field, comprising:

[0060] S11: at an initial moment, determining a distance information matrix from a starting point to each location point under a given road network according to a cost function corresponding to the initial moment and a preset distance information solving strategy, so as to determine distance information corresponding to each location point based on the distance information matrix;

[0061] S12: Determine the Eikonal decomposition factor corresponding to the location point according to the distance information corresponding to the location point and the preset improved NES strategy based on physical information, so as to determine the result of multiplying the distance information by the Eikonal decomposition factor as the cost potential corresponding to the location point; wherein the preset improved NES strategy based on physical information is designed according to a fully connected neural network; the cost potential represents the decomposition result of the Eikonal equation in the preset dynamic user equilibrium model;

[0062] S13: solving a preset dynamic user equilibrium model according to the cost potential to obtain an optimal initial path at an initial time under a given road network;

[0063] S14: At the M dynamic moments after the initial moment, a new cost function corresponding to the ith dynamic moment is determined, so as to obtain the cost potential corresponding to the ith dynamic moment according to the new cost function, the distance information corresponding to the previous moment of the ith dynamic moment, and the preset improved NES strategy based on physical information, and then solve the preset dynamic user equilibrium model according to the cost potential to obtain the optimized path at the ith dynamic moment under the given road network, wherein 1≤i≤M and i is an integer, and M is an integer greater than 1.

[0064] Specifically, a given road network includes a starting point (i.e., a source point) and multiple location points under the road network. The preset dynamic user equilibrium model describes how pedestrians choose the optimal path to reach the destination according to the minimum cost at each moment in the given road network. In the present application, the preset dynamic user equilibrium model can be established in the following form, that is, including the Eikonal equation that characterizes the cost minimization behavior of pedestrians when selecting a path at each time point t. In the present application, the decomposition formula that characterizes the decomposition of the Eikonal equation is directly used; the preset dynamic user equilibrium model also includes an equation established based on the mass continuous medium theory as described in the fourth preset relationship described below, and an equation describing the basic relationship between speed and density as described in the fifth preset relationship described below;

[0065] The fourth preset relationship is:

[0066] ρ t +(ρu) x +(ρv) y =0

[0067] Among them, ρ t represents the rate of change of pedestrian density over time, u represents the speed along the x dimension, v represents the speed along the y dimension, (ρu) x represents the rate of change of speed and pedestrian density along the x dimension, (ρv) y represents the rate of change of speed and pedestrian density along the y dimension; this equation ensures conservation of mass, that is, the number of pedestrians in a given road network remains constant.

[0068] The fifth preset relationship is:

[0069]

[0070] The fifth preset relationship describes how the speed of vehicles or pedestrians in the traffic flow changes with the change of pedestrian density; wherein V represents the speed vector and V = (u, v), V ρ represents a function that depends on the pedestrian density, Represents the direction of velocity V and the gradient of the cost potential field This also means that pedestrians or vehicles tend to choose the path with the minimum cost.

[0071] It should be noted that the NES (Neural Eikonal Solver) method in the traditional PINN (Physics-Informed Neural Networks) is likely to cause the path obtained in the traffic scene to directly pass through the building when processing a strong heterogeneous cost field with significant cost differences in different areas, thereby generating an unachievable path, and the authenticity and accuracy of the model are greatly reduced. For this reason, step S11 set in the present application can integrate the cost function into the determination of the distance information, so that the distance information is not a simple Euclidean distance, but includes the distance information affected by the cost field. The distance information is determined more accurately, which helps to reduce the burden when processing a strong heterogeneous cost field.

[0072] It should also be noted that the cost function here is related to the cost conditions under different traffic environments. The corresponding cost conditions at different times are different, so the cost functions at different times are different. In essence, the function value at a certain point determined by the cost function represents the cost at that point; and the cost potential essentially defines the cumulative cost from the source point to that point.

[0073] In addition, step S14 essentially utilizes the idea of ​​transfer learning, so that at the dynamic moment, it is not necessary to start the calculation from scratch, and the output of the previous moment of the current dynamic moment is used as part of the input of the current dynamic moment, thereby significantly reducing the amount of calculation, improving efficiency, and combining the accurate determination of distance information, improving the performance of the scheme in processing the path optimization of dynamic complex road networks. Furthermore, it is found in practice that under various given road network size conditions, the solution accuracy of the scheme provided by the present application is significantly improved compared with the solution accuracy of the traditional FSM method or FMM method in processing strong heterogeneous cost fields. Compared with the traditional numerical method, the relative mean absolute error of the present scheme is reduced by 62% in actual solution effect, and compared with the traditional NES method, it is reduced by 86%; and because the present application introduces an efficient preset distance information solution strategy and designs a preset physical information-based improved NES strategy, the time required for neural network training in the improved NES strategy is effectively reduced. Compared with the traditional NES method, the training time is reduced by about 90%, which is conducive to practical application.

[0074] In summary, the present application provides a path optimization method for achieving dynamic user equilibrium under a strongly heterogeneous cost field, in which the distance information is determined by considering the cost impact under a given road network, so that the distance determination is more accurate, and the preset improved NES strategy based on physical information is designed according to a fully connected neural network, which has higher processing efficiency than the existing numerical methods; the determination of the cost potential combines the distance information and the Eikonal decomposition factor, which is conducive to avoiding the singularity near the destination, and the priority determination of the distance information effectively reduces the subsequent training time of the fully connected neural network to obtain an accurate cost potential; at the M dynamic moments after the initial moment, the efficient solution of the cost potential at the i-th dynamic moment is realized through the idea of ​​transfer learning, which is conducive to improving the response speed in a complex and dynamic road network environment; and the present scheme does not require the pre-demarcation of an accurate grid structure, and is suitable for traffic road networks of various complex geometric shapes and path optimization under arbitrary cost fields, which is conducive to practical application.

[0075] In some embodiments, before obtaining the cost potential corresponding to the ith dynamic moment according to the new cost function, the distance information corresponding to the previous moment of the ith dynamic moment, and the preset improved NES strategy based on physical information, the method further includes:

[0076] Determine whether the current i-th dynamic moment is the preset distance information update moment;

[0077] If so, determine a new distance information matrix according to the new cost function corresponding to the current i-th dynamic moment and the preset distance information solution strategy, and then determine the new distance information corresponding to each position point according to the new distance information matrix;

[0078] According to the new cost function, the distance information corresponding to the previous moment of the ith dynamic moment, and the preset improved NES strategy based on physical information, the cost potential corresponding to the ith dynamic moment is obtained, including:

[0079] According to the new cost function, the new distance information and the preset improved NES strategy based on physical information, the cost potential corresponding to the current i-th dynamic moment is obtained.

[0080] Specifically, the preset distance information update moment here can be designed according to the number threshold corresponding to the preset time interval. For example, a preset distance information update moment is set every time the number threshold dynamic moment passes, so that every few time steps, the distance information can be recalibrated based on the above steps to correct the cumulative error that may be introduced due to transfer learning, which is conducive to further improving the accuracy of the optimization path determined at the dynamic moment.

[0081] It can be understood that when the preset distance information update moment is not reached, the cost potential corresponding to the i-th dynamic moment can still be obtained according to the new cost function, the distance information corresponding to the previous moment of the i-th dynamic moment, and the preset improved NES strategy based on physical information.

[0082] In some embodiments, determining a distance information matrix from a starting point to each location point under a given road network according to a cost function corresponding to an initial time and a preset distance information solution strategy includes:

[0083] Determine the initial distance information matrix from the starting point to each location point under a given road network according to the cost function corresponding to the initial time and the preset distance estimation method, wherein the preset distance estimation method is the FSM method or the FMM method;

[0084] The initial distance information matrix is ​​converted according to a first preset interpolation method to obtain a first intermediate distance information matrix with smooth and continuous data;

[0085] Performing interpolation processing on the first intermediate distance information matrix according to a second preset interpolation method to obtain a second intermediate distance information matrix with increased data density;

[0086] The second intermediate distance information matrix is ​​transformed according to the first preset interpolation method to obtain a third intermediate distance information matrix with smooth and continuous data, and then the third intermediate distance information matrix is ​​used as a distance information matrix representing the distance from the starting point to each position point under a given road network.

[0087] Specifically, the cost function is related to the cost conditions under different traffic environments, and the corresponding cost conditions are different at different times. The initial distance information matrix simultaneously considers the Euclidean distance and cost information between the starting point and each position point; the initial distance information matrix is ​​transformed according to the first preset interpolation method to obtain the first intermediate distance information matrix, thereby obtaining a smoother continuous surface; the first intermediate distance information matrix is ​​interpolated according to the second preset interpolation method, which can increase the grid density and obtain a higher resolution distance information matrix to ensure that the distance information is more accurate, that is, the second intermediate distance information matrix is ​​obtained; the second intermediate distance information matrix is ​​transformed according to the first preset interpolation method to obtain the third intermediate distance information matrix, thereby obtaining a smoother continuous surface; it should be noted that the continuous surface described here is explained as follows: assuming that the original data is discrete, the distance information of the position point (1, 1) and the position point (1, 2) can be obtained, but the distance information of the position point (1, 1.5) cannot be known. When it is converted into a continuous surface through conversion, the converted matrix includes the distance information of any point from 1 to 2.

[0088] It can be seen that the above settings are conducive to accurately and reliably determining the distance information of each location point.

[0089] In some embodiments, the first preset interpolation method is the Tensorflow interpolation method.

[0090] In some embodiments, the second preset interpolation method is the MAKIMA interpolation method.

[0091] It should be noted that the MAKIMA interpolation method is an improved Akima piecewise cubic Hermite interpolation method.

[0092] In some embodiments, determining the Eikonal decomposition factor corresponding to the location point according to the distance information corresponding to the location point and the preset improved NES strategy based on physical information, so as to determine the result of multiplying the distance information by the Eikonal decomposition factor as the cost potential corresponding to the location point, includes:

[0093] The decomposition formula that represents the decomposition of the Eikonal equation is constructed as follows:

[0094] φ θ (X r )=R β (X r )·F θ (X r )

[0095] Among them, X r Represents any location point in a given road network, R β (X r) represents the position point X r The corresponding distance information, F θ (X r ) represents the decomposition factor of the output of the fully connected neural network with parameter θ, φ θ (X r ) represents the position point X r The corresponding cost potential;

[0096] The loss function is constructed according to the decomposition formula so that the fully connected neural network can be trained according to the loss function until the training error reaches the preset expected threshold. r Input it into the trained fully connected neural network to obtain the precise decomposition factor of its output, and then obtain X based on the precise decomposition factor, distance information and decomposition formula r The corresponding cost potential.

[0097] Specifically, considering that singularities may appear at the destination when decomposing the Eikonal equation, and since the above-mentioned method of determining the distance information not only considers the Euclidean distance between the two points, but also takes into account the influence of the cost function, the output of the neural network may no longer be affected by the minimum and maximum cost. In summary, defining the decomposition formula according to the first preset relationship is conducive to avoiding singularities at the destination.

[0098] In some embodiments, constructing a loss function according to the decomposition formula includes:

[0099] Initialize the parameters θ of the fully connected neural network;

[0100] X r As input to the fully connected neural network under the current parameter θ, the current decomposition factor of the corresponding output is obtained, and then the current cost potential is determined according to the current decomposition factor, distance information and decomposition formula;

[0101] Determine X based on the current cost potential and cost function r The corresponding Hamiltonian;

[0102] Constructing a preset loss function L according to the first preset relationship;

[0103] The first preset relationship is:

[0104]

[0105] Among them, N sr represents the total number of position pairs, and a position pair is composed of a starting point and each position point, K represents the total number of position points, H k (X r ) represents the Hamiltonian corresponding to the kth position point.

[0106] Specifically, the loss function relies on the Hamiltonian setting to ensure that the output of the neural network meets the physical constraints; the meaning of the position pair here is further explained as follows: Assuming that the starting point is A1, the position points include the first position point A2 and the second position point A3, then the position pairs include two pairs, namely, the starting point A1-the first position point A2, and the starting point A1-the second position point A3. Please refer to Figure 2 , Figure 2 The training process of a fully connected neural network is shown. θ Indicates that the position point X r The corresponding distance information is expressed as R β (X r ) represents that the second intermediate distance information matrix obtained after the second preset interpolation method is represented by R.

[0107] In some embodiments, initializing the parameter θ of the fully connected neural network includes:

[0108] Initialize the parameters θ of the fully connected neural network according to the Kaiming initialization method.

[0109] Specifically, the Kaiming initialization method can reasonably initialize parameters, so as to better adapt to the training of fully connected neural networks, avoid the problem of gradient disappearance or gradient explosion, and help improve the convergence speed and training effect of the network.

[0110] In some embodiments, X is determined based on the current cost potential and the cost function. r The corresponding Hamiltonian includes:

[0111] Determine X according to the second preset relationship r The corresponding Hamiltonian;

[0112] The second preset relationship is:

[0113]

[0114] Among them, H(X r ) indicates X r The corresponding Hamiltonian, p is the preset parameter, Represents the current cost potential φ θ (X r ) The norm of C(X r ) represents X determined according to the cost function r The cost of the place.

[0115] Specifically, express p-th power, (C(X r ))p represents C(X r ) to the power of p.

[0116] In some embodiments, X r Before being input into the fully connected neural network under the current parameter θ, it also includes:

[0117] According to the third preset relationship, X r The two-dimensional coordinates of r The two-dimensional coordinates of

[0118] The third preset relationship is:

[0119]

[0120] Among them, X r (x) indicates X before scaling r Coordinate in the x dimension, X′ r (x) indicates the scaled X r The coordinate in the x dimension, X r (y) represents X before scaling r Coordinate in the y dimension, X′ r (y) represents the scaled X r The coordinate in the y dimension.

[0121] Specifically, the above scaling can reduce the significant differences between different features, which is beneficial to improving the efficiency and stability of the training process.

[0122] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

[0123] It should also be noted that, in this specification, relational terms such as first, second, etc. are merely used to distinguish one entity or operation from another entity or operation, and do not imply any actual relationship or order between these entities or operations.

Claims

1. A path optimization method for achieving dynamic user balance under a strong heterogeneous cost field, characterized in that: include: At an initial moment, determining a distance information matrix from a starting point to each position point under a given road network according to a cost function corresponding to the initial moment and a preset distance information solving strategy, so as to determine distance information corresponding to each position point based on the distance information matrix; Determine the Eikonal decomposition factor corresponding to the location point according to the distance information corresponding to the location point and the preset improved NES strategy based on physical information, so as to determine the result of multiplying the distance information by the Eikonal decomposition factor as the cost potential corresponding to the location point; wherein the preset improved NES strategy based on physical information is designed according to a fully connected neural network; the cost potential represents the decomposition result of the Eikonal equation in the preset dynamic user equilibrium model; Solving the preset dynamic user equilibrium model according to the cost potential to obtain the optimal initial path at the initial time under the given road network; At the M dynamic moments after the initial moment, a new cost function corresponding to the ith dynamic moment is determined, so as to obtain the cost potential corresponding to the ith dynamic moment according to the new cost function, the distance information corresponding to the previous moment of the ith dynamic moment, and the preset improved NES strategy based on physical information, and then solve the preset dynamic user equilibrium model according to the cost potential to obtain the optimized path at the ith dynamic moment under the given road network, wherein 1≤i≤M and i is an integer, and M is an integer greater than 1.

2. The path optimization method for realizing dynamic user balancing under a strong heterogeneous cost field as claimed in claim 1, characterized in that: Before obtaining the cost potential corresponding to the i-th dynamic moment according to the new cost function, the distance information corresponding to the previous moment of the i-th dynamic moment and the preset improved NES strategy based on physical information, the method further includes: Determine whether the current i-th dynamic moment is the preset distance information update moment; If so, determine a new distance information matrix according to the new cost function corresponding to the current i-th dynamic moment and the preset distance information solution strategy, and then determine the new distance information corresponding to each of the position points according to the new distance information matrix; The cost potential corresponding to the i-th dynamic moment is obtained according to the new cost function, the distance information corresponding to the previous moment of the i-th dynamic moment, and the preset improved NES strategy based on physical information, including: The cost potential corresponding to the current i-th dynamic moment is obtained according to the new cost function, the new distance information and the preset improved NES strategy based on physical information.

3. The path optimization method for realizing dynamic user balancing under a strong heterogeneous cost field as claimed in claim 1, characterized in that: Determining a distance information matrix from a starting point to each location point under a given road network according to a cost function corresponding to the initial moment and a preset distance information solution strategy includes: Determine an initial distance information matrix from the starting point to each location point under a given road network according to a cost function corresponding to the initial moment and a preset distance estimation method, wherein the preset distance estimation method is a FSM method or a FMM method; Performing a conversion process on the initial distance information matrix according to a first preset interpolation method to obtain a first intermediate distance information matrix with smooth and continuous data; Performing interpolation processing on the first intermediate distance information matrix according to a second preset interpolation method to obtain a second intermediate distance information matrix with increased data density; The second intermediate distance information matrix is ​​transformed according to the first preset interpolation method to obtain a third intermediate distance information matrix with smooth and continuous data, and then the third intermediate distance information matrix is ​​used as a distance information matrix representing the distance from the starting point to each of the position points under a given road network.

4. The path optimization method for realizing dynamic user balancing under a strong heterogeneous cost field as claimed in claim 3, characterized in that: The first preset interpolation method is the Tensorflow interpolation method.

5. The path optimization method for realizing dynamic user balancing under a strong heterogeneous cost field as claimed in claim 3, characterized in that: The second preset interpolation method is the MAKIMA interpolation method.

6. The path optimization method for realizing dynamic user balancing in a strongly heterogeneous cost field according to any one of claims 1 to 5, characterized in that: Determining the Eikonal decomposition factor corresponding to the location point according to the distance information corresponding to the location point and the preset improved NES strategy based on physical information, so as to determine the result of multiplying the distance information by the Eikonal decomposition factor as the cost potential corresponding to the location point, including: The decomposition formula that represents the decomposition of the Eikonal equation is constructed as follows: φ θ (X r )=R β (X r )·F θ (X r ) Among them, X r Represents any location point under the given road network, R β (X r ) represents the position point X r The corresponding distance information, F θ (X r ) represents the decomposition factor of the output of the fully connected neural network with parameter θ, φ θ (X r ) represents the position point X r The corresponding cost potential; A loss function is constructed according to the decomposition formula, so as to train the fully connected neural network according to the loss function until the training error reaches a preset expected threshold value, and then X r Input into the trained fully connected neural network to obtain the precise decomposition factor of its output, and then obtain X according to the precise decomposition factor, the distance information and the decomposition formula r The corresponding cost potential.

7. The path optimization method for realizing dynamic user balancing under a strong heterogeneous cost field as claimed in claim 6, characterized in that: Constructing a loss function according to the decomposition formula includes: Initializing the parameters θ of the fully connected neural network; X r As an input item, it is input into a fully connected neural network under the current parameter θ to obtain a current decomposition factor of the corresponding output, and then the current cost potential is determined according to the current decomposition factor, the distance information and the decomposition formula; Determine X based on the current cost potential and the cost function r The corresponding Hamiltonian; Constructing a preset loss function L according to the first preset relationship; The first preset relationship is: Among them, N sr represents the total number of position pairs, and the position pairs are composed of the starting point and each position point, K represents the total number of the position points, and H k (X r ) represents the Hamiltonian corresponding to the kth position point.

8. The path optimization method for realizing dynamic user balancing under a strong heterogeneous cost field as claimed in claim 7, characterized in that: Initializing the parameters θ of the fully connected neural network includes: The parameters θ of the fully connected neural network are initialized according to the Kaiming initialization method.

9. The path optimization method for realizing dynamic user balancing under a strong heterogeneous cost field as claimed in claim 7, characterized in that: Determine X based on the current cost potential and the cost function r The corresponding Hamiltonian includes: Determine X according to the second preset relationship r The corresponding Hamiltonian; The second preset relationship is: Among them, H(X r ) indicates X r The corresponding Hamiltonian, p is the preset parameter, represents the current cost potential φ θ (X r ) The norm of C(X r ) represents X determined according to the cost function r The cost of the place.

10. The path optimization method for realizing dynamic user balancing under a strong heterogeneous cost field as claimed in claim 7, characterized in that: X r Before being input into the fully connected neural network under the current parameter θ, it also includes: According to the third preset relationship, X r The two-dimensional coordinates of r The two-dimensional coordinates of The third preset relationship is: Among them, X r (x) indicates X before scaling r The coordinate in the x dimension, X r ′(x) represents the scaled X r The coordinate in the x dimension, X r (y) represents X before scaling r The coordinate in the y dimension, X r ′(y) represents the scaled X r The coordinate in the y dimension.

Citation Information

Cited By

  • Traffic flow prediction method and system based on embedded physical information deep neural network

    CN120452198A