Mean-standard deviation reliability path optimization method based on infinite dimension risk coefficient
Through the mean-standard deviation reliability path optimization method based on infinite-dimensional risk coefficients, the problem of ignoring travelers' risk preferences in the existing traffic flow allocation model is solved, and a more flexible and accurate traffic flow allocation is achieved, which can adapt to the changes in the transportation network. Certainty.
Patent Information
- Application Number
- CN202410743046.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-10-15
AI Technical Summary
Existing traffic flow allocation models ignore travelers' different preferences for route risks, resulting in inflexible and inaccurate traffic flow allocation in the face of transportation network uncertainty.
The mean-standard deviation reliability path optimization method based on the infinite-dimensional risk coefficient is adopted. By obtaining the travel plan and risk coefficient, the average travel time and travel time standard deviation are calculated, and the dual-objective label algorithm is used to determine the effective path set, and combined The risk coefficient determines the target and supports the effective path.
It improves the flexibility and accuracy of traffic flow allocation, can more accurately characterize the volatility of travel time and the heterogeneous risk preferences of travelers, and meet the needs of travelers for risk aversion behavior.
Smart Images

Figure CN118781784A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of traffic flow allocation, and in particular to a mean-standard deviation reliability path optimization method based on infinite-dimensional risk coefficient. Background Art
[0002] In recent years, with the continuous growth of traffic demand and the increasing complexity of traffic networks, how to optimize traffic flow distribution under limited resource conditions has become an important research topic. Traditional traffic distribution models mainly focus on balancing traffic flow and shortest path selection, but ignore the different preferences of travelers for path risks, which is often inconsistent with the actual situation in reality. In actual traffic networks, there are often uncertainties due to factors such as weather, congestion, traffic accidents, and construction, which will cause travel time fluctuations, and this uncertainty is unavoidable.
[0003] When travel time is uncertain, travelers are often willing to choose a path with higher reliability to avoid potential losses caused by travel time fluctuations. However, travelers often have risk aversion behavior in response to uncertainty, and their risk preferences vary, which is called the heterogeneity of travelers' risk aversion behavior. In the prior art, the mean-standard deviation model is a more commonly used model. Considering that the variance of road section travel time will be affected by road section traffic, and assuming that travelers are familiar with the cost mean and variance of each arc, an optimization procedure is established for solution. However, this method homogenizes the risk attitude of travelers, and usually regards the risk coefficient of travelers as a constant, without considering the impact of travelers' heterogeneity on path decisions. This homogeneous simplification may lead to a misrepresentation of travelers' actual risk attitudes, resulting in subsequent inaccurate network traffic distribution.
[0004] Therefore, in the related technology, there is an urgent need for a method that can improve the flexibility and accuracy of traffic flow distribution. Summary of the invention
[0005] Based on this, it is necessary to provide a mean-standard deviation reliability path optimization method based on infinite-dimensional risk coefficient that can improve the flexibility and accuracy of traffic flow allocation in response to the above technical problems.
[0006] In a first aspect, the present application provides a mean-standard deviation reliability path optimization method based on an infinite-dimensional risk coefficient. The method comprises:
[0007] Obtaining a traveler's travel plan and a risk factor, wherein the risk factor indicates a ratio of the traveler's reliability value to the time value;
[0008] Calculate the average travel time and standard deviation of the travel time based on the traveler's travel plan, and determine an initial path set;
[0009] Determine a valid path set based on the initial path set using a dual-target label algorithm;
[0010] A target-supported valid path is determined based on the valid path set and the risk factor.
[0011] Optionally, in one embodiment of the present application, the calculating the average travel time and the standard deviation of the travel time based on the traveler's travel plan and determining the initial path set includes:
[0012] Determining travel nodes and links connecting the travel nodes based on the traveler's travel plan;
[0013] The average travel time and the travel time standard deviation of the initial path are determined based on the average travel time and the travel time variance of the links.
[0014] Optionally, in one embodiment of the present application, the using a dual-target label algorithm to determine a valid path set based on the initial path set includes:
[0015] determining an initial travel node based on an average travel time and a standard deviation of travel time for the link;
[0016] Based on traversing all the corresponding links of the initial travel node, the average travel time and travel time variance of the corresponding travel node-link are calculated.
[0017] Optionally, in one embodiment of the present application, the using a dual-target label algorithm to determine a valid path set based on the initial path set further includes:
[0018] If the average travel time label value and the travel time variance label value of the travel node-link are both greater than the total average travel time and the total travel time variance of the corresponding link head node, then the link and the corresponding link head node are retained;
[0019] If the average travel time label value and travel time variance label value of the travel node-link are not greater than the total average travel time and total travel time variance of the corresponding link head node, and the average travel time label value of the travel node-link is less than the total average travel time of the link head node or the travel time variance label value of the travel node-link is less than the total travel time variance of the link head node, then delete the link and the corresponding link head node.
[0020] Optionally, in one embodiment of the present application, determining the target support valid path based on the valid path set and the risk coefficient includes:
[0021] Sorting the valid path set in descending order according to the standard deviation of travel time;
[0022] Determine the starting path and the ending path based on the sorted valid path set and the risk coefficient;
[0023] Calculate the path connection slope based on the average travel time and the travel time standard deviation corresponding to the next path of the starting path and the last path in the valid path set;
[0024] Traverse and search all paths before the termination path to determine whether the path connection slope meets the continuity condition. If so, determine that the target supports a valid path.
[0025] Optionally, in one embodiment of the present application, determining the starting path and the ending path based on the sorted valid path set and the risk coefficient includes:
[0026] Traverse all paths of the valid path set in order;
[0027] The path with the minimum travel cost when the risk coefficient takes the lower bound is taken as the starting path, and the path with the minimum travel cost when the risk coefficient takes the upper bound is taken as the ending path.
[0028] Optionally, in one embodiment of the present application, the calculation formula of the travel cost is:
[0029]
[0030] in, is the generalized travel cost of OD for path k in ω, is the average travel time of path k in OD pair ω, γ is the risk coefficient, is the standard deviation of the travel time of path k in OD pair ω.
[0031] In a second aspect, the present application also provides a mean-standard deviation reliability path optimization device based on infinite-dimensional risk coefficient. The device comprises:
[0032] A data acquisition module, used to acquire a traveler's travel plan and a risk factor, wherein the risk factor indicates a ratio of a traveler's reliability value to a time value;
[0033] An initial path set determination module is used to calculate the average travel time and the standard deviation of the travel time based on the travel plan of the traveler, and determine the initial path set;
[0034] An effective path set determination module, used to determine an effective path set based on the initial path set by adopting a dual-target label algorithm;
[0035] The target-supported valid path determination module is used to determine the target-supported valid path based on the valid path set and the risk coefficient.
[0036] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor executes the steps of the methods described in the above embodiments.
[0037] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method described in each of the above embodiments are implemented.
[0038] The above-mentioned mean-standard deviation reliability path optimization method based on infinite-dimensional risk coefficient first obtains the traveler's travel plan and risk coefficient, and the risk coefficient indicates the ratio of the traveler's reliability value to the time value; then, the average travel time and the standard deviation of the travel time are calculated based on the traveler's travel plan to determine the initial path set; then, the dual-target label algorithm is used to determine the effective path set based on the initial path set; finally, the target support effective path is determined based on the effective path set and the risk coefficient. In other words, when planning the travel path, the mean-standard deviation model is used, which has good interpretability and can accurately describe the impact of travel time volatility. At the same time, the continuous distribution risk coefficient is introduced to carefully describe the heterogeneous risk preferences of travelers, which can be more universal and improve the flexibility and accuracy of traffic flow distribution. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 It is an application environment diagram of a mean-standard deviation reliability path optimization method based on infinite-dimensional risk coefficient in one embodiment;
[0040] Figure 2 It is a flowchart of a mean-standard deviation reliability path optimization method based on infinite-dimensional risk coefficient in one embodiment;
[0041] Figure 3 A schematic diagram of a dominated path, a valid path, and a supporting valid path in one embodiment;
[0042] Figure 4 A schematic diagram of testing a slope continuity condition in one embodiment;
[0043] Figure 5 A schematic diagram of setting a starting path and an ending path in one embodiment;
[0044] Figure 6 It is a structural block diagram of a mean-standard deviation reliability path optimization device based on infinite-dimensional risk coefficient in one embodiment;
[0045] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0047] The mean-standard deviation reliability path optimization method based on infinite-dimensional risk coefficient provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. Among them, the terminal 102 can be but is not limited to various personal computers, laptops, smart phones, tablets, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be implemented with an independent server or a server cluster consisting of multiple servers.
[0048] In one embodiment, Figure 2 As shown in the figure, a mean-standard deviation reliability path optimization method based on infinite-dimensional risk coefficient is provided. Figure 1 The server in the example is used to illustrate the following steps:
[0049] S201: Obtain a travel plan and a risk factor of a traveler, wherein the risk factor indicates a ratio of the reliability value to the time value of the traveler.
[0050] In an embodiment of the present application, first, the traveler's travel plan and risk factor are obtained, wherein the traveler's travel plan includes information such as the travel departure point and travel destination, and the risk factor refers to the ratio of the traveler's reliability value to the time value. The time value refers to the amount of money or other resources that an individual or organization is willing to pay to save one unit of time during the trip, and the reliability value refers to the amount of money or other resources that an individual or organization is willing to pay to ensure the reliability of the trip during the trip.
[0051] S203: Calculate the average travel time and the standard deviation of the travel time based on the traveler's travel plan, and determine an initial path set.
[0052] In the embodiment of the present application, after determining the current traveler's travel plan and risk factor, the average travel time and the standard deviation of the travel time are calculated based on the traveler's travel plan, and the initial path set is determined. Specifically, a complete path is composed of a plurality of different nodes and links connecting the nodes. The average travel time and the standard deviation of the travel time of the path are mainly related to different links. The average travel time and the standard deviation of the travel time of the corresponding path are calculated based on different link compositions.
[0053] S205: Determine a valid path set based on the initial path set using a dual-target label algorithm.
[0054] In the embodiment of the present application, the initial path set contains multiple initial paths composed of different links connecting multiple nodes, each node has corresponding average travel time, travel time standard deviation, predecessor node and other information, and uses this information as the label corresponding to the node, adopts a dual-target label algorithm, selects a node as the initial node, starts to expand from the initial node, selects the node with the smallest average travel time and travel time standard deviation and the corresponding link to expand, finds the shortest path, and the obtained path is a valid path, which refers to a path that is not dominated by any path in the initial path set, and constitutes a valid path set. It should be noted that a dominated path refers to a path dominated by at least one other path in the path set, and domination means that if the average travel time and travel time standard deviation of path A are less than or equal to path B, and at least one item is strictly less than, then path A is said to dominate path B.
[0055] S207: Determine a target-supported valid path based on the valid path set and the risk coefficient.
[0056] In the embodiment of the present application, after obtaining the valid path set, it is necessary to filter out the supporting valid paths from the valid paths in combination with the risk coefficient, such as Figure 3 As shown in the figure, it is a schematic diagram of various paths. The supporting effective path refers to the effective path that constitutes the Pareto frontier of the path set. The absolute value of the slope of the black dashed line in the figure is equal to the risk coefficient of a certain group of travelers. The travel cost of a certain path is calculated as the average travel time + risk coefficient × travel time standard deviation. Therefore, by finding the supporting effective path point that satisfies the minimum travel cost under this slope, the optimal reliability path corresponding to a certain group of travelers can be found. The same is true for other travelers with different risk coefficients. In specific applications, the optimal path corresponding to the black dashed line in the figure is located at the risk coefficient of γ k-1 The boundary line and risk factor are γ k The support effective path between the boundary lines can be inferred that the risk coefficient ∈[γ k-1 ,γ k ] travelers will tend to choose this path, so the probability of this path being chosen is:
[0057]
[0058] Among them, P k refers to the probability of path k being selected, and g(z) refers to the probability density function of the risk coefficient.
[0059] In the above-mentioned mean-standard deviation reliability path optimization method based on infinite-dimensional risk coefficient, first, the traveler's travel plan and risk coefficient are obtained, and the risk coefficient indicates the ratio of the traveler's reliability value to the time value; then, the average travel time and the standard deviation of the travel time are calculated based on the traveler's travel plan to determine the initial path set; then, the dual-target label algorithm is used to determine the effective path set based on the initial path set; finally, the target support effective path is determined based on the effective path set and the risk coefficient. In other words, when planning the travel path, the mean-standard deviation model is used, which has good interpretability and can accurately describe the impact of travel time volatility. At the same time, the continuous distribution risk coefficient is introduced to carefully describe the heterogeneous risk preferences of travelers, which can be more universal and improve the flexibility and accuracy of traffic flow distribution.
[0060] In one embodiment of the present application, the calculating the average travel time and the standard deviation of the travel time based on the traveler's travel plan and determining the initial path set includes:
[0061] S301: Determine travel nodes and links connecting the travel nodes based on the traveler's travel plan.
[0062] S303: Determine the average travel time and travel time standard deviation of the initial path based on the average travel time and travel time variance of the link.
[0063] In one embodiment of the present application, travel nodes and links connecting travel nodes are determined based on the traveler's travel plan. There may be multiple links between two travel nodes. The travel time between different links is independent. Each link has an average travel time and a travel time variance. The average travel time and travel time standard deviation of the initial path can be calculated using the following formula:
[0064]
[0065] in, is the average travel time of path k in OD pair ω, is the standard deviation of the travel time of path k in OD pair ω, δ ak is a 0-1 variable, which is 1 when link a∈path k, otherwise it is 0. a is the average travel time of link a, is the travel time variance of link a.
[0066] In this embodiment, by determining travel nodes and links connecting the travel nodes based on the travel plan of the travelers, and determining the average travel time and travel time standard deviation of the initial path based on the average travel time and travel time variance of the links, the time attribute of each initial path can be accurately obtained.
[0067] In one embodiment of the present application, the using a dual-target label algorithm to determine a valid path set based on the initial path set includes:
[0068] S401: Determine an initial travel node based on the average travel time and the standard deviation of the travel time of the link.
[0069] S403: Based on the initial travel node, traverse all corresponding links, and calculate the average travel time and travel time variance of the corresponding travel node-link.
[0070] In one embodiment of the present application, a dual-target label algorithm is used to find a valid path, and the label of each node contains four items: node name, cumulative average travel time, cumulative travel time variance, and predecessor node label. First, input all node information and link information in the network, wherein the node information includes node name, incoming link set, outgoing link set, etc., and the link information includes link name, predecessor node, successor node, link average travel time, link travel time standard deviation, etc. Afterwards, the label of the source node is set to the initial value, wherein the cumulative average travel time and the cumulative travel time standard deviation are set to 0. Since the source node has no predecessor node, the predecessor node label is set to empty. And add the source node label to the source node label set. For all other nodes, set their label sets to empty, indicating that they have not been visited yet. And initialize a label scan set to store the label information of all nodes for subsequent calls.
[0071] After that, select a label corresponding to an unprocessed node from the label set. The label value of the node is the smallest in the dictionary order, that is, the minimum average travel time is given priority, and then the minimum standard deviation of the travel time is considered. It is used as the initial travel node and deleted from the label scanning set to ensure that each time it continues to expand from the currently known shortest path. After that, all the corresponding outbound links are traversed based on the initial travel node, and the average travel time and travel time variance of the corresponding travel node-link are calculated.
[0072] Specifically, in one embodiment of the present application, the step of using a dual-target label algorithm to determine a valid path set based on the initial path set further includes:
[0073] S501: If the average travel time label value and the travel time variance label value of the travel node-link are both greater than the total average travel time and the total travel time variance of the corresponding link head node, the link and the corresponding link head node are retained.
[0074] S503: If the average travel time label value and the travel time variance label value of the travel node-link are not greater than the total average travel time and the total travel time variance of the corresponding link head node, and the average travel time label value of the travel node-link is less than the total average travel time of the link head node or the travel time variance label value of the travel node-link is less than the total travel time variance of the link head node, then delete the link and the corresponding link head node.
[0075] In one embodiment of the present application, for all outbound links corresponding to the initial travel node, a new label is initialized, and this label includes: the name of the link head node, the cumulative average travel time of the initial travel node plus the average travel time of the outbound link, the cumulative travel time variance of the initial travel node plus the travel time variance of the outbound link, and the label corresponding to the selected node. If the label is not dominated by any label in the label set of the outbound link head node, that is, the average travel time and travel time variance of the travel node-link are both greater than the average travel time and travel time variance of the corresponding link head node, then it is added to the label set and label scan set of the outbound link head node. Conversely, if there is a label in the label set of the outbound link head node that is dominated by the new label, then this dominated label is deleted from the label set and label scan set of the outbound link head node. Finally, when the label scan set is empty, the label sets of all nodes have been set.
[0076] In this embodiment, by using the additivity of the mean and variance to set labels, a valid path set is obtained, which accurately describes the impact of travel time volatility and can assist traffic participants in making more reasonable decisions.
[0077] In one embodiment of the present application, determining a target support valid path based on the valid path set and the risk coefficient includes:
[0078] S601: Sort the valid path set in descending order according to the standard deviation of travel time.
[0079] S603: Determine the starting path and the ending path based on the sorted valid path set and the risk coefficient.
[0080] S605: Calculate the path connection slope based on the average travel time and the travel time standard deviation corresponding to the next path of the starting path and the last path in the valid path set.
[0081] S607: Traverse and search all paths before the termination path to determine whether the path connection slope meets the continuity condition. If so, determine that the target supports a valid path.
[0082] In one embodiment of the present application, first, initialize a set of supported valid paths and a set of risk coefficients, both of which are temporarily set to empty, sort the valid paths in the valid path set in descending order according to the standard deviation of the travel time, and determine the starting path and the ending path based on the sorted valid path set and the risk coefficient. Afterwards, calculate the path connection slope based on the average travel time and the standard deviation of the travel time corresponding to the next path of the starting path and the last path in the valid path set; traverse and search all paths before the ending path to determine whether the path connection slope meets the continuity condition. If so, determine the target supported valid path. Specifically, take the next path of the starting path in the valid path set as path k, and calculate the slope by the following formula:
[0083]
[0084] Among them, k ′ is the last path in the set of supported valid paths, is the average travel time of path k in OD pair ω, is the standard deviation of the travel time of path k in OD pair ω, It is the slope calculated for path k in OD pair ω in the process of finding supporting valid paths.
[0085] like Figure 4 As shown, if this slope value exceeds the upper and lower bounds of risk aversion, such as the case from P4 to P5 in the figure, jump to the next step. If this slope value does not exceed, check the slope continuous rise condition to ensure that the Pareto frontier is strictly convex, that is, repeatedly pop the last element from the support effective path set and the risk coefficient set, and calculate the new slope Compare with the last element popped out of the risk coefficient set. If this slope is less than or equal to the last element popped out, such as the case from P4 to P7 and from P6 to P7 in the figure, it means that the slope continuous increase condition is not met. You need to delete the previous node and continue searching back until the slope continuous increase condition is met. If the slope If the slope is larger, such as P4 to P6 in the figure, it means that the slope continuously rises, then stop and change the path k and slope Add them to the supporting effective path set and risk coefficient set respectively. If k = termination path, then terminate and the search for the supporting effective path set is completed.
[0086] In this embodiment, by considering the risk coefficient of continuous distribution, corresponding to an infinite number of types of travelers, the path selection preferences of different travelers can be analyzed in the form of Pareto frontiers, and the path decision-making behaviors of travelers can be flexibly characterized, which is more in line with the behavioral laws of travelers in the real world.
[0087] In one embodiment of the present application, determining the starting path and the ending path based on the sorted valid path set and the risk coefficient includes:
[0088] S701: Traverse all paths in the valid path set in order.
[0089] S703: The path with the minimum travel cost when the risk coefficient is at the lower bound is used as the starting path, and the path with the minimum travel cost when the risk coefficient is at the upper bound is used as the ending path.
[0090] In one embodiment of the present application, to determine the starting path and the ending path, firstly, all paths in the valid path set are traversed in order, such as Figure 5 As shown, find the path with the minimum travel cost when the risk factor takes the lower bound as the starting path. If there are multiple paths, take the one with the smaller index. Find the path with the minimum travel cost when the risk factor takes the upper bound as the ending path. If there are multiple paths, take the one with the larger index. In the valid path set, paths with an index larger than the starting path and smaller than the ending path will be removed, and other paths will be used as alternative paths. Add the starting path to the supporting valid path set, and add the lower bound of the risk factor to the risk factor set.
[0091] In this embodiment, the starting path and the ending path are determined by combining the risk coefficient, which takes the path selection preference of the travelers into consideration and improves the flexibility of traffic flow distribution.
[0092] In one embodiment of the present application, the calculation formula of the travel cost is:
[0093]
[0094] in, is the generalized travel cost of OD for path k in ω, is the average travel time of path k in OD pair ω, γ is the risk coefficient, is the standard deviation of the travel time of path k in OD pair ω.
[0095] In one embodiment of the present application, the planning of the reliability path calculates the travel cost and selects the path with the minimum travel cost as the target planning result. The calculation of the travel cost is usually quantified based on time and risk coefficient to reflect the heterogeneous risk aversion behavior of travelers. The specific calculation formula is as follows.
[0096]
[0097] in, is the generalized travel cost of OD for path k in ω, is the average travel time of path k in OD pair ω, γ is the risk coefficient, is the standard deviation of the travel time of path k in OD pair ω.
[0098] In this embodiment, by quantifying the travel cost, the heterogeneous risk aversion behavior of travelers is reflected, and the accuracy and flexibility of traffic flow allocation are improved.
[0099] The following is a specific example to illustrate the specific implementation steps of the mean-standard deviation reliability path optimization method based on infinite-dimensional risk coefficient of the present application. First, S801, obtain the travel plan and risk coefficient of the traveler, and the risk coefficient indicates the ratio of the traveler's reliability value to the time value. After that, S803, calculate the average travel time and the standard deviation of the travel time based on the traveler's travel plan, and determine the initial path set. Specifically, S805-S807, determine the travel nodes and the links connecting the travel nodes based on the travel plan of the traveler; determine the average travel time and the standard deviation of the travel time of the initial path based on the average travel time and the variance of the travel time of the links.
[0100] Afterwards, S809, a dual-target label algorithm is used to determine a valid path set based on the initial path set. Specifically, S811-S817, an initial travel node is determined based on the average travel time and travel time standard deviation of the link; based on the initial travel node, all corresponding links are traversed to calculate the average travel time and travel time variance of the corresponding travel node-link. If the average travel time label value and the travel time variance label value of the travel node-link are both greater than the total average travel time and the total travel time variance of the corresponding link head node, the link and the corresponding link head node are retained; if the average travel time label value and the travel time variance label value of the travel node-link are both not greater than the total average travel time and the total travel time variance of the corresponding link head node, and the average travel time label value of the travel node-link is less than the total average travel time of the link head node or the travel time variance label value of the travel node-link is less than the total travel time variance of the link head node, the link and the corresponding link head node are deleted.
[0101] Finally, S819, determine the target supported valid path based on the valid path set and the risk coefficient. Specifically, S821-S827, sort the valid path set in descending order according to the standard deviation of travel time; determine the starting path and the ending path based on the sorted valid path set and the risk coefficient; calculate the path connection slope based on the average travel time and travel time standard deviation corresponding to the next path of the starting path and the last path in the valid path set; traverse and search all paths before the ending path to determine whether the path connection slope meets the continuity condition, and if so, determine the target supported valid path. Among them, S829-S831, traverse all paths in the valid path set in order; take the path with the lowest travel cost when the risk coefficient takes the lower bound as the starting path, and take the path with the lowest travel cost when the risk coefficient takes the upper bound as the ending path. S833, the calculation formula of the travel cost is:
[0102]
[0103] in, is the generalized travel cost of OD for path k in ω, is the average travel time of path k in OD pair ω, γ is the risk coefficient, is the standard deviation of the travel time of path k in OD pair ω.
[0104] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0105] Based on the same inventive concept, the embodiment of the present application also provides a mean-standard deviation reliability path optimization device based on infinite-dimensional risk coefficient for realizing the above-mentioned mean-standard deviation reliability path optimization method based on infinite-dimensional risk coefficient. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations of one or more embodiments of the mean-standard deviation reliability path optimization device based on infinite-dimensional risk coefficient provided below can refer to the limitations of the mean-standard deviation reliability path optimization method based on infinite-dimensional risk coefficient in the above text, and will not be repeated here.
[0106] In one embodiment, Figure 6 As shown, a mean-standard deviation reliability path optimization device 600 based on infinite-dimensional risk coefficient is provided, comprising: a data acquisition module 601, an initial path set determination module 603, a valid path set determination module 605 and a target support valid path determination module 607, wherein:
[0107] The data acquisition module 601 is used to obtain the travel plan and risk coefficient of the traveler, and the risk coefficient indicates the ratio of the traveler's reliability value to the time value.
[0108] The initial path set determination module 603 is used to calculate the average travel time and the standard deviation of the travel time based on the traveler's travel plan to determine the initial path set.
[0109] The valid path set determination module 605 is used to determine a valid path set based on the initial path set by adopting a dual-target label algorithm.
[0110] The target supported valid path determination module 607 is used to determine the target supported valid path based on the valid path set and the risk coefficient.
[0111] In one embodiment of the present application, the initial path set determination module is further used to:
[0112] Determining travel nodes and links connecting the travel nodes based on the traveler's travel plan;
[0113] The average travel time and the travel time standard deviation of the initial path are determined based on the average travel time and the travel time variance of the links.
[0114] In one embodiment of the present application, the valid path set determination module is further used to:
[0115] determining an initial travel node based on an average travel time and a standard deviation of travel time for the link;
[0116] Based on traversing all the corresponding links of the initial travel node, the average travel time and travel time variance of the corresponding travel node-link are calculated.
[0117] In one embodiment of the present application, the valid path set determination module is further used to:
[0118] If the average travel time label value and the travel time variance label value of the travel node-link are both greater than the total average travel time and the total travel time variance of the corresponding link head node, then the link and the corresponding link head node are retained;
[0119] If the average travel time label value and travel time variance label value of the travel node-link are not greater than the total average travel time and total travel time variance of the corresponding link head node, and the average travel time label value of the travel node-link is less than the total average travel time of the link head node or the travel time variance label value of the travel node-link is less than the total travel time variance of the link head node, then delete the link and the corresponding link head node.
[0120] In one embodiment of the present application, the target support valid path determination module is further used to:
[0121] Sorting the valid path set in descending order according to the standard deviation of travel time;
[0122] Determine the starting path and the ending path based on the sorted valid path set and the risk coefficient;
[0123] Calculate the path connection slope based on the average travel time and the travel time standard deviation corresponding to the next path of the starting path and the last path in the valid path set;
[0124] Traverse and search all paths before the termination path to determine whether the path connection slope meets the continuity condition. If so, determine that the target supports a valid path.
[0125] In one embodiment of the present application, the target support valid path determination module is further used to:
[0126] Traverse all paths of the valid path set in order;
[0127] The path with the minimum travel cost when the risk coefficient takes the lower bound is taken as the starting path, and the path with the minimum travel cost when the risk coefficient takes the upper bound is taken as the ending path.
[0128] In one embodiment of the present application, the calculation formula of the travel cost is:
[0129]
[0130] in, is the generalized travel cost of OD for path k in ω, is the average travel time of path k in OD pair ω, γ is the risk coefficient, is the standard deviation of the travel time of path k in OD pair ω.
[0131] Each module in the above-mentioned mean-standard deviation reliability path optimization device based on infinite-dimensional risk coefficient can be implemented in whole or in part by software, hardware and their combination. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0132] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 7 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a mean-standard deviation reliability path optimization method based on an infinite-dimensional risk coefficient is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse.
[0133] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0134] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0135] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method embodiments are implemented.
[0136] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0137] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0138] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0139] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0140] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A mean-standard deviation reliability path optimization method based on infinite-dimensional risk coefficient, characterized in that: The method comprises: Obtaining a traveler's travel plan and a risk factor, wherein the risk factor indicates a ratio of the traveler's reliability value to the time value; Calculate the average travel time and standard deviation of the travel time based on the traveler's travel plan, and determine an initial path set; Determine a valid path set based on the initial path set using a dual-target label algorithm; A target-supported valid path is determined based on the valid path set and the risk factor.
2. The mean-standard deviation reliability path optimization method based on infinite dimensional risk coefficient according to claim 1 is characterized in that: The calculating the average travel time and the standard deviation of the travel time based on the traveler's travel plan and determining the initial path set comprises: Determining travel nodes and links connecting the travel nodes based on the traveler's travel plan; The average travel time and the travel time standard deviation of the initial path are determined based on the average travel time and the travel time variance of the links.
3. The mean-standard deviation reliability path optimization method based on infinite dimensional risk coefficient according to claim 2 is characterized in that: The step of using a dual-target label algorithm to determine a valid path set based on the initial path set includes: determining an initial travel node based on an average travel time and a standard deviation of travel time for the link; Based on traversing all the corresponding links of the initial travel node, the average travel time and travel time variance of the corresponding travel node-link are calculated.
4. The mean-standard deviation reliability path optimization method based on infinite-dimensional risk coefficient according to claim 3 is characterized in that: The method of using a dual-target label algorithm to determine a valid path set based on the initial path set also includes: If the average travel time label value and the travel time variance label value of the travel node-link are both greater than the total average travel time and the total travel time variance of the corresponding link head node, then the link and the corresponding link head node are retained; If the average travel time label value and travel time variance label value of the travel node-link are not greater than the total average travel time and total travel time variance of the corresponding link head node, and the average travel time label value of the travel node-link is less than the total average travel time of the link head node or the travel time variance label value of the travel node-link is less than the total travel time variance of the link head node, then delete the link and the corresponding link head node.
5. The mean-standard deviation reliability path optimization method based on infinite dimensional risk coefficient according to claim 1 is characterized in that: The determining of a target support effective path based on the effective path set and the risk coefficient comprises: Sorting the valid path set in descending order according to the standard deviation of travel time; Determine the starting path and the ending path based on the sorted valid path set and the risk coefficient; Calculate the path connection slope based on the average travel time and the travel time standard deviation corresponding to the next path of the starting path and the last path in the valid path set; Traverse and search all paths before the termination path to determine whether the path connection slope meets the continuity condition. If so, determine that the target supports a valid path.
6. The mean-standard deviation reliability path optimization method based on infinite-dimensional risk coefficient according to claim 5 is characterized in that: The determining of the starting path and the ending path based on the sorted valid path set and the risk coefficient comprises: Traverse all paths of the valid path set in order; The path with the minimum travel cost when the risk coefficient takes the lower bound is taken as the starting path, and the path with the minimum travel cost when the risk coefficient takes the upper bound is taken as the ending path.
7. The mean-standard deviation reliability path optimization method based on infinite dimensional risk coefficient according to claim 6 is characterized in that: The travel cost is calculated as follows: in, is the generalized travel cost of OD for path k in ω, is the average travel time of path k in OD pair ω, γ is the risk coefficient, is the standard deviation of the travel time of path k in OD pair ω.
8. A mean-standard deviation reliability path optimization device based on infinite-dimensional risk coefficient, characterized in that: The device comprises: A data acquisition module, used to acquire a traveler's travel plan and a risk factor, wherein the risk factor indicates a ratio of a traveler's reliability value to a time value; An initial path set determination module is used to calculate the average travel time and the standard deviation of the travel time based on the travel plan of the traveler, and determine the initial path set; An effective path set determination module, used to determine an effective path set based on the initial path set by adopting a dual-target label algorithm; The target-supported valid path determination module is used to determine the target-supported valid path based on the valid path set and the risk coefficient.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Large-scale road network parallel microscopic simulation method, device, equipment and medium
CN119207095A
