Cooperative scheduling method for unmanned container trucks at multiple intersections without signal lamps at port
Through the graph neural policy network and reinforcement learning algorithm, the priority relationship and traffic sequence between trucks are optimized, which solves the problem of traffic flow coordination between multiple intersections and improves the efficiency and safety of port operations.
Patent Information
- Application Number
- CN202410636403.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-22
- Publication Date
- 2024-09-17
AI Technical Summary
Existing technology is difficult to optimize the transportation system in an overall scenario with multiple non-fixed conflict points, especially in port and warehouse transportation tasks. It cannot effectively coordinate the traffic flow between multiple intersections, resulting in traffic congestion and delays.
The traffic order decision-making problem in the global conflict area is abstracted into a sequential decision-making problem, and the graph neural policy network and reinforcement learning algorithm (TD3+BC) are used to optimize the priority relationship and traffic order between trucks to ensure that trucks can move quickly and efficiently in the port area. Safe passage.
It achieves more efficient and accurate traffic flow dispatching, improves port operation efficiency and international competitiveness, and meets the long-term overall benefit needs of port container trucks.
Smart Images

Figure CN118658320A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of intelligent transportation technology, and in particular relates to a coordinated dispatching method for unmanned container trucks at multiple intersections without signal lights in a port. Background Art
[0002] With the continuous advancement of autonomous driving technology and intelligent transportation systems, it is becoming increasingly critical to make smart decisions on the order of passage in conflicting areas. Through effective communication and real-time data exchange between container trucks, intelligent transportation systems can achieve coordination and optimization between multiple intersections. By carefully deploying and allocating traffic flows, reducing traffic congestion and delays, the overall traffic efficiency can be improved and traffic safety can be enhanced. Scientifically solving the scheduling problem of unsignaled multi-intersections will enable efficient shipping loading and unloading operations, thereby improving port operating efficiency and international competitiveness, thereby increasing port revenue.
[0003] Previous technologies usually focus on solving the conflict scheduling problem at a single fixed intersection, using strategies based on planning or temporary negotiation to determine the order of travel.
[0004] For example, the Chinese patent document with publication number CN117373249A discloses a method and system for dispatching trucks at a two-way, two-lane, signal-free intersection. By preprocessing the truck driving data, the truck status at the intersection is first analyzed in detail, including the truck's speed, position, driving direction, acceleration and other parameters. Then, these data are used to determine the possible collision risk between trucks, and potential conflicts between trucks are constructed and classified. Nonlinear programming is used to optimize the truck action decision to improve traffic efficiency and reduce accident risks.
[0005] The Chinese patent document with publication number CN117198071A discloses a traffic signal phase adaptive adjustment method and system based on PSO-LSTM neural network. The invention first constructs an LSTM neural network that uses the PSO algorithm to optimize hyperparameters as a traffic prediction network, and uses historical data of traffic feature time series for training. The network predicts future traffic flow, and adjusts the duration of traffic lights in each direction of the intersection according to the prediction results, thereby optimizing the efficiency of traffic jams at intersections with large traffic volumes.
[0006] Although these methods can minimize the travel time at a single intersection, they may not be able to perform overall optimization in collaborative scenarios (such as port and warehouse transportation tasks) due to factors such as resource occupation. If the observation scope is expanded to include the overall scenario with multiple non-fixed conflict points, the above techniques are not applicable due to the dynamic changes and complex interactions within the traffic system. Summary of the invention
[0007] In order to solve the problems existing in the background technology, the present invention provides a coordinated scheduling method for unmanned container trucks at multiple intersections without traffic lights in ports. The method abstracts the decision problem of the passage order in the global conflict area into a sequential decision problem, and adopts learning and planning methods to obtain the final passage order, thereby controlling the passage of container trucks in the port area.
[0008] The key to the present invention is to consider the impact of the global container truck position relationship and the passage order on the future, aiming to coordinate each container truck to pass through the conflict area as quickly as possible under the premise of avoiding collisions and meeting various physical constraints, and optimize the overall future benefits to achieve the best overall task.
[0009] The technical solution of the present invention is as follows:
[0010] The method of the present invention is divided into two parts, namely, priority classification and judgment of the passing order.
[0011] The method comprises the following steps:
[0012] S1. For unmanned container trucks at multi-intersections without traffic lights in ports, the global conflict area priority of container trucks is modeled as a Markov decision process. Each container truck is regarded as a node in the undirected complete graph G. A graph neural strategy network is constructed based on the undirected complete graph G as a priority relationship decision network. The priority relationship decision network is used to classify the priority relationships of unmanned container trucks. The priority relationship decision network is used to process the current status of each container truck to obtain the priority relationship between container trucks.
[0013] The priority relationship of the container cards obtained by the present invention is not the absolute priority of each container card, but the priority relationship between every two container cards.
[0014] S2. Based on the priority relationship between container trucks obtained in S1 and the transportation status of each container truck obtained in real time, the single-intersection vehicle-to-vehicle interaction optimization problem is split and solved to obtain the passage order relationship of all container trucks at each intersection at the current moment;
[0015] S3. Finally, at each intersection, each container truck is controlled to pass according to the container truck passing order obtained in step S3, thereby realizing the coordinated scheduling of unmanned container trucks.
[0016] In the undirected complete graph G, a node represents a container truck, and the edge between each two nodes represents the priority relationship between the two container trucks; the priority relationship decision network includes a first sub-network of nodes to edges, a second sub-network of edges to nodes, a third sub-network of nodes to edges, a fully connected network, and a softmax operation.
[0017] The priority relationship decision network is transferred according to the following settings. The first sub-network, the second sub-network from edge to node, and the third sub-network from node to edge are respectively expressed as:
[0018]
[0019]
[0020]
[0021]
[0022] in, represents the feature vector obtained by the j-th card node in the first processing, x j represents the state feature vector of the j-th truck, f emb () represents the function of the network that extracts embedded features from the input data;
[0023] v represents a node, e represents an edge, arrows represent data flow, and colons represent operator separation. Represents the first subnetwork The characteristic conversion function, f v () represents the feature conversion function of the second sub-network, represents the feature conversion function of the third sub-network. The structures of the three sub-networks and the network that extracts embedded features from the input data are all long short-term memory networks;
[0024] Represents the feature vector obtained by the first processing of the edge between the i-th card node and the j-th card node, which is generated by the first subnetwork generate; represents the feature vector obtained by the j-th card node in the second processing, which is obtained by the second sub-network f v generate; The feature vector representing the edge between the i-th card node and the j-th card node obtained in the second processing is obtained by the third sub-network generate; Represents the result of the final fully connected network output.
[0025] In step S1, a five-tuple is set, and the five-tuples are state, action, reward, discount factor and transfer function, where:
[0026] The status includes the task and spatiotemporal status of the container truck. The task of the container truck is the task priority. The spatiotemporal status of the container truck includes the congestion information of the road where the container truck is located and the waiting information of the transportation destination.
[0027] Actions represent the priority relationship between each two sets of cards;
[0028] The reward represents the operational efficiency within a period of time T, and the operational efficiency refers to the total waiting time;
[0029] The discount factor is used to adjust the present value of future rewards.
[0030] The priority relationship decision network is initialized and trained using the reinforcement learning algorithm framework TD3+BC. The goal of training is to maximize the reward, which is specifically expressed as:
[0031]
[0032] Among them, J(π θ ) represents the strategy π θ The performance evaluation function, R(s t ,a t ) is the reward function, which means that in state s t Take action a t The rewards received when It means that in strategy π θ Next state t and action a t The expected distribution of s t ,a t Respectively represent the state s at time t t and actions;
[0033] The above strategy π θ refers to the probability distribution of selecting an action in a given state, state s t refers to the feature vector of the node (card set), action a t Refers to the priority relationship between two nodes (cards).
[0034] Status t The state feature vector may specifically include: priority, time that the target point is in idle state, destination type, list of container truck IDs related to the bridge crane, number of vehicles on the approach bridge whose target is the current bridge crane, number of vehicles on the current road, whether the current vehicle is valid, whether the current vehicle has reached the target point, whether the current vehicle is at the intersection, length of time the current vehicle is waiting, current speed, distance of the current vehicle from the intersection, number of vehicles in the current lane, speed limit of the current lane, length of the current lane.
[0035] Then the present value of future rewards is adjusted with the discount factor, and the next state is predicted with the transfer function. The discount factor is a floating point parameter with a value between 0 and 1. In this technology, the value is 0.95. The present value of future rewards refers to the value of future rewards converted to the current moment. In reinforcement learning, the agent considers the present value of future rewards when making decisions, not just the immediate rewards at the current moment. The transfer function accepts the current state and the action taken as input and predicts the next state.
[0036] When training the priority relationship decision network, the present invention learns the global priority relationship and quantifies the priority between all transportation equipment tasks in the entire closed transportation scenario. The global conflict area priority problem is modeled as a Markov decision process modeled as a priority relationship decision network, which is responsible for generating the task priority relationship between any two nodes to affect the passage order of container trucks in the port area.
[0037] The feasibility constraint is also set when training the priority relationship decision network, which is expressed as:
[0038] p(a t |s t )=π θ (a t |s t )°F(s t )
[0039] in, A generalized operator representing two functions, p(a t |s t ) represents the policy network input state s under the feasibility constraint t Produce action a t The probability of θ (a t |s t ) represents the policy network input state s t Produce action a t The probability of t 、s t Respectively represent the action and state at time t, a t |s t Indicates in s t Take action a in state t ,F(s t ) represents the feasibility constraint, which is used to t Determine which actions are legal; specifically, feasibility constraints include the following two constraints:
[0040] A. Collision avoidance:
[0041] If a collision occurs between two trucks in the same lane, the time for the rear truck to enter the intersection is set later than the time for the front truck to enter the intersection;
[0042] If a collision occurs between two trucks in different lanes, the time for the two trucks to enter the intersection is set to be staggered by at least one time difference;
[0043] B. Physical constraints:
[0044] The entry time assigned to each container truck is greater than or equal to the fastest entry time.
[0045] In step S2, the transport state refers to the attribute parameters of the container truck itself, as well as the collision avoidance parameters between the container trucks, etc.
[0046] The step S2 specifically includes:
[0047] S21. Determine the minimum and maximum feasible time for each truck to arrive at the intersection
[0048] For each truck, considering the current position and current speed, the minimum and maximum feasible time for each truck to arrive at the intersection is determined according to the following linear motion equations:
[0049]
[0050]
[0051]
[0052] Among them, d i represents the distance of truck i from the intersection at the initial moment, v i represents the speed of the vehicle i at the initial moment, v max Indicates the maximum speed allowed by the container truck, a max ,a min Indicates the maximum acceleration and deceleration allowed for the container truck; t max represents the maximum arrival time of the container truck, t acc Indicates the time required to accelerate to the maximum speed, t min Indicates the minimum arrival time of the container truck;
[0053] And the time window for each truck to arrive at the intersection is obtained from the minimum and maximum feasible time for each truck to arrive at the intersection;
[0054] S22. Determine the estimated arrival time of the truck at the intersection
[0055] Set the following objective function:
[0056]
[0057] in, represents the estimated time when the horizontal truck i arrives at the intersection, represents the time when the longitudinal truck j is expected to arrive at the intersection, E represents the set of transverse trucks, N represents the set of longitudinal trucks, i represents the ordinal number of the transverse truck, and j represents the ordinal number of the longitudinal truck;
[0058] Also set the following constraints:
[0059] (1) Time window constraints:
[0060]
[0061]
[0062] in, They represent the minimum feasible time and maximum feasible time for a horizontal truck i to arrive at the intersection, They represent the minimum feasible time and maximum feasible time for longitudinal truck j to arrive at the intersection respectively;
[0063] (2) Longitudinal safety headway time constraints:
[0064]
[0065]
[0066] Among them, h L It indicates the longitudinal safety headway time interval, i.e. the minimum time interval between two consecutive trucks in the same direction passing through the intersection; It indicates the time when the eastbound vehicle i+1 arrives at the intersection. represents the time when northbound vehicle j+1 arrives at the intersection;
[0067] (3) Transverse safety head time interval constraints:
[0068]
[0069]
[0070] Among them, b ij A parameter indicating whether the horizontal truck i passes the intersection before the vertical truck j. If b ij =1, then the horizontal container truck i passes before the longitudinal container truck j; otherwise, the longitudinal container truck j passes before the horizontal container truck i; M represents the conditional constraint parameter used in the linearization model; h T It indicates the lateral safety headway time interval, that is, the minimum time interval between two consecutive container trucks in different directions passing through the intersection;
[0071] (4) Binary variable constraints:
[0072]
[0073] Among them, b ij represents the order of passing of horizontal container i and vertical container j. If b ij =1 means that truck i passes the intersection before truck j; if b ij =0, the opposite is true.
[0074] In step S3, the feasible speed range of each truck is obtained based on the time when all trucks at each intersection pass through the intersection obtained in step S2 and the current speed of the truck.
[0075] The present invention sets the global conflict area traffic order decision goal to optimize the overall transportation operation efficiency. Specifically, each container truck is equipped with perception and communication tools, and regularly uploads its geographic coordinates and status information to the platform. In the conflict scenario, the traffic order is assigned to each container truck based on global efficiency.
[0076] Different from the simple online traffic sequence scheduling strategy in the past, the present invention regards the traffic sequence decision as a large-scale sequential decision problem. Each decision corresponds to the order in which containers and trucks pass through to maximize the overall efficiency of the port. By considering the future impact of traffic sequence decisions, it is possible to go beyond the decision of a single fixed conflict intersection and optimize the long-term global efficiency of port containers and trucks.
[0077] Compared with the prior art, the present invention has the following beneficial effects:
[0078] The present invention is an expandable conflict area traffic sequence control method, which realizes more efficient traffic flow scheduling through global and forward-looking processing, and improves scheduling speed, accuracy and efficiency.
[0079] The present invention utilizes a graph structure to represent the interactions between card sets, and combines TD3 and BC to learn a global priority relationship suitable for systems with dynamic changes and complex interactions.
[0080] Moreover, the present invention also provides a heuristic search algorithm based on a non-completely greedy idea, which accelerates the solution of the vehicle-to-vehicle interaction optimization problem and meets the timeliness requirements of the actual application scenarios of port container trucks. BRIEF DESCRIPTION OF THE DRAWINGS
[0081] Figure 1 A schematic diagram of the overall network framework of an embodiment of the present invention;
[0082] Figure 2 A schematic diagram of a multi-conflict intersection in an embodiment of the present invention;
[0083] Figure 3 A schematic diagram of the process of constructing an undirected conflict graph in an embodiment of the present invention;
[0084] Figure 4 It is a schematic diagram of the optimization problem solving process of the present invention. DETAILED DESCRIPTION
[0085] The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be pointed out that the embodiments described below are intended to facilitate the understanding of the present invention and do not have any limiting effect on the present invention.
[0086] Embodiments of the present invention are as follows:
[0087] The method comprises the following steps:
[0088] S1. For unmanned container trucks at multi-intersections without traffic lights in ports, the global conflict area priority of container trucks is modeled as a Markov decision process. Each container truck is regarded as a node in the undirected complete graph G in the Markov decision process. A graph neural strategy network based on the graph transfer mechanism is constructed according to the undirected complete graph G as a priority relationship decision network. The priority relationship decision network is used for priority relationship classification processing of unmanned container trucks. The priority relationship decision network is used to process the current status of each container truck to obtain the priority relationship between container trucks.
[0089] The specific process of priority relationship decision-making is:
[0090] The present invention models each container truck in the port as a node in an undirected fully connected graph G. A priority relationship decision strategy parameterized by an information transfer graph neural network is adopted. In the undirected complete graph G, a node represents a container truck, and the edge between each two nodes represents the priority relationship between the two container trucks.
[0091] Given historical data, a Markov decision process consisting of a sequence of states, actions, and rewards is established, where an agent represents a pair of container trucks in transit. The learned policy network generates a global priority relationship for each pair of container trucks and is further used in the subsequent online scheduling step.
[0092] State: The state of all trucks at time t is defined as a two-dimensional vector, which represents the task and spatiotemporal state, including task priority, road congestion, and destination waiting status.
[0093] Action: Divide each edge in the undirected graph G into three main categories: 0, 1, and 2, where 0 means there is no relationship between the two nodes, 1 means container truck A has priority over container truck B, and 2 means container truck B has priority over container truck A.
[0094] Reward: Operational efficiency over a period of time, using total waiting time.
[0095] Discount factor: Use a discount factor of 0.95 to make the model place more emphasis on recent rewards, thereby quickly responding to emergency situations or instantaneous changes in road conditions.
[0096] like Figure 1 As shown, the priority relationship decision network includes a first sub-network of nodes to edges, a second sub-network of edges to nodes, a third sub-network of nodes to edges, and a fully connected network, and a softmax operation.
[0097] The goal of the priority relationship decision network is to find the feature vector of the N truck nodes at the tth moment: Infer the priority relationship between pairs of cards z ij , represents the feature vector of the Nth truck at time t, and the feature vector x of each truck i as a node at all T times i It is expressed as: represents the feature vector of the i-th vehicle set stuck at the last time step, and the priority relationship decision network is modeled as q φ (z ij |x)=softmax(f φ (x) ij ,1:N),q φ (z ij |x) represents the priority relationship z between two nodes i and j given all node features x ij The probability distribution of z ij represents the priority relationship between the i-th set of cards and the j-th set of cards, f φ () ij represents the decision function corresponding to node i to j, x represents the state feature vector set of all set cards, φ represents the parameter of the neural network model, N represents the total number of set cards, and the priority relationship decision network finally determines the priority relationship between nodes by applying the softmax function to the node embedding and the parameters defined by the neural network.
[0098] The priority relationship decision network is set up according to the following transmission operation. The first sub-network, the second sub-network from edge to node, the third sub-network from node to edge, and the fully connected network are represented as follows. The data flow is as follows Figure 1 :
[0099]
[0100]
[0101]
[0102]
[0103] in, represents the feature vector obtained by the j-th card node in the first processing, x j represents the state feature vector of the j-th truck, f emb () represents a function that extracts embedded features from input data, v represents a node, e represents an edge, arrows represent data flow, and colons represent operator separation. Represents the feature vector obtained by the first processing of the edge between the i-th card collection node and the j-th card collection node, It represents the feature vector obtained by the j-th card node in the second processing. It represents the feature vector obtained by the second processing of the edge between the i-th card node and the j-th card node, and f() represents the feature conversion function.
[0104] In the specific implementation, the function f emb (), f e (), f v () are all implemented using LSTM networks.
[0105] Before actual application, the priority relationship decision network is initialized and trained using the reinforcement learning algorithm framework TD3+BC. The goal of training is to maximize the reward, which is specifically expressed as:
[0106]
[0107] Among them, J(π θ ) represents the performance evaluation function of the strategy, R(s t ,a t ) is the reward function, which represents the reward obtained when taking action a in state s. It means that in strategy π θ Next, state s t and action a t The expectation of the distribution of
[0108] The discount factor is then used to adjust the present value of future rewards, and the transition function is used to predict the next state.
[0109] The goal is to maximize the expected cumulative reward while satisfying a series of hard constraints, including collision avoidance rules and physical constraints, to ensure safety and rationality.
[0110] The present invention adopts a double-delayed deep deterministic policy gradient algorithm during training, combined with behavioral cloning (TD3+BC) for solution training. In this algorithm, the Actor network is the same as the policy network, which is responsible for generating the probability distribution of the priority relationship of the task allocation of the collection truck.
[0111] The trained priority relation decision network generates a global priority relation between each pair of cards and is applied in the subsequent online scheduling step.
[0112] The feasibility constraints are also set when training the priority relationship decision network, which can be expressed as:
[0113]
[0114] in, A generalized operator representing two functions, p(a t |s t ) represents the policy network input state s under the feasibility constraint t Produce action a t The probability of θ (a t |s t ) represents the policy network input state s t Produce action a t The probability of t |s t Indicates in s t Take action a in state t ,F(s t ) represents the feasibility constraint, which is used to t Determine which actions are legal.
[0115] Specifically, feasibility constraints include the following two constraints:
[0116] A. Collision avoidance:
[0117] If a collision occurs between two trucks in the same lane, the time for the rear truck to enter the intersection is set later than the time for the front truck to enter the intersection;
[0118] If a collision occurs between two trucks in different lanes, the time for the two trucks to enter the intersection is set to be staggered by at least one time difference;
[0119] B. Physical constraints:
[0120] The entry time assigned to each container truck is greater than or equal to the fastest entry time (maximum speed and maximum acceleration).
[0121] The present invention sets the feasibility constraint F(s t), based on the current traffic conditions, determine the available actions for step t, which can ensure that the priority relationship decision meets the hard constraints of truck driving. θ (a t |s t ) and feasibility constraints F(s t ) is combined to select the next action. The priority relation decision network is a parameterized function, π represents the strategy, and θ represents the parameters of the strategy, which define the mapping from state to action.
[0122] S2. Based on the priority relationship between container trucks obtained in S1 and the transportation status of each container truck obtained in real time, the single-intersection vehicle-to-vehicle interaction optimization problem is split and processed, and the Beam Search algorithm is used to solve the optimization problem to obtain the passage order relationship of all container trucks at each intersection at the current moment.
[0123] In step S2, the transport state refers to the attribute parameters of the truck itself and the collision avoidance parameters between trucks, etc., which are roughly as follows:
[0124] h L : Longitudinal safety headway time interval, that is, the minimum time interval between two consecutive container trucks passing through an intersection in the same direction.
[0125] h T : Transverse safety headway time interval, that is, the minimum time interval between two consecutive container trucks in different directions passing through the intersection.
[0126] b ij : Binary variable indicating whether horizontal truck i passes the intersection before vertical truck j (if b ij =1, then i passes before j; otherwise j passes before i).
[0127] M: A sufficiently large number used to linearize the conditional constraints in the model.
[0128] E: A collection of horizontal cards.
[0129] N: A collection of vertical cards.
[0130] d i : The distance of truck i relative to the intersection at the initial moment.
[0131] v i : The speed of card set i at the initial moment.
[0132] v max : The maximum speed allowed for the container truck.
[0133] a max ,a min: The maximum acceleration and deceleration allowed for the container truck.
[0134] The present invention proposes a strategy to minimize the delay of container trucks approaching intersections, which is decomposed into two sub-parts, including:
[0135] (1): Calculate the estimated time for each truck to arrive at the intersection;
[0136] (2): A schedule for the arrival time of trucks at intersections.
[0137] Step S2 specifically includes:
[0138] S21. Determine the minimum and maximum feasible time for each truck to arrive at the intersection
[0139] For each truck, considering the current position and current speed, analyze the minimum and maximum possible time points to arrive at the intersection, and determine the minimum and maximum feasible time for each truck to arrive at the intersection according to the following linear motion equations:
[0140]
[0141]
[0142]
[0143] Among them, d i represents the distance of truck i from the intersection at the initial moment, v i represents the speed of the vehicle i at the initial moment, v max Indicates the maximum speed allowed by the container truck, a max ,a min Indicates the maximum acceleration and deceleration allowed for the container truck; t max represents the maximum arrival time of the container truck, t acc Indicates the time required to accelerate to the maximum speed, t min Indicates the minimum arrival time of the container truck.
[0144] And the time window for each truck to arrive at the intersection is obtained from the minimum and maximum feasible time for each truck to arrive at the intersection;
[0145] S22. Determine the estimated arrival time of the truck at the intersection
[0146] Set the following objective function:
[0147]
[0148] in, represents the estimated time when the horizontal truck i arrives at the intersection, represents the time when the longitudinal truck j is expected to arrive at the intersection, E represents the set of transverse trucks, N represents the set of longitudinal trucks, i represents the ordinal number of the transverse truck, and j represents the ordinal number of the longitudinal truck;
[0149] The horizontal and vertical distributions are the two directions of the intersection. The objective function aims to minimize the total time that all trucks are expected to arrive at the intersection to improve the efficiency of traffic flow.
[0150] Also set the following constraints:
[0151] (1) Time window constraints:
[0152]
[0153]
[0154] in, They represent the minimum feasible time and maximum feasible time for a horizontal truck i to arrive at the intersection, They represent the minimum feasible time and maximum feasible time for longitudinal truck j to arrive at the intersection respectively;
[0155] These constraints ensure that the arrival time of each truck is within its feasible time window. This means that each truck cannot arrive earlier than the minimum feasible time t min Arriving at the intersection cannot be later than the maximum feasible time t max Arrival, thus ensuring the practical feasibility of container truck driving.
[0156] (2) Longitudinal safety headway time constraints:
[0157]
[0158]
[0159] Among them, h L It indicates the longitudinal safety headway time interval, i.e. the minimum time interval between two consecutive trucks in the same direction passing through the intersection; It indicates the time when the eastbound vehicle i+1 arrives at the intersection. Indicates the time when northbound vehicle j+1 arrives at the intersection.
[0160] These constraints ensure that the arrival time between two consecutive trucks in the same direction is at least h. L The interval of 10 seconds prevents collisions between trucks and maintains the safety of traffic flow.
[0161] (3) Transverse safety head time interval constraints:
[0162]
[0163]
[0164] Among them, b ij A parameter indicating whether the horizontal truck i passes the intersection before the vertical truck j. If b ij =1, then the horizontal container truck i passes before the longitudinal container truck j; otherwise, the longitudinal container truck j passes before the horizontal container truck i; M represents the conditional constraint parameter used in the linearization model; h T It indicates the lateral safety headway time interval, that is, the minimum time interval between two consecutive container trucks in different directions passing through the intersection;
[0165] These constraints use a sufficiently large constant M and a binary variable b ij To ensure that the horizontal safety head time interval h is met when trucks in different directions pass through the intersection T By adjusting b ij , the model can dynamically decide whether the horizontal container truck i passes the intersection before the longitudinal container truck j, or vice versa.
[0166] (4) Binary variable constraints:
[0167]
[0168] Among them, b ij represents the order of passing of horizontal container i and vertical container j. If b ij =1 means that truck i passes the intersection before truck j; if b ij =0, the opposite is true.
[0169] Through the above processing, the present invention can find the optimal estimated arrival time of each truck given the feasible time interval for each truck to arrive at the intersection, so as to minimize the total arrival time of all trucks. At the same time, it ensures that the trucks pass through the intersection safely, taking into account the safe distance between trucks.
[0170] In step S2, for the pure integer programming form of the card-to-card (car-to-car) optimization problem, the BeamSearch algorithm is used to solve it, and each solution represents the order in which all the cross-region card sets pass through. For each feasible solution, its corresponding objective function value can be determined by an algorithm with linear time complexity.
[0171] Specifically, the Beam Search algorithm is as follows Figure 4 As shown in the figure, pruning starts from a certain level of the search tree, and then only a portion of the nodes at each level are explored. The pruning strategy is based on the concept of partial greediness, which means that when exploring the next level of the search tree, it does not only explore the best nodes of the current level like the completely greedy method. Instead, the top k best nodes of the current level are explored and the rest are discarded.
[0172] S3. Finally, at each intersection, each container truck is controlled to pass according to the container truck passing order obtained in step S3, thereby realizing the coordinated scheduling of unmanned container trucks.
[0173] Get the speed configuration for a truck approaching an intersection:
[0174] In step S3, the feasible speed range of each truck is obtained based on the time when all trucks pass through the intersection obtained in step S2 and the current speed of the truck, so that the truck can arrive at the intersection on time at the predetermined time point while complying with the constraints of speed, acceleration, and headway.
[0175] In specific implementation, this part can establish a time range based on the linear motion equation and the dynamics of the container truck, taking the time when all the container trucks at each intersection obtained in step S2 pass through the intersection as the optimal time, and using the current speed v of the container truck to calculate the time range. i , position d i and the required arrival time t ei or nj , by solving the linear motion equations to determine the average speed or acceleration of the container truck in each time interval, thus constructing the speed stages in the entire driving process and the speed of each stage.
[0176] In a specific implementation, step S2 and step S3 can be optimized and solved together through the Beam Search algorithm.
[0177] The embodiments described above provide a detailed description of the technical solutions and beneficial effects of the present invention. It should be understood that the above are only specific embodiments of the present invention and are not intended to limit the present invention. Any modifications, supplements and equivalent substitutions made within the scope of the principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A coordinated dispatching method for unmanned container trucks at multiple intersections without signal lights in a port, characterized by: The method comprises the following steps: S1. For unmanned trucks at multi-intersections without traffic lights in ports, the global conflict area priority of the trucks is modeled as a Markov decision process. Each truck is regarded as a node in the undirected complete graph G. A graph neural strategy network is constructed based on the undirected complete graph G as a priority relationship decision network. The priority relationship decision network is used to process the current status of each truck to obtain the priority relationship between trucks. S2. Based on the priority relationship between container trucks obtained in S1 and the transportation status of each container truck obtained in real time, the single-intersection vehicle-to-vehicle interaction optimization problem is split and solved to obtain the passage order relationship of all container trucks at each intersection at the current moment; S3. Finally, at each intersection, each container truck is controlled to pass according to the container truck passing sequence obtained in step S3.
2. The method for coordinated dispatching of unmanned container trucks at multiple intersections without signal lights in a port according to claim 1, characterized in that: In the undirected complete graph G, a node represents a container truck, and the edge between each two nodes represents the priority relationship between the two container trucks; the priority relationship decision network includes a first sub-network of nodes to edges, a second sub-network of edges to nodes, a third sub-network of nodes to edges, a fully connected network, and a softmax operation. The priority relationship decision network is transferred according to the following settings. The first sub-network, the second sub-network from edge to node, and the third sub-network from node to edge are respectively expressed as: in, represents the feature vector obtained by the j-th card node in the first processing, x j represents the state feature vector of the j-th truck, f emb () represents the network that extracts embedded features from input data; v represents a node, e represents an edge, arrows represent data flow, colons represent operator separation, and f represents e 1 () indicates the first subnetwork The characteristic conversion function, f v () represents the feature conversion function of the second sub-network, f e 2 () represents the feature conversion function of the third sub-network. The structures of the three sub-networks and the network that extracts embedded features from the input data are all long short-term memory networks; Represents the feature vector obtained by the first processing of the edge between the i-th card node and the j-th card node, which is generated by the first subnetwork generate; represents the feature vector obtained by the j-th card node in the second processing, which is obtained by the second sub-network f v generate; The feature vector representing the edge between the i-th card node and the j-th card node obtained in the second processing is obtained by the third sub-network generate; Represents the result of the final fully connected network output.
3. The method for coordinated dispatching of unmanned container trucks at multiple intersections without signal lights in a port according to claim 1, characterized in that: In step S1, a five-tuple is set, and the five-tuples are state, action, reward, discount factor and transfer function, where: The status includes the task and spatiotemporal status of the container truck. The task of the container truck is the task priority. The spatiotemporal status of the container truck includes the congestion information of the road where the container truck is located and the waiting information of the transportation destination. Actions represent the priority relationship between each two sets of cards; The reward represents the operational efficiency within a period of time T, and the operational efficiency refers to the total waiting time; The discount factor is used to adjust the present value of future rewards.
4. The method for coordinated dispatching of unmanned container trucks at multiple intersections without signal lights in a port according to claim 2 is characterized by: The priority relationship decision network is initialized and trained using the reinforcement learning algorithm framework TD3+BC. The goal of training is to maximize the reward, which is specifically expressed as: Among them, J(π θ ) represents the strategy π θ The performance evaluation function, R(s t ,a t ) is the reward function, which means that in state s t Take action a t The rewards received when It means that in strategy π θ Next state t and action a t The expected distribution of s t ,a t Respectively represent the state s at time t t and actions; The discount factor is then used to adjust the present value of future rewards, and the transition function is used to predict the next state.
5. The method for coordinated dispatching of unmanned container trucks at multiple intersections without signal lights in a port according to claim 1, characterized in that: The feasibility constraint is also set when training the priority relationship decision network, which is expressed as: in, A generalized operator representing two functions, p(a t |s t ) represents the policy network input state s under the feasibility constraint t Produce action a t The probability of θ (a t |s t ) represents the policy network input state s t Produce action a t The probability of t 、s t Respectively represent the action and state at time t, a t |s t Indicates in s t Take action a in state t ,F(s t ) represents the feasibility constraint, which is used to t Determine which actions are legal; specifically, feasibility constraints include the following two constraints: A. Collision avoidance: If a collision occurs between two trucks in the same lane, the time for the rear truck to enter the intersection is set later than the time for the front truck to enter the intersection; If a collision occurs between two trucks in different lanes, the time for the two trucks to enter the intersection is set to be staggered by at least one time difference; B. Physical constraints: The entry time assigned to each container truck is greater than or equal to the fastest entry time.
6. The method for coordinated dispatching of unmanned container trucks at multiple intersections without signal lights in a port according to claim 1, characterized in that: In step S2, the transport state refers to the attribute parameters of the container truck itself, as well as the collision avoidance parameters between the container trucks, etc.
7. The method for coordinated dispatching of unmanned container trucks at multiple intersections without signal lights in a port according to claim 1 is characterized by: The step S2 specifically includes: S21. Determine the minimum and maximum feasible time for each truck to arrive at the intersection For each truck, considering the current position and current speed, the minimum and maximum feasible time for each truck to arrive at the intersection is determined according to the following linear motion equations: Among them, d i represents the distance of truck i from the intersection at the initial moment, v i represents the speed of the vehicle i at the initial moment, v max Indicates the maximum speed allowed by the container truck, a max ,a min Indicates the maximum acceleration and deceleration allowed for the container truck; t max represents the maximum arrival time of the container truck, t acc Indicates the time required to accelerate to the maximum speed, t min Indicates the minimum arrival time of the container truck; And the time window for each truck to arrive at the intersection is obtained from the minimum and maximum feasible time for each truck to arrive at the intersection; S22. Determine the estimated arrival time of the truck at the intersection Set the following objective function: in, represents the estimated time when the horizontal truck i arrives at the intersection, represents the time when the longitudinal truck j is expected to arrive at the intersection, E represents the set of transverse trucks, N represents the set of longitudinal trucks, i represents the ordinal number of the transverse truck, and j represents the ordinal number of the longitudinal truck; Also set the following constraints: (1) Time window constraints: in, They represent the minimum feasible time and maximum feasible time for a horizontal truck i to arrive at the intersection, They represent the minimum feasible time and maximum feasible time for longitudinal truck j to arrive at the intersection respectively; (2) Longitudinal safety headway time constraints: Among them, h L It indicates the longitudinal safety headway time interval, i.e. the minimum time interval between two consecutive trucks in the same direction passing through the intersection; It indicates the time when the eastbound vehicle i+1 arrives at the intersection. represents the time when northbound vehicle j+1 arrives at the intersection; (3) Transverse safety head time interval constraints: Among them, b ij A parameter indicating whether the horizontal truck i passes the intersection before the vertical truck j. If b ij =1, then the horizontal container truck i passes before the longitudinal container truck j; otherwise, the longitudinal container truck j passes before the horizontal container truck i; M represents the conditional constraint parameter used in the linearization model; h T It indicates the lateral safety headway time interval, that is, the minimum time interval between two consecutive container trucks in different directions passing through the intersection; (4) Binary variable constraints: Among them, b ij represents the order of passing of horizontal container i and vertical container j. If b ij =1 means that truck i passes the intersection before truck j; if b ij =0, the opposite is true.
8. The method for coordinated dispatching of unmanned container trucks at multiple intersections without signal lights in a port according to claim 1 is characterized by: In step S3, the feasible speed range of each truck is obtained based on the time when all trucks at each intersection pass through the intersection obtained in step S2 and the current speed of the truck.
