Computer-readable recording medium storing program, data processing device and data processing method
By specifying auxiliary variables and quantization variables for the constraint terms of the combination optimization problem, and calculating the contribution of the evaluation function related to their changes, the problem of large amount of calculation of constraint terms under the nonlinear punishment function is solved, and the calculation amount is reduced and the hardware requirements are achieved. reduce.
Patent Information
- Application Number
- CN202410518570.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-05-22
- Filing Date
- 2024-04-28
- Publication Date
- 2024-11-22
AI Technical Summary
In the combinatorial optimization problem, when using a nonlinear penalty function to represent a constraint term, it is difficult to use local domains to calculate the amount of change of the constraint term like the cost term, resulting in an increase in the calculation amount.
By specifying auxiliary variables for each constraint term, quantized auxiliary variables are generated, and the contribution of the evaluation function value related to its change is calculated, and the local domain is updated to reduce the calculation of changes in the state variable.
It effectively reduces the computational amount of combined optimization problems with constraints, and reduces the computational complexity and hardware requirements.
Smart Images

Figure CN119003935A_ABST
Abstract
Description
Technical Field
[0001] The embodiments discussed herein relate to a non-transitory computer-readable recording medium storing a program, a data processing apparatus, and a data processing method. Background Art
[0002] Some combinatorial optimization problems have constraints that are assumed to be satisfied by the solution, and methods for searching by considering the constraints have been proposed. Examples of constraints include inequality constraints, equality constraints, absolute value constraints, etc. An evaluation function reflecting the constraints can be represented by the following formula (1).
[0003] [Mathematical formula 1]
[0004] H(x)=E(x)+P tot (x) (1)
[0005] The first term on the right side of formula (1) is the cost term, and the second term on the right side is the total value of multiple constraint terms. The total value of multiple constraint terms can be expressed by the following formula (2).
[0006] [Mathematical formula 2]
[0007]
[0008] In formula (2), P k (x) represents the penalty function of the constraint item associated with the constraint having k as the identification number. k (x) is represented by a nonlinear function. The total number of constraints is represented by m. In addition, λ k represents a predetermined coefficient of a constraint having k as an identification number (hereinafter referred to as a constraint coefficient). k P k (x) will be referred to as the constraint term.
[0009] When the constraint condition is an inequality constraint, P in formula (2) k (x) can be expressed by the following formula (3).
[0010] [Mathematical formula 3]
[0011]
[0012] When the constraint condition is an equality constraint, P in formula (2) k (x) can be expressed by the following formula (4).
[0013] [Mathematical formula 4]
[0014]
[0015] In formulas (3) and (4), Pk In (x), P in (k) (x) represents an input amount (also referred to as a resource amount or a used resource amount) subject to a constraint having k as an identification number. The input amount is represented by the following formula (5).
[0016] [Mathematical formula 5]
[0017]
[0018] Indicates x in the constraint with k as the identification number i The weight coefficient (weight value) is given by C ki The coefficients representing the upper limit of the input quantity in the constraint having k as the identification number are represented by b (k) express.
[0019] Meanwhile, the cost term is represented by a quadratic function such as in the following formula (6).
[0020] [Mathematical formula 6]
[0021]
[0022] The first term on the right side is used to integrate the product of the values of two state variables (0 or 1) and the weight value (indicating the strength of the correlation between the two state variables) in all combinations of n state variables, without omission or repetition. The state variable with i as the identification number is represented by x i Indicates that the state variable with j as identification number is represented by x j , and the weight value indicating the magnitude of the correlation between the state variables having i and j as identification numbers is represented by W ij The second term on the right side is used to sum the product of the deviation coefficient and the state variable for each identification number. The deviation coefficient for i as the identification number is given by b i express.
[0023] In addition, with x i The change in the cost term associated with the change in the value of i ) is expressed by the following formula (7).
[0024] [Mathematical formula 7]
[0025]
[0026] In formula (7), when x i When Δx changes from 1 to 0, i is -1, when x i When Δx changes from 0 to 1, i is 1. Note that h i is called the local domain, ΔEi is by adding h i Multiply by Δx i The sign (+1 or -1) of i It can also be said that it is a variable used to specify the amount of change in the value of the evaluation function. By maintaining and appropriately updating such h i , ΔE can be calculated without performing a product-sum operation i .
[0027] When searching for solutions to combinatorial optimization problems, the Markov Chain Monte Carlo (MCMC) method is used. As one type of MCMC method, there are simulated annealing method and replica exchange method. In such a search by the MCMC method, when x i The change in the value of the evaluation function associated with the change in the value of i ) is less than a threshold value (sometimes called a noise value) obtained based on the value of the random number and the temperature parameter, repeatedly invert x i In this way, a search is performed for a state (a combination of values of state variables) where the value of the evaluation function locally becomes a minimum value. The state where the local minimum value of the evaluation function reaches the minimum value is regarded as the optimal solution.
[0028] When using an evaluation function that includes a constraint term, ΔH i Denotes ΔE i The total value and x i The change in the value of P tot The change in (x).
[0029] Examples of related art include Japanese Laid-Open Patent Publication No. 2020-204928, U.S. Patent Application Publication No. 2008 / 0065573, and International Publication Pamphlet No. WO 2020 / 196862. Summary of the invention
[0030] Technical issues
[0031] For example, the constraint term is represented by a nonlinear penalty function as shown in Formula (3) or Formula (4). Therefore, it is difficult to use the local domain (h i ) to calculate the change in the constraint term. For this reason, each calculation with x i When the change in the value of x is associated with the change in the constraint term, the input quantity indicated by formula (5) must be calculated for each constraint term, also using the division by x i Therefore, in some cases, the amount of calculation is enlarged.
[0032] In one aspect, an embodiment aims to reduce the computational effort of a combinatorial optimization problem with constraints.
[0033] Problem Solution
[0034] According to one aspect of the embodiment, there is provided a non-transitory computer-readable recording medium storing a program for causing a computer to perform processing, the processing comprising: obtaining evaluation function information about an evaluation function of a combinatorial optimization problem including a cost term and multiple constraint terms from a storage unit; specifying a value of a first auxiliary variable for each of the multiple constraint terms based on the evaluation function information, the first auxiliary variable representing an input quantity subject to a constraint associated with each of the multiple constraint terms; generating a value of a second auxiliary variable obtained by quantizing the first auxiliary variable based on the value of the first auxiliary variable; for a first constraint term among the multiple constraint terms in which the value of the second auxiliary variable changes in association with a change in the value of a first state variable among multiple state variables of the evaluation function, calculating a first difference in the contribution of the first constraint term associated with the change in the value of the first state variable to a first change in the value of the evaluation function associated with the change in the value of the first state variable; and calculating the first change by using the first difference, or updating a local domain to be used to specify a second change in the value of the evaluation function associated with the change in each of the multiple state variables by using the first difference.
[0035] Advantageous Effects of the Invention
[0036] In one aspect, embodiments can reduce the computational effort of combinatorial optimization problems with constraints. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 is a diagram showing an exemplary data processing apparatus according to the first embodiment;
[0038] Figure 2A and Figure 2B It shows that when the constraint condition is an equality constraint, P k With y k The relationship between g i (k) With y k a diagram of an example of the relationship between ;
[0039] Figure 3 is a diagram showing a hardware example of a data processing device;
[0040] Figure 4 is a block diagram illustrating exemplary functionality of a data processing device;
[0041] Figure 5 is a flowchart showing an example of a processing procedure of a data processing apparatus according to a second embodiment;
[0042] Figure 6is a diagram showing a search unit of a comparative example;
[0043] Figure 7 is a flowchart showing a processing procedure of a data processing device including a search unit of a comparative example;
[0044] Figure 8 is a diagram showing a hardware example of a search unit;
[0045] Fig. 9 is a circuit showing the update of h and y k Figure of an example of an updated circuit;
[0046] Fig.10 is a diagram showing an example of a g calculation circuit as an example of a g / Δg calculation circuit;
[0047] Fig.11 is a diagram showing an example of a Δg calculation circuit as an example of a g / Δg calculation circuit;
[0048] Fig.12 is a timing diagram showing an example of the operation timing of a data processing device;
[0049] Fig.13A and Fig. 13B It is shown that the constraints are inequality constraints and C ki With ternary value P k With y k The relationship between g i (k) With y k a diagram of an example of the relationship between ;
[0050] Fig.14A and Fig. 14B It is shown that the constraints are equality constraints and C ki With ternary value P k With y k The relationship between g i (k) With y k a diagram of an example of the relationship between ; and
[0051] Fig.15 is a diagram showing a Δg calculation circuit according to the modification. DETAILED DESCRIPTION
[0052] Hereinafter, modes for carrying out the embodiments will be described with reference to the drawings.
[0053] The data processing apparatus according to each embodiment shown below is designed to search for a solution to a combinatorial optimization problem with constraints. As an example of a combinatorial optimization problem with constraints, there is a knapsack problem.
[0054] (First Embodiment)
[0055] Figure 1 is a diagram showing an exemplary data processing apparatus according to the first embodiment.
[0056] The data processing device 10 according to the first embodiment includes a storage unit 11 and a processing unit 12 .
[0057] The storage unit 11 may include a volatile semiconductor memory such as a random access memory (RAM), or may include a nonvolatile storage device such as a hard disk drive (HDD) or a flash memory. In addition, the storage unit 11 may include both a volatile semiconductor memory and a nonvolatile storage device.
[0058] The storage unit 11 stores evaluation function information 11a regarding an evaluation function of a combinatorial optimization problem including a cost term and a plurality of constraint terms. The evaluation function information 11a includes the following equations: tot When E(x) is expressed as formula (6), the information about E(x) includes W ij and b i About P tot The information of (x) includes, for example, λ in formula (2) k and m and C in formula (5) ki and b (k) .
[0059] Note that the storage unit 11 may also store calculation conditions for the combinatorial optimization problem. For example, in the case of performing a search by the replica exchange method, the calculation conditions include the number of replicas, the value of a temperature parameter to be set in each replica, and the like.
[0060] The processing unit 12 may be implemented by an electronic circuit, such as an application specific integrated circuit (ASIC) or a field programmable gate array (FPGA). However, the processing unit 12 may also be implemented by a processor, such as a central processing unit (CPU), a graphics processing unit (GPU), or a digital signal processor (DSP). The processor executes a program stored in a memory, such as a RAM (which may be the storage unit 11), for example. A group of processors may be referred to as a multiprocessor or simply a "processor". In addition, the processing unit 12 may include a processor and an electronic circuit, such as an ASIC or an FPGA.
[0061] Figure 1 An exemplary procedure of processing performed by the processing unit 12 is shown.
[0062] Step S1 : The processing unit 12 acquires the evaluation function information 11 a from the storage unit 11 .
[0063] Step S2: The processing unit 12 specifies, for each of the plurality of constraint items, a value (initial value) of a first auxiliary variable representing an input quantity subject to a constraint associated with each of the plurality of constraint items based on the evaluation function information 11a. The input quantity subject to a constraint having k as an identification number is represented by the above formula (5). In the following, the input quantity is represented by the first auxiliary variable (y k ) means. That is, y k It is expressed by the following formula (8).
[0064] [Mathematical formula 8]
[0065]
[0066] Note that b in formula (8) k and b in formula (5) (k) are the same. k The value is based on C ki 、b k and the number (n) of state variables included in the evaluation function information 11a and x1 to x n The initial value of x1 to x n The initial value of x1 to x2 may be stored in the storage unit 11, or may be input from outside the data processing device 10, for example, by a user operating on an input device. n The initial value of can be, for example, all zeros or all ones. n The initial value of can be a random number.
[0067] Figure 1 Show the penalty function (P k ) and y k The horizontal axis represents y k The vertical axis represents the value of P k size.
[0068] P k It is represented by the function shown in formula (3). Therefore, when y represents the input k is 0 or less, satisfying P k =0, when y k When it is greater than 0, P k =y k .
[0069] Step S3: The processing unit 12 calculates the k The value of y is generated by quantizing k The second auxiliary variable (z k ). For example, indicating y kThe ternary value of whether it is positive, negative or zero is given by z k In other words, z k It can be expressed by the following formula (9).
[0070] [Mathematical formula 9]
[0071]
[0072] Note that z k The ternary values are not limited to 0, 1, and 2, and can be 11, 00, and 01. Using such a ternary z k The reason will be described later.
[0073] Step S4: The processing unit 12 calculates the k The value of each constraint item in the multiple constraints is calculated to i The change in the value of the evaluation function associated with the change in the value of i ) is the contribution of ΔH. i The local domain (h i ) is the value of the magnitude of the contribution of ΔH i It can be expressed by the following formula (10).
[0074] [Mathematical formula 10]
[0075] △H i =-h i △x i (10)
[0076] ΔH i is by adding h i Multiply by Δx i The following formula (11) can be expressed as h i .
[0077] [Mathematical formula 11]
[0078]
[0079] The constraint pair ΔH associated with the constraint with identification number = k i (or h i ) is contributed by g i (k) In the case where the constraints are inequality constraints, g i (k) It can be expressed by the following formula (12).
[0080] [Mathematical formula 12]
[0081]
[0082] By Figure 1 The P shown k -y k The slope of the graph is multiplied by -λ k , we get g i (k) In y k When P is 0, k -y k The slope of the graph of i The fact that the direction of change is different, g i (k) It can be expressed as the following formula (13).
[0083] [Mathematical formula 13]
[0084]
[0085] Indicates x in the constraint with k as the identification number i The weight value of the weight is given by C ki In the following, C ki will be assumed to represent x i Does it affect P k The value of x i Impact k In the case of satisfying C ki =1, at x i Does not affect P k In the case of satisfying C ki =0.
[0086] Figure 1 It shows that when the constraints are inequality constraints, g i (k) With y k The horizontal axis represents y k The vertical axis represents the value of g i (k) When y is satisfied k = 0, according to formula (13), at x i = 1 satisfies g i (k) =0, at x i = 0 satisfies g i (k) =-λ k C ki .
[0087] Using the ternary z k The above reason is that g i (k)Three types of values can be distinguished, depending on y as described above. k Is it positive, negative or zero.
[0088] Note that according to Δz k Calculate Δg which will be described later i (k) In this case, the processing unit 12 does not need to calculate g itself i (k) .
[0089] The processing in the above steps S1 to S4 is an initialization processing, after which the following search processing is performed. Note that y calculated in the processing of steps S2 to S4 is k 、z k and g i (k) The value of is stored in a holding unit (such as a register) (not shown) of the processing unit 12. The h represented by formula (11) i The value of can also be stored in the holding unit. In addition, the storage unit 11 can store y k 、z k , g i (k) or i The value of .
[0090] Step S5: The processing unit 12 performs the operation from x1 to x n Select transition candidate x i The processing unit 12 can be from x1 to x n Randomly select x from i , or you can choose an x according to a predetermined rule i In addition, in the process of step S5, the processing unit 12 may, for example, process x1 to x n The following processing in steps S6 to S8 is performed in parallel without selecting x i .
[0091] Step S6: The processing unit 12 determines z associated with any one of the m constraints. k Is the value of x1 to x n x in i The value of changes in x i If the value of y has changed, k The value of C ki Δx i Add to y k Then, according to x i When the value of y has changed k Is it positive, negative or zero? We can use formula (9) to get x i When the value of z has changedk The value of .
[0092] When determining z k When the value of changes, the processing unit 12 executes the processing in step S7, and when it is determined that z k When the value of does not change, execute the processing in step S8.
[0093] Step S7: The processing unit 12 calculates x i The change in the value of g i (k) The difference (Δg i (k) ). From formulas (9) and (13), it can be seen that when z k When the value of g changes, i (k) The value of changes in some cases, while in other cases, the value does not change. The processing unit 12 can calculate the currently maintained g i (k) According to formula (13), the value of x after the change i The value of g is calculated i (k) Alternatively, the processing unit 12 may calculate the difference between z and z according to the following formula (14): k The difference (Δz k )Calculate Δg i (k) .
[0094] [Mathematical formula 14]
[0095]
[0096] Got z k The case where z changes between 0 and 1 k Δg in the case of variation between 1 and 2 i (k) There are two types of values. When calculating Δg according to formula (14) i (k) In the case of g, in the process of step S4, the processing unit 12 does not need to calculate g itself. i (k) .
[0097] Step S8: The processing unit 12 determines whether x is allowed i The change in the value of (acceptability of the transition). i The change in the cost term associated with the change in the value of i ) and based on Δg i (k) Calculated P k The change in (ΔP k) is the sum of the values (ΔH i ) to confirm the acceptability of the transformation. ΔE i It can be calculated according to formula (7). k By changing Δg i (k) Multiply by -Δx i Note that while keeping h expressed by formula (11) i In the case of i Multiply by -Δx i To calculate ΔH i .
[0098] Then, for example, in ΔH i When the value of the candidate state variable is less than a threshold value obtained based on the value of the random number and the temperature parameter, the processing unit 12 allows the change of the value of the transition candidate state variable. For example, log(rand)×T is used as the threshold value. The value of the random number is represented by rand, and the value of the temperature parameter is represented by T.
[0099] In the pair x1 to x n When the processing in steps S6 to S8 is performed in parallel, the calculations corresponding to x1 to x n Change of ΔH i (i=1 to n). Then, based on ΔH i Allow x1 to x n The change of the value of any one of .
[0100] Step S9: When it is determined that x is allowed i When the value of changes, processing unit 12 updates x i In addition, the processing unit 12 calculates the value of x i Update y with the change of its value k and z k While maintaining g i (k) or i In the case of a value of Δg, the processing unit 12 uses Δg i (k) Updating these values. The processing unit 12 may update the value of the evaluation function.
[0101] After the processing in step S9, the processing unit 12 repeats the processing from step S5.
[0102] In the case of executing the simulated annealing method, the processing unit 12 switches the schedule according to a predetermined temperature parameter, reducing the value of the above temperature parameter while repeating the processing in steps S5 to S9. Then, when the predetermined search end condition is met, the processing unit 12 outputs, for example, x1 to x2. nThe value of x1 to x2 is obtained as the search result of the solution to the combinatorial optimization problem (for example, the value is displayed on a display device (not shown)). Note that the processing unit 12 may update the value of the evaluation function, for example, each time a transition is accepted, and maintain the minimum value until then and the minimum value x1 to x2 when the minimum value is obtained. n In this case, the processing unit 12 may output x1 to x2 corresponding to the minimum value stored when the search end condition is satisfied. n The value of is used as the search result.
[0103] In the case where the processing unit 12 executes the replica exchange method, the processing unit 12 executes the following steps on each of the plurality of replicas having different values of the temperature parameter set thereto: Figure 1 The processing in steps S5 to S9 shown in the figure. Then, each time the processing in steps S5 to S9 is repeated a predetermined number of times, the processing unit 12 performs replica exchange. For example, the processing unit 12 randomly selects two replicas from the plurality of replicas. Then, the processing unit 12 exchanges the values of the temperature parameter or x1 to x2 between the two selected replicas with a predetermined exchange probability based on the difference in the value of the evaluation function or the difference in the value of the temperature parameter between the replicas. n For example, each time a transition is accepted in each replica, the processing unit 12 updates the value of the evaluation function and keeps the minimum value up to that time and the values x1 to x2 when the minimum value is obtained. n Then, for example, when a predetermined search end condition is satisfied, the processing unit 12 outputs x1 to x2 corresponding to the smallest minimum value among all the copies of the minimum value stored in each copy. n The value of is used as the search result.
[0104] As described above, the processing unit 12 of the data processing device 10 according to the first embodiment acquires the evaluation function information 11a about the evaluation function of the combinatorial optimization problem including the cost term and the plurality of constraint terms from the storage unit 11. Then, the processing unit 12 specifies, for each of the plurality of constraint terms, a first auxiliary variable (y ) representing an input quantity subject to the constraint associated with each of the plurality of constraint terms based on the evaluation function information 11a. k ) value. In addition, the processing unit 12 is based on y k The value of y is generated by quantizing k The second auxiliary variable (z k ) value. Then, for the multiple constraints, k The values of x1 to x n x between i The processing unit 12 calculates the constraint term associated with the change of the value of x i The constraint terms associated with the change in the value of x iThe difference in contribution to the change in the value of the evaluation function associated with the change in the value of i (k) ). The processing unit 12 uses Δg i (k) Calculate ΔH i , or use Δg i (k) Update i (i=1 to n).
[0105] This ensures that only for z k The value of x i The constraint item changes in association with the change in the value of , and the change amount of the constraint item is calculated or the value used to update h i Δg i (k) Therefore, the processing unit 12 no longer needs to communicate with x i The change in the value of ΔH is calculated in association with i , or at each update h i When (i=1 to n), the calculation is performed using the values of all state variables of all constraint items. Therefore, the amount of calculation can be reduced.
[0106] For example, we will examine the case where the number of state variables is n = 100, the sum of constraints is m = 10, and each constraint is associated with one state variable (100 C constraints per constraint). ki In this case, the amount of calculation can be reduced to 1 / (10×100) compared to the case where calculation is performed using the values of all state variables of all constraint items.
[0107] Furthermore, since the amount of calculation can be reduced, an increase in the amount of hardware materials for performing the calculation can be suppressed.
[0108] In addition, due to the use of ternary z k or Δz k To calculate Δg i (k) , compared with the case where the change amount of the constraint term is calculated using the input amount of the real variable shown in formula (5), the accumulation of errors can be suppressed.
[0109] Such a data processing apparatus 10 can be expected to be used as a technology for suppressing the amount of calculation and the amount of hardware materials and obtaining an accurate solution when solving various problems in modern society that can be converted into combinatorial optimization problems with constraints.
[0110] Note that in the above example, the description has been given by assuming that the constraint condition is an inequality constraint, but the constraint condition is not limited thereto. The constraint condition may be an equality constraint.
[0111] Figure 2A and Figure 2B It shows that when the constraint condition is an equality constraint, P k With y k The relationship between g i (k) With y k A diagram of an example of the relationship between .
[0112] In the shown P k With y k The relationship between Figure 2A In the figure, the horizontal axis represents y k The vertical axis represents the value of P k When the constraint is an equality constraint, P k It is represented by the function shown in formula (4). Therefore, P k =|y k |.
[0113] In the case where the constraint is an equality constraint, g i (k) and Δg i (k) It can be expressed as the following formulas (15) and (16).
[0114] [Mathematical formula 15]
[0115]
[0116] [Mathematical formula 16]
[0117]
[0118] In y k =P in (k) <0, that is, when z k = 0, the constraint coefficient is λ k - Indicates. k =P in (k) >0, that is, when z k =2, the constraint coefficient is λ k + express.
[0119] In the shown i (k) With y k The relationship between Figure 2B In the figure, the horizontal axis represents y k The vertical axis represents the value of g i (k) The value of .
[0120] When y is satisfied k = 0, according to formula (15), at x i = 1 satisfies g i (k) =+λ k - C ki , in x i = 0 satisfies g i (k) =-λ k + C ki .
[0121] In the case where the constraints are equality constraints, by using such g i (k) and Δg i (k) , we can obtain an effect similar to that when the constraints are inequality constraints.
[0122] (Second Embodiment)
[0123] Next, a data processing apparatus according to a second embodiment will be described.
[0124] Figure 3 is a diagram showing a hardware example of a data processing device.
[0125] The data processing device 20 is, for example, a computer, and includes a CPU 21, a RAM 22, a HDD 23, a GPU 24, an input interface 25, a medium reader 26, and a communication interface 27. The above-mentioned units are coupled to a bus.
[0126] The CPU 21 is a processor including an arithmetic circuit that executes program instructions. The CPU 21 loads at least a portion of the program and data stored in the HDD 23 into the RAM 22 to execute the program. Note that the CPU 21 may include, for example, a plurality of processor cores so as to perform processing of a plurality of copies in parallel. In addition, the data processing device 20 may include a plurality of processors. Note that a group of a plurality of processors (multiprocessor) may be referred to as a "processor".
[0127] The RAM 22 is a volatile semiconductor memory that temporarily stores programs executed by the CPU 21 and data used for arithmetic operations by the CPU 21. Note that the data processing device 20 may include a type of memory other than the RAM 22, or may include a plurality of memories.
[0128] The HDD 23 is a non-volatile storage device that stores software programs such as an operating system (OS), middleware, and application software, and data. These programs include, for example, a program for causing the data processing device 20 to perform a process of searching for a solution to a combinatorial optimization problem as described above. Note that the data processing device 20 may include another type of storage device, such as a flash memory or a solid-state drive (SSD), or may include a plurality of non-volatile storage devices.
[0129] The GPU 24 outputs an image (e.g., an image representing a calculation result of a combinatorial optimization problem, etc.) to a display 24a coupled to the data processing device 20 according to an instruction from the CPU 21. As the display 24a, a cathode ray tube (CRT) display, a liquid crystal display (LCD), a plasma display panel (PDP), an organic electroluminescence (OEL) display, etc. can be used.
[0130] The input interface 25 acquires an input signal from an input device 25a coupled to the data processing device 20, and outputs the acquired input signal to the CPU 21. As the input device 25a, a pointing device such as a mouse, a touch panel, a touch pad or a trackball, a keyboard, a remote controller, a button switch, etc. can be used. In addition, various types of input devices can be coupled to the data processing device 20.
[0131] The medium reader 26 is a reading device that reads a program or data recorded on a recording medium 26a. For example, a magnetic disk, an optical disk, a magneto-optical disk (MO), a semiconductor memory, etc. can be used as the recording medium 26a. Examples of magnetic disks include a floppy disk (FD) and an HDD. Examples of optical disks include a compact disk (CD) and a digital versatile disk (DVD).
[0132] The medium reader 26 copies the program or data read from the recording medium 26a to another recording medium such as the RAM 22 or the HDD 23, for example. The read program is executed by, for example, the CPU 21. Note that the recording medium 26a may be a portable recording medium and is sometimes used for distribution of programs or data. In addition, the recording medium 26a and the HDD 23 will sometimes be referred to as computer-readable recording media.
[0133] The communication interface 27 is an interface coupled to the network 27a and communicates with another information processing device via the network 27a. The communication interface 27 may be a wired communication interface coupled to a communication device such as a switch through a cable, or may be a wireless communication interface coupled to a base station through a wireless link.
[0134] Next, the functions of the data processing device 20 will be described.
[0135] Figure 4 is a block diagram illustrating exemplary functions of a data processing device.
[0136] The data processing device 20 includes an input unit 31, a storage unit 32, an initialization processing unit 33, a search unit 34, and an output unit 35. The storage unit 32 is equipped with, for example, the RAM 22 or the HDD 23. The input unit 31, the initialization processing unit 33, the search unit 34, and the output unit 35 are equipped with, for example, the CPU 21 and a program.
[0137] The storage unit 32 is used as Figure 1 The storage unit 11 is shown as an example of a functional block, and the other functional blocks are as Figure 1 Functional blocks of an example of processing unit 12 are shown.
[0138] The input unit 31 obtains evaluation function information about an evaluation function of a combinatorial optimization problem including a cost term and a plurality of constraint terms. The evaluation function information includes the information about E(x) and P as shown in formula (1). tot When E(x) is expressed as formula (6), the information about E(x) includes W ij and b i About P tot The information of (x) includes, for example, λ in formula (2) k and m and C in formula (5) ki and b (k) .
[0139] The input unit 31 also acquires the calculation conditions of the combinatorial optimization problem. For example, in the case of performing the search by the replica exchange method, the calculation conditions include the number of replicas, the value of the temperature parameter to be set in each replica, and the like.
[0140] Furthermore, the input unit 31 may acquire initial values x1 to x2 input by a user operating on the input device 25a. n . x1 to x n The initial value of can be, for example, all zeros or all ones. n The initial value of can be a random number.
[0141] The storage unit 32 stores the evaluation function information and the like acquired by the input unit 31 .
[0142] The initialization processing unit 33 acquires the evaluation function information and x1 to x2 stored in the storage unit 32. n The initial value of the evaluation function information is obtained, and based on these acquired evaluation function information and the initial value, the search unit 34 performs initialization processing. The initialization process includes, for example, the following processing.
[0143] The initialization processing unit 33 initializes the evaluation function information and x1 to x nThe initial value y expressed by the above formula (8) is calculated for each of the multiple constraint items. k In addition, the initialization processing unit 33 is based on y k The initial value of z is calculated by the above formula (9) k The initialization processing unit 33 can calculate y based on the evaluation function information k The initial value of g can also be calculated according to formula (13) i (k) The initial value of .
[0144] The search unit 34 includes a transition candidate selection unit 34 a , a ΔE calculation unit 34 b , a Δg calculation unit 34 c , a ΔH calculation unit 34 d , a transition acceptability determination unit 34 e , a state update unit 34 f , and an H update unit 34 g .
[0145] The transition candidate selection unit 34a changes from x1 to x n Select transition candidate x i The transition candidate selection unit 34a can select from x1 to x n Randomly select x from i , or you can choose an x according to a predetermined rule i In addition, the conversion candidate selection unit 34a outputs Δx i =1-2x i , the Δx i =1-2x i When x i The value of x selected when the value changes i The value of x i The difference between the values of .
[0146] The ΔE calculation unit 34b receives Δx i And calculate ΔE based on formula (7) i .
[0147] The Δg calculation unit 34c receives Δx i , and in x i Find y when the value of has changed k The value of x i If the value of y has changed, k The value of C ki Δx i Add to y k Then, the Δg calculation unit 34c calculates the value of x according to equation (9). i When the value of y has changed k Is the value of positive, negative or zero to find z k The Δg calculation unit 34c calculates the value of k The value of zk Calculate Δg when the original value changes i (k) .
[0148] The Δg calculation unit 34c can calculate the currently maintained g according to formula (13): i (k) Based on the changed x i The value of g is calculated i (k) Alternatively, the Δg calculation unit 34c can also calculate the difference between z and k The difference (Δz k ), calculate Δg i (k) The Δg calculation unit 34c outputs the value obtained by converting Δg i (k) Multiply by -Δx i The calculated ΔP k .
[0149] The ΔH calculation unit 34d calculates ΔE i and ΔP k Add to calculate x i The change in the evaluation function associated with the change in the value of i ).
[0150] The transition acceptability determination unit 34e determines whether x is allowed. i For example, in ΔH i If the value of the transition candidate state variable is less than a threshold value obtained based on the random number and the value of the temperature parameter, the transition acceptability determination unit 34e permits a change in the value of the transition candidate state variable.
[0151] The state updating unit 34f determines that x is allowed. i Update x when the value of i Note that when allowing x i When the value of y changes, k and z k The value of is also updated to the value calculated as described above. i (k) or i When the value of x i The values are updated as the value of
[0152] In allowing x i When the value of ΔH changes, the H updating unit 34g updates i Add to the original value of the evaluation function (H) to update H.
[0153] When the search end condition is satisfied, the output unit 35 outputs the search result (for example, x1 to x2 corresponding to the minimum value of the evaluation function obtained until then). n For example, the output unit 35 may output the search results to the display 24a to display the output search results on the display 24a, send the search results to another information processing device via the network 27a, or store the search results in an external storage device.
[0154] Figure 5 is a flowchart showing an example of a processing procedure of the data processing apparatus according to the second embodiment.
[0155] Step S10: The input unit 31 acquires evaluation function information about an evaluation function of a combinatorial optimization problem including a cost term and a plurality of constraint terms.
[0156] Step S11: The initialization processing unit 33 calculates the initial values x1 to x2 based on the evaluation function information and the initial values x1 to x3 stored in the storage unit 32. n , perform the initialization processing as described above.
[0157] Step S12: Change the candidate selection unit 34a from x1 to x n Select transition candidate x i .
[0158] Step S13: ΔE calculation unit 34b calculates ΔE based on formula (7): i .
[0159] Step S14: The Δg calculation unit 34c calculates the value of x i Find y when the value of has changed k The value of z is obtained according to formula (9): k Then, the Δg calculation unit 34c determines z k Has the value of z changed from k The original value of z changes. k The value of z has changed k When the original value of z changes, the Δg calculation unit 34c performs the processing in step S15. k The value of z k When the original value of changes, the Δg calculation unit 34c performs the processing in step S16.
[0160] Step S15: The Δg calculation unit 34c calculates the currently held g according to formula (13): i (k) Based on the changed x i The value of g is calculated i (k)Alternatively, the Δg calculation unit 34c also uses the above formula (14) to calculate the difference between z k The difference (Δz k ), calculate Δg i (k) .
[0161] Step S16: The ΔH calculation unit 34d calculates ΔE by i With Δg i (k) Multiply by -Δx i The calculated ΔP k Add to calculate ΔH i .
[0162] Step S17: The transition acceptability determination unit 34e determines whether x is allowed. i The change in the value of x is determined by the transition acceptability determination unit 34e. i In the case where the value of changes, the process in step S18 is performed. i When the value of changes, execute the processing in step S19.
[0163] Step S18: The above-mentioned update processing is performed by the state update unit 34f and the H update unit 34g.
[0164] Step S19: The determination unit (not shown) of the search unit 34 determines whether the search end condition is satisfied. For example, in the case where the processing in step S12 has been repeated a predetermined number of times, or in the case where a value of the evaluation function less than a predetermined value has been obtained, it is determined that the search end condition is satisfied. In the case where it is determined that the search end condition is satisfied, the processing in step S20 is performed. In the case where it is determined that the search end condition is not satisfied, the processing in step S12 is repeated.
[0165] In the case of applying the simulated annealing method, while repeating the processing in steps S12 to S19 , the value of the temperature parameter used to generate the threshold value to be used by the transition acceptability determination unit 34 e is lowered according to a predetermined temperature parameter switching schedule.
[0166] In the case where the replica exchange method is applied, the processing in steps S12 to S19 is performed on each of the plurality of replicas to which the values of the temperature parameters different from each other are set. Then, each time the processing in steps S12 to S19 is repeated a predetermined number of times, the replica exchange is performed. For example, two of the plurality of replicas are randomly selected, and the values of the temperature parameter or x1 to x2 are exchanged between the two selected replicas with a predetermined exchange probability based on the difference in the value of the evaluation function or the difference in the value of the temperature parameter between the replicas. n The value of .
[0167] Step S20: The output unit 35 outputs the search result. This ends the processing by the data processing device 20.
[0168] Note that the order of the processes above is an example, and the order of the processes may be changed appropriately.
[0169] (Comparison example)
[0170] Figure 6 FIG. 4 is a diagram showing a search unit of a comparative example. Figure 6 In, with Figure 4 Identical elements of the search unit 34 of the data processing device 20 are given the same reference numerals as shown.
[0171] In the search unit 40 of the comparative example, similarly to the transition candidate selection unit 34a, the transition candidate selection unit 41 selects the transition candidate from x1 to x1. n Select transition candidate x i When the selected x i When the value of changes, the transition candidate selection unit 41 outputs x1 to x n The value of (x'), and in addition, when x i When the value of changes, the output is the difference Δx i .
[0172] Unlike the search unit 34, the search unit 40 of the comparative example includes P tot Calculation unit 42, P tot 0 updating unit 43 and ΔP calculating unit 44.
[0173] P tot The calculation unit 42 selects x i When the value of changes, use x1 to x n The value (x') is used to calculate the total value of the m constraints represented by formula (2).
[0174] P tot 0 Update unit 43 updates and outputs P tot 0,P tot 0 is at x i The total value of the m constraint items before the value of changes. When the transition acceptability determination unit 34e allows x i When the value of P changes, tot The value of 0 is updated by P tot The P output by the calculation unit 42 tot The value of .
[0175] The ΔP calculation unit 44 calculates and outputs the value as P tot With P tot The difference between ΔP tot .
[0176] In the search unit 40 of the comparative example, the ΔH calculation unit 45 calculates ΔE by i and ΔP tot Add to calculate and output ΔH i .
[0177] Figure 7 is a flowchart showing a processing procedure of a data processing device including a search unit of a comparative example.
[0178] The processing in steps S30 to S33 is the same as Figure 5 The processes in steps S10 to S13 shown are the same.
[0179] Step S34: P tot The calculation unit 42 selects x i When the value of changes, use x1 to x n The value (x') is used to calculate the total value (P) of the m constraints represented by formula (2) tot ).
[0180] Step S35: The ΔP calculation unit 44 calculates P tot With P tot The difference between ΔP tot .
[0181] Step S36: The ΔH calculation unit 45 calculates ΔE by i With ΔP tot Add to calculate ΔH i .
[0182] The processing in step S37 is the same as Figure 5 The processing in step S17 shown is the same.
[0183] Step S38: tot 0 Update Unit 43 P tot 0 performs update processing, and update processing is performed by the status update unit 34f and the H update unit 34g.
[0184] The subsequent processing in steps S39 and S40 is the same as Figure 5 The processing in steps S19 and S20 shown is the same.
[0185] In such a search unit 40 of the comparative example, after selecting the conversion candidate x i In the case of tot Also use division by x i For example, the input quantity indicated by formula (5) is calculated for all constraint items.
[0186] On the other hand, in the data processing device 20 of the second embodiment, the search unit 34 searches only for k The value of x i The constraint term changes in association with the change in the value of Δg to be used to calculate the change amount of the constraint term i (k) Therefore, the processing unit 12 no longer needs to communicate with x every time. i The change in the value of ΔH is calculated in association with i When performing calculations, the values of all state variables of all constraint items are used. Therefore, the amount of calculation can be reduced. In addition, since the amount of calculation can be reduced, the increase in the amount of hardware materials used to perform calculations can be suppressed.
[0187] In addition, due to the use of ternary z k or Δz k To calculate Δg i (k) , compared with the case where the change amount of the constraint term is calculated using the input amount of the real variable shown in formula (5), the accumulation of errors can be suppressed.
[0188] (Example of Searching Unit 34 by Hardware Equipment)
[0189] The search unit 34 may also be implemented by, for example, the following hardware. Note that the search unit 34 shown below maintains h as shown in formula (11): i , and use the maintained h i To calculate ΔH i .
[0190] Figure 8 is a diagram showing a hardware example of a search unit.
[0191] The search unit 34 includes a state variable update circuit 51, an h update circuit 52, a y k Update circuit 53, ΔH calculation circuit 54, selection circuit 55 and controller 56. Note that Figure 8 An example is shown in which evaluation function information is stored in the storage unit 32. The storage unit 32 stores the evaluation function information to be used for updating h i W ij In addition, the storage unit 32 stores the n×n instances of z k to x i The m×n coupling coefficients (C ik ) and from x j to y k The n×m coupling coefficients (C kj ).
[0192] The state variable updating circuit 51 holds x1 to x nIn addition, the state variable updating circuit 51, under the control of the controller 56, uses the identification number output by the selection circuit 55 to change the value of the state variable.
[0193] h update circuit 52 maintains h indicated by equation (11) i (i=1 to n). In addition, the h update circuit 52 updates h under the control of the controller 56. i The value of .
[0194] y k The updating circuit 53 holds y represented by equation (8) k In addition, y k The updating circuit 53 updates y under the control of the controller 56. k The value of .
[0195] The h update circuit 52 and the y update circuit 53 will be described later. k A more specific example of the updating circuit 53 (see Fig. 9 ).
[0196] The ΔH calculation circuit 54 calculates h i Multiply by -Δx i To calculate ΔH i (i=1 to n).
[0197] The selection circuit 55 is based on the n The change in the value of each is associated with a ΔH i and the threshold value provided by the controller 56, selects the value that allows x1 to x n The value of a state variable changes between.
[0198] For example, the selection circuit 55 is ΔH1 to ΔH n For each of the i ). Maintain ΔH1 to ΔH at 0 or greater n Any one of them will remain unchanged and will be negative ΔH1 to ΔH n Any function that converts to 0 is represented by max(0, ΔH i ) is represented by the selection circuit 55. The selection circuit 55 adds the threshold value (which may have n different values or may have the same value) to max(0, ΔH i ) of each of the n instances. The selection circuit 55 outputs x1 to x n The identification number of the state variable between which the minimum summation result is given when the value changes.
[0199] However, the selection circuit 55 is not limited to the circuit that performs the selection operation as described above. i When x is less than the threshold, the selection circuit 55 may allow x iThe value of x is allowed to change. i In the case where the values of multiple instances of change, the selection circuit 55 can select a state variable randomly or according to a predetermined rule, and output the identification number of the selected state variable.
[0200] The controller 56 controls the operation timing of each circuit of the search unit 34 by sending a control signal or a clock signal. Furthermore, the controller 56 generates a threshold value, and supplies the generated threshold value to the selection circuit 55. For example, log(rand)×T is used as the threshold value.
[0201] Fig. 9 is a circuit showing the update of h and y k Updated circuit diagram for example.
[0202] The h update circuit 52 includes a g / Δg calculation circuit 52 a , a difference addition circuit 52 b , and an h holding circuit 52 c .
[0203] y k The updating circuit 53 includes a difference adding circuit 53a and a difference adding circuit 53b. k Holding circuit 53b.
[0204] The g / Δg calculation circuit 52a calculates g i (k) or Δg i (k) An example of the g / Δg calculation circuit 52a will be described later (refer to Fig.10 ).
[0205] In allowing x j When the value of W changes, the difference adding circuit 52b receives a control signal from the controller 56 and ij ΔX j Add to original h i Come up and update h i . When x is allowed j The change in the value of Δg occurs when i (k) In the case of i (k) Add to h i To update h i .
[0206] h holding circuit 52c holds n h i In addition, the h holding circuit 52c outputs h in synchronization with the clock signal. i .
[0207] In allowing x j When the value of C changes, the difference adding circuit 53a receives a control signal from the controller 56 andkj Δx j Add to original y k Come up and update y k .
[0208] y k The holding circuit 53b holds m y k In addition, k The holding circuit 53b outputs y in synchronization with the clock signal. k .
[0209] Fig.10 : is a diagram showing an example of a g calculation circuit as an example of a g / Δg calculation circuit.
[0210] The g calculation circuit 52 a 1 includes a multiplier 60 , a selection circuit 61 , and a multiplier 62 .
[0211] Multiplier 60 outputs 1 and 1-x i The product of .
[0212] The selection circuit 61 receives y k , if y is satisfied k <0, then output 0, if y k =0, then output 1-x i , if y is satisfied k >0, then output 1.
[0213] The output of the multiplier 62 selects the output of the circuit 61 and -λ k c ki The product of g, as shown in formula (13) i (k) .
[0214] Fig.11 : is a diagram showing an example of a Δg calculation circuit as an example of a g / Δg calculation circuit.
[0215] Δg calculation circuit 52a2 includes z k generating circuit 65 and Δg generating circuit 66 .
[0216] z k The generating circuit 65 receives y k , if y is satisfied k <0, then output z k =0, if y k =0, then output z k =1, if y k >0, then output z k =2.
[0217] Δg generation circuit 66 maintains z k . In z kThe z generated by the generating circuit 65 k The value of z k When the held value of changes between 0 and 1, the Δg generating circuit 66 selects 1-x i And output -λ k C ki (1-x i )Δz k , as Δg i (k) . In z k The z generated by the generating circuit 65 k The value of z k When the held value of changes between 1 and 2, the Δg generation circuit 66 selects x i And output -λ k C ki x i Δz k , as Δg i (k) .
[0218] Fig.12 is a timing chart showing an example of the operation timing of the data processing device. Fig.12 Shown in the use of Figure 8 An example of operation timing in the case of the search unit 34 of the hardware configuration shown. Fig.12 A processing example in the case of using 15 replicas is shown. The search unit 34 performs processing in sequence from the replica of replica number=0 while shifting the timing by pipeline processing.
[0219] Starting from timing t1, the ΔH calculation circuit 54 executes the calculation based on h i Calculate ΔH i (i=1 to n) processing.
[0220] Starting from timing t2, the selection circuit 55 performs the operation from x1 to x n Select the state variable (x j ) processing.
[0221] Starting from timing t3, the execution state variable updating circuit 51 updates the x selected by the selection circuit 55. j The process of changing the value of (inverting 0 to 1 or inverting 1 to 0).
[0222] Starting from timing t4, h update circuit 52 and y k Update circuit 53 updates h i and k processing.
[0223] Starting from timing t5, the h updating circuit 52 executes the h updating circuit 52 according to y kCalculate z k processing.
[0224] Starting from timing t6, the execution h update circuit 52 executes the update according to z k and x i Calculation of Δg i (k) processing.
[0225] Starting from timing t7, the h updating circuit 52 executes the h updating circuit 52 using Δg i (k) Further update i processing.
[0226] Thereafter, similar processing is repeated.
[0227] When the previous process of the replica with replica number 0 has ended, each of the above processes can be started at that point in time even if the previous process has not been completed for all 15 replicas.
[0228] Through such hardware processing, the i Δg i (k) Only for z k The value of x j Therefore, the processing unit 12 no longer needs to calculate the constraint term each time it updates h i When (i=1 to n), the calculation is performed using the values of all state variables of all constraint items. Therefore, the amount of calculation can be reduced.
[0229] Note that the hardware processing described above can also be performed by the CPU 21 executing a program.
[0230] (Revise)
[0231] In the above description, when x i When the constraint affecting the identification number = k is used to calculate y in formula (8) k C ki is assumed to be 1, and when x i When the constraint of identification number = k is not affected, C ki is assumed to be 0.
[0232] However, C ki Can be a ternary value of -1, 0, or 1. In the following, it is assumed that i C is satisfied when the constraint with the identifier = k is made a positive contribution ki =1, at x i C is satisfied when making a negative contribution to the constraint with ID = k ki = -1, at x iC is satisfied without affecting the constraint of identification number = k ki =0.
[0233] Fig.13A and Fig. 13B It is shown that the constraints are inequality constraints and C ki With ternary value P k With y k The relationship between g i (k) With y k A diagram of an example of the relationship between .
[0234] In the shown P k With y k The relationship between Fig.13A In the figure, the horizontal axis represents y k The vertical axis represents the value of P k When the constraint is an inequality constraint, P k It is represented by the function shown in formula (3). Therefore, when y represents the input k is 0 or less, satisfying P k =0, when y k When it is greater than 0, P k =y k .
[0235] In the shown i (k) With y k The relationship between Fig. 13B In the figure, the horizontal axis represents y k The vertical axis represents the value of g i (k) The value of .
[0236] like Fig. 13B As shown, in C ki Δx i >0, when y k = 0, satisfying g i (k) =-λ k C ki In C ki Δx i <0, when y k = 0, satisfying g i (k) =0.
[0237] Fig.14A and Fig. 14B It is shown that the constraints are equality constraints and C ki With ternary value P k With y kThe relationship between g i (k) With y k A diagram of an example of the relationship between .
[0238] In the shown P k With y k The relationship between Fig.14A In the figure, the horizontal axis represents y k The vertical axis represents the value of P k When the constraint is an equality constraint, P k It is represented by the function shown in formula (4). Therefore, P k =|y k |.
[0239] In the shown i (k) With y k The relationship between Fig. 14B In the figure, the horizontal axis represents y k The vertical axis represents the value of g i (k) The value of .
[0240] like Fig. 14B As shown, in C ki Δx i >0, when y k = 0, satisfying g i (k) =-λ k + C ki In C ki Δx i <0, when y k = 0, satisfying g i (k) =+λ k - C ki .
[0241] When using the ternary C ki When y k By Δx i The change caused is C ki Δx i , so according to y k The generated z k It can be expressed by the following formula (17).
[0242] [Mathematical formula 17]
[0243]
[0244] Assume that it corresponds to Δx i zk Yes i (k) , then z i (k) It can be expressed by the following formula (18).
[0245] [Mathematical formula 18]
[0246]
[0247] By using z like this i (k) , Δg i (k) It can be expressed by the following formula (19).
[0248] [Mathematical formula 19]
[0249]
[0250] Fig.15 is a diagram showing a Δg calculation circuit according to the modification.
[0251] Δg calculation circuit 52a3 includes z k Generating circuit 70, Δz i (k) Generator circuit 71 and multiplier 72.
[0252] z k The generating circuit 70 receives y k , and assuming that z k =(z k + , z k - ), if y is satisfied k <0, then output (0, 0), if y k =0, then output (1, 0), if y k >0, then output (1, 1).
[0253] Δz i (k) The generating circuit 71 receives C ki Δx i Then, if C ki Δx i >0, then Δz i (k) The generating circuit 71 outputs z k +With original z i (k) The difference between i (k) If C ki Δx i<0, then Δz i (k) The generating circuit 71 outputs z k -With the original z i (k) The difference between i (k) .
[0254] The output of multiplier 72 is Δz i (k) With -λ k c ki The product of i (k) .
[0255] When using the ternary C ki In the case of Fig.11 The Δg calculation circuit 52a2 is shown.
[0256] Note that, as described above, the processing contents of the data processing devices 10 and 20 of the above-described respective embodiments can be realized by causing the data processing devices 10 and 20 to execute a program.
[0257] The program may be recorded in advance on a computer-readable recording medium (e.g., recording medium 26a). For example, a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc. may be used as a recording medium. Examples of magnetic disks include FD and HDD. Examples of optical disks include CD, CD-Recordable (R) / Rewritable (RW), DVD, and DVD-R / RW. Programs are sometimes recorded on portable recording media and distributed. In this case, the program can be copied from the portable recording medium to another recording medium (e.g., HDD23) and then executed.
[0258] Although one form of the program, the data processing apparatus, and the data processing method according to the embodiments has been described based on the embodiments, the embodiments are merely examples and are not limited to the above description.
[0259] For example, in the above description, it is assumed that the value of the state variable is 0 or 1, but by appropriately converting the formula, a variable having a value of -1 or +1 can also be used as the state variable.
Claims
1. A non-transitory computer-readable recording medium storing a program for causing a computer to execute a process, the process comprising: Acquire, from a storage unit, evaluation function information about an evaluation function of a combinatorial optimization problem including a cost term and a plurality of constraint terms; assigning, for each of the plurality of constraint items, a value of a first auxiliary variable based on the evaluation function information, the first auxiliary variable representing an input quantity subject to a constraint associated with each of the plurality of constraint items; generating, based on the value of the first auxiliary variable, a value of a second auxiliary variable obtained by quantizing the first auxiliary variable; For a first constraint item among the plurality of constraint items, in which the value of the second auxiliary variable changes in association with a change in the value of a first state variable among the plurality of state variables of the evaluation function, calculating a first difference value of a contribution of the first constraint item associated with a change in the value of the first state variable to a first change in the value of the evaluation function associated with a change in the value of the first state variable; as well as The first change amount is calculated by using the first difference value, or a local domain to be used for specifying a second change amount in a value of the evaluation function associated with a change in each of the plurality of state variables is updated by using the first difference value.
2. The non-transitory computer-readable recording medium of claim 1, the processing further comprising: calculating the first change amount by adding a third change amount of the cost term associated with a change in the value of the first state variable to a fourth change amount of the first constraint term obtained from the first difference; determining whether to allow a change in the value of the first state variable based on a comparison result between the first change amount and a threshold; as well as When it is determined that a change in the value of the first state variable is permitted, the value of the first state variable is updated.
3. The non-transitory computer-readable recording medium of claim 1 , the processing further comprising: maintaining the local domain; as well as When changes in the value of the first state variable are allowed, the local domain is updated by adding the first difference value to the local domain of each state variable in the plurality of state variables.
4. The non-transitory computer-readable recording medium according to claim 1, wherein: The second auxiliary variable is a ternary value indicating whether the value of the first auxiliary variable is positive, negative, or zero.
5. The non-transitory computer readable recording medium of claim 1 , the processing further comprising: calculating a second difference in the value of the second auxiliary variable associated with a change in the value of the first state variable; as well as The first difference value is calculated based on the second difference value, the value of the first state variable, and a weight value between the first state variable and the first constraint item.
6. A data processing device comprising: a storage unit configured to store evaluation function information about an evaluation function of a combinatorial optimization problem including a cost term and a plurality of constraint terms; A processing unit configured to perform a process comprising: assigning, for each of the plurality of constraint items, a value of a first auxiliary variable based on the evaluation function information, the first auxiliary variable representing an input quantity subject to a constraint associated with each of the plurality of constraint items; generating, based on the value of the first auxiliary variable, a value of a second auxiliary variable obtained by quantizing the first auxiliary variable; For a first constraint item among the plurality of constraint items in which the value of the second auxiliary variable changes in association with a change in the value of a first state variable among the plurality of state variables of the evaluation function, calculating a first difference value of a contribution of the first constraint item associated with the change in the value of the first state variable to a first change in the value of the evaluation function associated with the change in the value of the first state variable; and The first change amount is calculated by using the first difference value, or a local domain to be used for specifying a second change amount in a value of the evaluation function associated with a change in each of the plurality of state variables is updated by using the first difference value.
7. A data processing method implemented by a computer, the data processing method comprising: Acquire, from a storage unit, evaluation function information about an evaluation function of a combinatorial optimization problem including a cost term and a plurality of constraint terms; assigning, for each of the plurality of constraint items, a value of a first auxiliary variable based on the evaluation function information, the first auxiliary variable representing an input quantity subject to a constraint associated with each of the plurality of constraint items; generating, based on the value of the first auxiliary variable, a value of a second auxiliary variable obtained by quantizing the first auxiliary variable; For a first constraint item among the plurality of constraint items, in which the value of the second auxiliary variable changes in association with a change in the value of a first state variable among the plurality of state variables of the evaluation function, calculating a first difference value of a contribution of the first constraint item associated with a change in the value of the first state variable to a first change in the value of the evaluation function associated with a change in the value of the first state variable; as well as The first change amount is calculated by using the first difference value, or a local domain to be used for specifying a second change amount in a value of the evaluation function associated with a change in each of the plurality of state variables is updated by using the first difference value.
Citation Information
Patent Citations
Method and system for solving integer programming and discrete optimization problems using analog processors
US20080065573A1
Information processing device, information processing system, information processing method, storage medium, and program
WO2020196862A1
JP特许2020-204928
