Local-search based solution of combinatorial optimization problem using annealer-based solver
The integration of an annealer-based solver with a reinforcement learning model efficiently addresses the inefficiencies of traditional methods in solving combinatorial optimization problems, reducing computational time and resources for complex processes.
Patent Information
- Application Number
- JP2024051764
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-31
- Filing Date
- 2024-03-27
- Publication Date
- 2024-10-15
AI Technical Summary
Traditional methods for solving combinatorial optimization problems, such as the traveling salesman problem, require significant time and computing resources, making them inefficient for complex processes like production lines and supply chain management.
A method involving an annealer-based solver combined with a reinforcement learning model is used to select and remove edges from an initial graph, generate a partial solution, and reconnect segments to find an improved solution, utilizing an annealer-based solver to determine a new solution efficiently.
This approach reduces the computational time and resources needed to find optimal solutions for combinatorial optimization problems, providing more efficient routes and improved resource management.
Smart Images

Figure 2024146863000001_ABST
Abstract
Description
[Technical field]
[0001] The embodiments discussed in this disclosure relate to a local search based solution of combinatorial optimization problems using an annealer-based solver. [Background technology]
[0002] Advances in the field of operational research have led to the optimization of various processes such as production lines, raw material transportation, product distribution, supply chain related processes, product sales, etc. With the increasing complexity of these processes, optimizing such processes has become a non-trivial task. For example, each process may have several constraints that may have to be satisfied together during the optimization of the process. One example of an optimization problem is the traveling salesman problem (TSP). The goal of the TSP is to determine the optimal route for a salesman such that he visits each city exactly once and returns to the starting city at the end of the tour. Traditional methods for process optimization may require significant time and computing resources. The TSP is a challenging optimization problem and has many important applications in the transportation industry. Thus, there is a need for efficient techniques for solving optimization problems such as the TSP.
[0003] The subject matter claimed in this disclosure is not limited to embodiments that solve any shortcomings or that operate only in environments such as those described above. Rather, this background is provided only to illustrate one example technology area where some embodiments described in this disclosure may be practiced. Summary of the Invention [Means for solving the problem]
[0004] According to an aspect of an embodiment, the method may include a set of operations that may include receiving a first graph corresponding to an initial solution to a combinatorial optimization problem. The set of operations may further include applying a reinforcement learning (RL) model to the received first graph. The set of operations may further include selecting a set of a predetermined number of edges from the received first graph based on the application of the RL model. The set of operations may further include removing the selected set of edges from the received first graph to generate a second graph based on cutting a set of segments associated with the selected set of edges from the received first graph, the generated second graph may correspond to a partial solution to the combinatorial optimization problem. The set of operations may further include determining a partial traversal of the generated second graph using an annealer-based solver to generate a third graph based on the connection of the set of the predetermined number of disjoint segments in the generated second graph, the generated third graph may correspond to a new solution to the combinatorial optimization problem. The set of operations may further include retraining the RL model based on the generated third graph, where the retrained RL model may be configured to determine an improved solution to the combinatorial optimization problem. The set of operations may further include rendering the determined improved solution to the combinatorial optimization problem on a display device.
[0005] The object and advantages of the embodiments will be realized and achieved at least by the elements, features, and combinations particularly pointed out in the claims.
[0006] The foregoing general description and the following detailed description are provided by way of example and explanation and are not restrictive of the invention as claimed. [Brief description of the drawings]
[0007] Example embodiments will be described and explained with additional specificity and detail through the use of the accompanying drawings.
[0008] [Figure 1] FIG. 1 depicts an example environment relevant to local search-based solving of combinatorial optimization problems using an annealer-based solver.
[0009] [Diagram 2] FIG. 1 is a block diagram illustrating an example electronic device for local search-based solving of combinatorial optimization problems using an annealer-based solver.
[0010] [Diagram 3] FIG. 1 illustrates an example scenario of a first graph.
[0011] [Figure 4] Figure 1 shows an execution pipeline for local search-based solving of combinatorial optimization problems using an annealer-based solver.
[0012] [Diagram 5] FIG. 1 illustrates an example scenario for a RL model, in accordance with at least one embodiment described in this disclosure.
[0013] [Figure 6] FIG. 1 illustrates an example scenario for a Policy Gradient Neural (PGN) model associated with an Actor-Critic Architecture.
[0014] [Figure 7] FIG. 1 illustrates an example scenario for a set of isolated segments.
[0015] [Figure 8] FIG. 1 illustrates an exemplary scenario for reconnecting a set of disconnected segments.
[0016] [Figure 9] FIG. 1 illustrates a flowchart of an exemplary method for local search-based solution of combinatorial optimization problems using an annealer-based solver.
[0017] Each according to at least one embodiment described in this disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0018] Some embodiments described in the present disclosure relate to methods and systems for local search-based solving of combinatorial optimization problems using an annealer-based solver. In the present disclosure, a first graph corresponding to an initial solution of the combinatorial optimization problem may be received. A reinforcement learning (RL) model may be applied to the received first graph. A set of a predetermined number of edges may be selected from the received first graph based on the application of the RL model. The set of selected edges may then be removed from the received first graph to generate a second graph based on cutting a set of segments associated with the set of selected edges from the received first graph. The generated second graph may correspond to a partial solution of the combinatorial optimization problem. Further, a partial tour of the generated second graph may be determined using an annealer-based solver based on the connection of a set of a predetermined number of disjoint segments in the generated second graph to generate a third graph. The generated third graph may correspond to a new solution of the combinatorial optimization problem. The RL model may be retrained based on the generated third graph. The retrained RL model may be configured to determine an improved solution to the combinatorial optimization problem. The determined improved solution to the combinatorial optimization problem may be rendered on a display device.
[0019] According to one or more embodiments of the present disclosure, the field of operational research may be improved by configuring a computing system such that the computing system may be capable of determining a local search based solution to a combinatorial optimization problem using an annealer-based solver. The computing system may receive a first graph corresponding to an initial solution to the combinatorial optimization problem. The computing system may apply a reinforcement learning (RL) model to the received first graph. Based on the application of the RL model, the computing system may select a set of a predetermined number of edges from the received first graph. Further, the computing system may remove the selected set of edges from the received first graph to generate a second graph based on cutting a set of segments associated with the selected set of edges from the received first graph. The generated second graph may correspond to a partial solution to the combinatorial optimization problem. The computing system may use an annealer-based solver to determine a partial tour of the generated second graph based on the connection of a set of a predetermined number of disjoint segments in the generated second graph to generate a third graph. The generated third graph may correspond to a new solution to the combinatorial optimization problem. The computing system may retrain the RL model based on the generated third graph. The retrained RL model may be configured to determine an improved solution to the combinatorial optimization problem. Further, the computing system may render the determined improved solution to the combinatorial optimization problem on a display device.
[0020] It can be appreciated that optimizing processes such as production lines, raw material transportation, product distribution, supply chain related processes, product sales, etc. is a non-trivial task. An example of an optimization problem can be the Traveling Salesman Problem (TSP). The goal of the TSP can be to determine an optimal route for a salesman such that he or she can visit each city exactly once and return to the starting city at the end of the tour. Traditional methods for process optimization can require significant time and computing resources. The TSP is a challenging optimization problem that has many important applications in the transportation industry.
[0021] For example, the TSP may have applications in the transportation industry for designing efficient routes for vehicles. The TSP may be an NP-hard problem. Thus, various approximation algorithms and heuristics may be used to solve the TSP. For example, heuristics may be used to search a neighborhood of the TSP solution space at each iteration. Specialized hardware, such as a quantum computer or a quantum-inspired solver, may be able to identify the best solution in a given neighborhood. However, the process of identifying the neighborhood of the TSP solution space that may be explored may itself be nontrivial.
[0022] The present disclosure may provide a method for identifying a neighborhood of a combinatorial optimization problem that can be solved by a quantum computer and a quantum-inspired solver. To do so, an electronic device (e.g., a computing system) of the present disclosure may apply a reinforcement learning (RL) model to a received first graph corresponding to an initial solution to the combinatorial optimization problem. The electronic device may also select a set of a predetermined number of edges and remove the selected set of edges from the received first graph to generate a second graph. An annealer-based solver may then be used to determine a partial cycle of the generated second graph and generate a third graph, where the third graph may be generated by connecting the predetermined number of sets of disjoint segments in the generated second graph. The RL model may then be retrained to determine an improved solution to the combinatorial optimization problem.
[0023] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described with reference to the accompanying drawings.
[0024] FIG. 1 is a diagram depicting an example environment associated with local search-based solving of combinatorial optimization problems using an annealer-based solver, according to at least one embodiment described in this disclosure. With reference to FIG. 1, an environment 100 is shown. The environment 100 may include an electronic device 102, a server 104, a database 106, a communication network 108, and a first graph 110. The devices hosting the electronic device 102, the server 104, and the database 106 may be communicatively coupled to each other via the communication network 108. The electronic device 102 may include a reinforcement learning (RL) model 102A and an annealer-based solver 102B. Further shown in FIG. 1 is a user 112 that may be associated with or may operate the electronic device 102.
[0025] The electronic device 102 may include suitable logic, circuitry, and interfaces that may be configured to determine a local search based solution to the combinatorial optimization problem using an annealer-based solver, e.g., annealer-based solver 102B. The electronic device 102 may be further configured to receive a first graph 110 corresponding to an initial solution to the combinatorial optimization problem. The electronic device 102 may be further configured to apply the RL model 102A to the received first graph 110. The electronic device 102 may be further configured to select a set of a predetermined number of edges from the received first graph 110 based on the application of the RL model 112A. Examples of the electronic device 102 may include, but are not limited to, a computing device, a hardware-based annealer device, a digital annealer device, a quantum-based or quantum-inspired annealer device, a smartphone, a mobile phone, a gaming device, a mainframe machine, a server, a computer workstation, and / or a consumer electronics (CE) device.
[0026] The RL model 102A may be a model that may learn using feedback-based machine learning methods. The RL model 102A may include an agent that may execute actions. The agent may learn a policy based on the results of the executed actions. A reward-based system may be used to train the RL model 102A and may reward desired behavior and penalize undesired behavior. In one embodiment, the RL model 102A may be a neural network.
[0027] A neural network may be a computational network or a system of artificial neurons arranged as nodes in layers. The layers of a neural network may include an input layer, one or more hidden layers, and an output layer. Each layer of the layers may include one or more nodes (or artificial neurons, for example, represented by circles). The outputs of all nodes in the input layer may be coupled to at least one node in the hidden layer. Similarly, the inputs of each hidden layer may be coupled to the outputs of at least one node in other layers of the neural network. The outputs of each hidden layer may be coupled to the inputs of at least one node in other layers of the neural network. A node in a final layer may receive inputs from at least one hidden layer and output a result. The number of layers and the number of nodes in each layer may be determined from hyperparameters of the neural network. Such hyperparameters may be set before, during, or after training the neural network on a training dataset.
[0028] Each node of a neural network may correspond to a mathematical function (e.g., a sigmoid function or a rectified linear unit) having a set of parameters that can be adjusted during training of the network. The set of parameters may include, for example, weight parameters, regularization parameters, etc. Each node may use the mathematical function to calculate an output based on one or more inputs from nodes in other layers (e.g., previous layers) of the neural network. All or some of the nodes of a neural network may correspond to the same mathematical function, which may be the same or different.
[0029] In training a neural network, one or more parameters of each node of the neural network may be updated based on whether the output of the final layer for a given input (from the training dataset) matches the correct result based on a loss function for the neural network. The above process may be repeated for the same or different inputs until a minimum of the loss function is achieved and the training error is minimized. Several methods for training are known in the art, e.g., gradient descent, stochastic gradient descent, batch gradient descent, gradient boosting, metaheuristics, etc.
[0030] A neural network may include electronic data that may be implemented, for example, as a software component of an application executable on the electronic device 102. A neural network may rely on libraries, external scripts, or other logic / instructions for execution by a processing device, such as a processor. A neural network may include code and routines configured to enable a computing device, such as a processor, to perform one or more operations. Additionally or alternatively, a neural network may be implemented using hardware, including a processor, a microprocessor (e.g., for performing or controlling the execution of one or more operations), a field programmable gate array (FPGA), or an application specific integrated circuit (ASIC). Alternatively, in some embodiments, a neural network may be implemented using a combination of hardware and software.
[0031] In one embodiment, the RL model 102A may include a graph convolutional network (GCN) model, which may be a variant of a convolutional neural network model that may be used for tasks related to graph structured data. The GCN model may be trained based on semi-supervised based learning techniques on the graph structured data, where the GCN model may perform convolution operations on neighboring nodes related to the graph structured data. The GCN model may determine a topological structure associated with an input graph of the GCN model. In one embodiment, the GCN model may be a neural network similar to the neural network of the RL model 102A. The functionality of the neural network of the GCN model may be the same as the functionality of the neural network of the RL model 102A as described. Thus, a description of the neural network of the GCN model is omitted from this disclosure for brevity.
[0032] In one embodiment, the RL model 102A may include a recurrent neural network (RNN), which may be a neural network model that may operate on sequential data, such as time series data. In the RNN model, past outputs of the RNN model may be fed back along with the current input. Thus, the RNN model may store information associated with previous inputs, such as a previous input graph. In one embodiment, the RNN model may correspond to a Long Short-Term Memory (LSTM) model configured to determine a node ordering associated with the input graph. In one embodiment, the RNN may be a neural network similar to the neural network of the RL model 102A. The functionality of the RNN neural network may be the same as the functionality of the neural network of the RL model 102A described above. Thus, a description of the RNN neural network is omitted from this disclosure for brevity.
[0033] The annealer-based solver 102B may be a specialized hardware, e.g., quantum or quantum-inspired hardware, that may be useful for solving optimization problems. In one or more embodiments of the present disclosure, the annealer-based solver 102B may be implemented as a generalized quantum computing device. In such an implementation, the generalized quantum computing device may implement a search or metaheuristic algorithm, such as simulated annealing or quantum annealing, at the application layer using a specialized optimization solving software application (e.g., using a Quadratic Unconstrained Binary Optimization (QUBO) or solver) to search for a solution to an optimal problem (e.g., a VRP) from a discrete solution space.
[0034] A generalized quantum computing device may be different from a digital bit-based computing device, such as a digital device based on transistor-based digital circuits. A generalized quantum computing device may include one or more quantum gates that use quantum bits (hereafter referred to as "qubits") to perform calculations for different information processing applications, such as quantum annealing calculations to solve combinatorial optimization problems. In general, a quantum bit can represent a "0", a "1", or a superposition of both "0" and "1". In most cases, a generalized quantum computing device may require a carefully controlled cryogenic environment to function properly. A generalized quantum computing device uses some properties found in quantum mechanical systems, such as quantum fluctuations, quantum superposition of its eigenstates, quantum tunneling, and quantum entanglement. These properties may help a generalized quantum computing device to perform calculations to solve certain mathematical problems (e.g., QUBO functions) that are computationally intractable by classical computing devices. Examples of generalized quantum computing devices may include, but are not limited to, silicon-based nuclear spin quantum computers, trapped-ion quantum computers, cavity quantum electrodynamics (QED) computers, nuclear spin-based quantum computers, quantum computers based on electron spin in quantum dots, superconducting quantum computers using superconducting loops and Josephson junctions, and nuclear magnetic resonance quantum computers.
[0035] In some other embodiments, the annealer-based solver 102B may be a quantum annealing computer that may be specifically designed and hardware / software optimized to implement search or metaheuristic algorithms such as simulated annealing or quantum annealing. Like generalized quantum computing devices, quantum annealing computers may also use qubits and may require a carefully controlled cryogenic environment to function properly.
[0036] In some other embodiments, the annealer-based solver 102B may correspond to a digital quantum computing processor for solving user-end combinatorial optimization problems, which may be submitted in the form of a QUBO formulation. More specifically, the annealer-based solver 102B may be a digital annealer, which may be based on a semiconductor-based architecture. The digital annealer may be designed to model the functionality of a quantum annealing computer on digital circuits. The digital annealer may operate at room temperature and may not require a cryogenic environment to function. The digital annealer may also have a particular form factor that may enable it to fit on a circuit board that may be small enough to be inserted into a computing device or a rack of a computing infrastructure, such as a data center.
[0037] In some other embodiments, the annealer-based solver 102B may include a processor for executing software instructions associated with one or more search and / or metaheuristic algorithms, such as simulated annealing or quantum annealing. Examples of processor implementations may include, but are not limited to, reduced instruction set computing (RISC) processors, application specific integrated circuit (ASIC) processors, complex instruction set computing (CISC) processors, graphical processing units (GPUs), co-processors, and / or combinations thereof.
[0038] The server 104 may include suitable logic, circuitry, and interfaces, and / or code that may be configured to remove a selected set of edges from the received first graph 110 to generate a second graph based on cutting a set of segments associated with the selected set of edges from the received first graph 110. Here, the generated second graph may correspond to a partial solution of the combinatorial optimization problem. The server 104 may be further configured to determine a partial traversal of the generated second graph using the annealer-based solver 102B to generate a third graph based on the predetermined number of connections of the set of disjoint segments in the generated second graph. Here, the generated third graph may correspond to a new solution of the combinatorial optimization problem. The server 104 may be further configured to retrain the RL model 102A based on the generated third graph. The retrained RL model may be configured to determine an improved solution to the combinatorial optimization problem. The server 104 may be further configured to render the determined improved solution of the combinatorial optimization problem on a display device. The server 104 may be implemented as a cloud server and may perform operations through web applications, cloud applications, HTTP requests, repository operations, file transfers, etc. Other example implementations of the server 104 may include, but are not limited to, a database server, a file server, a web server, a media server, an application server, a mainframe server, or a cloud computing server.
[0039] In at least one embodiment, the server 104 may be implemented as multiple distributed cloud-based resources through the use of a number of techniques that may be known to one of skill in the art. Those skilled in the art will appreciate that the scope of the present disclosure may not be limited to the implementation of the server 104 and the electronic device 102 as two separate entities. In certain embodiments, the functionality of the server 104 may be incorporated in its entirety or at least in part into the electronic device 102 without departing from the scope of the present disclosure.
[0040] The database 106 may include appropriate logic, interfaces, and / or code that may be configured to store multiple graphs, such as the first graph 110. The database 106 may be derived from data from a relational or non-relational database, or a set of comma separated value (csv) files in traditional or big data storage. The database 106 may be stored or cached on a device, such as a server (e.g., server 104) or the electronic device 102. The device that stores the database 106 may be configured to receive a query for the first graph 110 from the electronic device 102. In response, the database 106 device may be configured to retrieve and provide the queried first graph 110 to the electronic device 102 based on the received query. In some embodiments, the database 106 may be hosted on multiple servers stored in the same or different locations. The operations of the database 106 may be performed using hardware, including a processor, a microprocessor (e.g., for performing or controlling the execution of one or more operations), a field programmable gate array (FPGA), or an application specific integrated circuit (ASIC). In some other cases, the database 106 may be implemented using software.
[0041] The communication network 108 may include a communication medium used by the devices hosting the electronic device 102, the server 104, and the database 106. The communication network 108 may be one of a wired connection or a wireless connection. Examples of the communication network 108 may include, but are not limited to, the Internet, a cloud network, a cellular or wireless mobile network (such as Long Term Evolution and 5G New Radio), a Wireless Fidelity (Wi-Fi) network, a satellite network (e.g., a network of a set of low-earth orbit satellites), a personal area network (PAN), a local area network (LAN), or a metropolitan area network (MAN). The various devices in the environment 100 may be configured to connect to the communication network 108 according to various wired and wireless communication protocols. Examples of such wired and wireless communication protocols may include, but are not limited to, Transmission Control Protocol and Internet Protocol (TCP / IP), User Datagram Protocol (UDP), Hypertext Transfer Protocol (HTTP), File Transfer Protocol (FTP), Zig Bee, EDGE, IEEE 802.11, Light Fidelity (Li-Fi), 802.16, IEEE 802.11s, IEEE 802.11g, multi-hop communications, wireless access points (APs), device-to-device communications, cellular communications protocols, Bluetooth (BT) communications protocols.
[0042] In operation, the electronic device 102 may receive a first graph 110 corresponding to an initial solution to a combinatorial optimization problem. The combinatorial optimization problem may correspond to at least one of an assignment problem, a closure problem, a constraint satisfaction problem, a board problem, a dominating set problem, an integer programming problem, a knapsack problem, a least significant variables problem in a linear system, a minimum spanning tree problem, a nurse scheduling problem, a set cover problem, a job shop scheduling problem, a traveling salesman problem (TSP), a vehicle rescheduling problem, a vehicle routing problem, a weapon target assignment problem, a bin packing problem, or a talent scheduling problem. For example, if the combinatorial optimization problem corresponds to a TSP, the first graph 110 may be a closed route such that each node may be visited exactly once. Details regarding the first graph are provided further, for example, in FIG. 3.
[0043] The electronic device 102 may apply the RL model 102A to the received first graph 110. It may be appreciated that the RL model 102A may be a model capable of learning a policy using a feedback-based learning method. More details regarding the RL model are provided further in, for example, FIG.
[0044] Based on the application of the RL model 102A, the electronic device 102 may select a set of a predetermined number of edges from the received first graph 110. Here, the predetermined number of sets of edges may be a total number of edges that may be swapped with the new edge. In one example, a "2-opt" heuristic algorithm may be used to select the set of the predetermined number of edges. That is, here, two edges of the received first graph 110 may be selected as the set of the predetermined number of edges. Details regarding the set of the predetermined number of edges are further provided, for example, in FIG. 4.
[0045] Once the set of the predetermined number of edges is selected, the electronic device 102 may remove the selected set of edges from the received first graph 110 to generate a second graph. The second graph may be generated based on cutting a set of segments associated with the selected set of edges from the received first graph 110. The generated second graph may correspond to a partial solution of the combinatorial optimization problem. For example, if a 2-opt heuristic algorithm is used to select the set of the predetermined number of edges, two edges may be removed from the received first graph 110 to generate the second graph. Details regarding the second graph are provided further, for example, in FIG. 4.
[0046] Once the second graph is generated, the electronic device 102 may use an annealer-based solver 102B to determine a partial tour of the generated second graph to generate a third graph. The third graph may be generated based on the predetermined number of connections of a set of disjoint segments in the generated second graph. The generated third graph may correspond to a new solution to the combinatorial optimization problem. To generate the third graph, the set of disjoint segments may be connected. For example, if a 2-opt heuristic algorithm is used, the two edges may be removed from the received first graph 110 to generate the second graph. Thus, the generated second graph may include two disjoint segments. The two disjoint segments may be reconnected to generate the third graph. Details regarding the third graph are provided further, for example, in FIG. 4.
[0047] Upon generating the third graph, the electronic device 102 may be configured to retrain the RL model 102A based on the generated third graph. Furthermore, the retrained RL model 102A may be configured to determine an improved solution to the combinatorial optimization problem. The RL model 102A may be retrained such that the RL model 102A may learn from its own behavior. The retrained RL model 102A may thus determine an improved solution, which may be an optimal solution to the combinatorial optimization problem. Details regarding the retraining of the RL model 102A are further provided, for example, in FIG. 4.
[0048] The electronic device 102 may render the determined improved solution of the combinatorial optimization problem on a display device. The rendering of the determined improved solution may allow a salesperson, such as the user 112, to follow a route according to the determined improved solution. The improved solution may be an optimal solution of the combinatorial optimization problem (e.g., the TSP), which may be obtained using less time and computing resources compared to traditional methods for solving such optimization problems.
[0049] Modifications, additions, or omissions may be made to FIG. 1 without departing from the scope of the present disclosure. For example, environment 100 may include more or fewer elements than those shown and described in this disclosure. For example, in some embodiments, environment 100 may include electronic device 102 but not database 106. Additionally, in some embodiments, the respective functionality of database 106 and server 104 may be incorporated into electronic device 102 without departing from the scope of the present disclosure.
[0050] FIG. 2 is a block diagram illustrating an example electronic device for local search-based solving of combinatorial optimization problems using an annealer-based solver, according to at least one embodiment described in this disclosure. FIG. 2 is described with reference to elements of FIG. 1. Referring to FIG. 2, a block diagram 200 of a system 202 including an electronic device 102 is shown. The electronic device 102 may include an RL model 102A, an annealer-based solver 102B, a processor 204, a memory 206, input / output (I / O) devices 208 (including a display device 208A), and a network interface 210.
[0051] The processor 204 may include appropriate logic, circuits, and interfaces that may be configured to execute a set of instructions stored in the memory 206. The processor 204 may be configured to execute program instructions associated with different operations performed by the electronic device 102. For example, some of the operations may include receiving a first graph 110 corresponding to an initial solution to a combinatorial optimization problem. The processor 204 may be configured to apply the RL model 102A to the received first graph 110. The processor 204 may be configured to select a set of a predetermined number of edges from the received first graph 110 based on the application of the RL model 102A. The processor 204 may be configured to remove the selected set of edges from the received first graph 110 to generate a second graph based on cutting a set of segments associated with the selected set of edges from the received first graph 110. Here, the generated second graph may correspond to a partial solution to the combinatorial optimization problem. The processor 204 may be configured to determine a partial cycle of the generated second graph using the annealer-based solver 102B to generate a third graph based on a predetermined number of connections of a set of disjoint segments in the generated second graph, where the generated third graph may correspond to a new solution to the combinatorial optimization problem. The processor 204 may be configured to retrain the RL model 102A based on the generated third graph, and the retrained RL model 102A may be configured to determine an improved solution to the combinatorial optimization problem. The processor 204 may be configured to render the determined improved solution to the combinatorial optimization problem on the display device 208A. The processor 204 may be implemented based on several processor technologies known in the art.Examples of processor technologies may include, but are not limited to, a central processing unit (CPU), an X86-based processor, a reduced instruction set computing (RISC) processor, an application specific integrated circuit (ASIC) processor, a complex instruction set computing (CISC) processor, a graphical processing unit (GPU), a co-processor, or combinations thereof.
[0052] 2 as a single processor, the processor 204 may include any number of processors configured to individually or collectively perform or direct the performance of any number of operations of the electronic device 102, as described in this disclosure. In addition, one or more of the processors may reside on one or more different electronic devices, such as different servers. In some embodiments, the processor 204 may be configured to interpret and / or execute program instructions and / or process data stored in the memory 206. After the program instructions are loaded into the memory 206, the processor 204 may execute the program instructions.
[0053] The memory 206 may include appropriate logic, circuits, and interfaces that may be configured to store one or more instructions executed by the processor 204. The one or more instructions stored in the memory 206 may be executed by the processor 204 to perform different operations of the processor 204 (and the electronic device 102). The memory 206 may be configured to store multiple graphs, such as the first graph 110, the generated second graph, and the generated third graph. Furthermore, the memory 206 may be configured to store intermediate or partial solutions and improved solutions of the combinatorial optimization problem. Examples of implementations of the memory 206 may include, but are not limited to, a random access memory (RAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a hard disk drive (HDD), a solid-state drive (SSD), a CPU cache, and / or a secure digital (SD) card.
[0054] The I / O device 208 may include appropriate logic, circuitry, and interfaces that may be configured to receive input from the user 112 and provide output based on the received input. For example, the I / O device 208 may receive a request for the first graph 110 as user input from the user 112. Further, the I / O device 208 may render the determined improved solution of the combinatorial optimization problem on the display device 208A. The I / O device 208, which may include a variety of input and output devices, may be configured to communicate with the processor 204. Examples of the I / O device 208 may include, but are not limited to, a touch screen, a keyboard, a mouse, a joystick, a microphone, a display device (e.g., the display device 208A), and a speaker.
[0055] The display device 208A may include appropriate logic, circuitry, and interfaces that may be configured to display the determined improved solution of the combinatorial optimization problem. The display device 208A may be a touch screen that may enable a user to provide user input via the display device 208A. The touch screen may be at least one of a resistive touch screen, a capacitive touch screen, or a thermal touch screen. The display device 208A may be realized through a number of known technologies, such as, but not limited to, at least one of a liquid crystal display (LCD) display, a light emitting diode (LED) display, a plasma display, or an organic LED (OLED) display technology, or other display devices. According to an embodiment, the display device 208A may refer to a display screen of a head mounted device (HMD), a smart glasses device, a see-through display, a projection-based display, an electrochromic display, or a transparent display.
[0056] The network interface 210 may include appropriate logic, circuits, and interfaces that may be configured to facilitate communication between the processor 204, the server 104, and the device hosting the database 106 (and / or any other devices in the environment 100) over the communications network 108. The network interface 210 may be implemented using various known technologies to support wired or wireless communication of the electronic device 102 with the communications network 108. The network interface 210 may include, but is not limited to, an antenna, a radio frequency (RF) transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a coder-decoder (codec) chipset, a subscriber identity module (SIM card) card, or a local buffer circuit. The network interface 210 may be configured to communicate over wireless communication with networks such as the Internet, an intranet, or a wireless network, e.g., a cellular network, a wireless local area network (LAN), a satellite network, and a metropolitan area network (MAN). The wireless communication may be configured to use one or more of a number of communication standards, protocols, and technologies, such as Global System for Mobile Communications (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (W-CDMA), Long Term Evolution (LTE), Fifth Generation (5G) New Radio (NR), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Bluetooth, Wireless Fidelity (Wi-Fi) (such as IEEE 802.11a, IEEE 802.11b, IEEE 802.11g, or IEEE 802.11n), Voice over Internet Protocol (VoIP), Light Fidelity (Li-Fi), Worldwide Interoperability for Microwave Access (Wi-MAX), protocols for email, instant messaging, and short message service (SMS), etc.
[0057] Modifications, additions, or omissions may be made to the example electronic device 102 without departing from the scope of the present disclosure. For example, in some embodiments, the example electronic device 102 may include any number of other components that may not be explicitly shown or described for the sake of brevity.
[0058] FIG. 3 illustrates an example scenario for a first graph, according to at least one embodiment described in this disclosure. FIG. 3 is described in conjunction with elements of FIG. 1 and FIG. 2. With reference to FIG. 3, an example scenario 300 is illustrated. The example scenario 300 may include a first graph 302. The first graph 302 may include a set of nodes and a plurality of edges. The set of nodes may include node 304A, node 304B, node 304C, node 304D, node 304E, node 304F, node 304G, node 304H, node 304I, and node 304J. The plurality of edges may include edge 306A, edge 306B, edge 306C, edge 306D, edge 306E, edge 306F, edge 306G, edge 306H, edge 306I, and edge 306J.
[0059] With reference to FIG. 3, the first graph 302 may correspond to an initial solution to a combinatorial optimization problem, such as the traveling salesman problem. Each node of the first graph 302 may be associated with a geographic location. For example, node 304A may be associated with geographic location "A", node 304B may be associated with geographic location "B", node 304C may be associated with geographic location "C", etc. Each edge may be a connection between a pair of nodes. For example, edge 306A may connect node 304A and node 304C, edge 306B may connect node 304B and node 304D, edge 306C may connect node 304B and node 304C, and so on. In an embodiment, each edge may be associated with a weight, which may correspond to the distance of a path between the pair of nodes that the corresponding edge connects. In one example, the first graph 302 may be associated with the traveling salesman problem, where a salesperson may traverse along the edges to cover each geographic location. A salesperson may start a journey from a geographic location associated with node 304A and may return to the geographic location associated with node 304A after covering the geographic locations associated with nodes 304B-304J exactly once in the journey. In one example, the sequence in which a salesperson may visit the geographic locations associated with the set of nodes may be 304A, 304C, 304B, 304D, 304E, 304F, 304I, 306J, 306H, and 306G, respectively, along edges 306A, 306C, 306B, 306D, 306E, 306F, 306I, 306J, 306H, and 306G.
[0060] It should be noted that scenario 300 in FIG. 3 is for illustrative purposes and should not be construed as limiting the scope of the present disclosure.
[0061] FIG. 4 illustrates an execution pipeline for local search-based solving of combinatorial optimization problems using an annealer-based solver, according to an embodiment of the present disclosure. FIG. 4 is described in conjunction with elements of FIG. 1, FIG. 2, and FIG. 3. With reference to FIG. 4, an execution pipeline 400 is shown. The exemplary execution pipeline 400 may include a set of operations that may be performed by one or more components of FIG. 1, such as the electronic device 102. The operations may include a first graph receiving operation 402, an RL model applying and retraining operation 404, and an improved solution rendering operation 406. The set of operations may be performed by the electronic device 102 for local search-based solving of combinatorial optimization problems using an annealer-based solver, such as the annealer-based solver 102B of FIG. 1, as described herein.
[0062] The execution pipeline 400 may further include a second graph 408 and a third graph 410. The second graph 408 may include a set of nodes and a plurality of edges. The set of nodes of the second graph 408 may include node 304A, node 304B, node 304C, node 304D, node 304E, node 304F, node 304G, node 304H, node 304I, and node 304J. The plurality of edges of the second graph 408 may include edge 306C, edge 306E, edge 306F, edge 306H, edge 306I, and edge 306J. The third graph 410 may include a set of nodes such as node 304A, node 304B, node 304C, node 304D, node 304E, node 304F, node 304G, node 304H, node 304I, and node 304J. Furthermore, the third graph 410 may include multiple edges, such as edge 410A, edge 410B, edge 410C, edge 410D, edge 306C, edge 306E, edge 306F, edge 306H, edge 306I, and edge 306J.
[0063] At 402, an operation of receiving a first graph may be performed. In one embodiment, the processor 204 may be configured to receive a first graph 302 corresponding to an initial solution to a combinatorial optimization problem. The first graph 302 may correspond to a route such that each node of the first graph 302 may be visited or traversed exactly once before traversing back to the start node at the end of the route. In one example, the processor 204 may receive a set of nodes of the first graph 302 and an order for traversing the set of nodes of the first graph 302 as an initial solution to a combinatorial problem such as the TSP. Thus, the initial solution may be represented in the form of the first graph 302. Details regarding the first graph are further provided, for example, in FIG. 3.
[0064] In one embodiment, the combinatorial optimization problem may correspond to at least one of, but is not limited to, an assignment problem, a closure problem, a constraint satisfaction problem, a board-cutting problem, a dominating set problem, an integer programming problem, a knapsack problem, a least significant variables problem in linear systems, a minimum spanning tree problem, a nurse scheduling problem, a set cover problem, a job shop scheduling problem, a traveling salesman problem, a vehicle rescheduling problem, a vehicle routing problem, a weapon target assignment problem, a bin packing problem, or a talent scheduling problem.
[0065] The allocation problem may be a transportation problem. The objective of the allocation problem may be to allocate a number of tasks to an equal number of agents such that the total cost of the allocation is minimized. The closure problem may be a problem of determining the maximum or minimum weight closure of a weighted directed graph, where the closure may be a weighted directed graph such that no edges go beyond the set of nodes associated with the weighted directed graph. The constraint satisfaction problem may be a problem for a set of entities such that the state of each entity may satisfy a set of constraints associated with the set of entities. The board cutting problem may be a problem of dividing a material into pieces of a specified size such that dividing the material into pieces creates the least amount of waste. The integer programming problem may be an optimization problem in which at least one variable associated with the integer programming problem may be constrained to be an integer. The knapsack problem may be a problem of determining a group of goods such that the total weight of the goods is within constraints and the total value of the goods is maximized. The least significant variables problem in a linear system may determine a solution such that the number of variables associated with a linear system problem that can take on non-zero values may be minimized. A minimum spanning tree problem may determine a tree such that the weight of the edges associated with the tree can be minimized. A nurse scheduling problem may assign shifts and rooms at a health center to a number of nurses such that constraints associated with the nurse scheduling problem can be satisfied. A set cover problem may determine a minimum collection of sets from a number of sets such that a union of the collection of sets can correspond to a universal set. Here, the union of the multiple sets may be a universal set. A job shop scheduling problem may be a problem of assigning a number of jobs with different processing times to a number of machines with different processing capabilities. A traveling salesman problem may find the shortest tour through a set of cities such that each city is visited exactly once and the salesperson can return to the starting city. A vehicle routing problem (VRP) problem may be a problem of assigning a set of routes to a set of vehicles such that the total cost associated with running the set of vehicles on the set of routes can be minimized.A weapon target allocation problem may assign a set of weapons to a set of targets such that destruction caused by an enemy may be minimized. A bin packing problem may pack a set of items of varying sizes into a set of bins of varying such sizes such that a number of bins used to pack the set of items is minimized. A talent scheduling problem may determine a schedule for a set of scenes associated with a movie such that a total cost of salaries to be paid to actors is minimized. Based on the combinatorial optimization problem, a first graph 302 corresponding to an initial solution to the combinatorial optimization problem may be received.
[0066] At 404, an operation of applying and retraining the RL model 102A may be performed. In an embodiment, the processor 204 may be configured to apply the RL model 102A to the received first graph 302A. The RL model 102A may be an ML model that may learn based on a feedback-based learning method. In this specification, an agent associated with the RL model 102A may perform actions and learn based on the consequences of the performed actions. A reward-based system may be used for training the RL model 102A, and desired behaviors may be rewarded and undesirable behaviors may be penalized. In one example, the desired behavior may be a reduction in the length of a tour. The first graph 302 may be applied to the RL model 102A. More details regarding RL models are provided further, for example, in FIG. 5.
[0067] Based on the application of the RL model 102A, the processor 204 may be configured to select a set of a predetermined number of edges from the received first graph 302. Here, the set of a predetermined number of edges may be a number of edges that may be swapped with new edges to reduce the length of a tour associated with the received first graph 302. In one embodiment, a “K-opt” heuristic algorithm may be used to select the set of a predetermined number of edges. Here, the predetermined number of the set of edges may be “K”. For example, the predetermined number of the set of edges may be “4”. Thus, “4” edges of the first graph 302 may be selected. It is noted that the “K-opt” heuristic algorithm may be represented by a permutation of the set of disjoint segments and a series of inversion movements on a subset of the set of disjoint segments. As an example, referring to FIG. 3 and FIG. 4, edges 306A, 306B, 306D, and 306G may be selected as the set of edges from the first graph 302.
[0068] Once the set of the predetermined number of edges is selected, the processor 204 may be configured to remove the set of selected edges from the received first graph 302 to generate a second graph 408. The second graph 408 may be generated based on cutting a set of segments associated with the set of selected edges from the received first graph 302A. The generated second graph 408 may correspond to a partial solution of the combinatorial optimization problem. As an example, referring to FIG. 3 and FIG. 4, edges 306A, 306B, 306D, and 306G may be selected as the set of edges. It may be observed from FIG. 3 that edge 306A may connect node 304A and node 304C, edge 306B may connect node 304B and node 304D, edge 306D may connect node 304D and node 304E, and edge 306G may connect node 304A and node 304G. 4, by disconnecting node 304A from node 304C, the segment associated with edge 306A may be disconnected from the first graph 302. Similarly, by disconnecting node 304B from node 304D, the segment associated with edge 306B may be disconnected. By disconnecting node 304D from node 304E, the segment associated with edge 306D may be disconnected. By disconnecting node 304A from node 304G, the segment associated with edge 306G may be disconnected. In this manner, edges 306A, 306B, 306D, and 306G may be removed from the received first graph 302 to generate the second graph 408.
[0069] Once the second graph 408 is generated, the processor 204 may be configured to determine a partial tour of the generated second graph 408 using the annealer-based solver 102B to generate a third graph 410. The third graph 410 may be generated based on the connection of the set of the predetermined number of disjoint segments in the generated second graph 408. The generated third graph 410 may correspond to a new solution to the combinatorial optimization problem. To generate the third graph 410, the set of disjoint segments may be connected. In one embodiment, the set of disjoint segments may be connected to the generated second graph 408 such that the length of the determined partial tour is minimized. For example, referring to FIG. 4, nodes 304C and 304D, nodes 304D and 304G, nodes 304B and 304A, and nodes 304A and 304E of the second graph 408 are disconnected. Thus, the set of disjoint segments may be associated with a cut between node 304C and node 304D, a cut between node 304D and node 304G, a cut between node 304B and node 304A, and a cut between node 304A and node 304E of the second graph 408. To generate the third graph 410, in one example, node 304C and node 408D of the second graph 408 may be connected by edge 410A, node 304D and node 304G of the second graph 408 may be connected by edge 410B, node 304B and node 304A of the second graph 408 may be connected by edge 410C, and node 304A and node 304E of the second graph 408 may be connected by edge 410D. The generated third graph 410 may correspond to a new solution to a combinatorial optimization problem (e.g., TSP) since the generated third graph 410 may be a tour in which each node is visited exactly once, returning to the starting node at the end of the tour. For example, with reference to Figures 3 and 4, the length of the tour associated with the generated third graph 410 may be shorter than the length of the tour associated with the first graph 302.That is, the generated third graph 410 may be a more optimal solution to the combinatorial optimization problem than the received first graph 302.
[0070] Once the third graph 410 is generated, the processor 204 may be configured to retrain the RL model 102A based on the generated third graph 410, and the retrained RL model 102A may be configured to determine an improved solution to the combinatorial optimization problem. The RL model 102A may learn from its own behavior. That is, the RL model 102A may learn based on the generated third graph 410. A reward-based system may be used for retraining the RL model 102A. With reference to FIG. 3 and FIG. 4, the length of a tour associated with the generated third graph 410 may be shorter than the length of a tour associated with the first graph 302. That is, the generated third graph 410 may be a more optimal solution for the combinatorial optimization problem than the received first graph 302. Thus, the generated third graph 410 may be a desired behavior, and the RL model 102A may be rewarded. The retrained RL model 102A may generate an improved solution based on the retraining. The length of the tour associated with the improved solution may be less than the length of the tour associated with the first graph 302 and less than or equal to the length of the tour associated with the generated third graph 410.
[0071] At 406, an operation of rendering an improved solution may be performed. The processor 204 may be configured to render the determined improved solution of the combinatorial optimization problem on the display device 208A. In one example, the determined improved solution may be rendered on a user device associated with the sales representative. The sales representative may then follow the path indicated by the improved solution, covering each geographic location associated with multiple nodes of the improved solution exactly once with the shortest length (i.e., distance). The sales representative may return to the geographic location associated with the starting node at the end of the itinerary associated with the improved solution.
[0072] Figure 5 illustrates an example scenario for a RL model, according to at least one embodiment described in this disclosure. Figure 5 is described in conjunction with elements from Figures 1, 2, 3, and 4. With reference to Figure 5, an example scenario 500 is illustrated. The example scenario 500 may include a first graph 302, a policy 502, an agent 504, and a policy evaluation block 506.
[0073] In one embodiment, the RL model 102A may correspond to a Markov decision process (MDP). With reference to FIG. 5, the components of an MDP may include a state "S", an action "a", a transition model denoted as "P(s'|s,a)", a reward function "R(s)", and a policy "Π(s)". The MDP may start with an initial state "s0". Each state "s" may be associated with an action "A(s). The transition model "P(s'|s,a)" may be the probability of going from state "s" to state "s'". The MDP may indicate that the probability of going from state "s" to state "s'" depends only on state "s" and is independent of previous states. The action that the agent can take in a given state may depend on the policy "Π(s)".
[0074] 5, in one example, the MDP may be a "2-opt" optimization heuristic, where the predetermined number of sets of edges may be "2". Thus, "2" edges of the first graph 302 may be removed in each iteration of the optimization process. In one embodiment, the RL model 102A may include an agent 504 that may be configured to take an action corresponding to removing the set of edges based on a policy 502 associated with the RL model 102A. The RL model 102A may further include a state machine that may be configured to transition the agent 504 from a first state to a second state based on an evaluation of the policy 502, where each of the first state and the second state may correspond to a solution to the combinatorial optimization problem. In one example, the state
number
number
[0075] Furthermore, for a given action “A”, where “A” may be equal to the tuple “(i,j)”, transitioning the agent 504 from a first state to a second state is a solution.
number
[0076] As mentioned above, a reward-based system may be used to train the RL model 102A. Herein, rewards may be attributed to actions that may improve the current best found solution. The reward associated with an action may be determined according to equation (3): R t =L(S t ')-L(S t+1 ') (3) Here, "R t " may be a reward. "L(S t ') is the solution 'S' obtained at iteration step 't'. t " or "L(S t+1 ') is the solution S' obtained in iteration step t+1. t+1 The RL model 102A may be retrained based on the reward generated according to equation (3).
[0077] The RL model 102A may be executed on an environment, for example, a first graph 302. The first graph 302 may correspond to an initial solution of a combinatorial optimization problem, where the RL model 102A may be executed for "T" time steps. At each time step, multiple episodes of length "T1" less than or equal to "T" may be defined. Once an episode is completed, a new episode may be started from the solution obtained in the previous episode. The length of the episode may be increased after a certain number of epochs "e".
[0078] Thus, the RL model 102A may process and execute on the first graph 302 over “T” time steps to transition the agent 504 from a first state to a second state based on the evaluation of the policy 502. With reference to FIG. 5 , the policy evaluation block 506 may include a set of rewards, e.g., reward “(t-0)”, reward “(t-1)”, reward “(t-2)”, etc. The policy evaluation block 506 may further include an average reward based on averaging the set of rewards. Based on the policy evaluation block 506, the agent 504 may be transitioned from one state (e.g., a first state) to another state (e.g., a second state), where the first state may be a solution at a step and the second state may be a solution at a subsequent step. The solution for each state may be a solution to a combinatorial optimization problem. The objective of the combinatorial optimization problem is to determine an expected return “G t The goal is to minimize the expected return "G t " may be determined according to equation (4).
number
[0079] It should be noted that the scenario 500 of FIG. 5 is merely an example, and such example should not be construed as limiting the scope of the present disclosure.
[0080] Figure 6 illustrates an example scenario of a policy gradient neural (PGN) model associated with an actor-critic architecture, according to at least one embodiment described in this disclosure. Figure 6 will be described in conjunction with elements of Figures 1, 2, 3, 4, and 5. With reference to Figure 6, an example PGN model 600 is shown. The example PGN model 600 may include a current solution (“S”) 602, a best solution (“S′”) 604, an encoder model 606A, an encoder model 606B, a policy decoder 608, a value decoder 610, a graph convolutional network (GCN) model 612A, a graph convolutional network (GCN) model 612B, a recurrent neural network (RNN) model 614A, a recurrent neural network (RNN) model 614B, a linear concatenation block 616A, a linear concatenation block 616B, a max pooling block 618A, an average pooling block 618B, a pointer attention block 620, and a feedforward block 622.
[0081] In one embodiment, the RL model 102A may correspond to a policy gradient neural PGN model 600 associated with an actor-critic architecture. In one embodiment, the PGN model 600 may include an encoder model (e.g., encoder model 606A and / or encoder model 606B) that may be configured to obtain node and cyclic representations from an input graph. The encoder models may include graph convolutional network (GCN) models (e.g., GCN model 612A and GCN model 612B) and recurrent neural network (RNN) models (e.g., RNN model 614A and RNN model 614B). In one embodiment, the input graph may correspond to at least one of a new solution or an improved solution associated with a combinatorial optimization problem.
[0082] 6, the PGN model 600 may include an encoder model 606A and an encoder model 606B. The encoder model 606A may include a GCN model 612A and an RNN model 614A, and the encoder model 606B may include a GCN model 612B and an RNN model 614B. The encoder model 606A may receive an input graph associated with a current solution ("S") 602, and the encoder model 606A may receive an input graph associated with a best solution ("S'") 604. The encoder model 606A may determine an encoded representation for each node of the input graph associated with the current solution ("S") 602. To determine the encoded representation for each node of the input graph associated with the current solution ("S") 602, the encoder model 606A may use the GCN model 612A and the RNN model 614A. The encoder model 606B may determine an encoded representation for each node of the input graph associated with the best solution ("S'") 604 based on application of the GCN model 612B and the RNN model 614B.
[0083] In an embodiment, the GCN model (e.g., GCN model 612A and GCN model 612B) may be configured to determine a topological structure associated with the input graph, and the RNN model (e.g., RNN model 614A and RNN model 614B) may correspond to a long short-term memory (LSTM) model configured to determine a node ordering associated with the input graph. Here, the topographical structure of the input graph may be obtained by representing the input graph in a planar form. Each node of the input graph may be represented in the form of a point, and the edges associated with the input graph may be represented in the form of an arc that may connect pairs of nodes.
[0084] 6, the GCN model 612A may determine a topological structure associated with an input graph that may correspond to a current solution ("S") 602. Similarly, the GCN model 612B may determine a topological structure associated with an input graph that may correspond to a best solution ("S"') 604. In one example, the GCN model 612A may generate node representations, also known as node embeddings, as "z1", "z2", through "z n ". The RNN model 614A may then determine a node ordering associated with the input graph corresponding to the current solution ("S") 602. The RNN model 614 may include two LSTM models that may be used as RNN functions. One RNN function may be associated with a forward LSTM model and another RNN function may be associated with a backward RNN function. The RNN function may be calculated using a hidden vector from a previous node in the traversal and a current node embedding or current node representation. The forward node representation associated with the forward LSTM model may be determined according to equation (5).
number
[0085] A backward node representation associated with the backward LSTM model may be determined according to equation (6).
number
number
[0086] The cyclic representation of the current solution ("S") 602 may be determined according to equation (8).
number
[0087] In one embodiment, the PGN model 600 may include a decoder model including a policy decoder 608 and a value decoder 610. The policy decoder 608 may be configured to sample actions of an agent associated with the RL model 102A and learn a probabilistic policy applicable to the agent (e.g., agent 504 of FIG. 5). The PGN model 600 may further include a value decoder 610 that may be configured to estimate a state value associated with the RL value.
[0088] 6, the policy decoder 608 may learn parameters associated with the probabilistic policy. The probabilistic policy may be learned according to Equation (9).
number
number
number
[0089] At each output step “i”, the cyclic embedding vector may be mapped to the next query vector according to equation (10).
number
[0090] The initial query vector q o To determine ", a combined cyclic representation may be determined based on the cyclic representation from the current solution ("S") 602 and the cyclic representation from the best solution ("S'") 604. The combined cyclic representation may be determined according to equation (11).
number
number
number
[0091] 6, the PGN model 600 may further include a value decoder 610 that may be configured to estimate state values associated with RL values. The value decoder 610 may operate in a manner similar to the policy decoder 608. For a given set of node embeddings “Z”, the value decoder 610 may derive a value “V Φ " can be estimated. The value "V Φ ” is the output “z i ", the cyclic representation of the current solution ("S") 602, "h n " and the cyclic representation "h' of the best solution ("S'") 604 n " may be based on
[0092] It should be noted that the PGN model 600 of FIG. 6 is merely an example, and such example should not be construed as limiting the scope of the present disclosure.
[0093] FIG. 7 illustrates an example scenario for a set of isolated segments, according to at least one embodiment described in this disclosure. FIG. 7 is described in conjunction with elements from FIG. 1, FIG. 2, FIG. 3, FIG. 4, FIG. 5, and FIG. 6. With reference to FIG. 7, an example scenario 700 is illustrated. The example scenario 700 may include a node "U1" 702A, a node "U2" 702B, a node "U3" 702C, a node "V1" 702D, a node "V2" 702E, and a node "V3" 702F. The example scenario 700 may further include a segment "S1" 704A, a segment "S2" 704B, and a segment "S3" 704C.
[0094] In an embodiment, the processor 204 may be configured to determine a permutation of the set of disjoint segments to be connected. The processor 204 may be further configured to select one or more segments of the set of disjoint segments. The processor 204 may be further configured to reverse an order associated with each of the selected one or more segments. The processor 204 may be further configured to connect the selected one or more segments based on the determined permutation and reversed order, and the partial tour of the generated second graph may be determined further based on the connection of the selected one or more segments. In one example, the set of disjoint segments is a set of “k” segments, e.g., “s1”, “s2”, through “s3”, “s4”, “s5”, “s6”, “s7”, “s8”, “s9”, “s10”, “s11”, “s12”, “s13”, “s14”, “s15”, “s16”, “s17”, “s18”, “s19”, “s20”, “s21”, “s22”, “s23”, “s24”, “s25”, “s26”, “s27”, “s28”, “s29”, “s210”, “s22”, “s23”, “s24”, “s25”, “s26”, “s27”, “s28”, “s29”, “s29”, “s30”, “s31”, “s32”, “s33”, “s34”, “s35”, “s36”, “s37”, “s38”, “s39”, “s31”, “s32”, “s34”, “s35”, “s36”, “s37”, “s38”, “s39”, “s39”, “s39”, “s31”, “s32”, “s33”, “s34”, “s35”, “s36”, “s37”, “s38”, “s39”, “s39”, “s39”, “s39”, “s k " may include a set of "k" segments, which may be obtained based on removing "k" edges from the tour. Once the "k" segments are obtained, a permutation of the "k" segments may be obtained. One or more segments may then be selected. For example, the segment "s i " may be selected. The selected segment "s i In the selected segment "s", the nodes may be visited sequentially. Here, the second node "2" may be visited first. Then, the third node "3" may be visited. After that, the fourth node "4" may be visited. Finally, the fifth node "5" may be visited. In the selected segment, the order of visiting the nodes may be reversed. That is, first, the fifth node "5" may be visited. Then, the third node "4" may be visited. After that, the fourth node "3" may be visited. Finally, the fifth node "2" may be visited. Then, in the selected segment "s", the order of visiting the nodes may be reversed. That is, first, the fifth node "5" may be visited. Then, the third node "4" may be visited. After that, the fourth node "3" may be visited. Finally, the fifth node "2" may be visited. i " may be connected based on the determined reordered and reversed order.
[0095] In one embodiment, the processor 204 may be configured to determine an action matrix associated with the RL model 102A based on at least one of the selected set of edges to be removed, the reordering of the set of disjoint segments to be connected, or one or more segments of the set of disjoint segments to be reversed. The processor 204 may be configured to evaluate a policy associated with the RL model 102A based on the determined action matrix, and a partial solution may be determined further based on the evaluation of the policy.
[0096] To determine an action matrix “A” for “n” edges associated with a graph (such as the first received graph 302 in FIG. 3), a deletion matrix “D” with “n” rows and “1” columns may be obtained. The deletion matrix “D” may be a vector {0,1} n That is, the deletion matrix "D" may be a vector indicating edges of the current tour that may be deleted, where a "1" in a row of the deletion matrix D may indicate the deletion of the edge associated with that row. A permutation matrix P with "n" rows and "1" column may then be obtained by permuting the "n" edges. Also, an inverse matrix R with "n" rows and "1" column may be obtained. The inverse matrix "R" may be a vector indicating edges of the current tour that may be deleted, where a "1" in a row of the deletion matrix D may indicate the deletion of the edge associated with that row. A permutation matrix P with "n" rows and "1" column may then be obtained by permuting the "n" edges. n The inversion matrix "R" may be a vector indicating the segments to be inverted, where a "1" in a row of the inversion matrix "R" indicates a reversal of the order of the nodes in the edge associated with that row. Note that the action matrix "A" may be expressed as "[DPR]".
[0097] An example of the action matrix “A” is expressed as follows:
number
[0098] 7, the set of disjoint segments may include segment "S1" 704A, segment "S2" 704B, and segment "S3" 704C. Thus, segment "S1" 704A, segment "S2" 704B, and segment "S3" 704C may be reordered. One or more segments of the set of disjoint segments may then be selected. For example, segment "S2" 704B may be selected, and then the order of the nodes on segment "S2" 704B may be reversed. Segment "S2" 704B may then be connected based on the determined reordering and reversed order.
[0099] It should be noted that scenario 700 in FIG. 7 is merely an example, and such example should not be construed as limiting the scope of the present disclosure.
[0100] FIG. 8 is a diagram illustrating an example scenario for reconnecting a set of separated segments, according to at least one embodiment described in the present disclosure. FIG. 8 is described in conjunction with elements from FIG. 1, FIG. 2, FIG. 3, FIG. 4, FIG. 5, FIG. 6, and FIG. 7. With reference to FIG. 8, an example scenario 800 is shown. The example scenario 800 includes a node "U1" 802A, a node "U2" 802B, a node "U3" 802C, a node "U4" 802D, a node "U5" 802E, a node "U6" 802F, a node "U7" 802G, a node "U8" 802H, a node "U9" 802I, a node "U10" 802J, a node "U11" 802K, a node "U12" 802K, a node "U13" 802K, a node "U14" 802K, a node "U15" 802K, a node "U16" 802K, a node "U17" 802K, a node "U18" 802K, a node "U19" 802K, a node "U21" 802K, a node "U22" 802K, a node "U23" 802K, a node "U24" 802K, a node "U25" 802K, a node "U26" 802K, a node "U27" 802K, a node "U28" 802K, a node "U29" 802K, a node "U21" 802K, a node "U21" 802K, a node "U22" 802K, a node "U23" 802 i-1 " 802D, node "U i" 802E, node "U i+1 " 802F, node "U k " 802G, node "V1" 802H, node "V2" 802I, node "V i-1 " 802J, Node "V i " 802K, Node "V i+1 " 802L, node "V k-1 " 802M, and node "V k The example scenario 700 may include a segment “S1” 804A, a segment “S2” 804B, a segment “S3” 804C, a segment “S4” 804D, a segment “S i " 804E, segment "S i+1 " 804F, segment "S k-1 " 804 G, and segment "S k " 800H.
[0101] The K segments shown in Figure 8 are presented by way of example only. Without departing from the scope of the present disclosure, the K segments may include only one segment or more than k segments. For simplicity, only K segments are shown in Figure 8. However, in some embodiments, there may be more than K segments without limiting the scope of the present disclosure.
[0102] 8, each segment of the set of disjoint segments may be associated with a pair of end nodes. For example, segment “S i " 804E is the node "U i " 802E and Node "V i” 802K. Thus, for “K” segments, the number of end nodes that may be associated with the “K” segments may be twice the number of segments “K”. That is, the number of end nodes for the K segments may be 2K end nodes. By solving a combinatorial optimization problem, the “K” segments may be reconnected to form a tour that may be minimized such that the length of the tour is minimized. If node pair “(i,j)” may be end points of the same segment, then node “i” may be visited exactly one step before visiting node “j” or exactly one step after visiting node “j”. This is done by using the segment weight “w” associated with node pair “(i,j)”. i,j " may be implemented by setting .times. ...
number
[0103] It should be noted that scenario 800 in FIG. 8 is merely an example, and such example should not be construed as limiting the scope of the present disclosure.
[0104] FIG. 9 illustrates a flowchart of an example method for local search-based solving of combinatorial optimization problems using an annealer-based solver, according to certain embodiments of the present disclosure. FIG. 9 is described in conjunction with elements from FIGS. 1, 2, 3, 4, 5, 6, 7, and 8. Referring to FIG. 9, a flowchart 900 is shown. The method illustrated in the flowchart 900 may begin at 902 and may be performed by any suitable system, apparatus, or device, such as the example electronic device 102 of FIG. 1 or the processor 204 of FIG. 2. Although illustrated with discrete blocks, steps and operations associated with one or more of the blocks of the flowchart 900 may be divided into additional blocks, combined into fewer blocks, or eliminated, depending on the particular implementation.
[0105] At block 902, a first graph (e.g., first graph 302 of FIG. 3) corresponding to an initial solution to the combinatorial optimization problem may be received. In an embodiment, the processor 204 may be configured to receive a first graph (e.g., first graph 302 of FIG. 3) corresponding to an initial solution to the combinatorial optimization problem. More details regarding the first graph are provided further in, e.g., FIG. 3.
[0106] At block 904, the RL model 102A may be applied to the received first graph (e.g., the first graph 302 of FIG. 3). In an embodiment, the processor 204 may be configured to apply the RL model 102A to the received first graph (e.g., the first graph 302 of FIG. 3). Details regarding the application of the RL model 102A are provided further in, for example, FIG.
[0107] At block 906, a set of a predetermined number of edges may be selected from the received first graph (e.g., first graph 302 of FIG. 3) based on application of the RL model 102A. In an embodiment, the processor 204 may be configured to select a set of a predetermined number of edges from the received first graph (e.g., first graph 302 of FIG. 3) based on application of the RL model 102A. Details regarding the selection of the set of a predetermined number of edges are provided further in, for example, FIG. 4.
[0108] At block 908, the set of selected edges may be removed from the received first graph (e.g., the first graph 302 of FIG. 3) to generate a second graph (e.g., the second graph 408 of FIG. 4). The set of selected edges may be removed based on cutting a set of segments associated with the set of selected edges from the received first graph (e.g., the first graph 302 of FIG. 3), where the generated second graph (e.g., the second graph 408 of FIG. 4) may correspond to a partial solution of the combinatorial optimization problem. In an embodiment, the processor 204 may be configured to remove the set of selected edges from the received first graph (e.g., the first graph 302 of FIG. 3) to generate a second graph (e.g., the second graph 408 of FIG. 4) based on cutting a set of segments associated with the set of selected edges from the received first graph (e.g., the first graph 302 of FIG. 3), where the generated second graph (e.g., the second graph 408 of FIG. 4) may correspond to a partial solution of the combinatorial optimization problem. Details regarding the removal of the set of selected edges are provided further in, for example, FIG.
[0109] At block 910, a partial tour of the generated second graph (e.g., second graph 408 of FIG. 4 ) may be determined using an annealer-based solver 102B to generate a third graph based on the connection of a set of a predetermined number of disjoint segments in the generated second graph (e.g., second graph 408 of FIG. 4 ). Here, the generated third graph (e.g., third graph 410 of FIG. 4 ) may correspond to a new solution to the combinatorial optimization problem. In an embodiment, the processor 204 may be configured to determine a partial tour of the generated second graph (e.g., second graph 408 of FIG. 4 ) using an annealer-based solver 102B to generate a third graph based on the connection of a set of a predetermined number of disjoint segments in the generated second graph (e.g., second graph 408 of FIG. 4 ). Here, the generated third graph (e.g., third graph 410 of FIG. 4 ) may correspond to a new solution to the combinatorial optimization problem. Details regarding the determination of the partial tour are provided further, e.g., in FIG. 4 .
[0110] At block 912, the RL model 102A may be retrained based on the generated third graph (e.g., the third graph 410 of FIG. 4), and the retrained RL model 102A may be configured to determine an improved solution to the combinatorial optimization problem. In an embodiment, the processor 204 may be configured to retrain the RL model 102A based on the generated third graph (e.g., the third graph 410 of FIG. 4), where the retrained RL model 102A may be configured to determine an improved solution to the combinatorial optimization problem. Details regarding the retraining of the RL model 102A are further provided, e.g., in FIG. 4.
[0111] At block 914, the determined improved solution to the combinatorial optimization problem may be rendered on the display device 208A. In an embodiment, the processor 204 may be configured to render the determined improved solution to the combinatorial optimization problem on the display device 208A. More details regarding rendering the determined improved solution are provided further in, for example, FIG. 4. Control may proceed to an end.
[0112] Although flowchart 900 is shown as discrete operations, such as 902, 904, 906, 908, 910, 912, and 914, in certain embodiments, such discrete operations may be further divided into additional operations, combined into fewer operations, or eliminated, depending on the particular implementation, without departing from the essence of the disclosed embodiments.
[0113] Various embodiments of the present disclosure may provide one or more non-transitory computer-readable storage media configured to store instructions that, in response to being executed, cause a system (such as the exemplary electronic device 102) to perform operations. The operations may include receiving a first graph (e.g., the first graph 302 of FIG. 3) corresponding to an initial solution to a combinatorial optimization problem. The operations may include applying an RL model (e.g., the RL model 102A of FIG. 1) to the received first graph (e.g., the first graph 302 of FIG. 3). The operations may further include selecting a set of a predetermined number of edges from the received first graph (e.g., the first graph 302 of FIG. 3) based on the application of the RL model (e.g., the RL model 102A of FIG. 1). The operations may further include deleting the set of selected edges from the received first graph (e.g., first graph 302 of FIG. 3) based on cutting a set of segments associated with the set of selected edges from the received first graph (e.g., first graph 302 of FIG. 3) to generate a second graph (e.g., second graph 408 of FIG. 4), where the generated second graph (e.g., second graph 408 of FIG. 4) may correspond to a partial solution to the combinatorial optimization problem. The operations may further include determining, using an annealer-based solver (e.g., annealer-based solver 102B of FIG. 1), a partial traversal path of the generated second graph (e.g., second graph 408 of FIG. 4) based on connecting a set of a predetermined number of disjoint segments in the generated second graph (e.g., second graph 408 of FIG. 4) to generate a third graph (e.g., third graph 410 of FIG. 4) where the generated third graph may correspond to a new solution to the combinatorial optimization problem. The operations may further include retraining the RL model (e.g., RL model 102A of FIG. 1 ) based on the generated third graph (e.g., third graph 410 of FIG. 4 ), and the retrained RL model (e.g., RL model 102A of FIG. 1 ) may be configured to determine an improved solution to the combinatorial optimization problem.The operations may further include rendering the determined improved solution to the combinatorial optimization problem on a display device 208A.
[0114] As used in this disclosure, the term "module" or "component" may refer to a specific hardware implementation configured to perform the actions of the module or component, and / or a software object or software routine that may be stored and / or executed on general-purpose hardware of a computing system (e.g., computer-readable media, processing device, etc.). In some embodiments, different components, modules, engines, and services described in this disclosure may be implemented as objects or processes (e.g., as separate threads) executing on a computing system. Although some of the systems and methods described in this disclosure are generally described as being implemented in software (stored and / or executed on general-purpose hardware), specific hardware implementations or combinations of software and specific hardware implementations are also possible and contemplated. In this document, a "computing entity" may be any computing system as previously defined in this disclosure, or any combination of modules or sub-modules operating on a computing system.
[0115] The terms used in this disclosure, and particularly in the appended claims (e.g., the body of the appended claims), are generally intended as "open" terms (e.g., the term "including" should be interpreted as "including, but not limited to," the term "having" should be interpreted as "having at least," the term "including" should be interpreted as "including, but not limited to," etc.).
[0116] In addition, if a particular number of claim recitations to be introduced is intended, such intent will be expressly recited in the claim, and in the absence of such recitation, no such intent exists. For example, as an aid to understanding, the following appended claims may include the use of the introductory phrases "at least one" and "one or more" to introduce claim recitations. However, the use of such phrases should not be construed as implying that the introduction of a claim recitation with the indefinite article "a" or "an" limits any particular claim that includes such an introduced claim recitation to embodiments that include only one such recitation, even if the same claim includes the introductory phrase "one or more" or "at least one" and an indefinite article such as "a" or "an" (e.g., "a" and / or "an" should be construed to mean "at least one" or "one or more"), and the same applies to the use of definite articles used to introduce claim recitations.
[0117] In addition, even if a particular number of claim recitations is explicitly recited, one of ordinary skill in the art will recognize that such recitation should be interpreted to mean at least the recited number (e.g., the recitation "two recitations" without other modifiers means at least two recitations, or more than two recitations). Furthermore, when idiomatic expressions similar to "at least one of A, B, and C, etc." or "one or more of A, B, and C, etc." are used, such constructions are generally intended to include A only, B only, C only, both A and B, both A and C, both B and C, or all of A, B, and C, etc.
[0118] Moreover, any disjunctive word or phrase presenting two or more alternative terms, whether in this document, the claims, or the drawings, should be understood to contemplate the possibility of including one of those terms, either one of those terms, or both terms. For example, the phrase "A or B" should be understood to include the possibilities of "A" or "B" or "A and B."
[0119] All examples and conditional language described in this disclosure are intended for educational purposes to help the reader understand the concepts contributed by the inventor to the advancement of the art, and should be construed as not being limited to such specifically described examples and conditions. Although embodiments of the present disclosure have been described in detail, various changes, permutations, and modifications can be made thereto without departing from the spirit and scope of the present disclosure.
[0120] The following supplementary notes are further disclosed regarding the embodiments including the above examples. (Appendix 1) 16. A processor-implemented method comprising: receiving a first graph corresponding to an initial solution to a combinatorial optimization problem; applying a reinforcement learning (RL) model to the received first graph; selecting a set 914 of a predetermined number of edges from the received first graph based on application of the RL model; generating a second graph by removing the selected set of edges from the received first graph based on cutting a set of segments associated with the selected set of edges from the received first graph; the generated second graph corresponds to a partial solution of the combinatorial optimization problem; determining a partial tour of the generated second graph using an annealer-based solver to generate a third graph based on the connection of the set of the predetermined number of disjoint segments in the generated second graph; the generated third graph corresponds to a new solution to the combinatorial optimization problem; and retraining the RL model based on the generated third graph, the retrained RL model is configured to determine an improved solution to the combinatorial optimization problem; and rendering the determined improved solution to the combinatorial optimization problem on a display device. method. (Appendix 2) 2. The method of claim 1, wherein the combinatorial optimization problem corresponds to at least one of an assignment problem, a closure problem, a constraint satisfaction problem, a board-cutting problem, a dominating set problem, an integer programming problem, a knapsack problem, a least significant variables problem in linear systems, a minimum spanning tree problem, a nurse scheduling problem, a set cover problem, a job shop scheduling problem, a traveling salesman problem, a vehicle rescheduling problem, a vehicle routing problem, a weapon target assignment problem, a bin packing problem, or a talent scheduling problem. (Appendix 3) 2. The method of claim 1, wherein the RL model corresponds to a Markov decision process (MDP). (Appendix 4) the RL model includes an agent configured to take an action corresponding to the removal of the set of edges based on a policy associated with the RL model; the RL model further includes a state machine configured to transition the agent from a first state to a second state based on the evaluation of the policy; Each of the first state and the second state corresponds to a solution to the combinatorial optimization problem. The method described in Appendix 1. (Appendix 5) 2. The method of claim 1, wherein the RL model corresponds to a Policy Gradient Neural (PGN) model associated with an actor-critic architecture. (Appendix 6) the PGN model includes an encoder model configured to obtain node and cyclic representations from an input graph; The encoder model includes a graph convolutional network (GCN) model and a recurrent neural network (RNN) model. The method described in Appendix 5. (Appendix 7) the GCN model is configured to determine a topological structure associated with the input graph; The RNN model corresponds to a long short-term memory (LSTM) model configured to determine a node order associated with the input graph. The method described in Appendix 6. (Appendix 8) 7. The method of claim 6, wherein the input graph corresponds to at least one of the new solution or the improved solution related to the combinatorial optimization problem. (Appendix 9) the PGN model includes a decoder model including a policy decoder and a value decoder; the policy decoder is configured to sample actions of an agent associated with the RL model and learn a probabilistic policy applicable to the agent; the value decoder is configured to estimate a state value associated with the RL value; The method described in Appendix 5. (Appendix 10) determining a permutation of the set of separated segments to be connected; selecting one or more segments from the set of separated segments; reversing an order associated with each of the selected one or more segments; and connecting the selected one or more segments based on the determined reordering and reversed order; the partial tour of the generated second graph is determined further based on the connectivity of the selected one or more segments. The method described in Appendix 1. (Appendix 11) determining an action matrix associated with the RL model based on at least one of edges of the selected set to be removed, a reordering of the set of isolated segments to be connected, or one or more segments of the set of isolated segments to be reversed; and evaluating a policy associated with the RL model based on the determined action matrix. the partial solution is determined further based on the evaluation of the policy. The method described in Appendix 1. (Appendix 12) 2. The method of claim 1, wherein the set of disjoint segments is connected to the generated second graph such that the length of the determined partial tour is minimized. (Appendix 13) One or more non-transitory computer-readable storage media configured to store instructions that, in response to being executed, cause an electronic device to perform an operation, the operation being: receiving a first graph corresponding to an initial solution to a combinatorial optimization problem; applying a reinforcement learning (RL) model to the received first graph; selecting a set of a predetermined number of edges from the received first graph based on application of the RL model; generating a second graph by removing the selected set of edges from the received first graph based on cutting a set of segments associated with the selected set of edges from the received first graph; the generated second graph corresponds to a partial solution of the combinatorial optimization problem; determining a partial tour of the generated second graph using an annealer-based solver to generate a third graph based on the connection of the set of the predetermined number of disjoint segments in the generated second graph; the generated third graph corresponds to a new solution to the combinatorial optimization problem; and retraining the RL model based on the generated third graph, the retrained RL model is configured to determine an improved solution to the combinatorial optimization problem; and rendering the determined improved solution to the combinatorial optimization problem on a display device. One or more non-transitory computer-readable storage media. (Appendix 14) 14. The one or more non-transitory computer-readable storage media of claim 13, wherein the combinatorial optimization problem corresponds to at least one of an assignment problem, a closure problem, a constraint satisfaction problem, a board-cutting problem, a dominating set problem, an integer programming problem, a knapsack problem, a least significant variables problem in linear systems, a minimum spanning tree problem, a nurse scheduling problem, a set cover problem, a job shop scheduling problem, a traveling salesman problem, a vehicle rescheduling problem, a vehicle routing problem, a weapon target assignment problem, a bin packing problem, or a talent scheduling problem. (Appendix 15) 14. The one or more non-transitory computer-readable storage media of claim 13, wherein the RL model corresponds to a Markov decision process (MDP). (Appendix 16) 14. The one or more non-transitory computer-readable storage media of claim 13, wherein the RL model corresponds to a Policy Gradient Neural (PGN) model associated with an Actor-Critic Architecture. (Appendix 17) The action: determining a permutation of the set of separated segments to be connected; selecting one or more segments from the set of separated segments; reversing an order associated with each of the selected one or more segments; and connecting the selected one or more segments based on the determined reordering and reversed order; the partial tour of the generated second graph is determined further based on the connectivity of the selected one or more segments. 14. One or more non-transitory computer-readable storage media as described in Clause 13. (Appendix 18) The action: determining an action matrix associated with the RL model based on at least one of edges of the selected set to be removed, a reordering of the set of isolated segments to be connected, or one or more segments of the set of isolated segments to be reversed; and evaluating a policy associated with the RL model based on the determined action matrix. the partial solution is determined further based on the evaluation of the policy. 14. One or more non-transitory computer-readable storage media as described in Clause 13. (Appendix 19) 14. The one or more non-transitory computer-readable storage media of claim 13, wherein the set of disjoint segments is connected to the generated second graph such that a length of the determined partial tour is minimized. (Appendix 20) a memory configured to store instructions; a processor, coupled to the memory and configured to execute the instructions to perform a process, the process comprising: receiving a first graph corresponding to an initial solution to a combinatorial optimization problem; applying a reinforcement learning (RL) model to the received first graph; selecting a set of a predetermined number of edges from the received first graph based on application of the RL model; generating a second graph by removing the selected set of edges from the received first graph based on cutting a set of segments associated with the selected set of edges from the received first graph; the generated second graph corresponds to a partial solution of the combinatorial optimization problem; determining a partial tour of the generated second graph using an annealer-based solver to generate a third graph based on the connection of the set of the predetermined number of disjoint segments in the generated second graph; the generated third graph corresponds to a new solution to the combinatorial optimization problem; and retraining the RL model based on the generated third graph, the retrained RL model is configured to determine an improved solution to the combinatorial optimization problem; and rendering the determined improved solution to the combinatorial optimization problem on a display device. Electronic devices. [Explanation of symbols]
[0121] 102 Electronic Devices 102A Reinforcement Learning (RL) Model 102B Annealer-based Solver 106 Database 108 Communication Network 110 First Graph 202 System 204 Processor 206 Memory 208 I / O Devices 208A Display Device 210 Network Interface 302 First Graph 402 Receipt of the first graph 404 RL Model Application and Retraining 406 Improved Solution Rendering 408 Second Graph 410 Third Graph 502 Policy 504 Agent 506 Policy Evaluation Block 602 Current Solution(S) 604 Best Solution (S') 606A, 606B Encoder Models 608 Policy Decoder 610 Value Decoder 612A, 612B Graph Convolutional Network (GCN) Model 614A, 614B Recurrent Neural Network (RNN) Models 616A, 616B Linear & Coupled 618A Max Pooling 618B Average Pooling 622 Feedforward 902 Receive the first graph corresponding to the initial solution of the combinatorial optimization problem 904 Apply a reinforcement learning (RL) model to the first graph received. 906 Select a set of a predetermined number of edges from the received first graph based on application of the RL model. 908. Remove the set of selected edges from the received first graph based on cutting the set of segments associated with the set of selected edges from the received first graph, where the generated second graph corresponds to a partial solution to the combinatorial optimization problem. 910 determining a partial traversal path of the generated second graph using an annealer-based solver to generate a third graph based on connectivity of a set of a predetermined number of disjoint segments in the generated second graph, where the generated third graph corresponds to a new solution to the combinatorial optimization problem. and retraining the 912 RL model based on the generated third graph. The retrained RL model is configured to determine an improved solution to the combinatorial optimization problem. 914 Rendering the determined improved solution to the combinatorial optimization problem on a display device
Claims
1. 16. A processor-implemented method comprising: receiving a first graph corresponding to an initial solution to a combinatorial optimization problem; applying a reinforcement learning (RL) model to the received first graph; selecting a set 914 of a predetermined number of edges from the received first graph based on application of the RL model; generating a second graph by removing the selected set of edges from the received first graph based on cutting a set of segments associated with the selected set of edges from the received first graph; the generated second graph corresponds to a partial solution of the combinatorial optimization problem; and determining a partial tour of the generated second graph using an annealer-based solver to generate a third graph based on connections of the set of the predetermined number of disjoint segments in the generated second graph; the generated third graph corresponds to a new solution to the combinatorial optimization problem; and retraining the RL model based on the generated third graph, the retrained RL model is configured to determine an improved solution to the combinatorial optimization problem; and rendering the determined improved solution to the combinatorial optimization problem on a display device. method.
2. 2. The method of claim 1, wherein the combinatorial optimization problem corresponds to at least one of an assignment problem, a closure problem, a constraint satisfaction problem, a board-cutting problem, a dominating set problem, an integer programming problem, a knapsack problem, a least significant variables problem in linear systems, a minimum spanning tree problem, a nurse scheduling problem, a set cover problem, a job shop scheduling problem, a traveling salesman problem, a vehicle rescheduling problem, a vehicle routing problem, a weapon target assignment problem, a bin packing problem, or a talent scheduling problem.
3. The method of claim 1 , wherein the RL model corresponds to a Markov decision process (MDP).
4. the RL model includes an agent configured to take an action corresponding to the removal of the set of edges based on a policy associated with the RL model; the RL model further includes a state machine configured to transition the agent from a first state to a second state based on the evaluation of the policy; Each of the first state and the second state corresponds to a solution to the combinatorial optimization problem. The method of claim 1.
5. The method of claim 1 , wherein the RL model corresponds to a Policy Gradient Neural (PGN) model associated with an Actor-Critic Architecture.
6. the PGN model includes an encoder model configured to obtain node and cyclic representations from an input graph; The encoder model includes a graph convolutional network (GCN) model and a recurrent neural network (RNN) model. The method according to claim 5.
7. the GCN model is configured to determine a topological structure associated with the input graph; The RNN model corresponds to a long short-term memory (LSTM) model configured to determine a node order associated with the input graph. The method according to claim 6.
8. The method of claim 6 , wherein the input graph corresponds to at least one of the new solution or the improved solution related to the combinatorial optimization problem.
9. the PGN model includes a decoder model including a policy decoder and a value decoder; the policy decoder is configured to sample actions of an agent associated with the RL model and learn a probabilistic policy applicable to the agent; the value decoder is configured to estimate a state value associated with the RL value; The method according to claim 5.
10. determining a permutation of the set of separated segments to be connected; selecting one or more segments from the set of separated segments; reversing an order associated with each of the one or more selected segments; and connecting the selected one or more segments based on the determined reordering and reversed order; the partial tour of the generated second graph is determined further based on the connectivity of the selected one or more segments. The method of claim 1.
11. determining an action matrix associated with the RL model based on at least one of edges of the selected set to be removed, a reordering of the set of isolated segments to be connected, or one or more segments of the set of isolated segments to be reversed; and evaluating a policy associated with the RL model based on the determined action matrix. the partial solution is determined further based on the evaluation of the policy. The method of claim 1.
12. The method of claim 1 , wherein the set of disjoint segments is connected to the generated second graph such that the length of the determined partial tour is minimized.
13. One or more non-transitory computer-readable storage media configured to store instructions that, in response to being executed, cause an electronic device to perform operations, the operations including: receiving a first graph corresponding to an initial solution to a combinatorial optimization problem; applying a reinforcement learning (RL) model to the received first graph; selecting a set of a predetermined number of edges from the received first graph based on application of the RL model; generating a second graph by removing the selected set of edges from the received first graph based on cutting a set of segments associated with the selected set of edges from the received first graph; the generated second graph corresponds to a partial solution of the combinatorial optimization problem; and determining a partial tour of the generated second graph using an annealer-based solver to generate a third graph based on connections of the set of the predetermined number of disjoint segments in the generated second graph; the generated third graph corresponds to a new solution to the combinatorial optimization problem; and retraining the RL model based on the generated third graph, the retrained RL model is configured to determine an improved solution to the combinatorial optimization problem; and rendering the determined improved solution to the combinatorial optimization problem on a display device. One or more non-transitory computer-readable storage media.
14. 14. The one or more non-transitory computer-readable storage media of claim 13, wherein the combinatorial optimization problem corresponds to at least one of an assignment problem, a closure problem, a constraint satisfaction problem, a board-cutting problem, a dominating set problem, an integer programming problem, a knapsack problem, a least significant variables in linear systems problem, a minimum spanning tree problem, a nurse scheduling problem, a set covering problem, a job shop scheduling problem, a traveling salesman problem, a vehicle rescheduling problem, a vehicle routing problem, a weapon target assignment problem, a bin packing problem, or a talent scheduling problem.
15. 14. The one or more non-transitory computer-readable storage media of claim 13, wherein the RL model corresponds to a Markov decision process (MDP).
16. 14. The one or more non-transitory computer-readable storage media of claim 13, wherein the RL model corresponds to a Policy Gradient Neural (PGN) model associated with an Actor-Critic Architecture.
17. The act of: determining a permutation of the set of separated segments to be connected; selecting one or more segments from the set of separated segments; reversing an order associated with each of the one or more selected segments; and connecting the selected one or more segments based on the determined reordering and reversed order; the partial tour of the generated second graph is determined further based on the connectivity of the selected one or more segments. One or more non-transitory computer-readable storage media as recited in claim 13.
18. The act of: determining an action matrix associated with the RL model based on at least one of edges of the selected set to be removed, a reordering of the set of isolated segments to be connected, or one or more segments of the set of isolated segments to be reversed; and evaluating a policy associated with the RL model based on the determined action matrix. the partial solution is determined further based on the evaluation of the policy. One or more non-transitory computer-readable storage media as recited in claim 13.
19. 14. The one or more non-transitory computer-readable storage media of claim 13, wherein the set of disjoint segments is connected to the generated second graph such that a length of the determined partial tour is minimized.
20. A memory configured to store instructions; a processor, coupled to the memory and configured to execute the instructions to perform a process, the process comprising: receiving a first graph corresponding to an initial solution to a combinatorial optimization problem; applying a reinforcement learning (RL) model to the received first graph; selecting a set of a predetermined number of edges from the received first graph based on application of the RL model; generating a second graph by removing the selected set of edges from the received first graph based on cutting a set of segments associated with the selected set of edges from the received first graph; the generated second graph corresponds to a partial solution of the combinatorial optimization problem; and determining a partial tour of the generated second graph using an annealer-based solver to generate a third graph based on connections of the set of the predetermined number of disjoint segments in the generated second graph; the generated third graph corresponds to a new solution to the combinatorial optimization problem; and retraining the RL model based on the generated third graph, the retrained RL model is configured to determine an improved solution to the combinatorial optimization problem; and rendering the determined improved solution to the combinatorial optimization problem on a display device. Electronic devices.
Citation Information
Cited By
Tour calculation device, tour calculation method, and tour calculation program
JP7954258B1
