Information processing device, information processing method, and information processing program
The information processing device converts large-scale inequality constraints into smaller equivalents, enabling optimization specialized devices to solve problems beyond their hardware limitations and achieve optimal solutions for combinatorial optimization.
Patent Information
- Application Number
- JP2020151287
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-09-09
- Publication Date
- 2024-10-23
- Estimated Expiration
- 2040-09-09
AI Technical Summary
Optimization specialized devices, such as annealing machines, face limitations in handling large-scale combinatorial optimization problems due to constraints on the size and magnitude of inequality constraints that can be input, leading to restricted problem sizes and parameters that conventional computers can handle more efficiently.
An information processing device and method that converts large-scale inequality constraints into equivalent constraints with smaller data sizes, allowing optimization specialized devices to solve problems beyond their hardware limitations by transforming coefficients and maintaining the satisfaction of original constraints.
Enables optimization specialized devices to handle problems exceeding their inherent constraints, achieving optimal solutions for previously unsolvable large-scale combinatorial optimization problems.
Smart Images

Figure 0007571428000001 
Figure 0007571428000002 
Figure 0007571428000003
Abstract
Description
[Technical field]
[0001] The present invention relates to an information processing device, an information processing method, and an information processing program that, when a binary optimization problem including at least a linear inequality constraint expressed by a linear inequality is input, output an optimal solution to the binary optimization problem. [Background technology]
[0002] Combinatorial optimization technology is a versatile technology that is used in a variety of fields in the real world. For example, combinatorial optimization technology is applied to a wide variety of industries, such as minimizing delivery costs, constructing efficient networks, scheduling tasks, and optimal allocation of human and computing resources.
[0003] In order to analyze big data and "deal" with it in the real world, it is important to solve combinatorial optimization problems quickly and accurately.
[0004] One type of combinatorial optimization problem is one that is defined by constraints on Boolean variables (variables that take on values of 0 or 1) and an objective function. This type of combinatorial optimization problem is called a "constrained binary optimization problem" (or "0-1 optimization problem", "pseudo-Boolean optimization problem", etc.).
[0005] The "constrained binary optimization problem" dealt with in this application will be described with a specific problem example. The following formula OPT.1 is an example of a constrained binary optimization problem.
[0006] (OPT.1) [Objective function] x1+2*x2+3*x3+2*x4 ···(1) [Constraints] x1+x2+2*x3=2 (2) x1+x3≦1 (3) 3*x1+2*x2+3*x3+x4≧4 ···(4)
[0007] The formula OPT.1 is a constrained binary optimization problem consisting of one objective function (1) and three constraints (2), (3), and (4), and including four variables x1, x2, x3, and x4.
[0008] The variables x1, x2, x3, and x4 are Boolean variables and take the values 0 or 1.
[0009] Constraints (2), (3), and (4) represent constraints that each variable must satisfy in the constrained binary optimization problem. Here, * represents multiplication, + represents addition, and =, ≦, and ≧ represent the magnitude relationship of values. That is, constraint (2) requires that the value of x1 + x2 + 2*x3 be equal to 2. Constraint (3) requires that the value of x1 + x3 be less than or equal to 1. Constraint (4) requires that the value of 3*x1 + 2*x2 + 3*x3 + x4 be greater than or equal to 4.
[0010] Among the constraints included in the formula OPT.1, constraints (3) and (4) are called linear inequality constraints. In other words, linear inequality constraints are constraints that are expressed in a form that compares the left side, which is the sum of "(constant) * (variable)", with the right side, which is a constant term, using "≧" or "≦".
[0011] Also, the set of all value assignments to variables that satisfy constraint C is called the "satisfiable domain" of constraint C. For example, the satisfiable domain of constraint (2) is (x1, x2, x3, x4) = {(1, 1, 0, 0), (1, 1, 0, 1), (0, 0, 1, 0), (0, 0, 1, 1)}.
[0012] Note that if the satisfiable domains are equal, then the constraints have the same meaning even if they are expressed differently. For example, constraint (2) has exactly the same satisfiable domain as "x1+5*x2+6*x3=6···(2')", so the solution to formula OPT.1 would not change at all even if constraint (2') were entered instead of constraint (2). In what follows, two inequality constraints with the same satisfiable domain are said to be "equivalent".
[0013] The objective function (1) represents the target to be optimized in the constrained binary optimization problem OPT.1. That is, the formula OPT.1 is defined as a problem to find the assignment of values to the variables x1, x2, x3, and x4 that satisfies all of the constraints (2), (3), and (4) and that results in the smallest value of the formula OPT.1.
[0014] In formula OPT.1, there are only three possible assignments of values for x1, x2, x3, and x4 that satisfy constraints (2), (3), and (4): (x1, x2, x3, x4) = {(1, 1, 0, 0), (1, 1, 0, 1), (0, 0, 1, 1)}. When (x1, x2, x3, x4) = (1, 1, 0, 0), the value of the objective function (1) is the smallest, which is 3. The assignment (x1, x2, x3, x4) = (1, 1, 0, 0) and the smallest objective function value, 3, are the optimal solution for formula OPT.1.
[0015] The above is an explanation using a specific example of a constrained binary optimization problem.
[0016] It is known that calculations using conventional general-purpose computers, known as von Neumann computers, take a very long time to calculate the optimal solution for some combinatorial optimization problems, including constrained binary optimization problems.
[0017] Therefore, attempts are being made to solve combinatorial optimization problems more efficiently using devices that have operating principles different from those of von Neumann computers. In what follows, such devices will be referred to simply as "specialized optimization devices."
[0018] One example of a specialized optimization device is an annealing machine, which uses a natural phenomenon called "annealing." This is a device that artificially reproduces on hardware the annealing phenomenon, a natural process in which a state with a high energy level transitions to another state with a lower energy level (called a stable state) over a sufficient period of time.
[0019] Directly speaking, an annealing machine is merely a device that calculates "what is the stable state of an input physical model?" However, some combinatorial optimization problems can be mapped to inputs that can be solved by an annealing machine, and the solution to the original problem can be obtained based on the results of the annealing machine. By using the above methods, it is possible to find optimal solutions to some combinatorial optimization problems more efficiently than a general-purpose von Neumann-type computer. [Prior art documents] [Patent documents]
[0020] [Patent Document 1] Patent No. 5922203 [Non-patent literature]
[0021] [Non-Patent Document 1] Michael Booth et al., Partitioning Optimization Problems for Hybrid Classical / Quantum Execution, D-Wave Technical Report Series, January 2017 [Non-Patent Document 2] Andrew Lucas., Ising formulations of many NP problems, Frontiers in Physics, vol. 2, December 2014 [Non-Patent Document 3] Kotaro Tanahashi et al., Application of Ising Machines and a Software Development for Ising Machines, Journal of the Physical Society of Japan, vol 88, May 2019 Summary of the Invention [Problem to be solved by the invention]
[0022] The problems to be solved by the present invention will now be described.
[0023] Devices that directly use natural phenomena, such as annealing machines, are generally difficult to control. Therefore, the scale of natural phenomena that can be reproduced on hardware is severely restricted by technical limitations. For the same reason, the size of problems that specialized optimization devices can handle tends to be more strongly restricted than von Neumann computers.
[0024] The above constraints may not only limit the size of the problem that can be entered, but may also limit the parameters associated with the problem. The constraints are explained below.
[0025] First, we will explain the constraints on parameters related to the problem in detail using an actual problem example.
[0026] Below are three constraints C1, C2, and C3 on Boolean variables.
[0027] (C1) = "x1+2*x2+x3≦2"
[0028] (C2)=“x1+x2+x3+...+x100≦30”
[0029] (C3)=“112345*x1+113579*x2+112345*x3≦225000”
[0030] Constraint C1 is an example of a very simple constraint consisting of three variables x1, x2, and x3, and the problem expression is also concise. Even if the input restrictions are strict, such a constraint can be entered without any problems.
[0031] On the other hand, constraint C2 consists of 100 variables x1, x2, ..., x100. Constraint C2 is a constraint with a larger size than constraint C1. Such constraints cannot be input to an annealing machine, which is limited to handling 50 or less Boolean variables, for example.
[0032] The last constraint C3 is a constraint consisting of three variables like constraint C1, and is a simple constraint like constraint C1.
[0033] However, constraint C3 has much larger constants than constraint C1. The largest constant in constraint C1 is 2, whereas in constraint C3 it is 225,000. As can be seen by comparing the decimal representations, problems with larger coefficients require a larger data area for their representation. Therefore, if there is a technical upper limit on the size of data that can be input to the optimization specialized device, such constraints cannot be input.
[0034] The above describes the constraints on the parameters related to the problem.
[0035] Next, we will explain the "constraints on problems that can be input to the optimization specialized device" using a concrete example. Here, we will describe the case where an annealing machine is selected as a specific optimization specialized device.
[0036] In the case of an annealing machine, the above-mentioned constraint on the size of input data involves the concept of "gradation" (of interaction between variables).
[0037] Intuitively, the magnitude of a coefficient in an inequality constraint indicates how much influence the variable it affects has compared to other variables. For example, in constraint C1, the coefficient of variable x2 is twice as large as the coefficient of variable x1, indicating that variable x2 has twice as much influence as variable x1.
[0038] Although there are several methods for mapping inequality constraints to an annealing machine, at least the "magnitude of influence between variables" as described above must be reproduced on the hardware of the annealing machine.
[0039] The magnitude of the influence between variables in an annealing machine is expressed by a setting item that defines "how strong the interaction between each variable." The values that can be set here are discrete, and vary depending on the hardware, with four levels (-2,-1,0,1), two levels (0,1), and 512 levels (-256 to 255). The number of levels that can be set on the hardware is called the "gradation."
[0040] That is, the number of "tones" inherent to the hardware limits the magnitude of the coefficients (absolute values) of the inequality constraints that can be handled.
[0041] In fact, the value of the gradation is very small depending on the hardware. For example, Patent Document 1 describes a device with three gradations, -1, 0, and 1. For such hardware, the problems that can be input are extremely limited.
[0042] The above is a specific explanation of the "constraints on problems that can be input to the optimization specialized device."
[0043] To summarize the explanation so far, there are restrictions on the coefficients of inequality constraints that can be input to the optimization specialized device, and these restrictions are determined depending on values specific to the hardware (in the case of an annealing machine, the "gradation" value).
[0044] An object of the present invention is to make it possible to handle problems that go beyond the "coefficient constraints inherent to the optimization specialized device" using the same optimization specialized device.
[0045] In order to have the optimization specialized device M solve a problem that includes constraints that cannot be input to the optimization specialized device M, there is a method of inputting an approximate problem.
[0046] For example, suppose that the optimization specialized device M only allows 256 values, from -128 to 127, for the coefficients of an inequality constraint. In this situation, the inequality constraint C3 is an example of an inequality constraint that "cannot be handled directly," but by multiplying each coefficient by 128 / 225000 and rounding it off, an inequality constraint C3' that can be input can be obtained.
[0047] C3'=``63*x1+64*x2+63*x3≦127''
[0048] This method makes it possible to input a constraint similar to constraint C3, but for example, assigning values to variables (x1, x2, x3) = (1, 1, 0) satisfies constraint C3 but not constraint C3'. Therefore, these inequality constraints are completely different constraints with different satisfying regions, and the problem of the present invention cannot be solved by such an "approximation" method. [Means for solving the problem]
[0049] In one aspect of the present invention, an information processing device is an information processing device that, when a binary optimization problem including a linear inequality constraint expressed by at least a linear inequality is input, outputs an optimal solution to the binary optimization problem, an inequality constraint conversion unit that converts coefficient sizes of linear inequalities so that assignment of values of variables that satisfy the input linear inequality constraints does not change; The system includes a constraint conversion unit that converts constraints expressed by linear inequalities with coefficient sizes smaller than the coefficient size of the linear inequalities, and an optimization unit that calculates an optimal solution to a binary optimization problem based on constraints including the linear inequalities converted by the constraint conversion unit.
[0050] In one aspect of the present invention, an information processing method is provided for outputting an optimal solution to a binary optimization problem when a binary optimization problem including a linear inequality constraint expressed by at least a linear inequality is input, the information processing method comprising the steps of: The computer converts the coefficient sizes of the linear inequality so that the assignment of the values of the variables that satisfy the input linear inequality constraint does not change, and the computer Convert the constraints into linear inequalities with coefficient sizes smaller than the coefficient size of the linear inequalities, The computer Compute the optimal solution to the binary optimization problem based on constraints that include the transformed linear inequalities.
[0051] In one aspect of the present invention, an information processing program is an information processing program that outputs an optimal solution to a binary optimization problem when the binary optimization problem includes a linear inequality constraint expressed by at least a linear inequality, the information processing program including: an inequality constraint conversion process for converting coefficient sizes of linear inequalities so that the assignment of values of variables that satisfy the input linear inequality constraints does not change;A constraint conversion process is executed to convert a constraint into a constraint expressed by a linear inequality with a coefficient size smaller than the coefficient size of the linear inequality, and an optimization process is executed to calculate an optimal solution to a binary optimization problem based on a constraint including the linear inequality converted by the constraint conversion process. Effect of the Invention
[0052] According to the present invention, problems that go beyond the inherent constraints of a specialized optimization device can be handled by the same specialized optimization device. [Brief description of the drawings]
[0053] [Figure 1] 1 is a block diagram illustrating an example of an information processing apparatus according to a first embodiment. [Diagram 2] 5 is a flowchart showing an example of the operation of the information processing device of the first embodiment. [Diagram 3] 13 is a flowchart showing an example of an operation of the inequality constraint conversion unit in the first exemplary embodiment. [Figure 4] FIG. 11 is a block diagram illustrating an example of an information processing apparatus according to a second embodiment. [Diagram 5] FIG. 13 is a block diagram illustrating an example of an information processing apparatus according to a third embodiment. [Figure 6] 13 is a flowchart showing an example of the operation of the inequality constraint conversion unit in the third exemplary embodiment. [Figure 7] FIG. 13 is a block diagram illustrating an example of an information processing apparatus according to a fourth embodiment. [Figure 8] 13 is a flowchart showing an example of the operation of the inequality constraint conversion unit in the fourth exemplary embodiment. [Figure 9] 13 is a flowchart showing an example of the operation of the inequality constraint conversion unit in the fourth exemplary embodiment. [Figure 10] FIG. 1 is a block diagram showing an example of a computer having a CPU. [Figure 11] 1 is a block diagram showing a main part of an information processing device; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0054] Embodiment 1. Hereinafter, a first embodiment of the present invention will be described with reference to the drawings. Fig. 1 is a block diagram showing an example of an information processing device 10 of the first embodiment. The information processing device 10 according to the first embodiment includes four processing blocks shown in Fig. 1. That is, the information processing device 10 includes a constraint conversion unit 11, an inequality constraint conversion unit 12, a satisfaction determination unit 13, and an optimization unit 14.
[0055] The constraint conversion unit 11 receives as input a constrained binary optimization problem including a linear inequality constraint expressed by a linear inequality, and outputs a constrained binary optimization problem in which the linear inequality constraint included in the input is converted into another equivalent linear inequality constraint that can be expressed with a smaller data size.
[0056] The inequality constraint conversion unit 12 receives a linear inequality constraint as an input, and outputs another equivalent linear inequality constraint that is made up of only coefficients that can be represented with a smaller data size.
[0057] The satisfaction determination unit 13 receives the constraint equations from the inequality constraint conversion unit 12 as input, and if there is a value assignment to the variables that satisfies the constraint equations, it determines that the combination of values is "satisfiable" and outputs the combination of values. If there is no such combination of values, the satisfaction determination unit 13 determines that the combination is "unsatisfiable."
[0058] The optimization unit 14 receives a constrained binary optimization problem including the linear inequalities converted by the constraint conversion unit 11, and finds and outputs a solution to the problem.
[0059] A more detailed definition of the "data size of coefficients" of inequality constraints in the present invention will be described below. In the following, the values of coefficients and constant terms are discussed as integers, but even if they are decimals, they can be treated the same as integers by multiplying both sides by an appropriate constant (for example, an inequality constraint of 0.4*x1+0.3*x2≦1.0 can be converted to an inequality constraint with integer coefficients of 4*x1+3*x2≦10 by multiplying both sides by 10).
[0060] There are four possible types of inequality constraints: "constraint (1) left side ≦ right side", "constraint (2) left side ≧ right side", "constraint (3) left side < right side", and "constraint (4) left side > right side". However, constraints (2) and (4) can be converted to types (1) and (3), respectively, by multiplying both sides by -1.
[0061] Also, an inequality constraint of type (3) can be converted to the type of constraint (1). To illustrate this, consider the following inequality constraint C.T3 of type (3):
[0062] C.T3 = "c1*x1+c2*x2+...+cn*xn <c」
[0063] Consider the following inequality constraint C.T1, in which the "<" in C.T3 is replaced with "≦".
[0064] C.T1=“c1*x1+c2*x2+...+cn*xn≦c”
[0065] The satisfiable region of inequality constraint C.T1 is the satisfiable region of inequality constraint C.T3 plus the equality constraint "c1*x1+c2*c2+...+cn*xn=c". Here, to remove only the satisfiable region of this equality constraint from inequality constraint C.T1, subtract 1 / 2 from the right-hand side to create the next inequality constraint C.T1'. Note that because the value subtracted from the right-hand side is less than 1, this operation does not move an assignment that was in the satisfiable region out of the satisfiable region, nor does it move an assignment that was outside the satisfiable region into the satisfiable region.
[0066] C.T1'=c1*x1+c2*x2+...+cn*xn≦c-1 / 2
[0067] Since inequality constraint C.T1' has the same satisfying domain as inequality constraint C.T3, we have obtained an inequality constraint of the type (1) that is exactly the same as the constraint. Furthermore, by doubling both sides of this, we can obtain the integer coefficient inequality constraint shown below that is "equivalent to inequality constraint C.T3 and is of constraint type (1)."
[0068] 2*c1*x1+2*c2*x2+...+2*cn*xn≦2*c-1
[0069] From the above explanation, all inequality constraints can be expressed as the type of constraint (1). Therefore, the "coefficient size" of an inequality constraint can be defined as follows. The coefficient size of an inequality constraint "c1*x1+c2*x2+...+cn*xn≦c" is the minimum number of bits required to express all of c1, c2,...,cn, and c. Note that the coefficient size of -2 in b bits is b From 2 b It can represent integers up to -1.
[0070] For example, the inequality constraint (4) included in the constrained binary optimization problem OPT.1 requires 3 bits to represent the constant term 4, so the coefficient size of the inequality constraint (4) is 3.
[0071] Next, an operation of the information processing device 10 of the first embodiment for calculating a solution to a constrained binary optimization problem will be described with reference to FIG.
[0072] FIG. 2 is a flowchart showing how the information processing device 10 calculates a solution to an input constrained binary optimization problem.
[0073] First, a constrained binary optimization problem is input to the constraint conversion unit 11 via an input / output device (not shown) in the information processing device 10 (step S201).
[0074] Next, when the input constrained binary optimization problem has inequality constraints C, the constraint conversion unit 11 inputs each inequality constraint C one by one to the inequality constraint conversion unit 12 (step S202).
[0075] The inequality constraint conversion unit 12 returns an inequality constraint R[C] having a smaller coefficient size, which is equivalent to the input inequality constraint C, to the constraint conversion unit 11 (step S203).
[0076] The constraint conversion unit 11 converts the original inequality constraint C into an inequality constraint R[C] converted by the inequality constraint conversion unit 12 (step S204).
[0077] When conversion of all inequality constraints is completed, the constraint conversion unit 11 inputs the constrained binary optimization problem to the optimization unit 14 (step S205).
[0078] The optimization unit 14 obtains an optimal solution to the input constrained binary optimization problem, and outputs it as an optimal solution to the original problem (step S206).
[0079] The above is a description of the operation of the information processing device 10.
[0080] Next, the operation of the inequality constraint conversion unit 12 in the first embodiment for converting inequality constraints into inequality constraints with smaller coefficient sizes will be described with reference to FIG.
[0081] FIG. 3 is a flowchart showing how the inequality constraint conversion unit 12 converts input inequality constraints into inequality constraints with smaller coefficient sizes.
[0082] First, the inequality constraint conversion unit 12 receives an inequality constraint C="c1*x1+c2*x2+...+cn*xn≦c" as an input from the constraint conversion unit 11. x1,...,xn are variables, and c1,...,cn,c are constants (concrete numerical values).
[0083] Next, the inequality constraint conversion unit 12 newly introduces n+1 variables r1, r2, ..., rn, r to generate a constraint equation R[C] = "r1*x1+r2*x2+...+rn*xn≦r". The inequality constraint conversion unit 12 determines the assignment of values (r1, r2, ..., rn, r) = (d1, d2, ..., dn, d) to the variables r1, ..., rn, r in the constraint equation R[C]. In this way, the original inequality constraint C becomes the inequality constraint R[C][d1, ..., dn, d] = "d1*x1+d2*x2+...+dn*xn≦d" regarding the variables x1, ..., xn (step S301).
[0084] Next, the inequality constraint conversion unit 12 configures the following constraint EQUIV(r1,...,rn,r) regarding the variables r1,...,rn,r by combining the inequality constraint C with the constraint equation R[C] (step S302).
[0085] EQUIV(r1,...,rn,r) = "For all assignments to x1,x2,...,xn, 'the inequality constraint C holds' ⇔ 'the constraint R[C] holds'"
[0086] Here, we explain what it means that the assignment of values (r1,r2,...,rn,r) = (d1,d2,...,dn,d) to variables r1,...,rn,r satisfies the constraint EQUIV(r1,...,rn,r). As described above, the constraint R[C] then becomes an inequality constraint R[C][d1,...,dn,d] = "d1*x1+d2*x2+...+dn*xn≦d" regarding variables x1,...,xn. Therefore, the proposition EQUIV[d1,...,dn,d] shown below holds. This can also be interpreted as expressing the relationship between the two inequality constraints C and R[C][d1,...,dn,d].
[0087] EQUIV[d1,...,dn,d] = "For all assignments to x1,x2,...,xn, 'the inequality constraint C holds' ⇔ 'the inequality constraint R[C][d1,...,dn,d] holds'"
[0088] That is, the fact that the proposition EQUIV[d1,...,dn,d] holds means that "an assignment to x1,...,xn that satisfies the inequality constraint C is equivalent to one that satisfies the inequality constraint R[C][d1,...,dn,d]," meaning that the domains of satisfaction of these two inequality constraints are equal. Therefore, when the proposition EQUIV[d1,...,dn,d] holds, the inequality constraint C and the inequality constraint R[C][d1,...,dn,d] are equivalent.
[0089] This explains what it means for the value assignment (r1, r2, ..., rn, r) = (d1, d2, ..., dn, d) to satisfy the constraint EQUIV(r1, ..., rn, r).
[0090] From the above, if it is possible to find a value assignment (r1, r2, ..., rn, r) = (d1, d2, ..., dn, d) that satisfies the constraint EQUIV(r1, ..., rn, r), it is possible to obtain an inequality constraint R[C][d1, ..., dn, d] equivalent to the original inequality constraint C based on that assignment. Therefore, in steps S304 and after in Fig. 3, a procedure is carried out to calculate value assignments to variables r1, r2, ..., rn, r that satisfy the constraint EQUIV(r1, ..., rn, r).
[0091] Next, the inequality constraint conversion unit 12 repeatedly executes steps S305 and S306 while sequentially increasing the value of the variable b from b=1 to b=2, 3, . . . (step S304).
[0092] In step S305, the inequality constraint conversion unit 12 constructs the next constraint CHECK[C,b](r1,...,rn,r) based on the constraint EQUIV(r1,...,rn,r).
[0093] CHECK[C,b](r1,...,rn,r) = "r1,...,rn,r can all be expressed in b bits" and "EQUIV(r1,...,rn,r) holds"
[0094] Here, the meaning of the constraint CHECK[C,b](r1,...,rn,r) is explained.
[0095] The constraint CHECK[C,b](r1,...,rn,r) is the same as the constraint EQUIV(r1,...,rn,r) except that the variables r1,...,rn,r must all be equal to or smaller than b bits.
[0096] Taking into account the meaning of the constraint EQUIV(r1,...,rn,r) mentioned above, the value assignment (r1,...,rn,r)=(d1,...,dn,d) satisfying the constraint CHECK[C,b](r1,...,rn,r) means that "d1,...,dn,d are all integer values that can be represented in b bits, and d1*x1+...+dn+xn≦d is equivalent to the inequality constraint C." Furthermore, it means that "d1*x1+...+dn*xn≦d is equivalent to the inequality constraint C, and the coefficient size is b or less."
[0097] In other words, if there exists an assignment of values (r1,r2,...,rn,r) = (d1,d2,...,dn,d) to variables r1,...,rn,r that satisfies the constraint CHECK[C,b](r1,...,rn,r), then we have obtained an inequality constraint R[C][d1,...,dn,d] that is equivalent to inequality constraint C and has coefficient size less than or equal to b.
[0098] Conversely, if there is no value assignment (r1,r2,...,rn,r)=(d1,d2,...,dn,d) to variables r1,...,rn,r that satisfies constraint CHECK[C,b](r1,...,rn,r), then there is no inequality constraint with coefficient size less than or equal to b that is equivalent to inequality constraint C.
[0099] This concludes the explanation of the meaning of the constraint CHECK[C,b](r1,...,rn,r).
[0100] In step S306, the inequality constraint conversion unit 12 inputs the constraint CHECK[C,b](r1,...,rn,r) to the satisfaction determination unit 13. If the result of the satisfaction determination unit 13 is "satisfiable", the process proceeds to step S307. If the result of the satisfaction determination unit 13 is "unsatisfiable", the process returns to step S304.
[0101] In step S307, the inequality constraint conversion unit 12 constructs inequality constraints R[C][d1,...,dn,d] based on the value assignment (r1,r2,...,rn,r)=(d1,d2,...,dn,d) output from the satisfaction determination unit 13, and outputs the result.
[0102] The above is a description of the operation of the inequality constraint conversion unit 12 in the first embodiment to convert inequality constraints into inequality constraints with smaller coefficient sizes.
[0103] Hereinafter, a specific operation of the inequality constraint conversion unit 12 of the first embodiment will be described using a specific example of inequality constraints.
[0104] The operation when an inequality constraint C3 is given as a specific input will be described later. The inequality constraint C3 is an inequality constraint as shown below, and its coefficient size is 18.
[0105] C3=“112345*x1+113579*x2+112345*x3≦225000”
[0106] In response to this, the inequality constraint conversion unit 12 prepares four variables r1, r2, r3, and r in step S302, and generates the following constraint equation R[C3].
[0107] R[C3]=“r1*x1+r2*x2+r3*x3≦r”
[0108] Next, in step S303, the inequality constraint conversion unit 12 constructs the next constraint EQUIV[C3](r1, r2, r3, r).
[0109] EQUIV[C3](r1, r2, r3, r) = "For all assignments to x1, x2, x3, 'C3 holds' ⇔ 'R[C3] holds'."
[0110] Next, the process enters an iterative procedure from step S304. First, the inequality constraint conversion unit 12 inputs the next constraint CHECK[C3,1](r1, r2, r3, r) to the satisfaction determination unit 13 with b=1.
[0111] CHECK[C3,1](r1,r2,r3,r) = "r1,r2,r3,r are all -1 or 0" and "EQUIV[C3](r1,r2,r3,r) is true"
[0112] Since there is no value assignment to r1, r2, r3, and r that satisfies CHECK[C3,1](r1, r2, r3, r), the satisfaction determination unit 13 returns “unsatisfiable” to the inequality constraint conversion unit 12.
[0113] Next, the inequality constraint conversion unit 12 sets b=2 and inputs the next constraint CHECK[C3,2](r1, r2, r3, r) to the satisfaction determination unit 13.
[0114] CHECK[C3,1](r1,r2,r3,r) = "r1,r2,r3,r are all -2, -1, 0, or 1" and "EQUIV[C3](r1,r2,r3,r) is true"
[0115] Since there is no value assignment to r1, r2, r3, and r that satisfies the constraint CHECK[C3,1](r1, r2, r3, r), the satisfaction determination unit 13 returns “unsatisfiable” to the inequality constraint conversion unit 12.
[0116] Next, the inequality constraint conversion unit 12 inputs the next constraint CHECK[C3,3](r1, r2, r3, r) to the satisfaction determination unit 13 with b=3.
[0117] CHECK[C3,1](r1,r2,r3,r) = "r1,r2,r3,r are all between -4 and 3" and "EQUIV[C3](r1,r2,r3,r) is true"
[0118] There exists (r1, r2, r3, r)=(1, 2, 1, 2) as a value assignment that satisfies CHECK[C3,1](r1, r2, r3, r). Therefore, the satisfaction determination unit 13 returns the value assignment together with “satisfiable” to the inequality constraint conversion unit 12.
[0119] In step S307, the inequality constraint conversion unit 12 uses the value assignment (r1, r2, r3, r)=(1, 2, 1, 2) returned from the satisfaction determination unit 13 and outputs the inequality constraint “x1+2*x2+x3≦2” to the constraint conversion unit 11 as a result.
[0120] The coefficient size value of the inequality constraint C1 is 3, which is smaller than the coefficient size value of 18 of inequality constraint C3. Furthermore, the satisfaction regions of these two inequality constraints are both (x1, x2, x3) = {(0, 0, 0), (1, 0, 0), (0, 0, 1), (0, 1, 0), (1, 0, 1)}, so they are equivalent inequality constraints.
[0121] The above is a specific operation of the inequality constraint conversion unit 12 of the first embodiment using the specific inequality constraint example C3.
[0122] Next, a description will be given of the operation of the satisfaction determination unit 13. As described above, the satisfaction determination unit 13 determines the assignment of values to the variables r1, ..., rn, r that satisfies the constraint equation CHECK[C,b](r1, ..., rn, r) input from the inequality constraint conversion unit 12.
[0123] The method by which the satisfaction determination unit 13 calculates the allocation of values to integer variables is not particularly limited, and may be a known method. In the following, several specific methods for calculating the allocation of values by known methods will be shown.
[0124] The first method is to use a constraint solver that can directly solve the constraint equation CHECK[C,b](r1,...,rn,r). Since the constraint equation CHECK[C,b](r1,...,rn,r) is formally a constraint equation for quantified integer variables, it is possible to assign values to the variables r1,...,rn,r by using a constraint solver that can directly solve it.
[0125] The second method is to expand the constraint CHECK[C,b](r1,...,rn,r) into a conjunction of multiple inequality constraints. The domain of satisfaction of the inequality constraint C is (x1,x2,...,xn)={(v1[1],v2[1],...,vn[1]),(v1[2],v2[2],...,vn[2]),...,(v1[m],v2[m],...,vn[m])}. If the n pairs of 0s and 1s not included here are {(u1[1],u2[1],...,un[1]),(u1[2],u2[2],...,un[2]),...,(u1[k],u2[k],...,un[k])}, then the constraint CHECK[C,b](r1,...,rn,r) is equivalent to the conjunction of inequality constraints as follows:
[0126] CHECK[C,b](r1,...,rn,r)="-2 b ≦r1” and “r1≦2 b -1" and "-2" b ≦r2” and “r2≦2 b -1" and..."-2" b ≦rn” and “rn≦2 b -1" and "-2" b ≦r” and “r≦2 b -1" and "r1*v1[1]+...+rn*vn[1]≦r" and ..., "r1*v1[m]+...+rn*vn[m]≦r" and "r1*u1[1]+...+rn*un[1]>r" and ..., "r1*u1[k]+...+rn*un[k]>r"
[0127] By going through the above formalization, the satisfaction determination unit 13 can determine the assignment of values to the variables r1,...,rn,r using a solver that can solve conjunctions of integer inequality constraints that do not correspond to the quantification of the variables.
[0128] As a third method, it is possible to decompose the above variables r1, r2, ..., rn, r into Boolean variables and convert all variables into Boolean variables. Although details are omitted, by definition, the values of r1, ..., rn, r that satisfy the constraint formula CHECK[C, b](r1, ..., rn, r) can always be expressed in b bits. Therefore, the satisfaction determination unit 13 can encode the bit expression itself by using b Boolean variables for the variable ri.
[0129] For example, assuming that a variable ri can be expressed in 4 bits, the satisfaction determination unit 13 can prepare four Boolean variables ri[1], ri[2], ri[3], and ri[4] for the variable ri and replace the variable ri with the following terms:
[0130] ri[4]*8+ri[3]*4+ri[2]*2+ri[1]
[0131] By expressing everything in this way as Boolean variables, all variables included in the constraint CHECK[C,b](r1,...,rn,r) (including the quantified x1,...,xn) become Boolean variables.
[0132] For problems in which all variables are Boolean variables and coefficients include numerical values, there is a known method of reducing the problem to a satisfiability problem (SAT) for solution. Therefore, by further reducing the problem to which the above transformation has been applied, the satisfaction determination unit 13 can determine value assignments using a known SAT solving technique.
[0133] The above is a specific description of a technique that utilizes a known method and that can be used by the satisfaction determination unit 13 to determine the assignment of values to the variables r1, . . . , rn, and r.
[0134] The optimization unit 14 of the first embodiment receives a constrained binary optimization problem as input, and uses an optimization specialized device to find and output an optimal solution.
[0135] The method by which the optimization unit 14 of the first embodiment uses an optimization specialized device to find an optimal solution to a constrained binary optimization problem is not particularly limited, and may be a known method. For example, Non-Patent Document 3 describes a method for solving an optimization problem with an inequality constraint using an Ising machine, which is one of the optimization specialized devices. This method may be used as an implementation of the optimization unit 14.
[0136] As described above, the information processing device 10 of the first embodiment converts an input constrained binary optimization problem into an equivalent constrained binary optimization problem with a smaller coefficient size, and then performs optimization by the optimization unit 14. As a result, the information processing device 10 of the first embodiment can obtain an optimal solution even for a binary optimization problem for which it is essentially impossible to obtain an optimal solution directly due to hardware constraints.
[0137] Embodiment 2. Hereinafter, a second embodiment of the present invention will be described with reference to the drawings. Fig. 4 is a block diagram showing an example of an information processing device 20 according to the second embodiment. The information processing device 20 according to the second embodiment includes four processing blocks shown in Fig. 4. That is, the information processing device 20 includes a constraint conversion unit 11, an inequality constraint conversion unit 12, a satisfaction determination unit 13, and an optimization unit 14.
[0138] The information processing device 20 has most of the same components as the information processing device 10. However, the optimization unit 14 is made up of two devices: a problem conversion unit 141 and an optimal solution calculation unit 142.
[0139] The operation of the information processing device 20 of the second embodiment will be described. The configuration of the information processing device 20 of the second embodiment is the same as that of the information processing device 10, except that the optimization unit 14, which is composed of two devices, a problem conversion unit 141 and an optimal solution calculation unit 142, is used to find an optimal solution to a constrained binary optimization problem.
[0140] The operation of the optimization unit 14 of the second embodiment will be described. The optimization unit 14 of the second embodiment first inputs a constrained binary optimization problem to the problem conversion unit 141. After that, the optimization unit 14 outputs the output returned from the problem conversion unit 141 via the optimal solution calculation unit 142 as the optimal solution of the formula OPT.
[0141] The problem conversion unit 141 converts the input constrained binary optimization problem into an equivalent quadratic unconstrained binary optimization problem (Quadratic Unconstrained Binary Optimization, QUBO), and inputs it to the optimal solution calculation unit 142. Furthermore, the optimization unit 14 receives the output returned from the optimal solution calculation unit 142, converts it into a solution to the original constrained binary optimization problem, and outputs it.
[0142] The method by which the problem conversion unit 141 converts a constrained binary optimization problem into a quadratic unconstrained binary optimization problem is not particularly limited and may be a known method. Below, a specific example of a method for converting a constrained binary optimization problem into a quadratic unconstrained binary optimization problem will be described by illustrating a procedure for converting a specific problem. This method is similar to the technique introduced in Non-Patent Document 2 as a method for converting a "Knapsack with Integer Weight" into a quadratic unconstrained binary optimization problem.
[0143] The method described below is effective only when the optimization problem contains only quadratic or lower terms and the constraints (equations and inequalities) are linear.
[0144] It is assumed that the following problem OPT.2 is input to the problem conversion unit 141. Problem OPT.2 consists of an objective function OBJ, an equality constraint EQ, and an inequality constraint IEQ.
[0145] (OPT.2) [Objective function] x1+2*x2+3*x3 (OBJ) [Constraints] x1+x2=1 (EQ) 2*x1+2*x2+3*x3≦5 (IEQ)
[0146] First, problem conversion unit 141 converts each constraint equation into an "auxiliary objective function" such that "the constraint equation holds true ⇔ the value of the auxiliary objective function is minimum" and "the constraint equation does not hold true ⇔ the value of the auxiliary objective function is 1 or greater" hold.
[0147] First, let us consider the equality constraint. If we transform the equality constraint EQ to "x1+x2-1=0", this equation holds true because the auxiliary objective function "(x1+x2-1)" obtained by squaring the left side of the equation holds. 2 " takes a minimum value. Also, when the constraint equation does not hold, the value of the auxiliary objective function takes a value of 1 or more.
[0148] Next, we will discuss inequality constraints. The inequality constraint IEQ can be rephrased as "the value of 2*x1 + 2*x2 + 3*x3 is 0, 1, 2, 3, 4, or 5", so by introducing new Boolean variables c1, c2, c3, c4, c5, and c6, we can obtain the following equality constraints that are equivalent to the inequality constraint IEQ.
[0149] IEQ'="2*x1+2*x2+3*x3-c1-c2-c3-c4-c5-c6=0"
[0150] So, this is the same as the equality constraint EQ, with the auxiliary objective function (2*x1+2*x2+3*x3-c1-c2-c3-c4-c5-c6) 2 " When the constraint equation does not hold, the auxiliary objective function takes a value of 1 or more.
[0151] This concludes the explanation of how problem conversion unit 141 converts each constraint equation into an objective function.
[0152] Next, a method in which problem conversion unit 141 combines all objective functions, including the original objective function OBJ, into one will be described.
[0153] First, if we consider the upper limit of the objective function OBJ when ignoring constraints, we can see that it is clearly 6 when all variables are assigned the value 1.
[0154] Therefore, by leaving the original objective function as it is, and multiplying the auxiliary objective function generated by converting the constraints by "7", and adding them together, we can obtain the following quadratic constraint-free binary optimization problem OPT-UC.
[0155] (OPT-UC) x1+2*x2+3*x3+7*(x1+x2-1) 2 +7*(2*x1+2*x2+3*x3-c1-c2-c3-c4-c5-c6) 2
[0156] The resulting value assignment that minimizes the objective function of the quadratically unconstrained binary optimization problem above gives the optimal solution to the original optimization problem OPT.2.
[0157] An auxiliary objective function takes a value of 1 or greater when the original constraint equations are not satisfied. If the value assignment (x1, x2, x3) = (v1, v2, v3) satisfies all of the original constraint equations, then the value of the binary optimization problem OPT-UC will be 6 or less. Conversely, if even one constraint equation is not satisfied, then the value of the binary optimization problem OPT-UC will be 7 or greater. Thus, a value assignment that gives the minimum value of the binary optimization problem OPT-UC will always satisfy all of the constraints of problem OPT.2.
[0158] That is, the binary optimization problem OPT-UC takes the minimum value among the value assignments that make the value of the auxiliary objective function 0, and that minimize the value of the original objective function. Therefore, the value assignment that gives the optimal solution to the binary optimization problem OPT-UC gives the optimal solution to the problem OPT.2.
[0159] The above is a description of an example of a specific method in which problem conversion unit 141 converts a constrained binary optimization problem into a quadratic unconstrained binary optimization problem.
[0160] Furthermore, the method by which the problem conversion unit 141 constructs an optimal solution to the original problem based on the solution returned to the optimal solution calculation unit 142 depends on the method adopted in the immediately preceding step, i.e., the method of converting a constrained binary optimization problem into a binary optimization problem without quadratic constraints.
[0161] Specifically, if the problem conversion unit 141 converts the problem OPT.2 into a binary optimization problem OPT-UC and inputs it to the optimal solution calculation unit 142, for example, a value assignment of (x1, x2, x3, c1, c2, c3, c4, c5, c6) = (1, 0, 0, 1, 1, 0, 0, 0, 0) is obtained.
[0162] In the above case, the value assignments for the variables x1, x2, and x3 in the original problem OPT.2 are included in the above assignments, so that the solution (x1, x2, x3) = (1, 0, 0) to problem OPT.2 can be constructed simply by extracting them.
[0163] The above is a specific description of the operation of problem conversion unit 141.
[0164] The method by which the optimal solution calculation unit 142 obtains the optimal solution of the binary optimization problem without quadratic constraints is not particularly limited and may be a known method. For example, a method using a quantum annealing machine, which is a type of annealing machine mentioned in the description of the problem, is described in Non-Patent Document 1. By using this method, the optimal solution calculation unit 142 can obtain the optimal solution of the inputted binary optimization problem without quadratic constraints. In other words, the above-mentioned optimization specialized device can be used as the optimal solution calculation unit 142.
[0165] As described above, the information processing device 20 of the second embodiment transforms an input constrained binary optimization problem into an equivalent constrained binary optimization problem with a smaller coefficient size, and then converts it into a binary optimization problem without quadratic constraints by the problem conversion unit 141.
[0166] As a result, the information processing device 20 of the second embodiment can convert the original constrained binary optimization problem into a problem with a smaller coefficient size than when the original constrained binary optimization problem is converted into an unquadratic-constrained binary optimization problem directly by the problem conversion unit 141. That is, the information processing device 20 of the second embodiment can calculate an optimal solution even for an optimization problem for which the optimal solution cannot be calculated directly by the optimal solution calculation unit 142 due to hardware constraints.
[0167] Embodiment 3. Hereinafter, a third embodiment of the present invention will be described with reference to the drawings. Fig. 5 is a block diagram showing an example of an information processing device 30 of the third embodiment. The information processing device 30 according to the third embodiment includes four processing blocks shown in Fig. 5. That is, the information processing device 30 includes a constraint conversion unit 11, an inequality constraint conversion unit 121, a satisfaction determination unit 13, and an optimization unit 14.
[0168] The information processing device 30 has most of the same components as the information processing device 10, but instead of the inequality constraint conversion unit 12, an inequality constraint conversion unit 121 that operates differently is connected.
[0169] The operation of the information processing device 30 of the third embodiment will be described. The configuration of the information processing device 30 of the third embodiment is the same as that of the information processing device 10, except that the inequality constraint conversion unit 121 is used instead of the inequality constraint conversion unit 12 to convert the inequality constraints.
[0170] However, as described later, in the information processing device 30 of the third embodiment, the constraint conversion unit 11 inputs a list of all equality constraints included in the constrained binary optimization problem, in addition to the inequality constraints to be converted as input to the inequality constraint conversion unit 121.
[0171] Next, the operation of the inequality constraint conversion unit 121 in the information processing device 30 of the third embodiment will be described.
[0172] As described above, the inequality constraint conversion unit 121 receives as input from the constraint conversion unit 11 the inequality constraint C="c1*x1+c2*x2+...+cn*xn≦c" to be converted, and a list EQ[1], EQ[2],...,EQ[p] of all equality constraints included in the constrained binary optimization problem (step S301).
[0173] The inequality constraint conversion unit 121 executes steps S302 and S303 similar to those in FIG. 3 for the inequality constraint C to generate a constraint equation EQUIV(r1, . . . , rn, r).
[0174] The inequality constraint conversion unit 121 selects, from the list of equality constraints EQ[1], EQ[2], ..., EQ[p], equality constraints that relate only to variables used in the inequality constraint C, and generates a new list of equality constraints EQ'[1], EQ'[2], ..., EQ'[q] (step S601).
[0175] The process of step S601 will be specifically described. It is assumed that the following inequality constraints are given as input: "x1+2*x2-5*x4+x6≦3", and the following equality constraints are given as input: EQ[1]="x1+x2=x3", EQ[2]="x2+x4=1", EQ[3]="x1+x3=x5", and EQ[4]="x2+x4=x6".
[0176] Inequality constraint C concerns variables x1, x2, x4, and x6.
[0177] Equality constraint EQ[1] is for variables x1, x2, and x3. Equality constraint EQ[2] is for variables x2 and x4. Equality constraint EQ[3] is for variables x1, x3, and x5. Equality constraint EQ[4] is for variables x2, x4, and x6.
[0178] Therefore, in step S601, the inequality constraint conversion unit 121 outputs a list of equality constraints, that is, the equality constraint EQ[2] and the equality constraint EQ[4].
[0179] The above is an explanation of the process in step S601 when a specific input is made.
[0180] Next, the inequality constraint conversion unit 121 combines the list of equality constraints EQ'[1], EQ'[2], ..., EQ'[q] obtained in the processing of step S601 with the constraint EQUIV(r1, ..., rn, r) = "For all assignments to x1, x2, ..., xn, 'inequality constraint C holds' ⇔ 'constraint R[C] holds'", and updates the constraint EQUIV(r1, ..., rn, r) as follows (step S602).
[0181] EQUIV(r1,...,rn,r) = "For all assignments to x1,x2,...,xn that satisfy EQ'[1],EQ'[2],...,EQ'[q], 'Inequality constraint C holds' ⇔ 'Constraint R[C] holds'"
[0182] 3, the satisfaction determination unit 13 obtains value assignments (d1, d2, ..., dn, d) to r1, r2, ..., rn, r that satisfy EQUIV(r1, ..., rn, r). The inequality constraint conversion unit 121 returns the inequality constraint R[C][d1, ..., dn, d] = d1 * x1 + ... + dn * xn ≦ d as an output.
[0183] The above is a description of the operation of the inequality constraint conversion unit 121.
[0184] Next, a supplementary explanation will be given on the fact that the original inequality constraint C included in the constrained binary optimization problem OPT is replaced by the inequality constraint returned by the inequality constraint conversion unit 121 in the above-mentioned procedure.
[0185] In step S602, consider the constraint EQUIV(r1, r2, ..., rn, r) after combining and updating the equality constraints EQ'[1], ..., EQ'[q], and further assume that the inequality constraint conversion unit 121 constructs inequality constraints R[C][d1, ..., dn, d] based on the assignment of values (r1, r2, ..., rn, r) = (d1, d2, ..., dn, d) that satisfy this constraint.
[0186] From the definition of the constraint EQUIV(r1,r2,...,rn,r), the inequality constraint R[C][d1,...,dn,d] is equivalent to the original inequality constraint C "if and only if x1,x2,...,xn satisfy EQ'[1],...,EQ'[q]." Since the constrained binary optimization problem OPT includes the equality constraints EQ'[1],...,EQ'[q] as constraints, even if the inequality constraint C included in OPT is converted to R[C][d1,...,dn,d], there is no change in the satisfying region of "all constraints included in OPT."
[0187] From the above, even if the original inequality constraints included in the constrained binary optimization problem are converted into the inequality constraints returned when they are input to inequality constraint conversion unit 121, the optimal solution of the original constrained binary optimization problem will not change.
[0188] As described above, the information processing device 30 of the third embodiment has the same effect as the information processing device 10 of the first embodiment, but by converting inequality constraints using the inequality constraint conversion unit 121 instead of the inequality constraint conversion unit 12, it is possible to obtain the two effects described below.
[0189] The first effect is that the information processing device 30 of the third embodiment can convert into inequality constraints with smaller coefficient sizes and fewer variables.
[0190] For example, the constraint 5*x1+8*x2+5*x3≦9 has an equivalent inequality constraint of minimum coefficient size of x1+2*x2+x3≦2, which has a coefficient size of 3, but can be transformed to x2≦0, which has a coefficient size of 2, provided that the equality constraint “x1+x3=1” holds.
[0191] Second, the information processing device 30 of the third embodiment may be able to convert inequality constraints at higher speeds. This is mainly due to the fact that the number of repetitions of the repetitive steps S304 to S306 in FIG. 6 is reduced more than the first effect described above.
[0192] Embodiment 4. Hereinafter, a fourth embodiment of the present invention will be described with reference to the drawings. Fig. 7 is a block diagram showing an example of an information processing device 40 according to the fourth embodiment. The information processing device 40 according to the fourth embodiment includes four processing blocks shown in Fig. 7. That is, the information processing device 40 includes a constraint conversion unit 11, an inequality constraint conversion unit 122, a satisfaction determination unit 13, and an optimization unit 14.
[0193] The information processing device 40 has most of the same components as the information processing device 10. However, instead of the inequality constraint conversion unit 12, an inequality constraint conversion unit 122 that operates differently is connected to the information processing device 40.
[0194] The operation of the information processing device 40 of the fourth embodiment will be described below. The configuration of the information processing device 40 of the fourth embodiment is the same as the configuration of the information processing device 10, except for two differences that will be described below.
[0195] The first difference is that the constrained binary optimization problem that the information processing device 40 of the fourth embodiment receives as an input has all of the coefficients and constant terms of the inequality constraints as integers, and includes one or more "ONE-HOT constraints" for the variables. A "ONE-HOT constraint" is a constraint that expresses that "exactly one of the variables x1, x2, ..., xn is 1, and the others are 0," and is expressed as an equality constraint as follows for the constrained binary optimization problem (however, it is assumed that no variable is included in two or more ONE-HOT constraints at the same time).
[0196] x1+x2+...+xn=1
[0197] The second difference is that the information processing device 40 of the fourth embodiment converts inequality constraints using the inequality constraint conversion unit 122 instead of the inequality constraint conversion unit 12. In addition, at this time, the constraint conversion unit 11 receives as input to the inequality constraint conversion unit 122 not only the inequality constraints to be converted, but also a list of all ONE-HOT constraints included in the constrained binary optimization problem.
[0198] Next, the operation of the inequality constraint conversion unit 122 in the information processing device 40 of the fourth embodiment will be described.
[0199] As described above, the inequality constraint conversion unit 122 receives as input from the constraint conversion unit 11 the inequality constraint C "c1*x1+c2*x2+...+cn*xn≦c" and the list of ONE-HOT constraints.
[0200] The inequality constraint conversion unit 122 sets the variable accum to 0 and sets a copy of the inequality constraint C to the variable F[C] as initial values (step S701).
[0201] In step S702, the inequality constraint conversion unit 122 selects one from the list of ONE-HOT constraints received as input, and executes an iterative process. In the following, the selected ONE-HOT constraint is assumed to be xi1+xi2+xik=1.
[0202] The inequality constraint conversion unit 122 checks whether the variables xi1, xi2, ..., xik are all included on the left side of the inequality constraint F[C]. If the variables xi1, xi2, ..., xik are all included on the left side of the inequality constraint F[C], the process proceeds to step S705. If the variables xi1, xi2, ..., xik are not all included on the left side of the inequality constraint F[C], the process returns to step S703 (step S704).
[0203] The inequality constraint conversion unit 122 sets the terms related to variables xi1, xi2, ..., xik included in the inequality constraint F[C] to ci1*xi1, ci2*xi2, ..., cik*xik. Next, the inequality constraint conversion unit 122 updates the coefficients of these terms included in the inequality constraint F[C] by adding a variable Δ to each of them, to (ci1+Δ)*xi1, (ci2+Δ)*xi2, ..., (cik+Δ)*xik. Then, the inequality constraint conversion unit 122 adds 1 to the variable accum (step S705).
[0204] Note that the above "modifying coefficients" operation corresponds to transforming the left-hand side of the inequality constraint F[C] for the assignment of values to all x1,...,xn such that the ONE-HOT constraint xi1+xi2+xik=1 holds so that its value is increased by exactly Δ.
[0205] In step S703, if there are no unselected ONE-HOT constraints, the process proceeds to step S706.
[0206] In step S706, inequality constraint conversion unit 122 adds accum*Δ to the right-hand side c of inequality constraint F[C] to update the right-hand side to c+accum*Δ (since c and accum are constants, the right-hand side only contains Δ as a variable).
[0207] The meaning of this adjustment of the right-hand side is explained below. The inequality constraint conversion unit 122 updates some of the terms on the left-hand side in step S705. When this update operation is performed once, the value on the left-hand side becomes "exactly Δ" larger than the value assignments to all x1,...,xn that satisfy the ONE-HOT constraint.
[0208] Then, when the process reaches step S706, the inequality constraint F[C] will take a value that is larger than the left side of the original inequality constraint C by the value of (number of times step S705 is executed)×Δ=accum*Δ.
[0209] So, by adding accum*Δ to the right-hand side, for all assignments of values to x1,...,xn that satisfy the ONE-HOT constraint, the left and right sides of the inequality constraint F[C] will both be exactly accum*Δ larger than the left and right sides of the inequality constraint C. This shows that for all assignments of values to x1,...,xn that satisfy the ONE-HOT constraint, the original inequality constraint C holds true equivalent to the inequality constraint F[C] holding true.
[0210] This is the meaning of step S706. After this step is completed, no matter what value Δ is set to, inequality constraint C and inequality constraint F[C] will be equivalent under the ONE-HOT constraint.
[0211] Next, the inequality constraint conversion unit 122 obtains a value of Δ that minimizes the coefficient size of the inequality constraint F[C], and substitutes this value for each Δ in the inequality constraint F[C] (step S707).
[0212] Step S707 can be implemented, for example, by a method of actually checking the coefficient size when c_max is the maximum value of c1, c2, ..., cn, -c1, -c2, ..., cn and Δ is each value from -c_max to c_max, but the implementation method is not limited to this.
[0213] Next, the inequality constraint conversion unit 122 repeatedly executes steps S708 to S711 while sequentially increasing the value of the variable b from b=1 to b=2, 3, . . . (step S708).
[0214] In step S709, the inequality constraint conversion unit 122 generates an inequality constraint F'[C,b] by "normalizing" the coefficients of the inequality constraint F[C] so that the coefficient size of the inequality constraint F[C] becomes b.
[0215] The normalization of the inequality constraint F[C] can be done by repeating the operation of "dividing the coefficient by 2 and discarding the remainder" until the coefficient size is equal to or smaller than b, or by normalizing the coefficient so that the maximum value is 2 b -1 (or the minimum is -2 b ), and then rounding to integers in an appropriate manner.
[0216] For the sake of explanation, let F'[C,b] = "c'1*x1+c'2*x2+...+c'n*xn≦c'".
[0217] Next, using the same procedure as that performed by the inequality constraint conversion unit 12 in steps S302 and S303, the inequality constraint conversion unit 122 introduces n+1 new variables r1, r2, ..., rn, r and creates the constraint equation R[C] and constraints EQUIV(r1, ..., rn, r).
[0218] In step S710, the inequality constraint conversion unit 122 constructs the next constraint CHECK_res[C,b](r1,...,rn,r) based on the constraint EQUIV(r1,...,rn,r).
[0219] CHECK_res[C,b](r1,...,rn,r) = "c'1-1≦r1≦c'1+1" and "-2 b ≦r1≦2 b -1" and "c'2-1≦r2≦c'2+1" and "-2 b ≦r2≦2 b -1" and..."c'n-1≦rn≦c'n+1" and "-2 b ≦rn≦2 b -1" and "c'-1≦r≦c'+1" and "-2 b ≦r≦2 b -1" and "EQUIV(r1,...,rn,r) holds"
[0220] Here, the meaning of the constraint CHECK_res[C,b](r1,...,rn,r) will be explained.
[0221] The constraint CHECK_res[C,b](r1,...,rn,r) has almost the same meaning as the constraint CHECK[C,b](r1,...,rn,r) that the inequality constraint conversion unit 12 constructed in step S305, but "c'i-1,c'i,c'i+1" is added as a condition that the variable ri must satisfy. In other words, the constraint CHECK_res[C,b](r1,...,rn,r) imposes a condition on the variables r1,...,rn,r that is truly stronger than the constraint CHECK[C,b](r1,...,rn,r).
[0222] Therefore, if there exists an assignment of values (r1,r2,...,rn,r)=(d1,d2,...,dn,d) to variables r1,...,rn,r that satisfies the constraint CHECK_res[C,b](r1,...,rn,r), then we have obtained an inequality constraint R[C][d1,...,dn,d] equivalent to inequality constraint C with coefficient size less than or equal to b.
[0223] This concludes the explanation of the meaning of the constraint CHECK_res[C,b](r1,...,rn,r).
[0224] In step S711, the inequality constraint conversion unit 122 inputs the constraint CHECK_res[C,b](r1,...,rn,r) to the satisfaction determination unit 13. If the result of the satisfaction determination unit 13 is "satisfiable", the process proceeds to step S712. If the result of the satisfaction determination unit 13 is "unsatisfiable", the process returns to step S708.
[0225] In step S712, the inequality constraint conversion unit 122 constructs inequality constraints R[C][d1,...,dn,d] based on the value assignment (r1,r2,...,rn,r)=(d1,d2,...,dn,d) output from the satisfaction determination unit 13, and outputs the result.
[0226] This concludes the description of the operation of the inequality constraint conversion unit 122 in the fourth embodiment for converting inequality constraints into inequality constraints with smaller coefficient sizes.
[0227] As described above, the information processing device 40 of the fourth embodiment transforms an input constrained binary optimization problem into an equivalent constrained binary optimization problem with a smaller coefficient size, similar to the information processing device 10 of the first embodiment, and then performs optimization by the optimization unit 14. As a result, the information processing device 40 of the fourth embodiment can find an optimal solution even for an optimization problem for which it is essentially impossible to find an optimal solution directly due to hardware constraints.
[0228] On the other hand, the inequality constraint conversion unit 122 does not necessarily output an inequality constraint with a minimum coefficient size for the input inequality constraint. However, the constraints to be solved to obtain the coefficients are much stronger than those of the inequality constraint conversion unit 12. Therefore, the check of satisfiability by the satisfaction determination unit 13 is completed much faster than that of the information processing device 10.
[0229] From the above, the information processing device 40 of the fourth embodiment can output an optimal solution in a shorter time than the information processing device 10.
[0230] The optimization unit 14 including the problem conversion unit 141 and the optimal solution calculation unit 142 shown in FIG. 4 can be used in place of the optimization unit 14 in the third embodiment shown in FIG. 5 and the optimization unit 14 in the fourth embodiment shown in FIG. 7.
[0231] 10 is a diagram illustrating an example of a hardware configuration for implementing the information processing device 10. The information processing device 10 includes a CPU 1000, a storage device 1001, a memory 1002, and a quantum bit circuit 1003.
[0232] Each component except for the optimization unit 14 in the information processing device 10 shown in Fig. 1 can be configured as one piece of hardware or one piece of software. Also, each component can be configured as multiple pieces of hardware or multiple pieces of software. Also, a part of each component can be configured as hardware, and the other part can be configured as software.
[0233] When each component of the information processing device 10 is realized by a computer having a processor such as a CPU (Central Processing Unit) and a memory, for example, it can be realized by a computer having a CPU shown in FIG. 10. The computer realizes each function of the information processing device 10 shown in FIG. 1 by executing processing (information processing) according to a program stored in a storage device 1001 by a CPU 1000. That is, the computer realizes all of the functions of the constraint conversion unit 11, the inequality constraint conversion unit 12, and the satisfaction determination unit 13, and part of the functions of the optimization unit 14 in the information processing device 10 shown in FIG. 1. The CPU 1000 may be a semiconductor device placed at room temperature, or may be a superconducting circuit cooled to an extremely low temperature of about several mK to several K.
[0234] The storage device 1001 is, for example, a non-transitory computer readable medium. The non-transitory computer readable medium is any of various types of tangible storage media. Specific examples of non-transitory computer readable media include magnetic recording media (e.g., hard disk drives), magneto-optical recording media (e.g., magneto-optical disks), CD-ROMs (Compact Disc-Read Only Memory), CD-Rs (Compact Disc-Recordable), CD-R / Ws (Compact Disc-ReWritable), and semiconductor memories (e.g., mask ROMs, PROMs (Programmable ROMs), EPROMs (Erasable PROMs), and flash ROMs).
[0235] The program may also be stored in various types of transitory computer readable media, to which the program is supplied, for example, via a wired or wireless communication path, i.e., via an electrical signal, an optical signal, or an electromagnetic wave.
[0236] The memory 1002 is realized by, for example, a random access memory (RAM), and is a storage means for temporarily storing data when the CPU 1000 executes processing. A configuration is also conceivable in which a program held in the storage device 1001 or a temporary computer-readable medium is transferred to the memory 1002, and the CPU 1000 executes processing based on the program in the memory 1002.
[0237] The quantum bit circuit 1003 controls the quantum fluctuation of the quantum bit circuit and the strength of the coupling between quantum bits and the magnetic field during quantum annealing. For example, the information processing device 10 (particularly, the optimization unit 14) in each of the above embodiments can be realized by an annealing machine including the quantum bit circuit 1003. In addition, the annealing machine for realizing the optimization unit 14 can be constructed by using a CMOS (Complementary Metal Oxide Semiconductor) or an FPGA (Field Programmable Gate Array) in addition to using the quantum bit circuit 1003.
[0238] 11 is a block diagram showing the main parts of an information processing device. The information processing device 800 is an information processing device that outputs an optimal solution to a binary optimization problem when a binary optimization problem including at least a linear inequality constraint expressed by a linear inequality is input, and includes a constraint conversion unit 801 (realized by the constraint conversion unit 11 in the embodiment) that converts the constraint into a constraint expressed by a linear inequality with a coefficient size smaller than that of the linear inequality, and an optimization unit 802 (realized by the optimization unit 14 in the embodiment) that calculates an optimal solution to the binary optimization problem based on the constraint including the linear inequality converted by the constraint conversion unit 801. [Explanation of symbols]
[0239] 10, 20, 30, 40 Information processing device 11 Constraint transformation section 12,121,122 Inequality constraint transformation part 13. Satisfaction Judgment Section 14 Optimization Section 141 Problem Conversion Section 142 Optimal solution calculation unit 800 Information Processing Equipment 801 Constraint Transformation Unit 802 Optimization Department 1000 CPU 1001 Storage device 1002 Memory 1003 Quantum Bit Circuit
Claims
1. 1. An information processing device that, when a binary optimization problem including a linear inequality constraint expressed by at least a linear inequality is input, outputs an optimal solution to the binary optimization problem, an inequality constraint conversion unit that converts coefficient sizes of the linear inequality constraints so that assignment of values of variables that satisfy the input linear inequality constraints does not change; a constraint conversion unit for converting a constraint into a linear inequality having a coefficient size smaller than that of the linear inequality; an optimization unit that calculates an optimal solution to the binary optimization problem based on the constraints including the linear inequalities converted by the constraint conversion unit; An information processing device comprising:
2. the binary optimization problem includes an equality constraint; The inequality constraint conversion unit converts the linear inequality constraints so as to satisfy all the input equality constraints.
2. The information processing device according to claim 1.
3. the binary optimization problem includes an equality constraint in which exactly one of a number of Boolean variables must be assigned the value 1; The inequality constraint conversion unit converts the inequality constraint by transforming an equation using the equality constraint.
3. The information processing device according to claim 1 or 2.
4. The optimization unit includes a problem conversion unit that converts the binary optimization problem into a quadratic unconstrained binary optimization problem; an optimal solution calculation unit that calculates an optimal solution to the quadratic unconstrained binary optimization problem converted by the problem conversion unit; The information processing device according to claim 1 .
5. 1. An information processing method for outputting an optimal solution to a binary optimization problem, when the binary optimization problem includes a linear inequality constraint expressed by at least a linear inequality, comprising: The computer converts the coefficient sizes of the linear inequality constraints so that the assignment of values of the variables that satisfy the input linear inequality constraints does not change; the computer converts the constraints into linear inequalities with coefficient sizes smaller than the coefficient sizes of the linear inequalities; The computer calculates an optimal solution to the binary optimization problem based on a constraint that includes the transformed linear inequality.
23. An information processing method comprising:
6. the binary optimization problem includes an equality constraint; The computer converts the linear inequality constraints so as to satisfy all the input equality constraints.
6. The information processing method according to claim 5.
7. An information processing program that outputs an optimal solution to a binary optimization problem including a linear inequality constraint expressed by at least a linear inequality when the binary optimization problem is input, the information processing program comprising: On the computer, an inequality constraint conversion process for converting coefficient sizes of the linear inequality constraints so that the assignment of values of variables that satisfy the input linear inequality constraints does not change; A constraint conversion process for converting a constraint into a linear inequality having a coefficient size smaller than that of the linear inequality; an optimization process for calculating an optimal solution to the binary optimization problem based on the constraints including the linear inequalities converted by the constraint conversion process; An information processing program for executing the above.
Citation Information
Patent Citations
Signal reproducing circuit
JP1984022203A
optimization system
JP2007509437A
Semiconductor device and information processing system and information processing method
JP2019179364A
System, methods and apparatus for generation of simulation stimulus
US8020125B1
Linear programming problem solving system, solution candidate calculation device, optimal solution calculation device, thruster control device for spacecraft, flying object control device, and linear programming problem solving method
WO2019224954A1
