Program, method for processing data, and data processor

By dynamically adjusting constraint coefficients based on constraint satisfaction, the data processing device enhances solution quality in combinatorial optimization problems, addressing the challenge of inappropriate penalty function weights.

JP2024123937APending Publication Date: 2024-09-12FUJITSU LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2023031775
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-02
Publication Date
2024-09-12

AI Technical Summary

Technical Problem

In combinatorial optimization problems, determining appropriate constraint coefficients for penalty functions is challenging, as overly large coefficients narrow the search range, while small coefficients fail to satisfy constraints, impacting solution quality.

Method used

A data processing device adjusts constraint coefficients based on the satisfaction status of constraints for multiple solutions, using a heuristic method to search for better solutions by dynamically modifying penalty function weights in the evaluation function.

Benefits of technology

This approach improves solution performance by ensuring the influence of constraints is moderate, facilitating the discovery of better solutions by balancing constraint satisfaction and energy minimization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024123937000001
    Figure 2024123937000001
Patent Text Reader

Abstract

To improve the performance of determining a solution.SOLUTION: A data processor 10 includes a storage unit 11 and a processing unit 12. The processing unit 12 stores, in the storage unit 11, a solution searched for on the basis of an evaluation function including a penalty function showing a restriction regarding a plurality of state variables and a restriction coefficient to be multiplied by the penalty function. The processing unit 12 adjusts the restriction coefficient on the basis of the satisfaction situation of restrictions of each solution stored in the storage unit 11. The processing unit 12 starts searching for a new solution on the basis of the evaluation function including the adjusted restriction function.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] The present invention relates to a program, a data processing method, and a data processing device. [Background technology]

[0002] Information processing devices are sometimes used to solve combinatorial optimization problems. The information processing device searches for a combination of state variable values ​​included in an evaluation function that minimizes the value of the evaluation function, for example. In this case, the combination of state variable values ​​that minimizes the value of the evaluation function corresponds to the ground state or optimal solution represented by the set of state variables. Methods for obtaining an approximate solution to a combinatorial optimization problem in a practical amount of time include tabu search and simulated annealing (SA).

[0003] When the combinatorial optimization problem is a binary quadratic programming problem (BQP), it may be converted into an evaluation function that indicates the energy of the Ising model, which is a model that represents the spin behavior of magnetic materials, and the problem may be solved using a quantum annealer or similar. For example, a system has been proposed that uses a quantum annealer to solve the Lagrangian dual of a constrained quadratic programming problem. Another system has been proposed that uses a quantum annealer to solve the Lagrangian dual of a binary polynomially constrained polynomial programming problem (BPCPPP).

[0004] There has also been a proposal for a system that uses quantum annealing to solve the minimum dominating set problem. Furthermore, an optimization system has been proposed that relaxes BQP into an easier-to-solve problem called a semidefinite programming problem (SDP), and optimizes BQP based on the solution of the SDP. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] US Patent Application Publication No. 2016 / 0224515 [Patent Document 2] International Publication No. 2017 / 145086 [Patent Document 3] US Patent Application Publication No. 2017 / 0286852 [Patent Document 4] International Publication No. 2017 / 056368 Summary of the Invention [Problem to be solved by the invention]

[0006] In evaluation functions such as BQP, constraints on state variables are sometimes expressed as penalty functions, which add the amount of constraint violation according to the value of the state variable to the evaluation function.

[0007] The evaluation function may use a constraint coefficient, which is a coefficient that weights the penalty function. In this case, it is not easy to determine the appropriate constraint coefficient. For example, if the constraint coefficient is too large, the search range for a solution will be narrowed, making it difficult to arrive at a better solution. On the other hand, if the constraint coefficient is too small, it will be difficult to obtain a solution that satisfies the constraint.

[0008] In one aspect, the present invention aims to improve solution performance. [Means for solving the problem]

[0009] In one embodiment, a program is provided that causes a computer to execute the following processes: store solutions searched for based on an evaluation function including a penalty function indicating constraints on a plurality of state variables and a constraint coefficient by which the penalty function is multiplied in a storage unit; adjust the constraint coefficient based on a satisfaction state of the constraints of each of the plurality of solutions stored in the storage unit; and start searching for a new solution based on the evaluation function including the adjusted constraint coefficient.

[0010] Also, in one aspect, a data processing method is provided. Also, in one aspect, a data processing device is provided having a storage unit and a processing unit. [Effects of the Invention]

[0011] On the one hand, it can improve the solution performance. [Brief explanation of the drawings]

[0012] [Figure 1] FIG. 1 is a diagram illustrating a data processing device according to a first embodiment. [Figure 2] FIG. 10 illustrates an example of hardware of a data processing device according to a second embodiment. [Figure 3] FIG. 2 is a diagram illustrating an example of functions of a data processing device. [Figure 4] FIG. 10 is a diagram illustrating an example of data stored in a solution pool. [Figure 5] FIG. 10 is a diagram illustrating an example of data stored in an output solution buffer. [Figure 6] 10 is a flowchart illustrating an example of a search process of the data processing device. [Figure 7] 10 is a flowchart illustrating an example of updating a solution pool. [Figure 8] 10 is a flowchart illustrating an example of updating an output solution buffer. [Figure 9] 10 is a flowchart showing an example of adjusting a constraint coefficient (α). [Figure 10] 10 is a flowchart showing an example of adjusting a constraint coefficient (λk). [Figure 11] 10 is a flowchart showing another example of adjusting the constraint coefficient (α). [Figure 12] 10 is a flowchart showing another example of adjusting the constraint coefficient (λk). [Figure 13] FIG. 10 is a diagram illustrating an example of adjusting a constraint coefficient. DETAILED DESCRIPTION OF THE INVENTION

[0013] The present embodiment will be described below with reference to the drawings. [First embodiment] A first embodiment will be described.

[0014] FIG. 1 is a diagram illustrating a data processing device according to a first embodiment. The data processing device 10 searches for a solution to a combinatorial optimization problem and outputs the searched solution. The data processing device 10 has a storage unit 11 and a processing unit 12.

[0015] The storage unit 11 may be a volatile semiconductor memory such as a dynamic random access memory (DRAM), or a non-volatile storage such as a hard disk drive (HDD) or flash memory. The storage unit 11 may include an electronic circuit such as a register. The processing unit 12 is a processor such as a central processing unit (CPU), a graphics processing unit (GPU), or a digital signal processor (DSP). However, the processing unit 12 may also include an electronic circuit for a specific purpose such as an application specific integrated circuit (ASIC) or a field programmable gate array (FPGA). The processor executes a program stored in a memory such as a DRAM (which may be the storage unit 11). A set of multiple processors is sometimes called a "multiprocessor" or simply a "processor."

[0016] A combinatorial optimization problem is formulated by an objective function that indicates the energy of the Ising model, and can be replaced by, for example, a problem of minimizing the value of the objective function. The objective function includes multiple state variables. The state variables are binary variables that take on values ​​of 0 or 1. The state variables may also be called bits. The solution to the combinatorial optimization problem is represented by the values ​​of the multiple state variables.

[0017] For example, the solution that minimizes the value of the objective function represents the ground state of the Ising model and corresponds to the optimal solution of the combinatorial optimization problem. In this case, the combinatorial optimization problem is expressed by Equation (1) using the Ising-type objective function C(x).

[0018]

number

[0019] The first term on the right side of equation (1) is the sum of the values ​​of the two state variables and the weighting coefficients for all combinations of two state variables that can be selected from all state variables, without omissions or duplications. The subscripts i and j are the indexes of the state variables. i is the i-th state variable. xj is the j-th state variable. W ij is the weighting coefficient that indicates the strength of the connection between the i-th state variable and the j-th state variable. ij =W ji and W ii = 0. The total number of state variables is n, where n is an integer equal to or greater than 2.

[0020] The second term on the right side of equation (1) is the sum of the products of the biases of all state variables and the values ​​of the state variables. i denotes the bias for the i-th state variable, and c is a constant.

[0021] When there are constraints on multiple state variables, such as in constrained BQP, the constraints are expressed by equations (2) and (3). Equation (2) represents a second-order equality constraint, and equation (3) represents a first-order inequality constraint.

[0022]

number

[0023]

number

[0024] In addition, in equation (3), k is the index of the inequality constraints, k = 1, 2, ..., m, and m is the number of inequality constraints. A ki ,B k is a constant given according to the content of the inequality constraint.

[0025] When the constraints of equation (2) and equation (3) are imposed, the combinatorial optimization problem is expressed as a problem of minimizing the evaluation function E(x) of equation (4).

[0026]

number

[0027]

number

[0028] Here, P(x) is called the penalty function. k (x)=λ k ×max(0,Σ i Ax i -B k ), then L(x)=Σ k L k It is written as (x). k (x) is also called a penalty function. L(x) is the sum of multiple penalty functions corresponding to multiple inequality constraints (Σ k L k (x)).

[0029] The evaluation function E(x) may include multiple penalty functions corresponding to multiple equality constraints. When E(x) includes multiple penalty functions corresponding to multiple equality constraints, the number of constraint coefficients α will be the same as the number of equality constraints. m may also be 1. Furthermore, although equations (4) and (5) show an example in which there is one equality constraint and m inequality constraints, E(x) may include only one of the penalty functions corresponding to the equality constraints and the penalty functions corresponding to the inequality constraints.

[0030] The data processing device 10 uses a heuristic method to gradually change the variable x based on E(x) to transition states and search for a better solution. The data processing device 10 can use, for example, a greedy search method, a tabu search method, or an SA method to search for a solution. The greedy search method is also known as the steepest descent method. In addition, in a problem of minimizing energy, the smaller the energy, the better the solution, and the larger the energy, the worse the solution.

[0031] Here, the constraint coefficients α and λ k The values ​​of α and λ affect the solution performance. kIf is too large, the effects of P(x) and L(x) become strong in the search for a solution based on E(x), and the solution after the search is likely to satisfy the constraints with P(x) = 0, L(x) = 0, but C(x) is not small enough. k If is too small, the effects of P(x) and L(x) become weak in the search for a solution based on E(x), and C(x) becomes small, but P(x)>0, L(x)>0, which is likely to result in a constraint violation. Therefore, the processing unit 12 adjusts the constraint coefficients as follows based on multiple solutions obtained by multiple searches that are repeatedly executed.

[0032] First, the processing unit 12 stores a solution obtained by a search based on the evaluation function in the storage unit 11. The search for a solution may be executed by the processing unit 12, or may be executed by a search unit different from the processing unit 12. For example, the search unit may be realized by a CPU, GPU, DSP, ASIC, FPGA, or the like provided in the data processing device 10 or an information processing device communicating with the data processing device 10.

[0033] The search for a solution is performed multiple times, for example, by changing the search start state. The search start state is a state that serves as a starting point for the search. The search start state may be generated from a solution held in the memory unit 11. For example, the processing unit 12 acquires solutions x1, x2, ... as multiple solutions and stores them in the memory unit 11. The number of solutions held in the memory unit 11 is predetermined.

[0034] The processing unit 12 then adjusts the constraint coefficient included in the evaluation function corresponding to the constraint based on the satisfaction status of the constraint for each of the multiple solutions stored in the storage unit 11. For example, if there is no solution that satisfies a certain constraint among the solutions x1, x2, ..., the processing unit 12 increases the constraint coefficient corresponding to the constraint to strengthen the effect of the constraint. On the other hand, if there is a solution that satisfies a certain constraint among the solutions x1, x2, ..., the processing unit 12 decreases the constraint coefficient corresponding to the constraint to weaken the effect of the constraint. Note that if the number of solutions that satisfy a certain constraint among the multiple solutions stored in the storage unit 11 is equal to or less than a predetermined number, the processing unit 12 may increase the constraint coefficient corresponding to the constraint. Also, if the number of solutions that satisfy a certain constraint among the multiple solutions stored in the storage unit 11 is equal to or greater than a predetermined number, the processing unit 12 may decrease the constraint coefficient corresponding to the constraint.

[0035] Whether a solution satisfies a constraint is determined by the value of the penalty function of the solution. For example, in the case of the evaluation function E(x), the equality constraint is satisfied when P(x)=0, and not satisfied when P(x)>0. k If (x)=0, then the inequality constraint k is satisfied, and L k Inequality constraint k is not satisfied if (x)>0.

[0036] Here, when an evaluation function includes a plurality of penalty functions corresponding to a plurality of constraints, such as the evaluation function E(x), the processing unit 12 adjusts the constraint coefficient corresponding to the constraint based on the satisfaction state of each constraint of the solutions x1, x2, .... For example, the processing unit 12 adjusts the constraint coefficient λ based on the satisfaction state of the inequality constraint k of the solutions x1, x2, .... k Adjust.

[0037] The processing unit 12 also calculates constraint coefficients α, λ for each of the equality constraints and the inequality constraints. k In addition to individually controlling the constraint coefficients α,λ based on the satisfaction status of the equality constraints and inequality constraints, kFor example, when there is no solution that satisfies all of the equality constraints and the inequality constraints among the solutions x1, x2, ..., the processing unit 12 adjusts at least one of the constraint coefficient α corresponding to the equality constraint and the constraint coefficient λ corresponding to the inequality constraint k. k At least one of the above may be increased with a predetermined probability.

[0038] The processing unit 12 starts a search for a new solution based on the evaluation function including the adjusted constraint coefficients. Starting a search for a new solution can also be said to be initiating a search for a new solution. As described above, the search for a solution may be executed by the processing unit 12 or by a predetermined search unit. In addition, the search start state may be generated based on the solutions x1, x2, ... stored in the memory unit 11. The processing unit 12 acquires a new solution obtained by the new search, and if the new solution is better than the worst solution (worst solution) stored in the memory unit 11, replaces one of the worst solutions in the memory unit 11 with the new solution. Note that, in order to compare the energy with the new solution, the processing unit 12 pre-calculates the energy of each solution stored in the memory unit 11 using the evaluation function with the latest constraint coefficients.

[0039] In addition to the solutions for adjusting the constraint coefficients, the processing unit 12 also stores the solutions to be finally output as the solutions to the combinatorial optimization problem in the storage unit 11. For example, the processing unit 12 stores the solutions to be finally output as the solutions to the combinatorial optimization problem in the storage unit 11. k ' are the constraint coefficients α, λ, respectively. k Instead of α', λ, the energy E' of the solution obtained by the search is calculated using equation (4), and a predetermined number of solutions with smaller energy E' are stored in the storage unit 11 with priority. k ' is set to a value that is sufficiently large relative to C(x) in order to give priority to outputting constraint satisfying solutions.

[0040] In this way, when the above solution search has been performed for a certain period of time or a certain number of times, the processing unit 12 outputs the solution stored in the storage unit 11 with a low energy E' as a priority. As described above, according to the data processing device 10, a solution searched for based on an evaluation function including a penalty function indicating constraints on a plurality of state variables and a constraint coefficient by which the penalty function is multiplied is stored in the storage unit 11. The constraint coefficient is adjusted based on the satisfaction status of the constraints of each of the plurality of solutions stored in the storage unit 11. A search for a new solution is initiated based on the evaluation function including the adjusted constraint coefficient. This enables the data processing device 10 to improve the solution-finding performance in the solution search.

[0041] Here, the satisfaction status of a constraint for multiple solutions reflects the influence of the constraint on the search. As mentioned above, if the influence of the constraint is too strong or too weak, the solution-finding performance will deteriorate. In contrast, the data processing device 10 dynamically adjusts the constraint coefficients based on the satisfaction status of the constraints for multiple solutions, thereby appropriately controlling the evaluation function so that the influence of the constraints on the search is moderate. As a result, it becomes easier to arrive at a better solution than, for example, performing a search using fixed constraint coefficients, and solution-finding performance is improved.

[0042] For example, the data processing device 10 can control the constraint coefficients so as to vary the boundary around which the constraints are just barely satisfied, and can realize both a search with relaxed constraints and a search that satisfies the constraints. As a result, it becomes easier to arrive at a better solution in the search for a solution, and the solution-finding performance improves.

[0043] [Second embodiment] Next, a second embodiment will be described. FIG. 2 illustrates an example of hardware of a data processing device according to the second embodiment.

[0044] The data processing device 100 searches for a solution to the constrained BQP using a greedy search method, a tabu search method, an SA method, or the like, and outputs the searched solution. The constrained BQP is formulated by the evaluation function of Equation (4), and is converted into a problem of minimizing the value of the evaluation function.

[0045] In the second embodiment, an example will be described in which there is one equality constraint and multiple inequality constraints, but the number of equality constraints may be one or more, and the number of inequality constraints may be one or more. Also, the problem to be solved may have only one of equality constraints and inequality constraints.

[0046] The data processing device 100 has a processor 101, a DRAM 102, an HDD 103, a GPU 104, an input interface 105, a media reader 106, a communication interface 107, and an accelerator card 108. These units of the data processing device 100 are connected to a bus inside the data processing device 100. The processor 101 corresponds to the processing unit 12 of the first embodiment. The DRAM 102 corresponds to the storage unit 11 of the first embodiment.

[0047] The processor 101 is an arithmetic device that executes program instructions. The processor 101 is, for example, a CPU. The processor 101 loads at least a portion of the program and data stored in the HDD 103 into the DRAM 102 and executes the program. The processor 101 may include multiple processor cores. The data processing device 100 may also have multiple processors. The processing described below may be executed in parallel using multiple processors or processor cores. A set of multiple processors may also be called a "multiprocessor" or simply a "processor."

[0048] The DRAM 102 is a volatile semiconductor memory that temporarily stores programs executed by the processor 101 and data used in calculations by the processor 101. Note that the data processing device 100 may include a type of memory other than a DRAM, or may include multiple memories.

[0049] The HDD 103 is a nonvolatile storage device that stores software programs such as an OS (Operating System), middleware, and application software, as well as data. The data processing device 100 may also include other types of storage devices, such as flash memory or an SSD (Solid State Drive), or may include multiple nonvolatile storage devices.

[0050] The GPU 104 outputs an image to a display 51 connected to the data processing device 100 in accordance with an instruction from the processor 101. The display 51 may be any type of display, such as a CRT (Cathode Ray Tube) display, a liquid crystal display (LCD: Liquid Crystal Display), a plasma display, or an organic EL (OEL: Organic Electro-Luminescence) display.

[0051] The input interface 105 acquires an input signal from an input device 52 connected to the data processing device 100 and outputs the signal to the processor 101. The input device 52 may be a pointing device such as a mouse, a touch panel, a touch pad, or a trackball, a keyboard, a remote controller, or a button switch. In addition, multiple types of input devices may be connected to the data processing device 100.

[0052] The medium reader 106 is a reading device that reads programs and data recorded on the recording medium 53. For example, a magnetic disk, an optical disk, a magneto-optical disk (MO: Magneto-Optical disk), a semiconductor memory, etc. can be used as the recording medium 53. Magnetic disks include flexible disks (FD: Flexible Disks) and HDDs. Optical disks include compact discs (CDs) and digital versatile discs (DVDs).

[0053] The medium reader 106 copies, for example, programs and data read from the recording medium 53 to another recording medium such as the DRAM 102 or the HDD 103. The read programs are executed by, for example, the processor 101. The recording medium 53 may be a portable recording medium, which may be used to distribute programs and data. The recording medium 53 and the HDD 103 may also be referred to as computer-readable recording media.

[0054] The communication interface 107 is connected to the network 54 and communicates with other information processing devices via the network 54. The communication interface 107 may be a wired communication interface connected to a wired communication device such as a switch or a router, or may be a wireless communication interface connected to a wireless communication device such as a base station or an access point.

[0055] The accelerator card 108 is a hardware accelerator that searches for solutions to combinatorial optimization problems such as BQP. The accelerator card 108 includes a processor 110 and a DRAM 120. The processor 110 searches for solutions using a greedy search method, a tabu search method, an SA method, or the like. The processor 110 is, for example, a GPU, a DSP, an ASIC, or an FPGA. The DRAM 120 stores data used in processing by the processor 110.

[0056] FIG. 3 is a diagram illustrating an example of functions of the data processing device. The data processing device 100 includes a solution pool 130, an output solution buffer 140, a search unit 150, a solution pool processing unit 160, a constraint coefficient adjustment unit 170, and an output solution control unit 180. The solution pool 130 and the output solution buffer 140 use storage areas of the DRAM 102. The solution pool 130 and the output solution buffer 140 may use storage areas of the HDD 103.

[0057] The solution pool processing unit 160, the constraint coefficient adjustment unit 170, and the output solution control unit 180 are realized by the processor 101 executing a program stored in the DRAM 102. The search unit 150 is realized by the processor 110. However, the search unit 150 may also be realized by the processor 101 executing a program stored in the DRAM 102.

[0058] The solution pool 130 stores a predetermined number of solutions searched by the search unit 150. The solutions stored in the solution pool 130 are calculated based on the constraint coefficients α and λ included in the evaluation function E(x) of the equation (4). k The quality of the solutions stored in the solution pool 130 is determined by the constraint coefficients α, λ. k The determination is based on the energy E calculated by equations (4) and (5), which include:

[0059] The output solution buffer 140 stores a predetermined number of solutions searched by the search unit 150. The solutions stored in the output solution buffer 140 are candidates for the final solution to the constrained BQP. The quality of the solutions stored in the output solution buffer 140 is determined by the constraint coefficients α and λ. k Instead of the above, we use predetermined fixed constraint coefficients α',λ k The determination is based on the energy E' calculated by equation (5) using '. The solutions stored in the output solution buffer 140 are the final output candidate solutions for the problem to be solved. For this reason, the energy E' may be referred to as the output evaluation energy.

[0060] In the initial state before any search is performed, a predetermined number of solutions created in advance are stored in the solution pool 130 and the output solution buffer 140. The number of solutions stored in the output solution buffer 140 may be the same as or different from the number of solutions stored in the solution pool 130.

[0061] The search unit 150 uses the constraint coefficients α and λ k The solution is searched for based on the evaluation function E(x) of equation (5) including the constraint coefficients α, λ. The search unit 150 uses, for example, a greedy search method, a tabu search method, or an SA method to search for a solution.k is input to the search unit 150 by the constraint coefficient adjustment unit 170. The search unit 150 outputs the searched solution to the solution pool processing unit 160 and the output solution control unit 180.

[0062] The solution pool processing unit 160 acquires a new solution searched for by the search unit 150, and if the new solution is better than the worst solution in the solution pool 130, replaces the worst solution in the solution pool 130 with the new solution. As described above, the solution pool processing unit 160 determines whether a solution in the solution pool 130 is good or bad based on the constraint coefficients α and λ. k The judgment is based on the energy E calculated by equations (4) and (5), which include:

[0063] Furthermore, the solution pool processing unit 160 creates a search start state to be used by the search unit 150 for the next search based on the solutions held in the solution pool 130, and inputs the created state to the search unit 150. A method such as Path Relinking may be used to create the search start state. For information on Path Relinking, see the following document 1.

[0064] Reference 1: Y. Wang, et al., "Path relinking for unconstrained binary quadratic programming", European Journal of Operational Research, volume 223, issue 3, December 16, 2012, pp.595-604 The constraint coefficient adjustment unit 170 adjusts the constraint coefficients α, λ according to the satisfaction status of the equality constraints and inequality constraints of the multiple solutions held in the solution pool 130. k The constraint coefficient adjustment unit 170 adjusts the adjusted α, λ k is input to the search unit 150, causing the search unit 150 to start searching for a new solution.

[0065] The output solution control unit 180 acquires a new solution searched for by the search unit 150, and if the new solution is better than any of the solutions already stored in the output solution buffer 140, replaces the worst solution in the output solution buffer 140 with the new solution. As described above, the output solution control unit 180 determines whether the solution in the output solution buffer 140 is good or bad based on the constraint coefficients α', λ k The judgment is based on the energy E' calculated by equations (4) and (5) including '.

[0066] When the search unit 150 has completed a certain period of time or a certain number of searches, the output solution control unit 180 outputs the solutions contained in the output solution buffer 140, prioritizing those with the lowest energy E'. The output solution control unit 180 may output the best solution in the output solution buffer 140, or may output some or all of the solutions in the output solution buffer 140. For example, the output solution control unit 180 may display information about the solution on the display 51, or may transmit information about the solution to another computer via the network 54.

[0067] FIG. 4 is a diagram illustrating an example of data stored in the solution pool. As an example, the solution pool 130 holds records corresponding to six solutions. Six indexes (idx) "0" to "5" identify the records in the solution pool 130. The smaller the index, the better the record, i.e., the smaller the energy E of the solution.

[0068] One record is a state vector x=(x1,x2,…,x n ), the value of the energy E(x) corresponding to the solution, the value of the cost function C(x), the value of the penalty function P(x) for the equality constraints, and the penalty functions L1(x),L2(2),…,L m Contains the value of (x).

[0069] FIG. 5 is a diagram illustrating an example of data stored in the output solution buffer. As an example, the output solution buffer 140 holds records corresponding to four solutions. Four indices (idx) "0" to "3" identify the records in the output solution buffer 140. The smaller the index, the better the record, i.e., the smaller the solution with the smaller energy E'.

[0070] One record is a state vector x=(x1,x2,…,x n ), the value of the energy E'(x) corresponding to the solution, the value of the cost function C(x), the value of the penalty function P(x) for the equality constraints, and the penalty functions L1(x),L2(2),…,L m (x), where the records in the output solution buffer 140 contain the values ​​of C(x), P(x), L1(x), L2(x), ..., L m (x) does not have to be included.

[0071] Next, the processing procedure of the data processing device 100 will be described. FIG. 6 is a flowchart showing an example of a search process of the data processing device. (S10) The search unit 150 performs initialization. In the initialization, the search unit 150 is set to an evaluation function E(x) corresponding to the BQP to be solved, various parameter values ​​used in the search (such as the temperature value in the SA method), and an initial search start state. The evaluation function E(x) at step S10 is calculated based on the constraint coefficients α, λ. k During the initialization, the solution pool processing unit 160 sets a predetermined number of initial solutions in the solution pool 130. During the initialization, the output solution control unit 180 sets a predetermined number of initial solutions in the output solution buffer 140.

[0072] (S11) The search unit 150 searches for a solution based on the evaluation function E(x). Here, a search start state is created by the solution pool processing unit 160 from multiple solutions stored in the solution pool 130 and input to the search unit 150. When the search unit 150 finishes the current search, it outputs the solution obtained by the current search to the solution pool processing unit 160 and the output solution control unit 180. The search unit 150 may output the multiple solutions obtained by the current search to the solution pool processing unit 160 and the output solution control unit 180.

[0073] (S12) The solution pool processing unit 160 updates the solution pool 130. Details of updating the solution pool 130 will be described later. (S13) The output solution control unit 180 updates the output solution buffer 140. Details of updating the output solution buffer 140 will be described later.

[0074] (S14) The constraint coefficient adjustment unit 170 adjusts the constraint coefficients α, λ included in E(x) based on the satisfaction status of the constraints of the multiple solutions held in the solution pool 130. k After adjusting, α,λ k to the search unit 150. The adjustment of the constraint coefficients will be described in detail later.

[0075] (S15) The solution pool processing unit 160 calculates the constraint coefficients α, λ after adjustment in step S14. k E(x) of each solution held in the solution pool 130 is recalculated using equations (4) and (5) and stored in the solution pool 130.

[0076] (S16) The search unit 150 determines whether the search has ended. If the search has ended, the search process ends. If the search has not ended, the process proceeds to step S11. For example, the search unit 150 determines that the search has ended when the search process of steps S11 to S15 has been executed for a certain period of time or a certain number of times. The search unit 150 may also determine that the search has ended when information indicating that the search has been executed for a certain period of time or a certain number of times is input to the search unit 150. Note that if the search has ended, the output solution control unit 180 outputs the solution held in the output solution buffer 140.

[0077] FIG. 7 is a flowchart showing an example of updating the solution pool. Updating the solution pool 130 corresponds to step S12. (S20) The solution pool processing unit 160 acquires the solution A after the current search from the searching unit 150.

[0078] (S21) The solution pool processing unit 160 determines whether or not the solution A exists in the solution pool 130. If the solution A exists in the solution pool 130, the process proceeds to step S26. If the solution A does not exist in the solution pool 130, the process proceeds to step S22.

[0079] (S22) The solution pool processing unit 160 selects a solution W with the maximum E(x) from the solution pool 130. (S23) The solution pool processing unit 160 determines whether E(x) of solution A is smaller than E(x) of solution W. If E(x) of solution A is smaller than E(x) of solution W, the process proceeds to step S24. If E(x) of solution A is equal to or larger than E(x) of solution W, the process proceeds to step S26.

[0080] (S24) The solution pool processing unit 160 calculates C(x), P(x), and L of the solution A. k (x) is calculated. k (x) is calculated using constraint coefficients α and λ k This is done using the current value of

[0081] (S25) The solution pool processing unit 160 replaces the solution W in the solution pool 130 with the solution A. (S26) The solution pool processing unit 160 determines whether or not all solutions after the current search by the search unit 150 have been processed. If all solutions after the current search have been processed, updating of the solution pool 130 ends. If all solutions after the current search have not been processed, the process proceeds to step S20. In step S20, the next new solution is acquired as solution A.

[0082] In this way, the solution pool processing unit 160 replaces the worst solution for E(x) in the solution pool 130 with the solution after the search, without allowing duplication. FIG. 8 is a flowchart showing an example of updating the output solution buffer.

[0083] Updating the output solution buffer 140 corresponds to step S13. (S30) The output solution control unit 180 acquires the solution A after the current search from the search unit 150. (S31) The output solution control unit 180 determines whether or not solution A exists in the output solution buffer 140. If solution A exists in the output solution buffer 140, the process proceeds to step S37. If solution A does not exist in the output solution buffer 140, the process proceeds to step S32.

[0084] (S32) The output solution control unit 180 calculates the energy E'(x) of the solution A. E'(x) is calculated based on the following equation: α=α', λ k =λ k ' and the values ​​of each state variable of solution A are substituted into equation (5).

[0085] (S33) The output solution control unit 180 selects the solution W with the largest E′(x) from the output solution buffer 140. (S34) The output solution control unit 180 determines whether E'(x) of solution A is smaller than E'(x) of solution W. If E'(x) of solution A is smaller than E'(x) of solution W, the process proceeds to step S35. If E'(x) of solution A is equal to or larger than E'(x) of solution W, the process proceeds to step S37.

[0086] (S35) The output solution control unit 180 calculates C(x), P(x), and L of the solution A. k (x) is calculated. k (x) is calculated using constraint coefficients α', λ k This is done using the value of '.

[0087] (S36) The output solution control unit 180 replaces the solution W in the output solution buffer 140 with the solution A. (S37) The output solution control unit 180 determines whether or not all solutions after the current search by the search unit 150 have been processed. If all solutions after the current search have been processed, updating of the output solution buffer 140 ends. If all solutions after the current search have not been processed, the process proceeds to step S30. In step S30, the next new solution is acquired as solution A.

[0088] In this way, the output solution control unit 180 replaces the worst solution for E'(x) in the output solution buffer 140 with the solution after the search without allowing overlapping. FIG. 9 is a flowchart showing an example of adjusting the constraint coefficient (α).

[0089] The adjustment of the constraint coefficient (α) corresponds to step S14. (S40) The constraint coefficient adjustment unit 170 determines whether P(x) of all solutions in the solution pool 130 is positive. If P(x) of all solutions in the solution pool 130 is positive, the process proceeds to step S41. If P(x) of at least one solution in the solution pool 130 is 0, the process proceeds to step S42. Here, P(x) being positive (P(x)>0) indicates that the equality constraint is not satisfied. Also, P(x) being 0 (P(x)=0) indicates that the equality constraint is satisfied.

[0090] (S41) The constraint coefficient adjustment unit 170 increases α, and the adjustment of the constraint coefficient (α) is then completed. (S42) The constraint coefficient adjustment unit 170 decreases α, and the adjustment of the constraint coefficient (α) is then completed.

[0091] Figure 10 shows the constraint coefficient (λ k 10 is a flowchart showing an example of adjustment of the Constraint coefficient (λ k ) corresponds to step S14. The following procedure is repeated or executed in parallel for each inequality constraint, that is, for each k.

[0092] (S50) The constraint coefficient adjustment unit 170 adjusts the L of all solutions in the solution pool 130. kDetermine whether (x) is positive. k If (x) is positive, the process proceeds to step S51. k If (x) is 0, the process proceeds to step S52. k (x) is positive (L k (x)>0) indicates that the inequality constraint k is not satisfied. k (x) is 0(L k (x)=0) indicates that the inequality constraint k is satisfied.

[0093] (S51) The constraint coefficient adjustment unit 170 adjusts λ k Then, increase the constraint coefficient (λ k ) adjustment is completed. (S52) The constraint coefficient adjustment unit 170 adjusts λ k Then, reduce the constraint coefficient (λ k ) adjustment is completed.

[0094] In step S14, the constraint coefficient adjustment unit 170 adjusts the constraint coefficients α and λ shown in FIGS. k The adjustment of each constraint coefficient may be performed in any order or in parallel.

[0095] The constraint coefficient adjustment unit 170 may adjust the constraint coefficient α in the following manner instead of the procedure of FIG. FIG. 11 is a flowchart showing another example of adjusting the constraint coefficient (α).

[0096] The adjustment of the constraint coefficient (α) corresponds to step S14. (S60) The constraint coefficient adjustment unit 170 determines whether P(x) of all solutions in the solution pool 130 is positive. If P(x) of all solutions in the solution pool 130 is positive, the process proceeds to step S63. If P(x) of at least one solution in the solution pool 130 is 0, the process proceeds to step S61.

[0097] (S61) The constraint coefficient adjustment unit 170 determines whether or not a constraint-satisfying solution exists in the solution pool 130. If a constraint-satisfying solution does not exist, the process proceeds to step S62. If a constraint-satisfying solution exists, the process proceeds to step S64. Here, a constraint-satisfying solution indicates a solution that satisfies all constraints, and in the example of equation (4), P(x)=0 and L(x)=Σ k L k This is the solution for (x)=0.

[0098] (S62) The constraint coefficient adjustment unit 170 determines whether r < Pa. If r < Pa, the process proceeds to step S63. If r < Pa is not true, the process proceeds to step S64. Here, r is, for example, a random number greater than or equal to 0 and less than 1 generated by the constraint coefficient adjustment unit 170. In one example, Pa = 0.1. However, Pa may be another value.

[0099] (S63) The constraint coefficient adjustment unit 170 increases α, and the adjustment of the constraint coefficient (α) is then completed. (S64) The constraint coefficient adjustment unit 170 decreases α, and the adjustment of the constraint coefficient (α) is then completed.

[0100] The constraint coefficient adjustment unit 170 adjusts the constraint coefficient λ by the following procedure instead of the procedure of FIG. k Adjustments may be made. Figure 12 shows the constraint coefficient (λ k 10 is a flowchart showing another example of adjustment of the

[0101] Constraint coefficient (λ k ) corresponds to step S14. The following procedure is repeated or executed in parallel for each inequality constraint, that is, for each k. (S70) The constraint coefficient adjustment unit 170 adjusts the L of all solutions in the solution pool 130. k Determine whether (x) is positive. k If (x) is positive, the process proceeds to step S73. k If (x) is 0, the process proceeds to step S71.

[0102] (S71) The constraint coefficient adjustment unit 170 determines whether or not a constraint satisfying solution exists in the solution pool 130. If a constraint satisfying solution does not exist, the process proceeds to step S72. If a constraint satisfying solution exists, the process proceeds to step S74.

[0103] (S72) The constraint coefficient adjustment unit 170 determines whether r < Pl. If r < Pl, the process proceeds to step S73. If r < Pl is not true, the process proceeds to step S74. Here, r is, for example, a random number greater than or equal to 0 and less than 1 generated by the constraint coefficient adjustment unit 170. In one example, Pl = 0.1. However, Pl may be another value, or may be a value different from Pa.

[0104] (S73) The constraint coefficient adjustment unit 170 adjusts λ k Then, increase the constraint coefficient (λ k ) adjustment is completed. (S74) The constraint coefficient adjustment unit 170 adjusts λ k Then, reduce the constraint coefficient (λ k ) adjustment is completed.

[0105] Here, a specific method for increasing or decreasing the constraint coefficient by the constraint coefficient adjustment unit 170 will be described. For example, the constraint coefficient adjustment unit 170 increases or decreases the constraint coefficient α of the equality constraint as follows. In the following description, α1 indicates the current constraint coefficient, and α2 indicates the next constraint coefficient (the adjusted constraint coefficient).

[0106] When the constraint coefficient α is increased, the constraint coefficient adjustment unit 170 determines α2 using equation (6).

[0107]

number

[0108]

number

[0109] In addition, the constraint coefficient adjustment unit 170 increases or decreases the constraint coefficient λ of the inequality constraint k k as follows. In the following description, λ1 k represents the current constraint coefficient. Also, λ2 k represents the next constraint coefficient (the adjusted constraint coefficient).

[0110] When increasing the constraint coefficient λ k , the constraint coefficient adjustment unit 170 determines λ2 according to Equation (8). k

[0111]

Equation

[0112]

Equation

[0113] Figure 13 is a diagram showing an example of adjusting the constraint coefficient. As an example, assume that the number of equality constraints is 1 and the number of inequality constraints m is m = 2. In this case, equation (5) includes two penalty functions L1(x) and L2(x) corresponding to the two inequality constraints.

[0114] Tables 60, 61, 62, and 63 show examples of constraint satisfaction status of P(x), L1(x), and L2(x) for six solutions in the solution pool 130 at steps S0, S1, S2, and S3, respectively. The notation "0" for P(x), L1(x), and L2(x) indicates that the corresponding constraint is satisfied. On the other hand, the notation ">0" for P(x), L1(x), and L2(x) indicates that the corresponding constraint is not satisfied. Step S0 is the case where there is a constraint-satisfying solution. Steps S1 to S3 are the cases where there is no constraint-satisfying solution. Furthermore, the notation "α-" indicates that α is reduced. The notation "λ-" indicates that λ is reduced. k The notation "α+" indicates that α is increased. The notation "λ+" indicates that λ is increased. k indicates an increase.

[0115] In the adjustment of constraint coefficients in Figures 9 and 10, by adjusting the constraint coefficients for each constraint independently, it becomes possible to search near the constraint satisfaction boundary of each constraint. As a result, the solution performance is improved by repeatedly relaxing and strengthening the constraints. However, with only the independent control shown in Figures 9 and 10, for example, it is difficult to obtain the α, λ that can obtain the constraint satisfaction solution of step S0 even if it takes time by starting from step S1 and repeating steps S2 and S3. k It may be possible that the value of

[0116] 9 and 10, the constraint coefficient adjustment unit 170 may use the procedures of FIGS. 11 and 12 to adjust the constraint coefficients. That is, when there is no solution (constraint satisfying solution) in the solution pool 130 where P(x)=0 and L(x)=0, the constraint coefficient adjustment unit 170 may increase α with a probability Pa. Also, when there is no solution in the solution pool 130 where P(x)=0 and L(x)=0, the constraint coefficient adjustment unit 170 may increase λ with a probability Pl. kIn this way, the constraint coefficient adjustment unit 170 increases α, λ so that the process moves stochastically from step S2 to step S1 and from step S1 to step S0. k By changing (increasing) , it is possible to obtain a solution that satisfies all constraints, i.e., a constraint satisfying solution.

[0117] As described above, the data processing device 100 of the second embodiment can achieve high solution performance while reducing the user's workload by automatically and appropriately controlling the constraint coefficients of the equality constraints and inequality constraints in BQP.

[0118] It can also be said that the data processing device 100 executes the following processes. The processor 101 stores solutions searched for based on an evaluation function including a penalty function indicating constraints on a plurality of state variables and a constraint coefficient by which the penalty function is multiplied in the solution pool 130. The processor 101 adjusts the constraint coefficient based on the satisfaction status of the constraints of each of the plurality of solutions stored in the solution pool 130, and starts a search for a new solution based on the evaluation function including the adjusted constraint coefficient.

[0119] This allows the data processing device 100 to improve the solution-finding performance in searching for a solution based on the evaluation function. The constraints are, for example, equality constraints or inequality constraints. As described above, the solution pool 130 is realized by a storage area such as the DRAM 102 or the HDD 103. The DRAM 102 or the HDD 103 is an example of the storage unit 11 of the first embodiment.

[0120] The evaluation function may also include multiple penalty functions corresponding to multiple constraints. In this case, the processor 101 adjusts the constraint coefficients corresponding to the constraints based on the individual satisfaction status of each of the multiple solutions for each constraint.

[0121] In this way, the processor 101 can improve the solution performance by adjusting the constraint coefficients independently for each constraint. The plurality of constraints includes, for example, either or both of equality constraints and inequality constraints.

[0122] In adjusting the constraint coefficients, if a predetermined number of solutions in the solution pool 130 do not satisfy a constraint, the processor 101 increases the constraint coefficient corresponding to the constraint, and if a predetermined number of solutions satisfying the constraint exist in the solutions, the processor 101 decreases the constraint coefficient corresponding to the constraint. Increasing a constraint coefficient can also be considered as increasing the value of the constraint coefficient. Decreasing a constraint coefficient can also be considered as decreasing the value of the constraint coefficient.

[0123] By adjusting the constraint coefficients in this way, it becomes possible to search near the constraint satisfaction boundary of the constraint. As a result, the constraint is repeatedly relaxed and strengthened, and solution performance is improved.

[0124] Furthermore, when the multiple constraints include an equality constraint and an inequality constraint, the processor 101 may adjust the following constraint coefficients: That is, when there is no solution that satisfies all of the equality constraints and the inequality constraints among the multiple solutions, the processor 101 may increase at least one of the first constraint coefficient corresponding to the equality constraint and the second constraint coefficient corresponding to the inequality constraint with a predetermined probability.

[0125] This allows the data processing device 100 to increase the possibility of obtaining a constraint-satisfying solution, thereby improving solution-finding performance. Furthermore, after adjusting the constraint coefficients, processor 101 calculates energy E(x) corresponding to each of the multiple solutions stored in solution pool 130 based on an evaluation function including the adjusted constraint coefficients. Processor 101 replaces the worst solution among the multiple solutions stored in solution pool 130 with the first solution based on a comparison between the first energy calculated by the evaluation function for the first solution newly obtained by the search and the energy corresponding to the worst solution among the multiple solutions.

[0126] This allows the data processing device 100 to gradually improve the solutions in the solution pool 130. For example, there is a high possibility that an even better solution exists near a good solution. For this reason, the processor 101 may generate a search start state to be used for the next search using a predetermined method such as the above-mentioned Path Relinking, based on multiple solutions in the solution pool 130. This increases the possibility of arriving at a better solution in the new search.

[0127] In addition, the processor 101 also stores one or more solutions in the output solution buffer 140, separate from the multiple solutions in the solution pool 130. The one or more solutions held in the output solution buffer 140 are candidates to be finally output for the problem to be solved. The processor 101 also stores in the output solution buffer 140 output evaluation energies E'(x) corresponding to each of the one or more solutions, calculated based on an evaluation function in which the constraint coefficients are fixed values ​​that do not change for each search. The processor 101 then compares the first output evaluation energy calculated for a first solution newly obtained by the search using an evaluation function in which the constraint coefficients are fixed values ​​with the output evaluation energy corresponding to the worst solution among the one or more solutions. Based on the comparison, the processor 101 replaces the worst solution among the one or more solutions stored in the output solution buffer 140 with the first solution. After completing the process of repeatedly adjusting the constraint coefficients and searching, the processor 101 outputs at least a portion of the one or more solutions stored in the output solution buffer 140.

[0128] This allows the data processing device 100 to control the solutions to be stored in the output solution buffer 140 according to a certain standard determined by the fixed value of the constraint coefficient, and to appropriately control the solution to be finally output. For example, as described above, in order to output a constraint-satisfying solution with priority, the fixed values ​​of the constraint coefficients (for example, α' and λ') can be set. k ) is set to a sufficiently large value for C(x). For example, the processor 101 can output, from one or more solutions stored in the output solution buffer 140, a solution with a good output evaluation energy with priority.

[0129] The information processing of the first embodiment can be realized by causing the processing unit 12 to execute a program. The information processing of the second embodiment can be realized by causing the processor 101 to execute a program. The program can be recorded on a computer-readable recording medium 53.

[0130] For example, the program can be distributed by distributing recording medium 53 on which the program is recorded. Alternatively, the program may be stored in another computer and distributed via a network. A computer may store (install) a program recorded on recording medium 53 or a program received from another computer in a storage device such as DRAM 102 or HDD 103, and then read and execute the program from the storage device. [Explanation of symbols]

[0131] 10 Data processing device 11 Storage section 12 Processing section

Claims

1. On the computer, storing a solution searched for based on an evaluation function including a penalty function indicating a constraint on a plurality of state variables and a constraint coefficient by which the penalty function is multiplied in a storage unit; adjusting the constraint coefficient based on a satisfaction state of the constraint for each of the plurality of solutions stored in the storage unit, and starting a search for a new solution based on the evaluation function including the adjusted constraint coefficient; A program that executes a process.

2. the evaluation function includes a plurality of the penalty functions corresponding to a plurality of the constraints; adjusting the constraint coefficient corresponding to the constraint based on a satisfaction state of each of the constraints of each of the plurality of solutions; The program according to claim 1, which causes the computer to execute a process.

3. The constraint is an equality constraint or an inequality constraint. The program according to claim 1.

4. the plurality of constraints include equality constraints and / or inequality constraints; The program according to claim 2.

5. increasing the constraint coefficient corresponding to the constraint when a predetermined number of solutions that satisfy the constraint are not present among the plurality of solutions, and decreasing the constraint coefficient corresponding to the constraint when a predetermined number of solutions that satisfy the constraint are present among the plurality of solutions.

3. The program according to claim 1, which causes the computer to execute a process.

6. the plurality of constraints include equality constraints and inequality constraints; if there is no solution that satisfies all of the equality constraints and the inequality constraints among the plurality of solutions, increasing at least one of a first constraint coefficient corresponding to the equality constraints and a second constraint coefficient corresponding to the inequality constraints with a predetermined probability; The program according to claim 2, which causes the computer to execute a process.

7. When the constraint coefficients are adjusted, an energy corresponding to each of the solutions stored in the storage unit is calculated based on the evaluation function including the adjusted constraint coefficients. replacing the worst solution among the plurality of solutions stored in the storage unit with the first solution in response to a comparison between a first energy calculated by the evaluation function for a first solution newly obtained by the search and the energy corresponding to a worst solution among the plurality of solutions; The program according to claim 1, which causes the computer to execute a process.

8. generating a search start state to be used in the next search based on the plurality of solutions stored in the storage unit; The program according to claim 7, which causes the computer to execute a process.

9. store in the storage unit one or more solutions that are candidates to be finally output, and output evaluation energies corresponding to each of the one or more solutions, the output evaluation energies being calculated based on the evaluation function in which the constraint coefficients are fixed values ​​that do not change for each search, separately from the plurality of solutions; replacing the worst solution among the one or more solutions stored in the storage unit with the first solution in response to a comparison between a first output evaluation energy calculated by the evaluation function with the constraint coefficient set to the fixed value for a first solution newly obtained by the search and the output evaluation energy corresponding to a worst solution among the one or more solutions; When the process of repeating the adjustment of the constraint coefficient and the search is completed, at least a part of the one or more solutions stored in the storage unit is output. The program according to claim 1, which causes the computer to execute a process.

10. The computer storing a solution searched for based on an evaluation function including a penalty function indicating a constraint on a plurality of state variables and a constraint coefficient by which the penalty function is multiplied in a storage unit; adjusting the constraint coefficient based on a satisfaction state of the constraint for each of the plurality of solutions stored in the storage unit, and starting a search for a new solution based on the evaluation function including the adjusted constraint coefficient; Data processing methods.

11. A storage unit; a processing unit that stores in a storage unit a solution searched for based on an evaluation function including a penalty function indicating a constraint on a plurality of state variables and a constraint coefficient by which the penalty function is multiplied, adjusts the constraint coefficient based on a satisfaction state of the constraint for each of the plurality of solutions stored in the storage unit, and starts a search for a new solution based on the evaluation function including the adjusted constraint coefficient; A data processing device having:

Citation Information

Patent Citations

  • Method and system for solving the lagrangian dual of a constrained binary quadratic programming problem using a quantum annealer

    US20160224515A1

  • Method and system for solving a minimum connected dominating set problem using quantum annealing for distance optimization

    US20170286852A1

  • Optimization system, optimization method, and optimization program

    WO2017056368A1

  • Method and system for solving the lagrangian dual of a binary polynomially constrained polynomial programming problem using a binary optimizer

    WO2017145086A1