Solution-finding device, solution-finding method, and program
The improved simulated bifurcation algorithm addresses the challenge of high calculation cost and time in solving 0-1 combinatorial optimization problems by using a penalty term to adjust Hamiltonian equations, ensuring constraint satisfaction with reduced variables and efficient solution.
Patent Information
- Application Number
- JP2021087125
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-05-24
- Publication Date
- 2024-08-20
- Estimated Expiration
- 2041-05-24
AI Technical Summary
Existing methods for solving 0-1 combinatorial optimization problems under constraint conditions expressed by inequalities, such as those in stock portfolio optimization, result in increased calculation cost and time due to the large number of Ising spins required, making it difficult to scale up and operate stably using quantum annealers or digital computers.
An improved simulated bifurcation algorithm that uses a penalty term to adjust Hamiltonian equations, allowing for the simultaneous ordinary differential equations to be solved with symplectic Euler methods, thereby ensuring compliance with inequality constraints without the need for additional slack variables.
The algorithm reduces calculation cost and time by maintaining the same number of variables, increasing the probability of satisfying constraints, and enabling efficient solution of 0-1 combinatorial optimization problems under inequality constraints.
Smart Images

Figure 0007536710000068 
Figure 0007536710000059 
Figure 0007536710000069
Abstract
Description
[Technical field]
[0001] An embodiment of the present invention relates to a solution-finding device, a solution-finding method, and a program. [Background technology]
[0002] Conventionally, a method for solving the Ising problem under the constraint of a linear inequality is known that uses slack variables to formulate the problem. m In this case, the Ising problem is solved by adding a penalty term represented by W slack variables (W is a natural number) to the objective function. Therefore, if the objective function contains N decision variables, this method solves an Ising problem containing N+W Ising spins. Also, for example, if the Ising problem is solved under the constraints of M linear inequalities, this method solves N+{W1+...+M m +…+W M} Ising spins. m is the constant term of the m-th linear inequality among the M linear inequalities, and represents a natural number.
[0003] In order to avoid risk, stock portfolio optimization problems are often solved under the constraint that the investment ratio of each stock is set as a decision variable and the sum of multiple decision variables multiplied by a weight must be equal to or less than an upper limit. The constraint is expressed by a linear inequality such as the following equation. x A1 ω A1 +x A2 ω A2 +...+x Sm ω Sm +…≦W m
[0004] In this formula, W m represents the upper limit. x A1 represents the decision variable that determines the investment ratio of stock A, for example, 1%. x A2 represents the decision variable that determines the investment ratio of stock A, for example, 2%. x Ss represents the decision variable that determines the investment ratio of stock S to s%. Also, ωA1、 ω A2 and ω Sm represents the weight.
[0005] For example, in the case of a stock portfolio optimization problem, multiple stocks are grouped by industry or company size, and the above constraints are set for each group. For example, the Tokyo Stock Exchange handles approximately 2,000 stocks. The Tokyo Stock Exchange also classifies these approximately 2,000 stocks into 33 types of industry and three types of size. Therefore, the approximately 2,000 stocks handled by the Tokyo Stock Exchange can be divided into a total of 99 groups, consisting of 33 industries and three sizes.
[0006] When solving a portfolio optimization problem for 2,000 stocks traded on the Tokyo Stock Exchange by discretizing the investment ratio of each stock into 100 levels from 1% to 100%, the number of decision variables included in the objective function will be 200,000.
[0007] In contrast, suppose we set linear inequality constraints for all 99 groups. The upper limit (W m ) is discretized into 1000 steps and formulated using slug variables, the number of slug variables will be 99000. Therefore, when solving a portfolio optimization problem in which constraints based on linear inequalities are set for all 99 groups, an Ising problem with 20000+99000=299000 Ising spins must be solved.
[0008] In this way, when a portfolio optimization problem is solved using a formulation that uses slack variables, the number of Ising spins increases by about 50% in the case of the Tokyo Stock Exchange, for example, compared to when there are no constraints. When solving an Ising problem using a solver or the like, if the number of Ising spins increases, the amount of calculations and calculation time increase, and the cost of finding a solution increases. [Prior art documents] [Patent documents]
[0009] [Patent Document 1] JP 2017-73106 A [Patent Document 2] JP 2019-145010 A [Patent Document 3] JP 2021-043589 A [Patent Document 4] International Publication No. 2020 / 196915 [Non-patent literature]
[0010] [Non-Patent Document 1] H. Goto, “Bifurcation-based adiabatic quantum computation with a nonlinear oscillator network”, Sci. Rep. 6, 21686 (2016). [Non-Patent Document 2] Hayato Goto, Kosuke Tatsumura, Alexander R. Dixon, “Combinatorial optimization by simulating adiabatic bifurcations in nonlinear Hamiltonian systems”, Science Advances, Vol. 5, no. 4, eaav2372, 19 Apr. 2019 [Non-Patent Document 3] Kazuo Tsuchiya, Takehiro Nishiyama, Katsuyoshi Tsujita, “Approximate solution method for combinatorial optimization problems using branching characteristics”, [online], [Retrieved May 17, 2021], Internet,<http: / / www.ynl.t.u-tokyo.ac.jp / project / RobotBrainCREST / publications / pdf / tsuchiya / 4_01.pdf> [Non-Patent Document 4] Kazuo Tsuchiya, Takehiro Nishiyama, Katsuyoshi Tsujita, “Approximate solution of combinatorial optimization problems using branching properties, Part 2: Analysis of deterministic annealing algorithm”, [online], [Retrieved May 17, 2021], Internet,<http: / / www.ynl.t.u-tokyo.ac.jp / project / RobotBrainCREST / publications / pdf / tsuchiya / 4_02.pdf> [Non-Patent Document 5] A. Lucas, “Ising formulations of many NP problems”, Frontiers in Physics 2, 5 (2014), DOI: 10.3389 / fphy.2014.00005 [Non-Patent Document 6] Andrew Lucas, “Ising formulations of many NP problems”, Frontiers in Physics, Interdisciplinary Physics, Volume 2, Articles 5, 12 February 2014 Summary of the Invention [Problem to be solved by the invention]
[0011] The problem to be solved by the present invention is to provide a solution-finding device, a solution-finding method, and a program that are capable of solving a 0-1 combinatorial optimization problem under one or more constraint conditions expressed by inequalities with low computational cost. [Means for solving the problem]
[0012] A solution-finding device according to an embodiment solves a 0-1 combinatorial optimization problem under one or more constraint conditions expressed by an inequality using a plurality of discrete variables included in the 0-1 combinatorial optimization problem. The solution-finding device includes an update unit and an output unit. The update unit alternately updates the first variable and the second variable in sequence for each of a plurality of elements associated with a first variable and a second variable for each unit time from an initial time to an end time. The output unit outputs a solution to the 0-1 combinatorial optimization problem based on the first variable of each of the plurality of elements at the end time. The plurality of elements correspond to the plurality of discrete variables. Each of the first variable and the second variable is expressed by a real number. In the update process for each unit time, the update unit updates the first variable for each of the plurality of elements based on the second variable. In the update process for each unit time, the update unit updates the second variable for each of the plurality of elements based on the first variable. In the update process for each unit time, if the inequality into which the first variables corresponding to each of the plurality of discrete variables are substituted is not satisfied for each of the one or more constraint conditions, the update unit subtracts from the second variable of each of the plurality of elements a correction value corresponding to a component of the corresponding element in a distance from a boundary of the inequality to a position specified by the plurality of elements. [Brief description of the drawings]
[0013] [Figure 1] FIG. 1 is a diagram illustrating the bifurcation phenomenon of the simulated bifurcation algorithm. [Diagram 2] FIG. 2 is a diagram showing the functional configuration of the solution finding device according to this embodiment. [Diagram 3] FIG. 3 is a flowchart illustrating a first example of the processing flow of the update unit. [Figure 4] FIG. 4 is a flowchart illustrating a second example of the process flow of the update unit. [Diagram 5] FIG. 5 is a flowchart showing the process flow of the first example of the constraint processing. [Figure 6]FIG. 6 is a flowchart showing the process flow of the second example of the constraint processing. [Figure 7] FIG. 7 is a flowchart showing the process flow of the third example of the constraint process. [Figure 8] FIG. 8 is a configuration diagram of an information processing system. [Figure 9] FIG. 9 is a configuration diagram of the management server. [Figure 10] FIG. 10 is a diagram illustrating data stored in the storage unit. [Figure 11] FIG. 11 is a configuration diagram of the calculation server. [Figure 12] FIG. 12 is a diagram showing data stored in the storage. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] (0-1 combinatorial optimization problem) An example of a device used to solve the Ising problem is the Ising machine. The Ising machine calculates the ground state energy of the Ising model. Until now, the Ising model has mainly been used as a model for ferromagnetic materials and phase transition phenomena. However, in recent years, the Ising model has increasingly been used as a model for solving 0-1 combinatorial optimization problems. Equation (1) shows the energy of the Ising model.
number
[0015] s i , s j represents the spin, which is a binary variable that can take on a value of either +1 or -1. i represents the i-th spin. s j represents the j-th spin. i and j are integers from 1 to N. N represents the number of spins and is an integer of 2 or more. h i represents the local magnetic field acting on the i-th spin. J is a matrix of coupling coefficients representing the force acting between two spins. J is a real symmetric matrix with zero diagonal elements. Jij represents the element in row i, column j of J. In other words, J ij is the coupling coefficient that represents the force acting between the i-th spin and the j-th spin.
[0016] The Ising machine has energy E Ising is the objective function, and the energy E Ising Calculate the solution that minimizes the energy E Ising The solution of the Ising model (s1, s2, . . . , s N ) is called the optimal solution. However, the solution of the Ising model is not the optimal solution, but the energy E Ising In other words, the Ising problem may be a problem for calculating not only an optimal solution but also an approximate solution.
[0017] In addition, a 0-1 combinatorial optimization problem in which the objective function is a quadratic function of a discrete variable (bit) that takes the value of either 0 or 1 is called a 0-1 quadratic programming problem. The discrete variable (bit) is expressed as (1+s i ) / 2 operation, s i In other words, the 0-1 quadratic programming problem is equivalent to the Ising problem expressed by equation (1). Therefore, the 0-1 quadratic programming problem can be converted into an Ising problem and a solution can be calculated by an Ising machine.
[0018] Ising machines are implemented in hardware, for example, as quantum annealers, coherent Ising machines, and quantum bifurcation machines. Quantum annealers use superconducting circuits to achieve quantum annealing. Coherent Ising machines utilize the oscillation phenomenon of a network formed by optical parametric oscillators. Quantum bifurcation machines utilize the quantum mechanical bifurcation phenomenon in a network of parametric oscillators with the Kerr effect. While these hardware-implemented Ising machines have the potential to achieve significant reductions in calculation time, they also have the problem of being difficult to scale up and operate stably.
[0019] It is also possible to calculate a solution to the Ising problem using a widely used digital computer. Digital computers can be larger in scale and more stable in operation than quantum annealers, coherent Ising machines, quantum bifurcation machines, etc. Simulated annealing (SA) is one example of an algorithm for solving the Ising problem using a digital computer. However, because simulated annealing is a sequential update algorithm in which each variable is sequentially updated, it is difficult to speed up the calculation process by parallelization.
[0020] Non-Patent Document 2 proposes a simulated bifurcation algorithm as an algorithm for solving 0-1 combinatorial optimization problems. The simulated bifurcation algorithm uses an Ising model and is capable of quickly solving large-scale 0-1 combinatorial optimization problems using a digital computer. The simulated bifurcation algorithm is also capable of quickly solving large-scale 0-1 combinatorial optimization problems using electronic circuits such as a CPU (Central Processing Unit), a microprocessor, a GPU (Graphics Processing Unit), an FPGA (Field-Programmable Gate Array), an ASIC (Application Specific Integrated Circuit), or a combination of these circuits.
[0021] (Simulated Branching Algorithm) The simulated branching algorithm is a set of variables x, each of which corresponds to N elements. i and the variable y i Use the variable x i the first variable, variable y i is sometimes called the second variable. In the simulated bifurcation algorithm, each of the N elements represents a virtual particle. The N elements correspond to the N spins of the Ising problem. Thus, the N elements correspond to the N discrete variables (bits) of the combinatorial optimization problem. The variable x i and the variable y iare all continuous variables expressed as real numbers. i represents the position of the i-th particle among N particles. The variable y i represents the momentum of the i-th particle, where N is an integer equal to or greater than 2. i represents an integer equal to or greater than 1 and equal to or less than N, and represents an index that identifies each of the N elements.
[0022] The simulated branching algorithm is i and the variable y i For this, the simultaneous ordinary differential equations of the following equation (2) are numerically solved.
number
[0023] H is the Hamiltonian of the following equation (3).
number
[0024] The coefficient D is a predetermined constant and corresponds to detuning. The coefficient p(t) corresponds to pumping amplitude, and its value increases monotonically according to the number of updates during calculation of the simulated bifurcation algorithm. t is a variable representing time. The initial value of the coefficient p(t) may be set to 0. The coefficient K is a predetermined constant and corresponds to a positive Kerr coefficient. The coefficient K may be 0.
[0025] f i represents the external force and is expressed by the following equation (4).
number
[0026] z in Eq. (4) i The formula in parentheses in formula (3) is the variable x iThe formula in parentheses in formula (3) is the energy E of the Ising model. Ising Corresponds to.
[0027] c is a coefficient, which may be, for example, a constant that is predetermined before performing the calculations, and α(t) is a coefficient that increases with p(t).
[0028] The simulated bifurcation algorithm then calculates the value of the variable x after increasing the value of p(t) from an initial value (e.g., 0) to a given value. i Based on the sign of i The simulated bifurcation algorithm calculates the value of x i If >0 then sgn(x i )=1, x i If < 0 then sgn(x i )=-1, we use the sign function for spin s i Calculate the value of
[0029] (simulated branching algorithm calculation) The simulated bifurcation algorithm uses the symplectic Euler method to solve the differential equations given by (2), (3) and (4).
[0030] Here, when using the symplectic Euler method, the differential equations given by equations (2), (3), and (4) are rewritten as discrete recurrence equations as shown in equations (5) and (6).
number
number
[0031] t represents time. Δt represents unit time (time step, time interval).
[0032] When executing the simulated bifurcation algorithm, a digital computer or an electronic circuit such as an FPGA performs the following operations based on the algorithm of Equation (5) or (6): i and the variable y i sequentially for each unit time from the initial time, and for the variable x i and the variable y i Then, a digital computer or an electronic circuit such as an FPGA updates the N variables x i The value of is binarized using a sign function to output the values of N spins.
[0033] In addition, equations (5) and (6) are expressed using time t and unit time Δt to show the correspondence with differential equations. However, when the symplectic Euler method is executed on a digital computer or an electronic circuit such as an FPGA, the algorithm for computing equations (5) and (6) does not need to include time t and unit time Δt as explicit parameters. For example, when the unit time Δt is 1, the algorithm for computing equations (5) and (6) does not need to include unit time Δt. For example, when time t is not included as an explicit parameter, the algorithm for computing equations (5) and (6) can be expressed as x i (t+Δt) to x i The processing is performed with the updated value of (t). That is, the algorithm for calculating the formula (5) and the formula (6) performs the processing with "t" as a parameter specifying the variable before the update and "t+Δt" as a parameter specifying the variable after the update. The same applies to the algorithm that improves the formula (5) and the formula (6) described below.
[0034] Figure 1 shows the results of solving an optimization problem using the simulated bifurcation algorithm. i This is a diagram showing the bifurcation phenomenon of the system. When solving an optimization problem using the simulated bifurcation algorithm, a bifurcation phenomenon occurs in which a system transitions from one stable motion state to two stable motion states as the parameters of the system change. As shown in Figure 1, as the bifurcation phenomenon progresses, the variable x iis concentrated near -1 or +1, but also spreads out below -1 and above +1.
[0035] (Improved algorithm) The inventor has improved the above-mentioned simulated bifurcation algorithm to devise an improved algorithm for solving a 0-1 combinatorial optimization problem under one or more constraint conditions expressed by inequalities.
[0036] The improved algorithm uses the Hamiltonian shown in equation (7) instead of the Hamiltonian in equation (3) to numerically solve the simultaneous ordinary differential equations in equation (2).
number
[0037] G m represents a penalty term corresponding to the m-th constraint of the one or more constraints. Each of the one or more constraints is represented by an inequality involving multiple discrete variables included in the objective function. For example, the inequality is a linear inequality involving linear terms in the multiple discrete variables or a quadratic inequality involving quadratic terms in the multiple discrete variables.
[0038] The penalty term adds zero energy to the Hamiltonian if the corresponding inequality is satisfied, and adds positive energy to the Hamiltonian if the corresponding inequality is not satisfied. More specifically, G m is a function that adds more energy to the Hamiltonian the greater the distance from the boundary of the inequality that represents the constraint condition to the position specified by the N elements. Note that the boundary of an inequality is the boundary between whether the inequality is satisfied or not. In other words, the boundary of an inequality is expressed by an equation in which the inequality sign in the inequality is replaced by an equal sign.
[0039] The improved algorithm then uses the symplectic Euler method to solve the simultaneous ordinary differential equations using a discrete recurrence formula as shown in equation (8) or equation (9).
number
number
[0040] The recurrence formulas shown in (8) and (9) have a smaller second variable (y i (t+Δt)) is calculated using different formulas. Specifically, the recurrence formulas shown in formulas (8) and (9) are different in that the second variable (y i (t+Δt)) is calculated by adding a penalty term (G m )x i The difference is that the sum of the partial differential values with respect to is multiplied by Δt and then subtracted.
[0041] The partial differential value of each of the one or more inequalities corresponds to the component of the corresponding element in the distance from the boundary of the corresponding inequality to the position specified by the N elements. The larger the component of the corresponding element in the distance from the boundary of the corresponding inequality to the position specified by the N elements, the larger the partial differential value becomes.
[0042] However, the penalty term is 0 if the corresponding inequality is satisfied. Therefore, the partial differential value of each of the one or more inequalities is 0 if N elements satisfy the inequality.
[0043] Here, the simulated bifurcation algorithm calculates the time of day by increasing the time variable t every unit time (Δt) and calculating the time of day by multiplying the first variables (x i ) and multiple second variables (y i ) alternately. Therefore, the simulated bifurcation algorithm can determine whether or not an inequality is satisfied for one or more constraint conditions for each unit time (Δt).
[0044] Therefore, the improved algorithm calculates multiple second variables (y i), for each of one or more constraints, a first variable (x i ) is substituted for each of the plurality of discrete variables. If the inequality into which the first variables corresponding to each of the plurality of discrete variables are substituted is not satisfied for each of the one or more constraint conditions, the improved algorithm determines whether the inequality into which the first variables corresponding to each of the plurality of discrete variables are substituted for each of the one or more constraint conditions is satisfied for each unit time (Δt). i ) corresponding to the plurality of discrete variables. In other words, the improved algorithm subtracts the corresponding correction value from each of the plurality of second variables (y i ) is subtracted a correction value according to the component of the corresponding element in the distance from the boundary of the inequality to the position specified by the multiple elements.
[0045] This allows the improved algorithm to use multiple first variables (x i ) and multiple second variables (y i ) for each unit time (Δt), multiple first variables (x i ) and multiple second variables (y i ) can be corrected. As a result, the improved algorithm can correct the multiple first variables (x i ) can increase the probability that it satisfies all of one or more constraints.
[0046] Even when solving a 0-1 combinatorial optimization problem under one or more constraint conditions expressed by inequalities, such an improved algorithm can obtain a solution with the same number of variables as in the case where no constraint conditions are set. Therefore, such an improved algorithm can easily solve a 0-1 combinatorial optimization problem under one or more constraint conditions expressed by inequalities without setting a slug variable.
[0047] (First example of penalty terms and partial derivatives for linear inequalities) One of the one or more constraints is expressed by a linear inequality. For example, the improved algorithm solves a 0-1 combinatorial optimization problem under the constraints of M linear inequalities (M is an integer equal to or greater than 1). In this case, the m-th constraint among the one or more constraints is expressed by Equation (10).
number
[0048] In formula (10), m is an integer of 1 or more and M or less. i is the i-th discrete variable. In equation (10), x j is the jth discrete variable. m,i is the coefficient by which the i-th discrete variable is multiplied. W m is a predetermined constant.
[0049] When the constraints are expressed by linear inequalities, the penalty term G m can be expressed as shown in equation (11).
number
[0050] A m is a predetermined coefficient for the m-th constraint, where k is an integer equal to or greater than 1. For example, k may be 2.
[0051] S m is the constant term in the linear inequality (W m For each of the multiple discrete variables in the function, except for x i ) is substituted. Specifically, S m When applying the recurrence formula of formula (8), it is expressed as formula (12). m When applying the recurrence formula of equation (9), it can be expressed as equation (13).
number
number
[0052] In this case, the partial differential value is expressed as shown in equation (14).
number
[0053] Therefore, when the constraints are expressed as linear inequalities, the improved algorithm calculates multiple second variables (y i ), the first variable (x i ) is substituted for each unit time (Δt), if the corresponding linear inequality is not satisfied, the improved algorithm performs a linear inequality test using multiple second variables (y i ) is subtracted from each of the above equations a correction value obtained by multiplying the partial differential value expressed in equation (14) by Δt, which represents unit time.
[0054] The improved algorithm that performs such processing can easily solve 0-1 combinatorial optimization problems under constraints expressed by linear inequalities with the same number of variables as in the case where no constraints are set.
[0055] (Second example of penalty terms and partial derivatives for linear inequalities) The partial differential value shown in equation (14) is A m When y is large, calculation errors may accumulate and cause instability. Therefore, the improved algorithm may use the partial differential value expressed by equation (15) when the constraint condition is a linear inequality. That is, the improved algorithm calculates the partial differential value of multiple second variables (y i ), a correction value obtained by multiplying the partial differential value expressed in equation (15) by Δt representing unit time may be subtracted from each of the above equations.
number
[0056] B m is a value between 0 and 1, and is a coefficient determined in advance for the m-th constraint. m is the constant term in the linear inequality (W m For each of the multiple discrete variables in the function, except for y i ) is the value obtained by substituting E m When applying the recurrence formula of equation (8) or equation (9), it is expressed as equation (16).
number
[0057] E m represents the gradient of the direction specified by the multiple elements with respect to the boundary of the linear inequality. Therefore, when the partial differential value of equation (15) is used, the correction value is a value according to the sum of the component of the corresponding element in the distance from the boundary of the inequality to the position specified by the multiple elements and the component of the corresponding element of the gradient of the direction specified by the multiple elements with respect to the boundary of the linear inequality. As a result, the improved algorithm is m Even when the distance-dependent component becomes unstable because of a large difference, the correction value can be stabilized.
[0058] (Penalty terms and partial derivatives for quadratic inequalities) One of the one or more constraints may be expressed by a quadratic inequality, in which case the constraint is expressed by equation (17).
number
[0059] In formula (17), x i is the i-th discrete variable. In equation (17), x j is the jth discrete variable. Q i,j is the value of the i-th row and j-th column in an N-row, N-column positive semidefinite matrix. q is a predetermined constant.
[0060] When the constraints are expressed by quadratic inequalities, the penalty term G can be expressed as shown in equation (18).
number
[0061] A is a predetermined coefficient for the quadratic inequality constraint, and k is an integer equal to or greater than 1. For example, k may be 2.
[0062] S is a function that represents the first variable (x i, x j ) is substituted into S. Specifically, when applying the recurrence formula in formula (8), S is expressed as in formula (19). When applying the recurrence formula in formula (9), S is expressed as in formula (20).
number
number
[0063] In this case, when the recurrence formula of formula (8) is applied, the partial differential value is expressed as shown in formula (21). Also, when the recurrence formula of formula (9) is applied, the partial differential value is expressed as shown in formula (22).
number
number
[0064] Therefore, when the constraints are expressed as quadratic inequalities, the improved algorithm calculates multiple second variables (y i ), the first variable (x i, x j) is substituted for each unit time (Δt), if the corresponding quadratic inequality is not satisfied, the improved algorithm performs a step of substituting multiple second variables (y i ) is subtracted from each of the above equations a correction value obtained by multiplying the partial differential value expressed by equation (21) or equation (22) by Δt representing unit time.
[0065] The Ising model has difficulty in solving 0-1 combinatorial optimization problems under constraints expressed by quadratic inequalities. In contrast, the improved algorithm can easily obtain a solution to a 0-1 combinatorial optimization problem under constraints expressed by quadratic inequalities.
[0066] The improved algorithm can solve a 0-1 combinatorial optimization problem even if one or more constraint conditions include both a constraint condition based on a linear inequality and a constraint condition based on a quadratic inequality. The improved algorithm may also include only a constraint condition based on a linear inequality in one or more constraint conditions. The improved algorithm may also solve a 0-1 combinatorial optimization problem under only a constraint condition based on a quadratic inequality.
[0067] (Function block configuration) FIG. 2 is a diagram showing the functional configuration of the solution finding device 10 according to this embodiment.
[0068] The solution-finding device 10 uses an improved algorithm to solve a 0-1 combinatorial optimization problem under one or more constraint conditions expressed by inequalities. The solution-finding device 10 is realized by an information processing device such as a computer, a computer system configured by multiple computers or servers communicating with each other via a network, or a PC cluster in which multiple computers work together to execute information processing. The solution-finding device 10 is also realized by an electronic circuit such as a CPU, a microprocessor, a GPU, an FPGA or an ASIC, or a circuit that combines these.
[0069] The solution finding device 10 comprises, as its functional components, an input unit 12, an update unit 14, and an output unit 16.
[0070] The input unit 12 receives information for defining the objective function of the 0-1 combinatorial optimization problem (e.g., N, J, h) and information representing coefficients required to execute the improved algorithm (e.g., D, c, Δt, T, p(t), α(t)) from an external device. Furthermore, the input unit 12 receives information for defining one or more constraint conditions (e.g., ω m,i ,W m ,Q i,j ,q), and the coefficients required to perform the constraint processing (e.g., A m ,k,B m , A) from an external device. The input unit 12 then provides the received information to the update unit 14.
[0071] The update unit 14 updates the first variable (x i ) and the second variable (y i For each of the elements to which the first variable (x i ) and the second variable (y i ) are updated alternately.
[0072] The output unit 16 outputs the first variable (x i For example, the output unit 16 outputs a solution to the 0-1 combinatorial optimization problem based on the first variable (x i ) using a preset threshold value to calculate the values of the discrete variables. Then, the output unit 16 outputs the calculated values of the multiple discrete variables as a solution to the 0-1 combinatorial optimization problem.
[0073] Here, the multiple elements correspond to multiple discrete variables of the 0-1 combinatorial optimization problem. i ) and the second variable (y i ) are represented by real numbers.
[0074] In the update process for each unit time, the update unit 14 updates the first variable (x i ) to the second variable (y i In the update process for each unit time, the update unit 14 updates the second variable (y i ) to the first variable (x i ) and update accordingly.
[0075] For example, in the update process for each unit time, the update unit 14 updates the first variable (x i ) and then update the second variable (y i Instead, in the update process for each unit time, the update unit 14 updates the second variable (y i ) and then update the first variable (x i ) may be updated.
[0076] Furthermore, in the update process for each unit time, the update unit 14 updates the second variable (y i ), and then performs constraint processing so that a solution to the 0-1 combinatorial optimization problem satisfies one or more constraint conditions. The update unit 14 updates the first variables (x i ) does not satisfy the inequality substituted, the second variable (y i ) to obtain a correction value (r m,i ) is subtracted.
[0077] In the update process for each unit time, the update unit 14 executes a constraint process for each of one or more constraint conditions, thereby updating a plurality of first variables (x i If the constraints are not satisfied, multiple first variables (x i ) in a direction that satisfies the constraint. i ) at the end time (t=T).i ) can increase the probability that it satisfies all of one or more constraints.
[0078] In the update process for each unit time, the update unit 14 updates the first variable (x i ) and then update the second variable (y i ), for each of the multiple elements, the second variable (y i ) and then update the second variable (y i ) to the correction value (r m,i In the update process for each unit time, the update unit 14 subtracts the second variable (y i ) and then update the first variable (x i ), for each of the multiple elements, the second variable (y i ) and the first variable (x i Before updating the second variable (y i ) to the correction value (r m,i ) is subtracted.
[0079] (Processing flow) 3 is a flowchart showing a first example of the flow of processing by the update unit 14. The update unit 14 executes processing, for example, according to the flow shown in FIG.
[0080] First, in S101, the update unit 14 sets parameters for solving the 0-1 combinatorial optimization problem. Specifically, the update unit 14 sets J, which is a matrix including N×N coupling coefficients, and h, which is an array including local magnetic field coefficients representing N local magnetic fields. Furthermore, the update unit 14 sets D, which is a coefficient, c, Δt, which represents a unit time, T, which represents an end time, p(t), which is a function, and α(t), which is a function. p(t) and α(t) are increasing functions that are 0 at t=initial time (for example, 0) and 1 at t=end time (T). The update unit 14 sets J and h according to information received from the input unit 12. The update unit 14 may set D, c, Δt, T, p(t), and α(t) according to values received from the input unit 12, or may set values that are predetermined and cannot be changed.
[0081] Next, in S102, the update unit 14 sets information related to the constraint conditions. Specifically, the update unit 14 sets information for defining one or more constraint conditions and information representing coefficients necessary for executing the constraint processing. For example, when the constraint conditions are expressed by linear inequalities, the update unit 14 sets information for defining one or more constraint conditions and information representing coefficients necessary for executing the constraint processing. m,i , the constant term W m , which is the coefficient required to perform the constraint processing. m (or A m and B. m ), and k. In addition, for example, when the constraint condition is expressed by a quadratic inequality, the update unit 14 sets Q i,j and q, which is a constant term, and A and k, which are coefficients required for executing the constraint processing. Note that the update unit 14 sets A, which is a coefficient required for executing the constraint processing, m , B m , k and A may be set according to parameters received from the input unit 12, or may be set to values that are predetermined and cannot be changed.
[0082] Next, in S103, the update unit 14 initializes variables. Specifically, the update unit 14 initializes a variable t representing time to an initial time (for example, 0). Furthermore, the update unit 14 initializes N first variables (x1(t) to x N (t)) and N second variables (y1(t) to y N An initial value received from the user, a predetermined fixed value, or a random number is substituted for each of (t).
[0083] Next, the update unit 14 repeats the loop process between S104 and S116 until t becomes greater than T. In one loop process, the update unit 14 updates N first variables (x1(t+Δt) to x N (t+Δt)) for the N first variables (x1(t)~x N (t)), and N second variables (y1(t) to y NIn one loop process, the update unit 14 calculates N second variables (y1(t+Δt) to y N (t+Δt)) for the N first variables (x1(t+Δt)~x N (t+Δt)) and N second variables (y1(t)~y N (t))
[0084] The immediately preceding time (t) is a time unit time (Δt) before the target time (t+Δt). That is, the update unit 14 repeats the loop process between S104 and S116 to update N first variables (x1(t) to x N (t)) and N second variables (y1(t)~y N (t)) is updated sequentially for each unit time (Δt) from the initial time (t = 0) to the end time (t = T).
[0085] Next, the update unit 14 repeats the loop process between S105 and S107 while incrementing i by 1 from i=1 to i=N. i is an integer from 1 to N, and is an index indicating which of the N elements is to be processed. Each of the N elements is calculated by dividing the first variable (x i (t)) and the second variable (y i In the loop process between S105 and S107, the update unit 14 executes the process on the i-th element of the N elements as the target element.
[0086] In S106, the update unit 14 updates the first variable (x i (t+Δt)) is the first variable (x i (t)), the second variable (y i The update unit 14 calculates the time t by adding a value obtained by multiplying the time t by a predetermined constant (D) and a unit time (Δt). Specifically, the update unit 14 calculates the formula (23).
number
[0087] That is, for each of the N elements, the update unit 14 updates the first variable (x i (t+Δt)) is the first variable (x i (t)) and the second variable (y i (t)) shall be updated accordingly.
[0088] When the update unit 14 has executed the loop process between S105 and S107 N times, the update unit 14 advances the process to S .
[0089] Next, the update unit 14 repeats the loop process between S108 and S113 while incrementing i by 1 from i=1 to i=N.
[0090] In S109, the update unit 14 updates the first variables (x1(t+Δt) to x N (t+Δt)) and the action coefficients determined in advance by a 0-1 combinatorial optimization problem for each pair of the target element and each of the N elements, and i (t+Δt)). The action coefficient is the coupling coefficient included in J and the local magnetic field coefficient included in h. Specifically, the update unit 14 calculates equation (24).
number
[0091] Next, in S110, the update unit 14 updates the update value (z i The external force (f i (t+Δt) Specifically, the update unit 14 calculates equation (25).
number
[0092] Next, in S111, the update unit 14 calculates a time evolution value (g) by multiplying a value determined based on p(t+Δt), which is a function that increases with the passage of time, by a first variable (x1(t+Δt)) at the target time (t+Δt) of the target element. i (t+Δt) Specifically, the update unit 14 calculates equation (26).
number
[0093] Next, in S112, the update unit 14 updates the second variable (y i (t+Δ)) to the second variable (y i (t)) and the time evolution value (g i (t+Δt)) and external force (f i The update unit 14 calculates the time t by adding a value obtained by multiplying the sum of (t+Δt) and (t+Δt) by the unit time (Δt). Specifically, the update unit 14 calculates the formula (27).
number
[0094] The update unit 14 executes the above-described loop process between S108 and S113 N times to calculate the second variable (y i (t+Δt)) for the N first variables (x1(t+Δt)~x N (t+Δt)) and the second variable (y i (t)) shall be updated accordingly.
[0095] When the update unit 14 executes the loop process between S108 and S113 N times, the update unit 14 advances the process to S114.
[0096] In S114, the update unit 14 executes a constraint process based on one or more constraint conditions. The constraint process will be described in detail later with reference to the flowcharts of Figures 5 to 7. After completing the process of S114, the update unit 14 advances the process to S115.
[0097] In S115, the update unit 14 adds a unit time (Δt) to each of the previous time (t) and the target time (t+Δt) to update the previous time (t) and the target time (t+Δt). In S116, the update unit 14 repeats the processes from S105 to S115 until t exceeds the end time (T). Then, when t becomes larger than the end time (T), the update unit 14 ends this flow.
[0098] Then, the output unit 16 outputs the first variable (x i For example, the output unit 16 calculates the value of the corresponding spin according to the sign of the first variable (x i If the sign of (T)) is negative, the corresponding spin is set to -1, and if it is positive, the corresponding spin is set to +1. Then, the output unit 16 outputs the calculated values of the multiple spins or values obtained by converting the calculated values of the multiple spins into discrete variables as a solution to the combinatorial optimization problem.
[0099] By executing the above-mentioned processes of S101 to S116, the update unit 14 executes the calculation according to the improved algorithm and updates N first variables (x1(t) to x N (t)) and N second variables (y1(t)~y N (t) can be calculated.
[0100] Fig. 4 is a flowchart showing a second example of the processing flow of the update unit 14. When solving a 0-1 combinatorial optimization problem using an improved algorithm, the update unit 14 may execute the processing according to the flow shown in Fig. 4 instead of the flow shown in Fig. 3.
[0101] First, in S201, S202, and S203, the update unit 14 executes the same processes as S101, S102, and S103 in the first example shown in FIG.
[0102] Next, the update unit 14 repeats the loop process between S204 and S216 until t becomes greater than T. In one loop process, the update unit 14 updates N second variables (y1(t+Δt) to y N (t+Δt)) for the N first variables (x1(t)~x N (t)) and N second variables (y1(t)~y N In one loop process, the update unit 14 calculates N first variables (x1(t+Δt) to x N (t+Δt)) for the N first variables (x1(t)~x N (t)), and N second variables (y1(t+Δt)~y N Calculate based on (t+Δt).
[0103] Next, the update unit 14 repeats the loop process between S205 and S210 while incrementing i by 1 from i=1 to i=N. In the loop process between S205 and S210, the update unit 14 executes the process on the i-th element of the N elements as a target element.
[0104] In S206, the update unit 14 calculates the first variables (x1(t) to x N (t)) and the action coefficients determined in advance by a 0-1 combinatorial optimization problem for each pair of the target element and each of the N elements, and an update value (z i Specifically, the update unit 14 calculates equation (28).
number
[0105] Next, in S207, the update unit 14 updates the update value (z i The external force (f i Specifically, the update unit 14 calculates equation (29).
number
[0106] Next, in S208, the update unit 14 multiplies a value determined based on p(t), which is a function that increases with time, by the first variable (x1(t)) of the target element at the immediately preceding time (t), to obtain a time evolution value (g i Specifically, the update unit 14 calculates equation (30).
number
[0107] Next, in S209, the update unit 14 updates the second variable (y i (t+Δ)) to the second variable (y i (t)) and the time evolution value (g i (t)) and external force (f i The update unit 14 calculates the delay time by adding a value obtained by multiplying the sum of the delay time (t) and the unit time (Δt). Specifically, the update unit 14 calculates the delay time by the formula (31).
number
[0108] The update unit 14 executes the above-described loop process between S205 and S210 N times to calculate the second variable (y i (t+Δt)) for the N first variables (x1(t)~x N (t)) and the second variable (y i (t)) shall be updated accordingly.
[0109] When the update unit 14 has executed the loop process between S205 and S210 N times, the update unit 14 advances the process to S211.
[0110] In S211, the update unit 14 executes a constraint process based on one or more constraint conditions. The constraint process will be described in detail later with reference to the flowcharts of Figures 5 to 7. After completing the process of S211, the update unit 14 advances the process to S212.
[0111] Next, the update unit 14 repeats the loop process between S212 and S214 while incrementing i by 1 from i=1 to i=N.
[0112] In S213, the update unit 14 updates the first variable (x i (t+Δt)) is the first variable (x i (t)), the second variable (y i The update unit 14 calculates the time t by adding a value obtained by multiplying (t+Δt) by a predetermined constant (D) and a unit time (Δt). Specifically, the update unit 14 calculates the formula (32).
number
[0113] That is, for each of the N elements, the update unit 14 updates the first variable (x i (t+Δt)) is the first variable (x i (t)) and the second variable (y i (t)) shall be updated accordingly.
[0114] When the update unit 14 has executed the loop process between S212 and S214 N times, the update unit 14 advances the process to S215.
[0115] In S215, the update unit 14 adds a unit time (Δt) to each of the previous time (t) and the target time (t+Δt) to update the previous time (t) and the target time (t+Δt). In S216, the update unit 14 repeats the processes from S212 to S215 until t exceeds the end time (T). Then, when t becomes larger than the end time (T), the update unit 14 ends this flow.
[0116] Then, the output unit 16 outputs the first variable (x i For example, the output unit 16 calculates the value of the corresponding spin according to the sign of the first variable (x i If the sign of (T)) is negative, the corresponding spin is set to -1, and if it is positive, the corresponding spin is set to +1. Then, the output unit 16 outputs the calculated values of the multiple spins or values obtained by converting the calculated values of the multiple spins into discrete variables as a solution to the combinatorial optimization problem.
[0117] By executing the above-mentioned processes of S201 to S216, the update unit 14 executes the calculation according to the improved algorithm and updates N first variables (x1(t) to x N (t)) and N second variables (y1(t)~y N (t) can be calculated.
[0118] (First example of constraint processing) Fig. 5 is a flowchart showing a process flow of a first example of the constraint process. When M linear inequalities are set as one or more constraint conditions, the update unit 14 executes the process in S114 of Fig. 3 and S211 of Fig. 4 according to the flow shown in Fig. 5.
[0119] First, the update unit 14 repeats the loop process between S301 and S308 while incrementing m by 1 from m=1 to i=M, where m is an index indicating a linear inequality to be processed among the M linear inequalities.
[0120] In the loop of S301 and S308, first, in S302, the update unit 14 updates the constraint value (S m ) is calculated. Specifically, in the constraint process of S114 in Fig. 3, the update unit 14 executes the calculation of formula (33). Also, in the constraint process of S211 in Fig. 4, the update unit 14 executes the calculation of formula (34).
number
number
[0121] In addition, the control value S m is the constant term in the corresponding linear inequality (W m For each of the multiple discrete variables in the function, except for x i ) is the value obtained by substituting
[0122] Next, in S303, the update unit 14 updates the constraint value (S m ) is the constant term in the corresponding linear inequality (W m That is, the update unit 14 determines whether the first variables (x i ) satisfies the corresponding linear inequality.
[0123] The update unit 14 updates the constraint value (S m ) is the constant term in the corresponding linear inequality (W m ), i.e., if multiple first variables (x i If the constraint value (S m ) is the constant term in the corresponding linear inequality (W m ), i.e., if multiple first variables (x i ) does not satisfy the corresponding linear inequality (No in S303), the process proceeds to S304.
[0124] Next, the update unit 14 repeats the loop process between S304 and S307 while incrementing i by 1 from i=1 to i=N. In the loop process between S304 and S307, the update unit 14 executes the process on the i-th element of the N elements as a target element.
[0125] In the loop of S304 and S307, first, in S305, the update unit 14 calculates a correction value (r m,i Specifically, the update unit 14 executes the calculation of equation (35).
number
[0126] Next, in S306, the update unit 14 updates the second variable (y i ) to obtain the correction value (r m,i ) is subtracted. Specifically, the update unit 14 executes the calculation of equation (36).
number
[0127] When the update unit 14 has executed the loop process between S304 and S307 N times, the update unit 14 advances the process to S308.
[0128] Then, when the update unit 14 has executed the loop process between S301 and S308 M times, that is, when the process has been executed for all M linear inequalities, the update unit 14 ends this flow.
[0129] By executing the above process, the update unit 14 updates a plurality of first variables (x i ) does not satisfy the corresponding linear inequality, the second variable (y i ) to obtain a correction value (r m,i) can be subtracted. In this way, the update unit 14 subtracts the multiple first variables (x i ) does not satisfy the corresponding linear inequality, multiple first variables (x i ) in the direction that satisfies the corresponding linear inequality. i As a result, the update unit 14 can correct the multiple first variables (x i ) can increase the probability that it satisfies all of one or more constraints.
[0130] (Second example of constraint processing) Fig. 6 is a flowchart showing a process flow of a second example of the constraint process. When M linear inequalities are set as one or more constraint conditions, the update unit 14 may execute the process in the flow shown in Fig. 6 in S114 of Fig. 3 and S211 of Fig. 4.
[0131] First, the update unit 14 repeats the loop process between S401 and S409 while incrementing m by 1 from m=1 to i=M.
[0132] In the loop of S401 and S409, first, in S402, the update unit 14 updates the constraint value (S m The process of S402 is the same as the process of S302 in FIG.
[0133] Next, in S403, the update unit 14 updates the constraint value (S m ) is the constant term in the corresponding linear inequality (W m ) or less. The process of S403 is the same as the process of S303 in FIG. 5. The update unit 14 determines whether the constraint value (S m ) is the constant term in the corresponding linear inequality (W m ) (Yes in S403), the process proceeds to S409. m ) is the constant term in the corresponding linear inequality (W m ) or less (No in S403), the process proceeds to S404.
[0134] In S404, the update unit 14 calculates the gradient (E m Specifically, the update unit 14 executes the calculation of equation (37).
number
[0135] Next, the update unit 14 repeats the loop process between S405 and S408 while incrementing i by 1 from i=1 to i=N. In the loop process between S405 and S408, the update unit 14 executes the process on the i-th element of the N elements as a target element.
[0136] In the loop of S405 and S408, first, in S406, the update unit 14 calculates a correction value (r m,i Specifically, the update unit 14 executes the calculation of equation (38).
number
[0137] Next, in S407, the update unit 14 updates the second variable (y i ) to obtain the correction value (r m,i The process of S407 is the same as the process of S306 in FIG.
[0138] When the update unit 14 has executed the loop process between S405 and S408 N times, the update unit 14 advances the process to S409.
[0139] Then, when the update unit 14 has executed the loop process between S401 and S409 M times, that is, when the process has been executed for all M linear inequalities, the update unit 14 ends this flow.
[0140] By executing the above process, the update unit 14 updates a plurality of first variables (x i ) does not satisfy the corresponding linear inequality, the second variable (y i ) to obtain the correction value (r m,i In particular, the update unit 14 subtracts the correction value (r m,i ) is updated every unit time (Δt) by adding a value corresponding to the component of the target element of the gradient with respect to the boundary of the linear inequality in the direction specified by the multiple elements. i ) and multiple second variables (y i ) can be prevented from fluctuating unstably.
[0141] As a result, the update unit 14 updates the multiple first variables (x i ) does not satisfy the corresponding linear inequality, multiple first variables (x i ) changes stably in the direction that satisfies the corresponding linear inequality. i As a result, the update unit 14 can correct the multiple first variables (x i ) can increase the probability that it satisfies all of one or more constraints.
[0142] (Third example of constraint processing) Fig. 7 is a flowchart showing a process flow of a third example of the constraint process. When a quadratic inequality is set as one of the one or more constraint conditions, the update unit 14 executes the processes of S501 to S506 shown in Fig. 7 for the quadratic inequality, instead of the processes of S302 to S307 in Fig. 5 or S402 to S408 in Fig. 6.
[0143] First, in S501, the update unit 14 calculates a constraint value (S). Specifically, in the constraint process of S114 in Fig. 3, the update unit 14 executes the calculation of formula (39). Also, in the constraint process of S211 in Fig. 4, the update unit 14 executes the calculation of formula (40).
number
number
[0144] The control value S is calculated by dividing each of the multiple discrete variables included in the function excluding the constant term (q) in the quadratic inequality by the corresponding first variable (x i ) is the value obtained by substituting
[0145] Next, in S502, the update unit 14 judges whether the constraint value (S) is equal to or smaller than the constant term (q) in the quadratic inequality. i ) satisfies the quadratic inequality.
[0146] The update unit 14 updates the constraint value (S) when it is equal to or smaller than the constant term (q) in the quadratic inequality, that is, when the first variables (x i If the constraint value (S) is not equal to or less than the constant term (q) in the quadratic inequality (Yes in S502), the update unit 14 updates the constraint value (S) by 1 if the constraint value (S) is equal to or less than the constant term (q) in the quadratic inequality (Yes in S502). i ) does not satisfy the corresponding quadratic inequality (No in S502), the process proceeds to S503.
[0147] Next, the update unit 14 repeats the loop process between S503 and S506 while incrementing i by 1 from i=1 to i=N. In the loop process between S503 and S506, the update unit 14 executes the process on the i-th element of the N elements as a target element.
[0148] In the loop of S503 and S506, first, in S504, the update unit 14 calculates a correction value (r i ) is calculated. Specifically, in the constraint process of S114 in Fig. 3, the update unit 14 executes the calculation of formula (41). Also, in the constraint process of S211 in Fig. 4, the update unit 14 executes the calculation of formula (42).
number
number
[0149] Next, in S505, the update unit 14 updates the second variable (y i ) to obtain the correction value (r i ) is subtracted. Specifically, the update unit 14 executes the calculation of equation (43).
number
[0150] When the update unit 14 has executed the loop process between S503 and S506 N times, it ends this flow.
[0151] By executing the above process, the update unit 14 updates a plurality of first variables (x i ) does not satisfy the corresponding quadratic inequality, the second variable (y i ) to the correction value (r i ) can be subtracted. In this way, the update unit 14 subtracts the multiple first variables (x i ) does not satisfy the corresponding quadratic inequality, multiple first variables (x i ) in the direction that satisfies the corresponding quadratic inequality. iAs a result, the update unit 14 can correct the multiple first variables (x i ) can increase the probability that it satisfies all of one or more constraints.
[0152] As described above, the solution-finding device 10 according to this embodiment solves a 0-1 combinatorial optimization problem by a simulated branching algorithm. In the update process for each unit time (Δt), when an inequality into which a first variable corresponding to each of a plurality of discrete variables is substituted is not satisfied for one or a plurality of constraint conditions, the solution-finding device 10 according to this embodiment calculates the second variable (y i ) to obtain a correction value (r i ) is subtracted.
[0153] As a result, the solution-finding device 10 according to this embodiment can obtain a solution with the same number of variables as in the case where no constraint conditions are set, even when solving a 0-1 combinatorial optimization problem under one or more constraint conditions expressed by inequalities. Therefore, the solution-finding device 10 according to this embodiment can easily solve a 0-1 combinatorial optimization problem under one or more constraint conditions expressed by inequalities without providing a slug variable. As a result, the solution-finding device 10 according to this embodiment can reduce the amount of memory for storing the intermediate progress of variables, and can reduce the amount and time of calculation.
[0154] When performing linear inequality constraint processing, the solution finding device 10 generates M linear inequalities and calculates ω m,i , and W, the constant of the linear inequality m may be called.
number
[0155] The solver 10 calculates ω by specifying the column number and row number once. m,i and W mcan be read out simultaneously, and processing can be easily performed.
[0156] (System Configuration) Fig. 8 is a diagram showing a configuration of an information processing system 100. The improved algorithm can be executed by, for example, an information processing system 100 as shown in Fig. 8. This enables the information processing system 100 to quickly solve large-scale combinatorial optimization problems by parallel processing.
[0157] The information processing system 100 includes a management server 101, a network 102, a plurality of calculation servers 103 (103a to 103c) (information processing devices), a plurality of cables 104 (104a to 104c), and a switch 105. A terminal device 106 is capable of communicating with the information processing system 100. The management server 101, the plurality of calculation servers 103 (103a to 103c), and the terminal device 106 communicate data with each other via the network 102. The network 102 is, for example, the Internet in which a plurality of computer networks are interconnected. The network 102 may be a wired or wireless communication medium, or a combination of these.
[0158] In addition, the multiple calculation servers 103 (103a to 103c) are connected to the switch 105 via cables 104 (104a to 104c). The multiple cables 104 (104a to 104c) and the switch 105 form an interconnect between the calculation servers 103. Each of the multiple calculation servers 103 (103a to 103c) can also perform data communication with each other via the interconnect. The switch 105 is, for example, an Infiniband switch. The cables 104a to 104c are, for example, Infiniband cables. However, the switch 105 and the cable 104 may be a switch / cable of a wired LAN. There is no particular restriction on the communication standard and communication protocol used in the cable 104 and the switch 105. The terminal device 106 is, for example, a notebook PC, a desktop PC, a smartphone, a tablet, or an in-vehicle terminal device.
[0159] The process of solving a combinatorial optimization problem using the improved algorithm can be executed in parallel and in a distributed manner. Therefore, each of the multiple calculation servers 103 (103a to 103c) and / or the processors of the calculation servers 103 (103a to 103c) may share and execute some steps of some calculation processes in the process of solving a combinatorial optimization problem using the improved algorithm, or may execute the same calculation processes for different variables in parallel. In this case, the management server 101 converts the combinatorial optimization problem input by the user into a format that can be processed by each calculation server 103, and causes each calculation server 103 to execute the problem. Then, the management server 101 obtains the calculation results from each calculation server 103 and converts the aggregated calculation results into a solution to the combinatorial optimization problem.
[0160] FIG. 8 shows three calculation servers 103 (103a to 103c). However, the number of calculation servers 103 included in the information processing system 100 is not limited to three. For example, the information processing system 100 may be one, two, or four or more. The information processing system 100 may execute a process of solving a combinatorial optimization problem using some of the included multiple calculation servers 103. The calculation server 103 may be any type of information processing device. For example, the calculation server 103 may be a server installed in a data center or a desktop PC installed in an office. The calculation server 103 may be multiple types of computers installed in different locations. For example, the calculation server 103 may be a general-purpose computer, a dedicated electronic circuit, or a combination of these.
[0161] 9 is a diagram showing the configuration of the management server 101. The management server 101 is, for example, a computer including a central processing unit (CPU) and a memory. The management server 101 includes a processor 110, a storage unit 114, a communication circuit 115, an input circuit 116, and an output circuit 117. The processor 110, the storage unit 114, the communication circuit 115, the input circuit 116, and the output circuit 117 are connected to each other via a bus 120. The processor 110 includes, as internal functional components, a management unit 111, a conversion unit 112, and a control unit 113.
[0162] The processor 110 is an electronic circuit that executes calculations and controls the management server 101. The processor 110 may be, for example, a CPU, a microprocessor, an ASIC, an FPGA, a PLD, or a combination of these. The management unit 111 provides an interface for operating the management server 101 via the user's terminal device 106. The interface provided by the management unit 111 is, for example, an API, a CLI, or a web page. For example, a user inputs information on a combinatorial optimization problem via the management unit 111, and views and / or downloads a calculated solution to the combinatorial optimization problem. The conversion unit 112 inputs parameters related to the combinatorial optimization problem and converts the input parameters into a format that can be processed by each calculation server 103. The control unit 113 transmits a control command to each calculation server 103. After the control unit 113 acquires the calculation results from each calculation server 103, the conversion unit 112 aggregates multiple calculation results, converts them into a solution to the combinatorial optimization problem, and outputs the solution to the combinatorial optimization problem.
[0163] The storage unit 114 stores various data including the program of the management server 101, data required for executing the program, and data generated by the program. The program includes both an OS and an application. The storage unit 114 may be a volatile memory, a non-volatile memory, or a combination of these. The volatile memory is, for example, a DRAM or an SRAM. The non-volatile memory is, for example, a NAND flash memory, a NOR flash memory, a ReRAM, or an MRAM. The storage unit 114 may also be a hard disk, an optical disk, a magnetic tape, an external storage device, or the like.
[0164] The communication circuit 115 transmits and receives data to and from each device connected to the network 102. The communication circuit 115 is, for example, a NIC (Network Interface Card) of a wired LAN. However, the communication circuit 115 may be another type of communication circuit, such as a wireless LAN. The input circuit 116 realizes data input to the management server 101. The input circuit 116 includes, for example, a USB, a PCI-Express, and the like as an external port. The operation device 118 is connected to the input circuit 116. The operation device 118 is a device for a user to input information to the management server 101. The operation device 118 is, for example, a keyboard, a mouse, a touch panel, a voice recognition device, and the like, but is not limited to these. The output circuit 117 realizes data output from the management server 101. The output circuit 117 includes, for example, an HDMI (registered trademark) or a DisplayPort, and the like as an external port. For example, a display device 119 is connected to the output circuit 117. The display device 119 is, for example, an LCD (liquid crystal display), an organic EL (organic electroluminescence) display, a projector, or the like, but is not limited to these.
[0165] The administrator can perform maintenance of the management server 101 using the operation device 118 and the display device 119. The operation device 118 and the display device 119 may be incorporated in the management server 101. The operation device 118 and the display device 119 do not need to be connected to the management server 101. For example, the administrator may perform maintenance of the management server 101 using a terminal device that can communicate with the network 102.
[0166] FIG. 10 is a diagram showing data stored in the storage unit 114 of the management server 101. The storage unit 114 stores, for example, problem data 114A, calculation data 114B, a management program 114C, a conversion program 114D, and a control program 114E. For example, the problem data 114A includes data of a combinatorial optimization problem. For example, the calculation data 114B includes calculation results collected from each calculation server 103. For example, the management program 114C is a program that realizes the function of the management unit 111. For example, the conversion program 114D is a program that realizes the function of the conversion unit 112. For example, the control program 114E is a program that realizes the function of the control unit 113.
[0167] 11 is a diagram showing the configuration of the calculation server 103a. The other calculation servers 103 may have the same configuration as the calculation server 103a, or may have a different configuration from the calculation server 103a.
[0168] The calculation server 103a includes, for example, a communication circuit 131, a shared memory 132, processors 133a to 133d, a storage 134, and a host bus adapter 135. The communication circuit 131, the shared memory 132, the processors 133a to 133d, the storage 134, and the host bus adapter 135 are connected to each other via a bus 136.
[0169] The communication circuit 131 transmits and receives data to and from each device connected to the network 102. The communication circuit 131 is, for example, a NIC (Network Interface Card) of a wired LAN. However, the communication circuit 131 may be another type of communication circuit, such as a wireless LAN. The shared memory 132 is a memory accessible from the processors 133a to 133d. The shared memory 132 is, for example, a volatile memory, such as a DRAM or an SRAM. The shared memory 132 may include other types of memory, such as a non-volatile memory. The processors 133a to 133d share data via the shared memory 132. The shared memory 132 may not be composed of all the memories of the calculation server 103a. For example, a part of the memory of the calculation server 103a may be a local memory that can be accessed only from any of the processors 133a to 133d.
[0170] The processors 133a to 133d are electronic circuits that execute calculation processes. The processors 133a to 133d may be, for example, any of a CPU, a GPU, an FPGA, and an ASIC, or a combination of these. The processors 133a to 133d may be CPU cores or CPU threads. When the processors 133a to 133d are CPUs, the number of sockets provided in the calculation server 103a is not particularly limited. The processors 133a to 133d may be connected to other components of the calculation server 103a via a bus such as PCI express.
[0171] 11, the calculation server 103a includes four processors 133a to 133d. However, the number of processors included in one calculation server 103a is not limited to four.
[0172] The storage 134 stores various data including the program of the calculation server 103a, data required for executing the program, and data generated by the program. Here, the program includes both the OS and the application. The storage 134 may be a volatile memory and a non-volatile memory, or a combination of these. The volatile memory is, for example, a DRAM or an SRAM. The non-volatile memory is, for example, a NAND flash memory, a NOR flash memory, a ReRAM, or an MRAM. The storage 134 may also include a hard disk, an optical disk, a magnetic tape, or an external storage device.
[0173] The host bus adapter 135 realizes data communication with other calculation servers 103. The host bus adapter 135 is connected to the switch 105 via the cable 104a. The host bus adapter 135 is, for example, a host channel adaptor (HCA). The host bus adapter 135, the cable 104a, and the switch 105 form an interconnect capable of realizing high throughput, thereby improving the speed of parallel calculation processing.
[0174] FIG. 12 is a diagram showing data stored in the storage 134. The storage 134 stores, for example, calculation data 134A, a calculation program 134B, and a control program 134C. The calculation data 134A includes data in the middle of calculation or calculation results of the calculation server 103a. At least a part of the calculation data 134A may be stored in different storage hierarchies such as the shared memory 132, the cache of the processor, or the register of the processor. The calculation program 134B is a program that realizes the calculation process in each processor 133 and the storage process of the shared memory 132 and the storage 134. The control program 134C is a program that controls the calculation server 103a based on a command transmitted from the control unit 113 of the management server 101, and transmits the calculation results of the calculation server 103a to the management server 101.
[0175] In the calculation server 103a, the processors 133a to 133d execute a program for solving a combinatorial optimization problem. The program causes the calculation server 103a to function as the input unit 12, the update unit 14, and the output unit 16.
[0176] The information processing system 100 configured as above can be used as a PC cluster. A PC cluster is a system that connects multiple computers to achieve a calculation performance that cannot be obtained by a single computer. The information processing system 100 can execute parallel calculations by using, for example, MPI (Message Passing Interface) even in a configuration in which memories are distributed and arranged on multiple calculation servers 103.
[0177] The information processing system 100 may include a plurality of GPUs connected by a high-speed link. In this case, each of the plurality of GPUs executes the same processing as the calculation server 103.
[0178] The present invention is not limited to the above-described embodiment as it is, and in the implementation stage, the components can be modified and embodied without departing from the gist of the invention. In addition, various inventions can be formed by appropriate combinations of the multiple components disclosed in the above-described embodiment. For example, some components may be deleted from all the components shown in the embodiment. Furthermore, components from different embodiments may be appropriately combined. [Explanation of symbols]
[0179] 10 Solving device 12 Input section 14 Update section 16 Output section
Claims
1. A problem solving device that solves a 0-1 combinatorial optimization problem under one or more constraint conditions expressed by inequalities using a plurality of discrete variables included in the 0-1 combinatorial optimization problem, comprising: an update unit that updates the first variable and the second variable alternately for each of a plurality of elements associated with a first variable and a second variable, in sequence for each unit time from an initial time to an end time; an output unit that outputs a solution to the 0-1 combinatorial optimization problem based on the first variables of each of the plurality of elements at the end time; Equipped with the plurality of elements corresponding to the plurality of discrete variables; each of the first variable and the second variable is represented by a real number; In the update process for each unit time, the update unit updating the first variable based on the second variable for each of the plurality of elements; updating the second variable based on the first variable for each of the plurality of elements; When the inequality into which the first variables corresponding to the respective discrete variables are substituted is not satisfied for each of the one or more constraint conditions, a correction value according to a component of the corresponding element in a distance from a boundary of the inequality to a position specified by the respective discrete variables is subtracted from the second variable of each of the respective elements. Solving device.
2. The output unit is calculating a value of a discrete variable obtained by binarizing the first variable by a preset threshold value for each of the plurality of elements at the end time; The calculated values of the plurality of discrete variables are output as a solution to the 0-1 combinatorial optimization problem. The solution solving apparatus according to claim 1 .
3. In the update process for each unit time, the update unit performs the following for each of the plurality of elements: updating the second variable after updating the first variable; After updating the second variable, the correction value is subtracted from the second variable. The solution solving apparatus according to claim 2.
4. In the update process for each unit time, the update unit performs the following for each of the plurality of elements: updating the first variable after updating the second variable; After updating the second variable and before updating the first variable, subtract the correction value from the second variable. The solution solving apparatus according to claim 2.
5. In the update process for each unit time, the update unit For each of the plurality of elements, the first variable at a target time is calculated by adding a value obtained by multiplying the second variable, a predetermined constant, and the unit time to the first variable at a time immediately preceding the target time, the time being a unit time before the target time. The solution solving apparatus according to claim 2.
6. In the update process for each unit time, the update unit For each of the plurality of elements, Calculating an external force based on the first variable of each of the plurality of elements and an action coefficient determined by the 0-1 combinatorial optimization problem for each pair of a target element and each of the plurality of elements; calculating a time evolution value by multiplying a value determined based on a function that increases over time by the first variable of the target element; The second variable at the target time is calculated by adding a value obtained by multiplying the unit time by a value obtained by adding the time evolution value and the external force to the second variable at the immediately preceding time. The solution solving apparatus according to claim 5.
7. The 0-1 combinatorial optimization problem includes N discrete variables, The update unit calculates the first variable at the target time of an i-th element corresponding to an i-th discrete variable among the N discrete variables by using equation (101) or equation (102); [0010] N is an integer of 2 or more, i is an integer from 1 to N, D is the constant, Δt is the unit time, t is the immediately preceding time, t+Δt is the target time, x i (t) is the first variable at the immediately preceding time of the i-th element, y i (t) is the second variable of the i-th element at the immediately preceding time, x i (t+Δt) is the first variable at the target time of the i-th element, y i (t+Δt) is the second variable at the target time of the i-th element The solution solving apparatus according to claim 6.
8. The 0-1 combinatorial optimization problem is a 0-1 quadratic programming problem, The update unit calculates the second variable of the i-th element at the target time by equation (103) or equation (104), [0025] g i (t) and g i (t+Δt) is the time evolution value, f i (t+Δt) is expressed by equation (105), and f i (t) is expressed by equation (106), [0030] Z i (t+Δt) is expressed by equation (107), Z i (t) is expressed by equation (108), [0045] j is an integer from 1 to N, h i is the i-th local magnetic field coefficient included in a predetermined array including N local magnetic field coefficients, J i,j is a coupling coefficient in row i, column j contained in a predetermined matrix including N×N coupling coefficients, c is a predetermined real number, x j (t) is the first variable at the immediately preceding time of the jth element corresponding to the jth discrete variable among the N discrete variables, x j (t+Δt) is the first variable at the target time of the j-th element, α(t) is a predetermined function with t as a variable The solution solving apparatus according to claim 7.
9. g i (t) is expressed by equation (109), g i (t+Δt) is expressed by equation (110), [0050] p(t) is a predetermined function with t as a variable, increases according to t, t is 0 at the initial time, t is 1 at the end time, K is a predetermined constant The solution solving apparatus according to claim 8.
10. The m-th constraint among the one or more constraints is expressed by equation (111), [006] m is an integer of 1 or more, x i is the i-th discrete variable, ω m,i is the coefficient by which the i-th discrete variable is multiplied, W m is a predetermined constant The solution finding apparatus according to claim 8 or 9.
11. The update unit calculates r represented by Equation (112) as the correction value for the second variable of the i-th element. m,i Calculate [0070] A m is a coefficient determined in advance for the m-th constraint, k is a predetermined integer of 1 or more, S m is expressed by formula (113) or formula (114). [0080] The solution solving apparatus according to claim 10.
12. The update unit calculates r represented by Equation (115) as the correction value for the second variable of the i-th element. m,i Calculate [0090] A m is a coefficient determined in advance for the m-th constraint, k is a predetermined integer of 1 or more, S m is represented by formula (116) or formula (117), [0010] B m is a coefficient having a value between 0 and 1, the coefficient being determined in advance for the m-th constraint condition, E m is expressed by the formula (118) ##EQU00011## The solution solving apparatus according to claim 10.
13. One of the one or more constraints is expressed by equation (119), ##EQU00012## x i is the i-th discrete variable, x j is the j-th discrete variable, Q i,j is the value in row i, column j of a positive semidefinite matrix, q is a predetermined constant The solution finding apparatus according to claim 8 or 9.
14. The update unit calculates r represented by equation (120) or (121) as the correction value for the second variable of the i-th element. i Calculate ##EQU00013## A is a predetermined coefficient for the corresponding constraint, k is a predetermined integer of 1 or more, S is expressed by formula (122) in the case of formula (120), and by formula (123) in the case of formula (121). ##EQU00014## The solution solving apparatus according to claim 13.
15. A method for solving a 0-1 combinatorial optimization problem under one or more constraint conditions expressed by inequalities using a plurality of discrete variables included in the 0-1 combinatorial optimization problem, the method comprising: an updating step of alternately updating the first variable and the second variable by the information processing device for each of a plurality of elements associated with a first variable and a second variable, in sequence for each unit time from an initial time to an end time; an output step of outputting, by the information processing device, a solution to the 0-1 combinatorial optimization problem based on the first variables of each of the plurality of elements at the end time; Including, the plurality of elements corresponding to the plurality of discrete variables; each of the first variable and the second variable is represented by a real number; In the updating step for each unit time, the information processing device updating the first variable based on the second variable for each of the plurality of elements; updating the second variable based on the first variable for each of the plurality of elements; When the inequality into which the first variables corresponding to the respective discrete variables are substituted is not satisfied for each of the one or more constraint conditions, a correction value according to a component of the corresponding element in a distance from a boundary of the inequality to a position specified by the respective discrete variables is subtracted from the second variable of each of the respective elements. Solution method.
16. A program for causing an information processing device to function as a solution-finding device that solves a 0-1 combinatorial optimization problem under one or more constraint conditions expressed by an inequality using a plurality of discrete variables included in the 0-1 combinatorial optimization problem, comprising: The information processing device, an update unit that updates the first variable and the second variable alternately for each of a plurality of elements associated with a first variable and a second variable, in sequence for each unit time from an initial time to an end time; an output unit that outputs a solution to the 0-1 combinatorial optimization problem based on the first variables of each of the plurality of elements at the end time; and make it work. the plurality of elements corresponding to the plurality of discrete variables; each of the first variable and the second variable is represented by a real number; In the update process for each unit time, the update unit updating the first variable based on the second variable for each of the plurality of elements; updating the second variable based on the first variable for each of the plurality of elements; When the inequality into which the first variables corresponding to the respective discrete variables are substituted is not satisfied for each of the one or more constraint conditions, a correction value according to a component of the corresponding element in a distance from a boundary of the inequality to a position specified by the respective discrete variables is subtracted from the second variable of each of the respective elements. program.
Citation Information
Patent Citations
Quantum calculation device and method
JP2017073106A
Computer, calculation program, recording medium, and calculation method
JP2019145010A
Calculation device, calculation method, and program
JP2021043589A
Information processing device, information processing system, information processing method, storage medium, and program
WO2020196862A1
Information processing device, information processing system, information processing method, storage medium and program
WO2020196915A1
