Travel plan generation device, travel plan generation method, and program
The system uses a recurrent neural network with an attention mechanism to optimize vehicle tour plans by calculating visit and usage probabilities, addressing limitations in existing methods to achieve near-optimal delivery routes.
Patent Information
- Application Number
- JP2023504929
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-03-09
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-03-09
AI Technical Summary
Existing methods for generating vehicle tour plans, particularly in delivery scenarios, often result in less-than-optimal solutions due to constraints and limitations in existing machine learning approaches, such as those using recurrent neural networks with attention mechanisms, which restrict the output itinerary plans.
A system utilizing a recurrent neural network with an attention mechanism to generate tour plans by calculating visit probabilities of locations and usage probabilities of vehicles, allowing for the selection of points and vehicles in an arbitrary order, while incorporating masking to prevent unnecessary movements and optimize the itinerary.
The system achieves near-optimal itinerary plans by dynamically selecting locations and vehicles based on probability calculations, reducing total travel distance and optimizing delivery routes.
Smart Images

Figure 0007548412000017 
Figure 0007548412000019 
Figure 0007548412000020
Abstract
Description
[Technical field]
[0001] The present invention relates to combinatorial optimization of problems such as vehicle routing problems (VRPs). [Background technology]
[0002] The delivery planning problem is a problem of finding an optimal route plan under various constraints (e.g., the number of vehicles and the loading capacity of the vehicles) when delivering or collecting packages, such as parcels for home delivery or relief supplies for disaster areas, to multiple locations. The route plan includes the route for each vehicle. An optimal route plan is, for example, a route plan that has the shortest total route distance.
[0003] Because the number of route patterns (combinations) is enormous, it is difficult to derive a strictly optimal route plan. For this reason, an approach that utilizes machine learning to quickly obtain a nearly optimal route plan is being adopted.
[0004] In an approach to solving a delivery planning problem using machine learning, a method using a recurrent neural network (RNN) with an attention mechanism is known. Non-Patent Document 1 and Non-Patent Document 2 disclose a method for obtaining a route plan when there is one vehicle. Non-Patent Document 3 discloses a method for obtaining a route plan when there are multiple vehicles under a rule that the vehicles select visiting points in a predetermined order. In Non-Patent Document 3, the above rule imposes restrictions on the route plans that can be output. For this reason, depending on the problem case, a route plan that cannot be said to be optimal may be obtained. [Prior art documents] [Non-patent literature]
[0005] [Non-Patent Document 1] Irwan Bello, Hieu Pham, Quoc V. Le, Mohammad Norouzi, and Samy Bengio, “Neural Combinatorial Optimization with Reinforcement Learning,” arXiv preprint, arXiv:1611.09940, 2016. [Non-Patent Document 2] Mohammadreza Nazari, Afshin Oroojlooy, Martin Takac, and Lawrence V. Snyder, “Reinforcement Learning for Solving the Vehicle Routing Problem,” 32nd Conference on Neural Information Processing Systems (2018). [Non-Patent Document 3] Jose Manuel Vera and Andres G. Abad, “Deep Reinforcement Learning for Routing a Heterogeneous Fleet of Vehicles,” IEEE LA-CCI, 2019. Summary of the Invention [Problem to be solved by the invention]
[0006] The present invention aims to provide a technique that makes it possible to obtain a near-optimal itinerary plan. [Means for solving the problem]
[0007] A travel plan generation device according to one embodiment of the present invention includes a generation unit that generates a travel plan for traveling around the multiple points with the multiple mobile objects by performing a process of selecting one of the multiple points and one of the multiple mobile objects at each output step using a recurrent neural network configured to output, upon input, location information regarding a multiple number of points and mobile object information regarding a multiple number of mobile objects, a visit probability of the multiple points and a usage probability of the multiple mobile objects, and an output unit that outputs the travel plan. Effect of the Invention
[0008] According to the present invention, techniques are provided that allow for obtaining near optimal itinerary plans. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a block diagram showing a traveling schedule generating device according to an embodiment of the present invention. [Diagram 2] FIG. 2 is a diagram showing an RNN used by the travel plan generating unit shown in FIG. [Diagram 3] FIG. 3 is a diagram showing a specific example of an RNN used by the travel plan generating unit shown in FIG. [Figure 4] FIG. 4 is a diagram showing a problem example handled by the travel plan generating device of FIG. [Diagram 5] FIG. 5 is a block diagram showing a hardware configuration of the traveling schedule generating device of FIG. [Figure 6] FIG. 6 is a block diagram showing a learning device according to an embodiment of the present invention. [Figure 7] FIG. 7 is a flowchart showing the operation of the traveling schedule generating device of FIG. [Figure 8] FIG. 8 is a diagram for explaining a traveling schedule generating process in the traveling schedule generating device of FIG. [Figure 9] FIG. 9 is a diagram for explaining a travel schedule generation process in the conventional technology. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
[0011] [composition] FIG. 1 is a schematic diagram of a travel plan generating device 100 according to an embodiment of the present invention. The travel plan generating device 100 shown in FIG. 1 generates a travel plan for a plurality of vehicles to travel to a plurality of locations. For example, the travel plan generating device 100 determines routes (paths) for a plurality of vehicles in order to deliver packages to a plurality of locations by the plurality of vehicles. The purpose of the vehicles visiting the locations is not limited to the delivery of packages. For example, the purpose may be the collection of packages. The purpose may also be an action that does not involve the exchange of packages. The travel plan includes a route for each vehicle. The route for each vehicle indicates the locations and the order in which the vehicle will visit.
[0012] In the example shown in FIG. 1, the traveling plan generating device 100 includes an input unit 102, a traveling plan generating unit 104, a traveling plan output unit 106, a learning parameter acquiring unit 108, and a learning parameter storage unit 112.
[0013] The learning parameter acquisition unit 108 acquires learning parameters determined by a learning device 600 (FIG. 6) described later, and stores the learning parameters in the learning parameter storage unit 112. In an example in which the traveling plan generation device 100 is connected to the learning device 600 via a network, the learning parameter acquisition unit 108 receives the learning parameters from the learning device 600 via the network. The learning parameters include weights to be applied to the neural network used by the traveling plan generation unit 104.
[0014] The input unit 102 acquires, as input data, point information related to a plurality of points and vehicle information related to a plurality of vehicles. In an example in which the travel plan generating device 100 is connected to a terminal device used by a human operator via a network, the input unit 102 receives input data from the terminal device via the network. Alternatively, the input unit 102 may receive input data from an input device (e.g., a keyboard) connected to the travel plan generating device 100. The input data includes information indicating a problem case for which a travel plan is to be generated. The point information includes information indicating the positions of a plurality of points and a load requirement (e.g., the amount of load to be delivered). The vehicle information includes information indicating the positions and loading capacity (e.g., the amount of load that can be loaded) of a plurality of vehicles.
[0015] The travel plan generating unit 104 generates a travel plan based on the vehicle information and the location information acquired by the input unit 102. The travel plan generating unit 104 may use a pre-trained recurrent neural network (RNN) equipped with an attention mechanism to generate the travel plan. The travel plan generating unit 104 acquires learning parameters from the learning parameter storage unit 112 and applies the learning parameters to the RNN.
[0016] The RNN is configured to output the visiting probability of a plurality of locations and the usage probability of a plurality of vehicles when location information and vehicle information are input. The visiting probability of each location is the probability that a vehicle will come to deliver a package to that location under certain circumstances, and represents the ease of visiting that location under certain circumstances. The usage probability of each vehicle is the probability that the vehicle will go to deliver a package under certain circumstances, and represents the ease of using the vehicle under certain circumstances. The travel plan generating unit 104 performs a process of selecting any one location out of the plurality of locations and any one vehicle out of the plurality of vehicles using the RNN for each output step, and obtains a travel plan as a result. The output step is also called a time step.
[0017] The travel plan output unit 106 outputs the travel plan generated by the travel plan generating unit 104. For example, the travel plan output unit 106 transmits the travel plan to the terminal device via a network. Alternatively, the travel plan output unit 106 may display the travel plan on a display device connected to the travel plan generating device 100.
[0018] Fig. 2 illustrates an example of an RNN used by the tour plan generating unit 104. In the example illustrated in Fig. 2, the RNN includes an encoder 202 and a decoder 204 as RNN modules, and an attention mechanism 206.
[0019] The travel plan generating unit 104 inputs the point information and the vehicle information to the encoder 202. The encoder 202 embeds the point information and the vehicle information in a space with a fixed number of dimensions. Specifically, the encoder 202 generates an embedding vector with a fixed number of dimensions corresponding to the point information, and generates an embedding vector with a fixed number of dimensions corresponding to the vehicle information. Hereinafter, the embedding vector corresponding to the point information is also referred to as a point information vector, and the embedding vector corresponding to the vehicle information is also referred to as a vehicle information vector. The encoder 202 provides the point information vector and the vehicle information vector to the attention mechanism 206.
[0020] The decoder 204 receives information about the points and vehicles selected in the previous output step from the travel plan generation unit 104, and generates a hidden vector based on the received information. The decoder 204 holds the hidden vector generated in the previous output step, and uses the held hidden vector to generate a new hidden vector. Specifically, the decoder 204 generates a hidden vector in the current output step based on information about the points and vehicles selected in the previous output step and the hidden vector generated by itself in the previous output step. The decoder 204 provides the generated hidden vector to the attention mechanism 206.
[0021] The attention mechanism 206 calculates the probability of visiting a location and the probability of using a vehicle based on the location information vector and the vehicle information vector received from the encoder 202 and the hidden vector received from the decoder 204.
[0022] FIG. 3 is a schematic diagram of an example of the RNN shown in FIG. t is a vector that represents the location information at output step t. Vector X t can be expressed as follows:
number
[0023] Z t is a vector that represents the vehicle information at output step t. Vector Z t can be expressed as follows:
number
[0024] Fig. 4 shows an example of a problem case handled by the travel schedule generating device 100. Specifically, Fig. 4 shows a problem case in which vehicles z1, z2, and z3 with a loading capacity of "10" are present at a starting point at coordinates (0.5, 0.5), and a requested amount of "8" cargo is delivered to point x1 at coordinates (0.1, 0.1), a requested amount of "3" cargo is delivered to point x2 at coordinates (0.1, 0.9), and a requested amount of "5" cargo is delivered to point x3 at coordinates (0.9, 0.1). In this case, vectors X0 and Z0 corresponding to the point information and vehicle information acquired by the input unit 102, respectively, are expressed as follows.
number
[0025] Referring again to FIG. 3, y t =x i t represents the information about the point selected at output step t. t is a vector that represents information about the points selected in output steps 0 to t. t can be expressed as follows:
number
[0026] w t =z j t represents the information about the vehicle selected at output step t. t is a vector that represents information about the vehicle selected at output steps 0 to t. t can be expressed as follows:
number
[0027] The attention mechanism 206 receives the point information vector and the vehicle information vector from the encoder 202. The point information vector is a vector X t The embedding vector is generated from the vector Z t is the embedding vector generated from
number
[0028] The attention mechanism 206 calculates the location information vector and the hidden vector h t Based on this, we create an attention vector a Xt Generate the attention vector a Xt can be expressed as follows:
number
[0029] The attention mechanism 206 calculates the location information vector and the attention vector a Xt Based on this, we create a context vector c Xt Generate a context vector c Xt can be expressed as follows:
number
[0030] The attention mechanism 206 calculates the vehicle information vector and the hidden vector h t Based on this, we define the attention vector a Zt Generate the attention vector a Zt can be expressed as follows:
number
[0031] The attention mechanism 206 calculates the vehicle information vector and the attention vector a Zt Based on this, we define a context vector c Zt Generate a context vector c Zt can be expressed as follows:
number
[0032] The attention mechanism 206 calculates the location information vector and the context vector c Xt , c Zt Based on this, the visiting probability P(y t+1 |Y t ,W t ,X t ,Z t ) is calculated. t+1 |Y t ,W t ,X t ,Z t ) can be expressed as follows:
number
[0033] The attention mechanism 206 calculates the vehicle information vector and the context vector c Xt , c Zt Based on this, the probability of using multiple vehicles P(w t+1 |Y t ,W t ,X t ,Z t) is calculated. t+1 |Y t ,W t ,X t ,Z t ) can be expressed as follows:
number
[0034] The travel schedule generating unit 104 obtains the visit probability of the points and the usage probability of the vehicle from the RNN, selects the point with the highest visit probability and the vehicle with the highest usage probability, and adds the selected point to the route of the selected vehicle.
[0035] The travel plan generating unit 104 may perform masking in the selection of locations and vehicles. The travel plan generating unit 104 holds mask information including location mask information indicating unselectable locations and vehicle mask information indicating unselectable vehicles. The travel plan generating unit 104 selects locations excluding unselectable locations indicated by the location mask information and vehicles excluding unselectable vehicles indicated by the vehicle mask information. For example, the travel plan generating unit 104 changes the visit probability of locations indicated as unselectable locations in the location mask information to zero and then selects the location with the highest visit probability, and changes the usage probability of vehicles indicated as unselectable vehicles in the mask information to zero and then selects the vehicle with the highest usage probability.
[0036] The travel plan generating unit 104 updates the mask information based on the result of adding the selected point to the route of the selected vehicle. For example, when the addition of a point to the route of a vehicle results in the baggage requirement amount of the point becoming zero, the travel plan generating unit 104 adds the point to the point mask information as a non-selectable point. Also, when the addition of a point to the route of a vehicle results in the loading capacity of the vehicle becoming zero, the travel plan generating unit 104 adds the vehicle to the vehicle mask information as a non-selectable vehicle.
[0037] Fig. 5 illustrates an example of a hardware configuration of the traveling schedule generating device 100. In the example illustrated in Fig. 5, the traveling schedule generating device 100 includes a processor 501, a RAM (Random Access Memory) 502, a program memory 503, a storage device 504, and an input / output interface 505. The processor 501 controls the RAM 502, the program memory 503, the storage device 504, and the input / output interface 505, and exchanges signals with them.
[0038] The processor 501 includes a general-purpose circuit such as a CPU (Central Processing Unit) or a GPU (Graphics Processing Unit). The RAM 502 is used by the processor 501 as a working memory. For example, the RAM 502 is used to hold mask information. The RAM 502 includes a volatile memory such as an SDRAM. The program memory 503 stores programs executed by the processor 501, including a travel plan generation program. The programs include computer-executable instructions. For example, a ROM is used as the program memory 503. A partial area of the storage device 504 may be used as the program memory 503.
[0039] The processor 501 loads the program stored in the program memory 503 into the RAM 502, and interprets and executes the program. When the traveling plan generation program is executed by the processor 501, it causes the processor 501 to perform a series of processes including the processes described in relation to the traveling plan generation unit 104 of the traveling plan generation device 100.
[0040] The program may be provided to the traveling plan generating device 100 in a state where it is stored in a computer-readable recording medium. In this case, the traveling plan generating device 100 has a drive for reading data from the recording medium and acquires the program from the recording medium. Examples of the recording medium include magnetic disks, optical disks (CD-ROM, CD-R, DVD-ROM, DVD-R, etc.), magneto-optical disks (MO, etc.), and semiconductor memories. The program may also be distributed through a network. Specifically, the program may be stored in a server on the network, and the traveling plan generating device 100 may download the program from the server.
[0041] The storage device 504 stores data such as learning parameters, etc. The storage device 504 includes a non-volatile memory such as a hard disk drive (HDD) or a solid state drive (SSD).
[0042] The input / output interface 505 includes a communication module for communicating with an external device and a plurality of terminals for connecting peripheral devices. The communication module includes a wired module and / or a wireless module. Examples of the peripheral devices include a display device, a keyboard, and a mouse. The processor 501 acquires data such as location information, vehicle information, and learning parameters via the input / output interface 505. The processor 501 outputs a tour plan via the input / output interface 505.
[0043] Fig. 6 shows an outline of a learning device 600 according to an embodiment of the present invention. The learning device 600 shown in Fig. 6 learns learning parameters of a neural network used by the traveling schedule generation device 100 shown in Fig. 1. The learning device 600 optimizes the learning parameters using the results of multiple simulations, etc.
[0044] 6, the learning device 600 includes an input unit 602, a travel plan generating unit 604, a learning unit 606, a learning parameter output unit 608, and a learning parameter storage unit 612. The learning device 600 may be realized by causing a processor to execute a program. The learning device 600 may have a hardware configuration similar to that shown in FIG.
[0045] The input unit 602 acquires a large number of learning data sets. The learning data sets are prepared, for example, by random generation. Each learning data set includes location information and vehicle information.
[0046] The travel plan generating unit 604 generates a travel plan based on each learning data set. The travel plan generating unit 604 generates a travel plan in the same manner as the travel plan generating unit 104 shown in FIG. 1. The travel plan generating unit 604 uses an RNN having the same configuration as the RNN used by the travel plan generating unit 104. The travel plan generating unit 604 generates a travel plan based on the learning data set using an RNN to which learning parameters stored in the learning parameter storage unit 612 are applied. The learning parameters are the v Xa , W Xa , v Za , W Za , v Xc , W Xc , v Zc , W Zc Includes.
[0047] The learning unit 606 updates the learning parameters based on the traveling plan generated by the traveling plan generating unit 604. As the learning algorithm, for example, the A2C (Advantage Actor Critic) algorithm can be used.
[0048] The learning device 600 repeatedly performs processes including generating a travel schedule and updating the learning parameters. The learning parameter output unit 608 outputs the finally obtained learning parameters. For example, the learning parameter output unit 608 transmits the learning parameters to the travel schedule generating device 100 shown in FIG. 1 via a network.
[0049] Although the learning device 600 is illustrated as a device separate from the traveling plan generating device 100, the learning device 600 may exist within the traveling plan generating device 100.
[0050] [Operation] Next, the operation of the traveling schedule generating device 100 will be described.
[0051] Fig. 7 shows an outline of an example of the operation of the travel plan generating device 100 when generating a travel plan. In step S701 of Fig. 7, the travel plan generating unit 104 receives input data including point information and vehicle information from the input unit 102, and inputs the input data to the RNN encoder 202. In step S702, initialization is performed for the output step and mask information. For example, the output step t is set to 1, and the contents of the mask information are erased. The mask information includes point mask information and vehicle mask information.
[0052] In step S703, the travel plan generating unit 104 selects any one of the multiple locations and any one of the multiple vehicles by using the RNN and referring to the mask information. For example, the travel plan generating unit 104 inputs the location information and vehicle information after the processing of the output step t-1 is completed and information related to the location and vehicle selected in the output step t-1 into the RNN, and obtains the visit probability of the location and the use probability of the vehicle output from the RNN. The travel plan generating unit 104 sets the visit probability of the location specified according to the location mask information to zero, and sets the use probability of the vehicle specified according to the vehicle mask information to zero. Then, the travel plan generating unit 104 selects the location with the highest visit probability and the vehicle with the highest use probability.
[0053] In step S704, the travel plan generating unit 104 adds the selected point to the route of the selected vehicle. Furthermore, the travel plan generating unit 104 generates point information and vehicle information for the next output step. In step S705, the travel plan generating unit 104 updates the mask information. For example, the travel plan generating unit 104 determines a point where the baggage requirement amount is zero as an unselectable point. The travel plan generating unit 104 determines a vehicle where the loading capacity is zero as an unselectable vehicle.
[0054] In the problem example shown in FIG. 4, it is assumed that the travel plan generating unit 104 selects a location x1 and a vehicle z1. In this case, the travel plan generating unit 104 adds the location x1 to the route of the vehicle z1. The luggage requirement amount of the location x1 is "8", and the loading capacity of the vehicle z1 is "10". Therefore, the vehicle z1 can load all the luggage to be delivered to the location x1. The travel plan generating unit 104 changes the luggage requirement amount of the location x1 to zero, changes the position of the vehicle z1 to the coordinates (0.1, 0.1), and changes the loading capacity of the vehicle z1 to 2. In response to the luggage requirement amount of the location x1 becoming zero, the travel plan generating unit 104 determines the location x1 as an unselectable location, and adds information indicating that the location x1 is an unselectable location to the location mask information.
[0055] In step S706, the traveling plan generating unit 104 determines whether the luggage request amount at all points is zero. If the luggage request amount at any point is not zero (step S706; No), the process proceeds to step S708.
[0056] In step S708, the travel plan generating unit 104 determines whether the loading capacity of all vehicles is zero. If the loading capacity of all vehicles is zero (step S708; Yes), the process proceeds to step S709. The process proceeding to step S709 means that it is not possible to deliver all packages using M vehicles. In step S709, the travel plan output unit 106 outputs information indicating an error.
[0057] If the loading capacity of any vehicle is not zero (step S708; No), the process proceeds to step S710. In step S710, the output step t is incremented by 1, and the process returns to step S703. Steps S703 to S705 are repeatedly executed.
[0058] If the baggage request amount at all points is zero (step S706; Yes), the process proceeds to step S707. In step S707, the travel plan output unit 106 outputs the routes of the individual vehicles as a travel plan.
[0059] [effect] In the travel plan generating device 100 according to this embodiment, the travel plan generating unit 104 generates a travel plan by performing a process of selecting any one of the multiple locations and any one of the multiple vehicles for each output step using an RNN configured to output the visit probability of the multiple locations and the use probability of the multiple vehicles when location information about multiple locations and vehicle information about multiple vehicles are input. By using the RNN to select the locations and vehicles, it is possible to obtain a travel plan that is close to optimal.
[0060] FIG. 8 shows an outline of a traveling plan generation process in the traveling plan generation device 100, and FIG. 9 shows an outline of a traveling plan generation process in the technique disclosed in Non-Patent Document 3. As shown in FIG.
[0061] The technology disclosed in Non-Patent Document 3 generates a tour plan according to a rule that vehicles are selected in a predetermined order. For example, in the case where there are three vehicles z1, z2, and z3, vehicle z1 is selected to select a location to be visited by vehicle z1, vehicle z2 is selected to select a location to be visited by vehicle z2, and vehicle z3 is selected to select a location to be visited by vehicle z3. This operation is repeated. In the problem example shown in FIG. 9, there are three locations x1, x2, and x3, and there are two vehicles z1 and z2. At t=1, vehicle z1 is selected, and location x1 is added to the route of vehicle z1. At t=2, vehicle z2 is selected, and location x2 is added to the route of vehicle z2. At t=3, vehicle z1 is selected, and location x3 is added to the route of vehicle z1. Vehicles z1 and z2 are selected alternately, so location x3 is assigned to vehicle z1. However, the total travel distance is smaller when vehicle z2 visits point x3 than when vehicle z1 visits point x3. Therefore, the obtained travel plan is not an optimal solution.
[0062] On the other hand, the travel plan generating device 100 selects vehicles in an arbitrary order. Specifically, the travel plan generating device 100 repeats a process of selecting any one of the points and any one of the vehicles using an RNN. The travel plan generating device 100 can generate a travel plan as shown in FIG. 8. Specifically, at t=1, a point x1 and a vehicle z1 are selected, and the point x1 is added to the route of the vehicle z1. At t=2, a point x2 and a vehicle z2 are selected, and the point x2 is added to the route of the vehicle z2. At t=3, a point x3 and a vehicle z2 are selected, and the point x3 is added to the route of the vehicle z2. As a result, a travel plan is generated in which the vehicle z1 visits the point x1, and the vehicle z2 visits the points x2 and x3. The travel plan generating device 100 can obtain a travel plan with a smaller total travel distance. In this way, the present embodiment eliminates the output limitation caused by the fixed selection order of the vehicles, and makes it possible to obtain a solution closer to the optimum in many cases.
[0063] The location information may include the locations and load requirements of multiple locations, and the vehicle information may include the locations and load capacities of multiple vehicles. Even for complex problem cases that require consideration of the load requirements of locations and the load capacities of vehicles, the use of RNNs can provide a route plan in a short time.
[0064] The RNN encoder 202 generates a location information vector, which is an embedding vector corresponding to the location information, and a vehicle information vector, which is an embedding vector corresponding to the vehicle information, and the RNN decoder 204 generates a hidden vector based on information about the location and the vehicle selected in the previous output step, and the RNN attention mechanism 206 calculates the visit probability of multiple locations and the use probability of multiple vehicles based on the location information vector, the vehicle information vector, and the hidden vector. The attention mechanism 206 generates a first context vector representing a weighted sum of the location information based on the location information vector and the hidden vector, and generates a second context vector representing a weighted sum of the vehicle information based on the vehicle information vector and the hidden vector. Then, the attention mechanism 206 calculates the visit probability of multiple locations based on the location information vector, the first context vector, and the second context vector, and calculates the use probability of multiple vehicles based on the vehicle information vector, the first context vector, and the second context vector. The visit probability of multiple locations and the use probability of multiple vehicles are calculated based on both context vectors. This makes it possible to select locations and vehicles taking into account both the location information and the vehicle information. As a result, it is expected that more appropriate choices will be made.
[0065] The tour plan generation unit 104 selects one location from among the multiple locations excluding the locations specified according to the location mask information based on the visiting probability of the multiple locations output from the RNN, selects one vehicle from among the multiple vehicles excluding the vehicles specified according to the vehicle mask information based on the usage probability of the multiple vehicles output from the RNN, adds the selected location to the route of the selected vehicle, and updates the location mask information and the vehicle mask information based on the result of adding the selected location to the route of the selected vehicle. By performing masking in the selection of locations and vehicles, it is possible to prevent the generation of a route including unnecessary movements, and to obtain a tour plan that is closer to an optimal one.
[0066] [Variations] In the above-described embodiment, a vehicle visits a location. A vehicle is merely one example of a moving object that visits a location. A moving object may be a human being.
[0067] The location information may not include information indicating the baggage requirements of the multiple locations, and the vehicle information may not include information indicating the loading capacities of the multiple vehicles. For example, the location information may include only information indicating the positions of the multiple locations, and the vehicle information may include only information indicating the positions of the multiple vehicles. In this case, a location that has been selected once may be added to the location mask information as a non-selectable location.
[0068] The present invention is not limited to the above-mentioned embodiment, and various modifications can be made in the implementation stage without departing from the gist of the invention. The embodiments may be implemented in appropriate combination, and in that case, the combined effect can be obtained. Furthermore, the above-mentioned embodiment includes various inventions, and various inventions can be extracted by combinations selected from the multiple components disclosed. For example, if the problem can be solved and the effect can be obtained even if some components are deleted from all the components shown in the embodiment, the configuration from which the components are deleted can be extracted as an invention. [Explanation of symbols]
[0069] 100...Travel plan generating device 102...Input section 104...Travel plan generation unit 106…Patient planning output section 108...Learning parameter acquisition unit 112...Learning parameter storage unit 202…Encoder 204...Decoder 206...Attention mechanism 501...Processor 502…RAM 503…Program memory 504...Storage devices 505... Input / Output Interface 600…Learning device 602...Input section 604...Travel plan generation unit 606…Learning Department 608...Learning parameter output unit 612...Learning parameter storage unit
Claims
1. a generation unit that uses a recurrent neural network configured to receive location information about a plurality of locations and mobile object information about a plurality of mobile objects and output a visit probability of the plurality of locations and a usage probability of the plurality of mobile objects, and that generates a tour plan for touring the plurality of locations by the plurality of mobile objects by performing a process of selecting any one of the plurality of locations and any one of the plurality of mobile objects for each output step; an output unit that outputs the travel plan; A tour plan generating device comprising:
2. The recurrent neural network comprises: an encoder that generates a first embedding vector corresponding to the location information and a second embedding vector corresponding to the moving object information; A decoder that generates hidden vectors based on information about the points and moving objects selected in the previous output step; an attention mechanism that calculates a visit probability of the plurality of locations and a usage probability of the plurality of moving objects based on the first embedding vector, the second embedding vector, and the hidden vector; Equipped with The travel plan generating device according to claim 1 .
3. The attention mechanism includes: generating a first context vector representing a weighted sum of the point information based on the first embedding vector and the hidden vector; generating a second context vector representing a weighted sum of the moving object information based on the second embedding vector and the hidden vector; Calculating a visiting probability of the plurality of points based on the first embedding vector, the first context vector, and the second context vector; Calculating a usage probability of the plurality of moving objects based on the second embedding vector, the first context vector, and the second context vector. It is configured as follows: The travel plan generating device according to claim 2 .
4. The process comprises: selecting one location from among the plurality of locations excluding a location specified according to first mask information indicating an unselectable location among the plurality of locations based on the visiting probabilities of the plurality of locations output from the recurrent neural network; selecting one moving body from among the plurality of moving bodies excluding a moving body identified according to second mask information indicating an unselectable moving body among the plurality of moving bodies based on the usage probability of the plurality of moving bodies output from the recurrent neural network; adding the selected point to a route of the selected mobile object; updating the first mask information and the second mask information based on a result of adding the selected point to a route of the selected moving object; Equipped with The travel plan generating device according to any one of claims 1 to 3.
5. The location information includes the locations of the plurality of locations and the baggage request amount, The mobile object information includes positions and loading capacities of the plurality of mobile objects, Updating the first mask information and the second mask information includes: adding the selected point to the first mask information as a non-selectable point when the baggage requirement amount of the selected point becomes zero as a result of adding the selected point to the route of the selected moving body; adding the selected moving body to the second mask information as a non-selectable moving body when the loading capacity of the selected moving body becomes zero as a result of adding the selected point to the route of the selected moving body; Including, The travel plan generating device according to claim 4 .
6. the plurality of moving bodies are a plurality of vehicles, The mobile object information includes positions and loading capacities of the plurality of vehicles; The location information includes the locations of the plurality of locations and the baggage request amount. The travel plan generating device according to any one of claims 1 to 5.
7. A computer-implemented method for generating a travel plan, comprising: a recurrent neural network configured to receive location information about a plurality of locations and mobile object information about a plurality of mobile objects and output a visit probability of the plurality of locations and a usage probability of the plurality of mobile objects, and performing a process of selecting any one of the plurality of locations and any one of the plurality of mobile objects for each output step to generate a tour plan for touring the plurality of locations with the plurality of mobile objects; outputting the itinerary; and A method for generating a tour plan comprising the steps of:
8. A program for causing a computer to function as each unit of the travel schedule generating device according to any one of claims 1 to 6.
Citation Information
Patent Citations
Delivery vehicle path planning method based on neural evolution
CN110110903A
Vehicle path planning method and system based on pointer neural network, and storage medium
CN110147901A
