OPTIMIZATION PROGRAM, OPTIMIZATION METHOD, AND INFORMATION PROCESSING APPARATUS
The optimization program and method address the challenge of determining temperature parameters in the replica exchange method by using non-Boltzmann distribution transition probabilities, enhancing solution efficiency and stability in combinatorial optimization problems.
Patent Information
- Application Number
- JP2020207438
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-12-15
- Publication Date
- 2024-09-19
- Estimated Expiration
- 2040-12-15
AI Technical Summary
The replica exchange method for solving combinatorial optimization problems faces challenges in determining appropriate temperature parameters to expand the sampling space and enhance solution efficiency, particularly when dealing with systems of increased degrees of freedom and phase transitions.
An optimization program and method that facilitates the determination of multiple temperature parameters by using transition probabilities other than the Boltzmann distribution, allowing for a more gradual change in the evaluation function with respect to temperature changes, thereby facilitating easier determination and stable sampling in the energy space.
This approach allows for more efficient and stable sampling of the energy space, reducing the number of replicas required and improving the solution efficiency by avoiding phase transitions and simplifying the determination of temperature parameters.
Smart Images

Figure 0007553802000051 
Figure 0007553802000043 
Figure 0007553802000042
Abstract
Description
[Technical field]
[0001] The present invention relates to an optimization program, an optimization method, and an information processing device. [Background technology]
[0002] A problem that frequently appears in natural sciences and social sciences is a minimum value solving problem (also called a combinatorial optimization problem), which searches for the minimum value of an evaluation function (also called an energy function) (or a combination of values of state variables of the evaluation function that gives the minimum value) as the optimal solution. Note that by changing the sign of the evaluation function, the maximum value of the evaluation function may be searched for as the optimal solution. In recent years, there has been an accelerating movement to formulate such problems using the Ising model, which is a model that represents the behavior of spin in magnetic materials. The technical foundation of this movement is the realization of an Ising quantum computer. It is expected that an Ising quantum computer will be able to solve multivariate combinatorial optimization problems, which von Neumann computers are not good at, in a realistic amount of time. Meanwhile, an optimization device that implements an Ising computer in an electronic circuit has also been developed (for example, see Non-Patent Document 1).
[0003] As a calculation method for solving the minimum value problem using the Ising model, there is a method based on the Markov chain Monte Carlo method (hereinafter referred to as the MCMC method) that introduces a temperature parameter indicating a pseudo temperature and gradually lowers the temperature from a high temperature (for example, see Non-Patent Documents 1, 2, and 3). This method is called the simulated annealing method (hereinafter referred to as the SA method). The SA method is a method that is theoretically guaranteed to reach the optimal solution. However, the SA method is a method in which the temperature is lowered according to the inverse of the logarithm, and is not practical. Therefore, in practice, a power-type annealing schedule that is more relaxed than the SA method is often used, but in that case, it is not guaranteed that the minimum value will be reached. In addition, if an annealing schedule faster than the inverse of the logarithm is used, there is a disadvantage that once a local minimum value is entered, it is impossible to escape from the local minimum value.
[0004] One algorithm that takes this drawback into account is the replica exchange method (see, for example, Patent Documents 1 and 2, and Non-Patent Document 4). In the replica exchange method, a large number of identical simulation boxes (called replicas) that differ only in temperature are prepared, and temperatures are exchanged between replicas that satisfy the exchange conditions at a certain frequency. As a result of the exchange, each replica performs a random walk in temperature space. As a result, it is possible to escape deep energy minima in high-temperature regions, improving the efficiency of solution finding.
[0005] On the other hand, the replica exchange method also has its drawbacks. Since the replica exchange method was originally developed in the fields of condensed matter physics and computational chemistry, the transition probability within the replica is specified based on the Boltzmann distribution. The probability distribution of each replica is maintained as a Boltzmann distribution even after replica exchange. This condition is called the invariant distribution condition. The invariant distribution condition is imposed because statistical physics assumes the calculation of physical quantities. The problem with the replica exchange method is that as the degrees of freedom of the system are increased, the number of replicas used increases in proportion to the square root of N as a function of the degrees of freedom N.
[0006] In addition, when there is a phase transition in which the value of the evaluation function (energy) changes rapidly with respect to temperature change, replica exchange becomes difficult to function, and the temperature parameter step size must be set more precisely, which places a burden on the computer. This tendency becomes stronger as the degree of freedom increases.
[0007] The multicanonical method has been proposed as an algorithm to overcome this drawback (see, for example, Non-Patent Document 5). The multicanonical method is also called the flat histogram method, and is an attempt to overcome the above drawback by formulating an algorithm to visit the energy space, rather than the temperature space, with equal probability. However, the multicanonical method also has a drawback. That is, it requires a lot of preparatory calculations to create a flat histogram. Furthermore, a flat histogram is not always obtained, and even if the amount of calculation is increased, there are cases where a flat histogram is not obtained. As a result, a lot of effort is spent on preparatory calculations. [Prior art documents]
Chartered Documents
[0008] [Patent Document 1] Special Publication No. 2020-086821 [Patent Document 2] Special Publication No. 2019-071119 [Patent Document 3] JP-2020-064536 [Patent Document 4] Special Publication No. 2019-197355 [Patent Document 5] Special Publication No. 2018-067200
Non-licensed documents
[0009]
Non-patent document 1
Non-patent document 2
Non-patent document 3
Non-patent document 4
[0010] As described above, when the replica exchange method is used as a search method for the optimal solution, it is difficult to determine an appropriate temperature parameter for increasing the efficiency of finding a solution while expanding the sampling space and finding a wider range of solutions.
[0011] In one aspect, an object of the present invention is to provide an optimization program, an optimization method, and an information processing device that can easily determine the values of multiple temperature parameters in the replica exchange method. [Means for solving the problem]
[0012] In one embodiment, an optimization program is provided, which causes a computer to execute the following process: acquire information on an evaluation function obtained by converting a problem, determine values of a plurality of temperature parameters different from each other to be used in a process of finding an optimal solution by a replica exchange method, set each of the plurality of temperature parameter values to one of a plurality of replicas, and perform an update process for each of the plurality of replicas independently of each other, in which the update process is repeated for the value of the plurality of state variables according to a first transition probability obtained based on a change in the value of the evaluation function caused by a change in the value of one of a plurality of state variables included in the evaluation function and the value of one of the plurality of temperature parameters, the first transition probability being such that a change in the value of the evaluation function relative to a change in the value of the temperature parameter is more gradual than when a second transition probability based on a Boltzmann distribution is used, and perform an exchange process for exchanging between the plurality of replicas the value of one of the plurality of temperature parameters set to each of the plurality of replicas or the values of the plurality of state variables in each of the plurality of replicas according to an exchange probability that satisfies an invariant distribution condition of a probability distribution obtained by the first transition probability, thereby executing the solution process.
[0013] Also, in one embodiment, an optimization method is provided. In one embodiment, an information processing device is provided. Effect of the Invention
[0014] In one aspect, the determination of values for multiple temperature parameters in a replica exchange method is facilitated. [Brief description of the drawings]
[0015] [Figure 1] FIG. 1 illustrates an example of an information processing apparatus according to a first embodiment. [Diagram 2] FIG. 13 is a diagram showing an example of the change in energy with temperature when transition probabilities based on the Boltzmann distribution are used. [Diagram 3] 1 is a diagram illustrating an example of the relationship between the number of states and the energy interval division for a physical quantity A. FIG. [Figure 4] FIG. 13 is a diagram showing an example of the difference in temperature dependence of energy when transition probabilities based on the Boltzmann distribution are used and when power-law transition probabilities are used. [Diagram 5] FIG. 13 is a diagram showing an example of the relationship between the exponent of the power-law transition probability and the temperature dependence of the energy (expectation value). [Figure 6] FIG. 13 is a diagram showing the probability density distribution in energy space obtained in replicas where each value of the temperature parameter is set. [Figure 7] FIG. 13 is a diagram showing a probability density distribution in energy space obtained when replica exchange is performed. [Figure 8] FIG. 13 is a diagram illustrating an example of a calculation of a maximum cut problem using the replica exchange method. [Figure 9] FIG. 1 is a schematic diagram showing an example of detailed balancing in the replica exchange method. [Figure 10] FIG. 13 is a diagram showing an example of replica exchange only between adjacent temperature parameters. [Figure 11] FIG. 13 is a diagram showing an example of the energy that gives the peak of the probability density distribution in the energy space and the standard deviation of the probability density distribution. [Figure 12] FIG. 13 is a diagram showing an example of the behavior of a probability density distribution in a low temperature region. [Figure 13] FIG. 13 illustrates an example of hardware of an information processing apparatus according to a second embodiment. [Figure 14] FIG. 11 is a block diagram illustrating an example of functions of an information processing apparatus according to a second embodiment. [Figure 15] 13 is a flowchart illustrating a process flow of an example of an information processing apparatus according to a second embodiment. [Figure 16] 13 is a flowchart showing the flow of an example of information reading processing. [Figure 17] 13 is a flowchart showing the flow of an example of a spin initialization process. [Figure 18] 13 is a flowchart showing a process flow of an example of a temperature parameter calculation process. [Figure 19]11 is a flowchart showing a process flow of an example of a probability density calculation process. [Figure 20] 13 is a flowchart illustrating an example of a flow of a probability density update process. [Figure 21] 13 is a flowchart showing a flow of an example of an update process of Emin and Emax. [Figure 22] 13 is a flowchart illustrating an example of the flow of a replica exchange process. [Diagram 23] FIG. 13 is a diagram showing how values of temperature parameters are exchanged. [Figure 24] FIG. 13 is a diagram showing changes in the value of the temperature parameter set in the replica. [Diagram 25] 13A and 13B are diagrams illustrating an example of a comparison result of tunneling times during replica exchange processing when transition probabilities based on the Boltzmann distribution are used and when power-law transition probabilities are used. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0016] Hereinafter, an embodiment of the invention will be described with reference to the drawings. (First embodiment) FIG. 1 illustrates an example of an information processing apparatus according to a first embodiment.
[0017] The information processing device 10 includes a storage unit 11 and a processing unit 12 . The storage unit 11 stores information (hereinafter referred to as problem information) on the evaluation function (hereinafter referred to as energy function) that has been converted from the problem. The storage unit 11 also stores the current minimum value (minimum energy (E Min )) and so on. As described below, the processing unit 12 searches for an optimal solution to a problem (for example, the minimum value of an energy function) by a replica exchange method, so that the values of state variables and energy are stored for each replica. The storage unit 11 is a volatile storage device such as a RAM (Random Access Memory), or a non-volatile storage device such as a HDD (Hard Disk Drive) or a flash memory.
[0018] The processing unit 12 performs a process of finding an optimal solution using the replica exchange method. The processing unit 12 is a processor such as a CPU (Central Processing Unit), a GPGPU (General-Purpose computing on Graphics Processing Units), or a DSP (Digital Signal Processor). However, the processing unit 12 may include an electronic circuit for a specific purpose such as an ASIC (Application Specific Integrated Circuit) or an FPGA (Field Programmable Gate Array). The processor executes a program stored in a memory such as a RAM. For example, an optimization program is executed. A set of multiple processors may be called a "multiprocessor" or simply a "processor."
[0019] The processing unit 12 searches for, for example, the minimum value of the Ising-type energy function resulting from the transformation of the problem (or the combination of values of the state variables that results in the minimum value) by the replica exchange method. The Ising-type energy function (H({x})) is defined, for example, by the following equation (1).
[0020]
number
[0021] The first item on the right side is the sum of the values of the two state variables (0 or 1) and the weighting coefficient for all combinations of N state variables, without any omissions or duplications. x i is the i-th state variable, x j represents the j-th state variable, and W ij x i ,x j The two items on the right side are the bias coefficients (b i ) and the value of each state variable, and the three items on the right-hand side (C) are constants.
[0022] Weighting factor (W ij ), bias coefficient (b i ), and the constant (C) are stored in the storage unit 11 as problem information. Here, we define the symbols as follows. First, there are a finite number of discrete states that can be obtained by combining N state variables, as shown in equation (1). If the total number of states is M, then M = 2 N In addition, the number of states with different energy values is M E Then, M E <= 2 N The energy values are E0, E1, …, E k ,…,E ME Also, E k Gives n x i Let the pair be {x k}. Therefore, H({x k})=E k In this case, the degeneracy is M k There are often multiple combinations of state variables that give the same energy.
[0023] x, one of the state variables k The change in the value of the energy function due to a change in the value of k )) is ΔE k =-(1-2x k )h k It can be expressed as 1-2x k x k The change in (Δx k ) x k If changes from 1 to 0, then 1-2x k = -1, and x k If changes from 0 to 1, then 1-2x k = 1. Also, h k is called the local field and can be expressed by the following equation (2).
[0024]
number
[0025] When searching for the minimum value of the above energy function, the processing unit 12 uses the replica exchange method. In the replica exchange method, multiple replicas are prepared, each of which calculates the value of the energy function defined by equation (1). The temperature parameter set for replica number i is T i In each replica, a fixed number of MCMC calculations are performed using a fixed value of the temperature parameter (the pseudo temperature mentioned above). After each calculation, the temperature parameter values are exchanged between replicas based on a predetermined exchange probability. Note that instead of exchanging the temperature parameter values, states (the values of N state variables) may be exchanged.
[0026] In the MCMC calculation, the processing unit 12 generates state transitions according to a predetermined transition probability. At this time, state transitions that increase energy are also allowed with a certain probability. This is known as the Metropolis method. When the Boltzmann distribution is used as in the conventional method, the transition probability in the Metropolis method is P i→j =min(1,exp(-βΔE)), P i→j is the transition probability between state i before the state transition and state j after the state transition by randomly selecting one state variable from the state variables in state i and inverting it. β is the value of the temperature parameter set for each replica (here, the inverse of the temperature (called the inverse temperature)). The inverse temperature for the replica with replica number = i is β i =1 / T i It is.
[0027] The exchange probability in the replica exchange method can be expressed by the following equation (3) when the transition probability based on the Boltzmann distribution is used as in the conventional method.
[0028]
number
[0029] In equation (3), P A (t) is the probability that state A before the replica exchange occurs. P B(t) is the probability that state B occurs after the replica exchange. Δβ is the inverse temperature (β j ) and the inverse temperature (β i ) and Δβ=β j -β i ΔE is the energy of the replica with replica number j (E j ) and the energy of replica number i (E i ) and ΔE=E j -E i It is.
[0030] In other words, in the replica exchange method, the temperature parameter values are exchanged with a probability determined by the product of the inverse temperature difference and the energy difference between the replicas. By exchanging the temperature parameter values, the replicas in the replica exchange method perform a random walk in the temperature space. As a result, they can pass through high-temperature regions, and even if the state gets stuck in a local minimum state with a deep minimum value in energy, they can easily escape from it.
[0031] However, in the replica exchange method, if the exchange probability is based on the Boltzmann distribution and is expressed as equation (3), the exchange probability decreases exponentially as the energy difference between the two replicas increases.
[0032] For this reason, there are limitations to the setting of the temperature parameters, and the step size of the temperature parameters must be roughly about one square root of N, and the number of replicas must be roughly about the square root of N. This means that the number of replicas increases when the degrees of freedom are increased.
[0033] Furthermore, there are problems with setting the temperature parameters, such as the following. 2 is a diagram showing an example of the change in energy with temperature when using transition probabilities based on the Boltzmann distribution, where the horizontal axis represents the temperature parameter (T) and the vertical axis represents the energy (E).
[0034] Figure 2 shows an example of the temperature change of the energy obtained when a certain problem is calculated. In this example, it can be seen that in the range of 10 < T < 100, the energy increases rapidly with respect to the value of the temperature parameter. This is a phenomenon related to phase transition. It is known that phase transition does not occur in a system with finite degrees of freedom, but as the degrees of freedom of the system increase, the temperature change of the energy occurs more rapidly, and the characteristics of phase transition become more prominent.
[0035] When such a phase transition occurs, replica exchange does not function efficiently. That is, it is divided into a group in which replica exchange occurs only in the region below the value of the temperature parameter at which the phase transition occurs (hereinafter referred to as the transition temperature), and a group in which replica exchange occurs only in the region larger than the transition temperature. Therefore, in order to make replica exchange function as the degrees of freedom increase, it becomes necessary to more carefully select the temperature increments of the replicas near the transition temperature.
[0036] This is because the exchange probability such as in Equation (3) is used. Equation (3) is formulated under the condition that the probability distribution followed by each replica remains the Boltzmann distribution even when replica exchange is performed. Such a condition is called the invariant distribution condition. Specifically, let the state A be the state where the replica with replica number = i is ({x i}, β i ) and the replica with replica number = j is ({x j}, β j ). And let the state B be the state where the replica with replica number = i is ({x j}, β i ) and the replica with replica number = j is ({x i}, β j ). The condition for the replica exchange defined between any two replicas, assuming that the probability distributions of both do not change before and after the exchange and reaching a steady state, is given by the following Equation (4).
[0037]
Equation
[0038] In equation (4), π({x j},β j ) is the statistical distribution that the system follows. π({x j},β j ) we obtain the expression for the exchange probability in equation (3). When dealing with problems related to physical systems such as magnetic materials, the Boltzmann distribution must be used because the thermal equilibrium state follows the statistical distribution of exp(-βE). In addition, when entropy effects play an important role in the thermodynamic behavior of a system, such as Helmholtz free energy and Gibbs free energy, the probability distributions that can be used are also restricted in order to properly incorporate the entropy effects.
[0039] However, the problem of finding the minimum value of an energy function such as equation (1) expressed by the Ising model can be regarded as simply solving the minimum value of a function, and therefore does not have to be bound by the Boltzmann distribution. If a phase transition is caused by the Boltzmann distribution and the phase transition impedes the efficiency of replica exchange, a probability distribution in which the phase transition does not occur can be used.
[0040] Furthermore, if preliminary calculations are troublesome, such as with the multicanonical method, a calculation method that makes preliminary calculations easier can be used. As long as the Markov chain is irreducible, it is probabilistically guaranteed that the system will reach its minimum value.
[0041] Therefore, in order to avoid the phase transition phenomenon that occurs when the Boltzmann distribution is used, the processing unit 12 uses a probability distribution other than the Boltzmann distribution. In the following, we define the transition probability as P i→j =min(1,exp(-βΔE)), but is defined as in the following equation (5).
[0042]
number
[0043] In equation (5), the transition probability f(ΔE ij ) is an arbitrary function, but it is finite and definite, and f(ΔE ij )<∞. In addition, the following equation (6) is required as a boundary condition.
[0044]
number
[0045] Furthermore, the sum of the probabilities of transitioning from the current state represented by the value of the current state variable to each of a number of different states is assumed to be finitely determined, and the condition of the following equation (7) is assumed to be satisfied.
[0046]
number
[0047] In addition, in formula (7), B i For example, B i = 1, where B i It is not limited to =1. Next, we define replica exchange that satisfies the invariant distribution condition under the transition probability defined in equation (5). The probability distribution π({x i},t) is determined by the master equation (8) below.
[0048]
number
[0049] π({x i},t) exists uniquely by the definition of the transition probability in equation (5). Because, for all ΔE ij The transition probability for ΔE is not 0, and it is a transition that does not change the state. ii This is because the transition probability for =0 is also not 0. In equation (8), the steady state is given by the following equation (9).
[0050]
number
[0051] Therefore, the equation that the steady state must satisfy can be expressed as the following equation (10).
[0052]
number
[0053] In the steady state, the probability distribution does not depend on time t, so t can be omitted and π({x i}). The probability distribution introduced by the transition probability in equation (5) may not satisfy the principle of detailed balance. The principle of detailed balance states that each term in the summation symbol in equation (10) should be zero. When detailed balance holds, P m→j π({x m})-P j→m π({x j})=0 holds, so the following equation (11) holds.
[0054]
number
[0055] From equation (11), if we use exp(-βΔE) as the Boltzmann distribution, the transition probability is i→j =min(1,exp(-βΔE)). The principle of detailed balance does not hold under the transition probability of equation (5), but for two different state variable pairs {x k} and {x l}(k≠l), when the same energy (E0) is given, the probability distribution function will be the same. That is, π({x k})=π({x l}) holds.
[0056] This is because there are two different sets of state variables {x k} and {x l}(k≠l), E0, so E0=H({x k})=H({x l}) Here, from equation (10), the following equation (12) is obtained.
[0057]
number
[0058] In equation (12), P l→k =1, P k→k = 1. Similarly, we obtain the following equation (13).
[0059]
number
[0060] Destination {x k} and {x l} have the same energy value. Therefore, the transition probability is also the same, and the following equation (14) holds.
[0061]
number
[0062] Subtracting equation (12) from equation (13) gives π({x l})B l -π({x k})B k = 0. Here, for two different sets of state variables {x k} and {x l}(k ≠ l), E0, so B k =B l holds true. And B k , B l is not 0. Therefore, π({x l})=π({x k}).
[0063] This condition is a strong requirement, and if the transition probability in equation (5) is defined only by the energy difference, all states with the same energy value will be realized with the same probability. Furthermore, this condition is not limited to energy. When the transition probability in equation (5) is defined only by the difference between an arbitrary physical quantity A, all microscopic states in which physical quantity A is the same will be realized with the same probability, regardless of whether the detailed balance principle holds or not. However, while this guarantees that a probability distribution exists, it does not guarantee that it can be described analytically. Furthermore, just because a power-type transition probability is used does not mean that the probability distribution will be power-type.
[0064] In the case of the Boltzmann distribution, the probability of realization is defined only by the energy value, and considering that the probability of realization of microscopic states with the same energy is the same, this condition is a generalization that includes the Boltzmann distribution as a special case. Note that this condition is not limited to the Ising model expressed by equation (1) and is valid for general discrete finite state systems.
[0065] Next, the probability distribution in the energy space will be described. The energy value is E j The set of state variables {x k There may be multiple}s, but they can be grouped together as {x k (j) In this case, the total number of states M can be expressed by the following equation (15).
[0066]
number
[0067] 3 is a diagram showing an example of the relationship between the number of states and the energy interval division for a physical quantity A. The horizontal axis represents A, and the vertical axis represents the frequency. Each value of physical quantity A (A1, A2, …, A j ,…A MA ) there are multiple sets of state variables for the same physical quantity A.
[0068] All transitions to microscopic states that belong to the same energy (such as the pair of state variables {x1}, {x2}, {x3} in Figure 3) have the same transition probability. k}) is E j As belonging to E j From E m’ The transition probability to the state of P j→m’ (E) Then, we obtain the following equation (16).
[0069]
number
[0070] Similarly, the following equation (17) is obtained.
[0071]
number
[0072] Therefore, the steady-state solution of the master equation is given by the following equation (18).
[0073]
number
[0074] where n (E) (E j )=M j π(E j ) probability distribution n (E) (E j ), equation (18) can be expressed as the following equation (19).
[0075]
number
[0076] On both sides of equation (19), j Multiplying this by , we obtain the following equation (20).
[0077]
number
[0078] Here, the transition probability is redefined as shown in the following equation (21).
[0079]
number
[0080] In this case, equation (20) can be expressed as the following equation (22).
[0081]
number
[0082] Therefore, the transition probability in the energy space increases by the degree of degeneracy of the energy value. The realization probability also increases by the degree of degeneracy of the energy value. Since the degree of degeneracy is the number of states, when N>>1, it can be approximately calculated by using the Wang-Landau method, and the realization probability of a microscopic state can also be calculated.
[0083] Next, we will explain replica exchange that uses the probability distribution of the transition probability of equation (5) as an invariant distribution. replica Let the system of all replicas be in state {{x i},β i ,E i}(i=1,2,…,N replica ) is called state A, and the probability that state A is realized is P A In this case, P A can be expressed by the following equation (23).
[0084]
number
[0085] Next, the state in which the temperature parameter value is exchanged between replica number i and replica number j by replica exchange is called state B, and the probability that state B is realized is P B In this case, P B can be expressed by the following equation (24).
[0086]
number
[0087] The master equation obeyed by the two states, state A and state B, is given by the following equation (25).
[0088]
number
[0089] In equation (25), P A→B denotes the transition probability from state A to state B. The steady state of the master equation in equation (25) is P A (t)P A→B -P B (t)P B→A =0.
[0090] Therefore, the following equation (26) is obtained.
[0091]
number
[0092] This gives us the replica exchange probability P ex can be defined as follows:
[0093]
number
[0094] The condition in (26) is called the invariant distribution condition because replica exchange is performed under the constraint that the functional form of the probability distribution is preserved. P ex It is difficult to derive an analytical form for the probability distribution to define
[0095] The aforementioned n (E) (E j )=M j π(E j ), equation (26) can be expressed in energy space as equation (28) below.
[0096]
number
[0097] Therefore, from the ratio of probability densities in the energy space, we can define the replica exchange probability that makes the probability distribution obtained by the transition probability expressed in equation (5) an invariant distribution. This allows the probability distribution that each replica follows to be π({x j},β j ,E j ) is realized. In other words, in this method, detailed balance is not required within each replica, but detailed balance is required in replica exchange. In equation (28), if the probability distribution is taken to be the Boltzmann distribution type, equation (3) is obtained.
[0098] Therefore, in replica exchange using the Boltzmann distribution, the formula for the Metropolis method happens to be very similar, but in general it is different. The existence of detailed balance within replicas and the detailed balance in replica exchange have theoretically different origins.
[0099] And because replica exchange, which imposes the invariant distribution condition, requires that each replica maintains the same probability distribution, this condition is generally not necessary for minimum solution problems. Of course, if the probability distributions in each replica are considered as the materials for constructing the overall distribution, it is easier to control if the raw probability distributions are invariant. However, in general, the possibility of reaching a solution is guaranteed as long as it is irreducible in the entire system including all replicas.
[0100] Therefore, the transition probability within a replica and the exchange probability between replicas may be set separately. There are two conditions for this. The first condition is that the exchange probability between one replica and another replica is not 0, and the second condition is that the transition from one replica to itself is not 0. As long as these two conditions are met, the calculator may define the exchange probability of replica exchange that is convenient for the calculation.
[0101] The processing unit 12 in FIG. 1 calculates the exchange probability (P ex ) and perform replica exchange.
[0102]
number
[0103] P in equation (29) ex By using, the invariant distribution condition is satisfied. FIG. 1 shows a process flow of an example of an optimization method performed by the processing unit 12. The processing unit 12 acquires problem information from the storage unit 11 (step S1). The processing unit 12 acquires f(ΔE ij ) (transition probability), the number of calculations that is the end condition for the solution-finding process by replica exchange, etc. may be obtained from the storage unit 11.
[0104] Next, the processing unit 12 performs an initialization process (step S2). In the initialization process, when the energy function is expressed by the formula (1), x1 to x2, which are state variables for each replica stored in the storage unit 11, are initialized. NIncludes a process to initialize x1~x N For example, x1 to x2 may be initialized to all 0 or all 1. N may be initialized to be randomly set to 0 or 1, or may be initialized by a value supplied from outside. The initialization process includes a process of calculating an initial value of the energy using equation (1) based on the problem information and the initial values of the state variables. The initial value of the energy is the current minimum value (E Min ) is stored in the storage unit 11.
[0105] Thereafter, the processing unit 12 determines the values of a plurality of temperature parameters different from each other to be used in the process of finding an optimum solution by the replica exchange method, and sets each of the plurality of temperature parameter values to one of the plurality of replicas (step S3).
[0106] As mentioned above, when using the transition probability based on the Boltzmann distribution, as shown in Figure 2, there are some parts where the energy changes sharply with respect to the change in the temperature parameter value, making it difficult to determine the temperature parameters to be set for each of the multiple replicas. ij ) is a transition probability in which the change in the value of the energy function relative to the change in the value of the temperature parameter is more gradual than the Boltzmann distribution. This makes it easier to determine the temperature parameter. The method of determining the temperature parameter will be described later in the second embodiment.
[0107] Then, the processing unit 12 performs a solution-finding process using the replica exchange method (step S4). The processing unit 12 performs an update process (a fixed number of MCMC calculations) for repeatedly updating the values of any of the multiple state variables according to the above transition probability, independently for each of the multiple replicas. FIG. 1 shows a power-type transition probability (f(ΔE ij )=1 / (1+βΔE) m (m>1) is shown.
[0108] The processing unit 12 calculates P in the formula (29) every certain number of times. ex In accordance with the above, the processing unit 12 repeats a process of exchanging any of the values of the plurality of temperature parameters set in each of the plurality of replicas among the plurality of replicas. Note that the processing unit 12 may exchange states (values of N state variables) instead of exchanging the values of the temperature parameters.
[0109] In addition, the probability density (n(β i ,E j ) can be obtained relatively easily by performing independent sampling calculations for each value of the temperature parameter. An example of a method for calculating the probability density and a more detailed example of a solution process using the replica exchange method will be described in the second embodiment.
[0110] For example, the processing unit 12 calculates the energy every time the MCMC calculation is performed on each replica, and stores the current E Min If an energy lower than E Min Then, the processing unit 12 updates E Min is output as a calculation result to, for example, an external device (external computer, storage medium, display device, etc.) (step S5), and the process ends.
[0111] In addition, the processing unit 12 is Min When x1~x is obtained N The value of x1 to x2 is stored in the storage unit 11. N The value of E Min may be output together with According to the information processing device 10 and the optimization method of the first embodiment described above, for each replica, the MCMC calculation is performed using a transition probability that causes the change in the value of the evaluation function relative to the change in the value of the temperature parameter to be more gradual than the transition probability based on the Boltzmann distribution. This makes it easier to determine the temperature parameter because the phase transition that occurs when the transition probability based on the Boltzmann distribution is used is suppressed.
[0112] When using transition probabilities other than those based on the Boltzmann distribution, the invariant distribution condition is not trivial. However, as described above, by performing replica exchange using exchange probabilities that satisfy the invariant distribution condition, the probability distribution becomes the same before and after the replica exchange. This increases the stability of the calculation and makes it easier to control the calculation. In other words, the energy space can be sampled stably, and as a result, the efficiency of the solution is stabilized.
[0113] (Second embodiment) In the second embodiment described below, a power-type transition probability expressed by the following equation (30) is used as a transition probability in which the change in the value of the evaluation function with respect to the change in the value of the temperature parameter is more gradual than the transition probability based on the Boltzmann distribution.
[0114]
number
[0115] Figure 4 shows an example of the difference in temperature dependence of energy when using transition probabilities based on the Boltzmann distribution and when using power-law transition probabilities. The horizontal axis represents the temperature parameter (T) and the vertical axis represents energy (E). The power-law transition probability used is that in formula (30) where m = 1.001.
[0116] The expectation value of energy 〈E〉 can be expressed by the following equation (31).
[0117]
number
[0118] E(X) is H({x}) in equation (1), P(X) is the probability distribution of a certain state X, and N data is the number of data points obtained by sampling. Figure 4 shows that sampling begins after reaching equilibrium for each temperature parameter value, and N data E iIt is obtained by acquiring.
[0119] As shown in Fig. 4, at the low-temperature region and the high-temperature limit, the temperature dependence of the energy is almost the same whether the transition probability based on the Boltzmann distribution or the power-law type transition probability is used. However, a significant difference appears in the intermediate temperature region. When the transition probability based on the Boltzmann distribution is used, the energy changes rapidly in the vicinity of the value of the temperature parameter corresponding to the phase transition. This becomes more rapid as the degrees of freedom increase and becomes like a λ point. On the other hand, when the power-law type transition probability is used, the increase in energy is gentler than when the transition probability based on the Boltzmann distribution is used.
[0120] Fig. 5 is a diagram showing an example of the relationship between the exponent of the power-law type transition probability and the temperature dependence of the energy (expected value). The horizontal axis represents the temperature parameter (T), and the vertical axis represents the energy (E). For comparison, the temperature dependence of the energy when the transition probability based on the Boltzmann distribution is used (denoted as “Bolz”) is also shown.
[0121] As the exponent (m) of the power-law type transition probability increases, the rate of increase of the energy with respect to the temperature gradually increases. That is, the more m increases, the more prominent the phenomenon resembling a phase transition appears. Therefore, for example, when m > 4, the step width of the temperature parameter at the time of replica exchange needs to be selected more carefully. In order to make the determination of the value of the temperature parameter easier, for example, it is desirable that 1 < m ≤ 4.
[0122] Fig. 6 is a diagram showing the probability density distribution on the energy space obtained in the replicas where each value of the temperature parameter is set. The horizontal axis represents the energy (E), and the vertical axis represents the probability density n(E).
[0123] Note that replica exchange is not performed, and the values of the temperature parameters of each replica are fixed. Also, the same temperature sequence (the same group of temperature parameters) is used in all the calculations of the four cases in Fig. 6. In the calculation example of Fig. 6, the temperature parameter (T min) for T min =1.0, the temperature parameter indicating the maximum temperature (T max ) for T max = 100, and the number of replicas is 26.
[0124] Figure 6 shows examples of probability density distributions in energy space for four cases, namely, the probability density distribution obtained when using transition probabilities based on the Boltzmann distribution and the probability density distribution obtained when using power-type transition probabilities with m = 1.001, 2, and 3.
[0125] As shown in Figure 6, in the intermediate energy state near the phase transition point (region E = -4000 to -10000), the interval between the peaks of the probability density distribution tends to be larger when the transition probability based on the Boltzmann distribution is used than when the power-law transition probability distribution is used. This corresponds to a rapid change in energy as a function of the temperature parameter.
[0126] When power-law transition probabilities are used, the spacing between the vertices in the intermediate energy states tends to be smaller than when transition probabilities based on the Boltzmann distribution are used, so sampling in the intermediate energy states is easier than when transition probabilities based on the Boltzmann distribution are used.
[0127] As m, the exponent of the power-law transition probability, becomes larger, the interval between peaks of the probability density distribution in the intermediate energy states tends to become larger. In other words, the interval between the peaks of the probability density distribution obtained in two replicas with adjacent temperature parameter values is insensitive to the temperature parameter value. Therefore, the smaller m is, the easier it is to set the temperature parameter.
[0128] However, the probability distributions created by transition probabilities based on the Boltzmann distribution and those created by power-law transition probabilities are fundamentally different. Therefore, the effects are seen in the low temperature region. In the calculation example of Figure 6, the temperature parameters were determined so that sampling is easy when transition probabilities based on the Boltzmann distribution are used, so it can be seen that the sampling ability is reduced in the low temperature region when using power-law transition probabilities. This is because when power-law transition probabilities are used, the region that would be considered sufficiently cold when using transition probabilities based on the Boltzmann distribution is not sufficiently cold. This problem occurs due to the temperature parameter (T min ) smaller than that in the case of using transition probabilities based on the Boltzmann distribution.
[0129] FIG. 7 is a diagram showing a probability density distribution in energy space obtained when replica exchange is performed. In the calculation example of FIG. 7, the same temperature parameter setting conditions as those used in the calculation of FIG. 6 are used. The left side of FIG. 7 shows the probability distribution function calculated numerically for the entire energy range in which sampling was performed. The right side of FIG. 7 shows the left side of FIG. 7 enlarged from E=-12500 to -12000. The horizontal axis shows energy (E) and the vertical axis shows probability density (P(E)). Note that the power-type transition probability used is that in Equation (30) where m=3. For comparison, the probability density distribution (denoted as "Bolz") when the transition probability based on the Boltzmann distribution is used is also shown.
[0130] As shown on the right side of Figure 7, on the low energy side, the probability density is larger when transition probabilities based on the Boltzmann distribution are used than when power-law transition probabilities are used. On the other hand, as shown on the left side of Figure 7, on the high energy side, the probability density is larger when power-law transition probabilities are used. Overall, when power-law transition probabilities are used, the behavior of the probability density in energy space is flatter than when transition probabilities based on the Boltzmann distribution are used. In the case of the multicanonical method, a flat histogram is created that intentionally visits all energy regions in the energy space with equal probability numerically, but it is not as flat as the multicanonical method.
[0131] This characteristic means that there are situations where it is advantageous when searching for the ground state. This is because it is believed that efficient memory forgetting leads to efficient search. Forgetting memory mentioned here means escaping the influence of a structure on a specific energy landscape by transitioning to a high-temperature state. The advantage of the replica exchange method is that it can efficiently escape from deep energy minimum structures by transitioning the state to the high-temperature side. However, as the degree of freedom of the system increases, the energy change near the phase transition point becomes abrupt, making it difficult to transition to a high-temperature region efficiently. Conversely, being able to transition to a high-temperature region efficiently leads to sampling a wider solution space.
[0132] Using the results described so far, we can see that the number of replicas can be reduced when using power-law transition probabilities. FIG. 8 shows a calculation example of the maximum cut problem using the replica exchange method. The problem used is a problem called G43, whose optimal solution is known. The horizontal axis represents the number of replicas, and the vertical axis represents the solution probability (%). The power-type transition probability used is m=1.001 in equation (30). For comparison, a calculation example using transition probabilities based on the Boltzmann distribution is also shown.
[0133] In Figure 8, 100,000 calculations were performed for each replica, with the replica exchange frequency set to once every 10 times. After the calculations were completed, the number of replicas that reached the ground state solution (optimal solution) was counted, and the solution finding probability was calculated from that. For example, when calculations were performed using 26 replicas, if all 26 replicas reached the optimal solution, the solution finding probability would be 100%.
[0134] As can be seen from Figure 7, the probability of finding a solution decreases as the number of replicas decreases. However, when using the power-law transition probability, the optimal solution is obtained even with a smaller number of replicas than when using the transition probability based on the Boltzmann distribution.
[0135] As mentioned above, this is because the use of the power-law transition probability makes the temperature dependence of the energy less sensitive to the temperature parameter value than the use of the transition probability based on the Boltzmann distribution. In other words, since it is not necessary to take fine values for the temperature parameter, the number of replicas can be reduced accordingly.
[0136] This phenomenon will be explained using a formula below. Let us assume that replica exchange is ideal and that a probability distribution ρ(E) is obtained that visits the entire energy space equally. ρ(E) is the probability distribution obtained by all replicas. In this case, ρ(E) is the Boltzmann distribution ρ B When expressed as the sum of the above, it can be expressed as the following equation (32).
[0137]
number
[0138] Similarly, ρ(E) is the probability distribution obtained by the transition probability of Eq. (5). P When expressed as the sum of the above, it can be expressed as the following equation (33).
[0139]
number
[0140] In other words, the problem boils down to constructing ρ(E) from two different distribution functions for efficient calculation. In this case, if a transition probability based on the Boltzmann distribution is used, as can be seen from Figure 5, the energy changes rapidly near the phase transition point. Therefore, if one tries to sample all energy regions equally in equation (32), many temperature parameters will be taken near the phase transition point. As a result, the number of sum terms that make up equation (32) will be large.
[0141] On the other hand, in the power-law transition probability, as can be seen from Figure 5, the phase transition point corresponding to the phase transition does not appear clearly, and a desirable overall probability distribution can be created from equation (33) without taking many temperature parameters.
[0142] Next, we will discuss the condition for minimizing the number of replicas. This is not essential for finding the minimum value, but it is an essential condition for minimizing the number of replicas. The condition is that the probability density distribution in the energy space created by the replica with replica number = i overlaps only with the probability density distributions created by the replicas with replica number = i-1 and replica number = i+1.
[0143] FIG. 9 is a schematic diagram showing an example of detailed balancing in the replica exchange method. Figure 9 shows the detailed balance of four replicas, numbered 1 to 4. Of the four replicas, any two replicas can be exchanged.
[0144] In the replica exchange method, the principle of detailed balance is imposed on any two replicas to be exchanged. This is required by equation (26). The principle of detailed balance is required for any two replicas. Therefore, in general, one replica exchange will produce N replica (N replica However, by appropriately setting the temperature parameters, replica exchange can be limited to exchanges between adjacent temperature parameters only.
[0145] FIG. 10 is a diagram showing an example of replica exchange only between adjacent temperature parameters. In FIG. 10, the smallest temperature parameter is set to replica number 1, the next smallest temperature parameter to replica number 2, the second largest temperature parameter to replica number 3, and the largest temperature parameter to replica number 4.
[0146] For example, if the probability density distribution produced by replica number 2 overlaps only with the probability density distributions produced by replica numbers 1 and 3, then an exchange attempt between replica number 2 and replica number 4 will always be rejected. By selecting multiple temperature parameter values in this way, it is clear that exchange attempts need only be made between replicas with adjacent temperature parameters. Strictly speaking, the overlap of the probability density distributions between replica numbers 2 and 4 is not zero. However, calculations are always performed to a finite number of digits, and by setting the temperature parameters appropriately, it is possible to create a situation in which the exchange probability can be treated as zero.
[0147] On the other hand, there are two commonly adopted implementations of replica exchange. The first implementation is called adjacent exchange. This assumes that only the probability density distributions of replicas with adjacent temperature parameters overlap. This is a commonly used condition, as it is easy to implement. However, the calculation operator must determine the temperature parameter value in advance through preliminary calculations, etc., so that the above condition is observed.
[0148] The second method is called random exchange. This method uses random numbers to select any two replicas, and all replicas are eligible for exchange. This method attempts to exchange any two replicas by taking the long-term average. Therefore, it has the characteristic that the condition of detailed balance is satisfied even if the probability density distribution in the energy space of a certain replica has a non-negligible overlap with the probability density distribution of an adjacent replica for which parameters other than the temperature are set. Regardless of which method is adopted, if the goal is limited to finding the minimum value, it is guaranteed that the problem is irreducible, so in principle there is no reason why a solution cannot be reached.
[0149] However, from the viewpoint of efficiency, if the detailed balance between replicas is not satisfied, the invariant distribution condition is not satisfied. Therefore, it may be disadvantageous to control the probability density distribution in the energy space created by the entire replica system. Since the objective here is to reduce the number of replicas required for replica exchange, in order to minimize the number of replicas, the temperature parameters are determined so that the invariant distribution condition is observed in replica exchanges between replicas with adjacent temperature parameters.
[0150] In this manner, the minimum number of replicas and the values of the multiple temperature parameters can be determined. A more specific method of determining the minimum number of replicas and the values of the multiple temperature parameters will be described below. First, the number of replicas is set to a large number, and the probability density distribution in energy space is obtained without replica exchange, as shown in Figure 6. Then, the energy value that gives the peak of the probability density distribution for each value of the temperature parameter and the spread (standard deviation) of the probability density distribution are obtained. From this, it is possible to obtain the energy that gives the peak of the probability density distribution as a function of the temperature parameter. Meanwhile, the degree of overlap can be obtained from the spread of the probability density distribution. Then, from the energy that gives the peak and the degree of overlap, multiple temperature parameters can be selected such that only adjacent temperature parameter values are exchanged, taking into account the magnitude of the exchange probability.
[0151] As shown in FIG. 5, the distribution of the energy (expected value) obtained when using the power-law transition probability becomes close to a normal distribution in the high temperature region. For example, the temperature parameter β i Just choose.
[0152]
number
[0153] In equation (34), the first item on the left side is the energy that gives the peak of the probability density distribution in the energy space due to the replica with replica number = i, the two items on the left side are the standard deviation of that probability density distribution multiplied by a specified coefficient n, the first item on the right side is the energy that gives the peak of the probability density distribution due to the replica with replica number = i + 1, and the two items on the right side are the standard deviation of that probability density distribution multiplied by n.
[0154] n is a variable that indicates the degree of overlap between probability density distributions. If the exchange probability is large, the overlap must be large, and the number of replicas increases. If it is okay to reduce the exchange probability, the number of replicas can be reduced.
[0155] Fig. 11 is a diagram showing an example of the energy that gives the peak of the probability density distribution in the energy space and the standard deviation of the probability density distribution. The horizontal axis represents energy (E) and the vertical axis represents the probability density n (E). Note that Fig. 11 shows a part of the probability density distribution when the power-type transition probability of m=2 in Fig. 6 is used.
[0156] Figure 11 shows an example of the energy that gives the peak of the probability density distribution in the energy space by the replica with replica number = i, which is one item on the left side of equation (34), and the standard deviation of that probability density distribution.Furthermore, Figure 11 shows an example of the energy that gives the peak of the probability density distribution by the replica with replica number = i + 1, which is the two items on the right side, and the standard deviation of that probability density distribution.
[0157] In addition, when calculating the temperature parameter T, T is determined in ascending order. 12 is a diagram showing an example of the behavior of the probability density distribution in a low temperature region, where the horizontal axis represents energy and the vertical axis represents the probability density.
[0158] Figure 12 shows the probability density distribution in energy space in the low-temperature region. If the temperature parameter value is too low in the low-temperature region (see "T: small" in Figure 12), the transition itself will not occur. This will reduce the search efficiency on the low-energy side. Conversely, if the temperature parameter value is too high (see "T: large" in Figure 12), the transition will occur too much, reducing the search efficiency on the low-energy side. Therefore, when selecting the smallest temperature parameter value, there is an optimal value (for example, "T: medium" in Figure 12). This optimal value can be determined by calculating the energy as a function of the temperature parameter as shown in Figure 5, and finding that a certain temperature parameter value is the minimum expected value of the energy.
[0159] The minimum value of the temperature parameter is affected by artifacts resulting from the short number of trials in the preliminary calculation. However, since it is difficult to obtain a sufficiently large number of trials in the calculation after optimizing the temperature parameter value, the temperature parameter value that gives the apparent minimum value is taken as the minimum value.
[0160] After the minimum value of the temperature parameter has been determined, the values of the remaining temperature parameters can be determined according to equation (34). At this time, the energy function as a function of the temperature parameter can be found using a method such as interpolation. The standard deviation can also be found using a method such as interpolation. Any interpolation method can be used, but since errors become large in the low temperature region, a smoothed curve can be found using curve interpolation using the least squares method or the like. After the interpolated curve has been found, it is then necessary to find the energy of the apex of the probability density distribution for the replica with replica number = i + 1 that satisfies equation (34), and the standard deviation of that probability density distribution. From this, the corresponding β i+1 , that is, T i+1 can be sought.
[0161] (Hardware configuration example) The above-mentioned replica exchange method and temperature parameter determination method can be realized, for example, by the following hardware.
[0162] FIG. 13 illustrates an example of hardware of an information processing apparatus according to the second embodiment. As illustrated in FIG. The information processing device 20 of the second embodiment 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 units are connected to a bus.
[0163] The CPU 21 is a processor including an arithmetic circuit that executes program instructions. The CPU 21 loads at least a part of the program and data stored in the HDD 23 into the RAM 22 and executes the program. The CPU 21 may include multiple processor cores, and the information processing device 20 may include multiple processors, and the processes described below may be executed in parallel using multiple processors or processor cores. A set of multiple processors (multiprocessor) may also be called a "processor."
[0164] The RAM 22 is a volatile semiconductor memory that temporarily stores programs executed by the CPU 21 and data used in calculations by the CPU 21. Note that the information processing device 20 may include a type of memory other than a RAM, and may include a plurality of memories.
[0165] The HDD 23 is a non-volatile storage device that stores software programs such as an OS (Operating System), middleware, and application software, as well as data. The programs include, for example, an optimization program that executes an optimization method using a replica exchange method. The information processing device 20 may include other types of storage devices such as a flash memory or an SSD (Solid State Drive), or may include multiple non-volatile storage devices.
[0166] The GPU 24 outputs an image to a display 24a connected to the information processing device 20 in accordance with an instruction from the CPU 21. As the display 24a, a CRT (Cathode Ray Tube) display, a liquid crystal display (LCD: Liquid Crystal Display), a plasma display (PDP: Plasma Display Panel), an organic EL (OEL: Organic Electro-Luminescence) display, or the like can be used.
[0167] The input interface 25 acquires an input signal from an input device 25a connected to the information processing device 20, and outputs the 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. may be used. In addition, a plurality of types of input devices may be connected to the information processing device 20.
[0168] The medium reader 26 is a reading device that reads programs and data recorded on the recording medium 26a. For example, a magnetic disk, an optical disk, a magneto-optical disk (MO: Magneto-Optical disk), a semiconductor memory, etc. can be used as the recording medium 26a. The magnetic disk includes a flexible disk (FD: Flexible Disk) and a HDD. The optical disk includes a compact disc (CD) and a digital versatile disc (DVD).
[0169] The medium reader 26 copies the program and data read from the recording medium 26a to another recording medium such as the RAM 22 or the HDD 23. The read program is executed by the CPU 21, for example. The recording medium 26a may be a portable recording medium, and may be used for distributing the program and data. The recording medium 26a and the HDD 23 may also be referred to as computer-readable recording media.
[0170] The communication interface 27 is an interface that is connected to the network 27a and communicates with other information processing devices via the network 27a. The communication interface 27 may be a wired communication interface that is connected to a communication device such as a switch by a cable, or may be a wireless communication interface that is connected to a base station by a wireless link.
[0171] Next, the functions and processing procedures of the information processing device 20 will be described. FIG. 14 is a block diagram illustrating an example of functions of the information processing apparatus according to the second embodiment. As illustrated in FIG. The information processing device 20 includes a storage unit 30 and a processing unit 31. The processing unit 31 includes a control unit 31a, a setting reading unit 31b, a spin initialization unit 31c, a temperature calculation unit 31d, a probability density calculation unit 31e, a replica exchange calculation unit 31f, and a result output unit 31g.
[0172] The storage unit 30 can be implemented, for example, by using a storage area secured in the HDD 23. The processing unit 31 can be implemented, for example, by using a program module executed by the CPU 21.
[0173] The storage unit 30 stores energy information, spin information, replica information, probability density information, problem setting information, and Hamiltonian information. The energy information includes the initial value of the calculated energy and the minimum value of the energy calculated so far. The energy information may also include the value of each state variable corresponding to the minimum energy. The spin information includes the value of each state variable. The replica information is information used to execute the replica exchange method, and includes the number of replicas (N replica ), replica exchange frequency (N ex ), the value of the temperature parameter that represents the minimum temperature (T min ), the value of the temperature parameter representing the maximum temperature (T max The probability density information includes the probability density information (n(β i ,E j The probability density information further includes, for example, the number of bins of a histogram (Nbin ), the frequency of updating the probability density (N prob ) The problem setting information includes information on the transition probability to be used (the value of the exponent (m) of the power-type transition probability mentioned above), the number of calculations for preliminary calculations (N pre ), the number of calculations required to find the optimal solution after preliminary calculations (N iter ), and spin initialization method (how to determine the initial values of the state variables). The Hamiltonian information includes, for example, the weighting coefficient (W ij ), bias coefficient (b i ), constant (C), etc., which is an example of the problem information mentioned above.
[0174] The control unit 31 a controls each part of the processing unit 31 . The setting reading unit 31b reads the above-mentioned various information from the storage unit 30 in a format that can be understood by the control unit 31a.
[0175] The spin initialization unit 31c initializes the spin (state variable). A temperature calculation unit 31d determines the temperature parameters to be set for each replica. The probability density calculation unit 31e calculates the probability density (n(β i ,E j ) etc.
[0176] Replica exchange calculation unit 31f executes a solution-finding process using the replica exchange method (hereinafter referred to as replica exchange process). The result output unit 31g outputs the result of the replica exchange process (search result). For example, when the replica exchange process satisfies a predetermined end condition, the result output unit 31g outputs the minimum energy obtained up to that point and the value of each state variable that gives that energy as the search result.
[0177] FIG. 15 is a flowchart illustrating a process flow of an example of the information processing apparatus according to the second embodiment. When the process starts, first, the setting reading unit 31b reads the above various information from the storage unit 30 in a format understandable by the control unit 31a (step S10). After that, the spin initialization unit 31c initializes state variables (step S11). Furthermore, the temperature calculation unit 31d and the probability density calculation unit 31e perform preliminary calculations (step S12). In the process of step S12, the temperature calculation unit 31d calculates temperature parameters, and the probability density calculation unit 31e calculates the probability density used to calculate the exchange probability. Information on the calculated probability density is stored in the storage unit 30.
[0178] Thereafter, the control unit 31a sets different temperature parameter values for each of the replicas (step S13). Then, the replica exchange calculation unit 31f performs the replica exchange process (step S14), and outputs the result (step S15). The result output unit 31g outputs the result when the replica exchange process meets a predetermined end condition (for example, when the number of calculations reaches N iter When the condition (energy ≠ energy reached) is satisfied, the minimum energy obtained up to that point and the values of each state variable that gives that energy are output as the results of the replica exchange process.
[0179] Thereafter, the processing of the information processing device 20 ends. Note that, hereinafter, the processing of step S14 may be referred to as "main calculation" in contrast to the preliminary calculation of step S12. (Example of information loading process) FIG. 16 is a flowchart showing a process flow of an example of information reading processing.
[0180] The setting reading unit 31b reads Hamiltonian information (weighting coefficients (W ij ), bias coefficient (b i ), and constant (C) are read (step S20).
[0181] In addition, the setting reading unit 31b reads T min , T max is read (step S21). Furthermore, the setting reading unit 31b reads N replica , N pre , N iter , N ex , N bin , N prob is read (step S22).
[0182] Furthermore, the setting reading unit 31b reads the spin initialization method from the storage unit 30 (step S23), and ends the information reading process. It should be noted that the process flow shown in FIG. 16 is merely an example, and the order of the processes may be changed as appropriate.
[0183] (Example of spin initialization process) FIG. 17 is a flowchart showing the process flow of an example of the spin initialization process. The spin initialization unit 31c determines whether the spin initialization method is in the designated mode (step S30). When the spin initialization unit 31c determines that the spin initialization method is in the designated mode, it initializes all state variables with the initial values of each state variable designated from outside the information processing device 20 (step S31), and ends the spin initialization process.
[0184] When the spin initialization unit 31c determines that the spin initialization method is not the designated mode, it determines whether the spin initialization method is 0 mode (step S32). When the spin initialization unit 31c determines that the spin initialization method is 0 mode, it initializes all state variables to 0 (step S33) and ends the spin initialization process. When the spin initialization unit 31c determines that the spin initialization method is not 0 mode, it initializes all state variables to 1 (step S34) and ends the spin initialization process.
[0185] It should be noted that the process flow shown in FIG. 17 is merely an example, and the order of the processes may be changed as appropriate. (Example of temperature parameter calculation process) Next, an example of the temperature parameter calculation process, which is the first process of the preliminary calculation in FIG. 15, will be described.
[0186] FIG. 18 is a flowchart showing a process flow of an example of the temperature parameter calculation process. The temperature calculation unit 31d calculates an energy interpolation curve (E ave The energy at the apex of the probability density distribution in the energy space obtained for each value of a plurality of temperature parameters (T) is obtained from the sampling result of the temperature dependence of the energy when using the power-type transition probability as shown in FIG.
[0187] Furthermore, the temperature calculation unit 31d calculates an interpolation curve (σ(T)) of the standard deviation, which is a function of T, from the standard deviation of the probability density distribution in the energy space obtained for each value of the plurality of temperature parameters (T) (step S41). The standard deviation of the probability density distribution in the energy space obtained for each value of the plurality of temperature parameters (T) is obtained from the sampling result of the temperature dependence of energy when using the power-type transition probability as shown in FIG.
[0188] Then, the temperature calculation unit 31d calculates E ave Based on (T) and σ(T), for example, by using a bisection method, T is determined so as to satisfy the relationship in equation (34). min From T max The temperature parameter (T) value up to N replica The number of minutes is determined (step S42). After that, the temperature calculation unit 31d finishes the calculation process of the temperature parameters.
[0189] The processing order of steps S40 and S41 may be reversed. By the way, if you do not want to spend too much time on the calculation of the temperature parameters, the above-mentioned adjacent exchange condition does not need to be strictly observed. This is because the existence of an equilibrium state and irreducibility only need to be guaranteed in the minimum solution problem. Strict observation of this condition is desirable when you want to calculate some physical quantity in a statistical mechanical simulation, strictly observe the detailed balance condition, and create a specific ensemble.
[0190] (An example of probability density calculation processing) Next, an example of the probability density calculation process, which is the second process of the preliminary calculation in FIG. 15, will be described. Probability density (n(β i ,E j ) is the replica exchange probability (P ex ) is calculated. The probability density can be easily calculated by performing independent sampling calculations for each value of the temperature parameter when performing MCMC calculations using power-law transition probabilities for each value of the temperature parameter. For example, a simple method for calculating the probability density is an approximation calculation using a histogram. By performing a relatively short preliminary calculation for each value of all the temperature parameters, the minimum value of the energy without replica exchange (E min ) and maximum value (E max ) can be calculated by setting the number of bins in the histogram as N bin Then, N bin +1 points. In this case, if the width of each bin is constant, the i-th point can be expressed by the following equation (35).
[0191]
number
[0192] In equation (35), i = 0, 1, 2, ..., N bin E min =E bin,0 , E max =E bin,N Then, in the interval [E bin,i ,E bin,i+1 ] may be prescribed.
[0193] FIG. 19 is a flowchart showing a process flow of an example of a probability density calculation process. The probability density calculation unit 31e calculates the E min and E max is determined (step S50), and E is calculated by the formula (35). bin,i is determined (step S51).
[0194] Then, the probability density calculation unit 31e sets the variable k to 1 (step S52), the variable j to 1 (step S53), and the variable i to 0 (step S54). Then, the probability density calculation unit 31e calculates E bin,i ≦E j ≦E bin,i+1 It is determined whether or not (step S55). j is the N obtained by sampling calculation for the temperature parameter value set for replica number k. data This is the jth data out of the data (energy values).
[0195] The probability density calculation unit 31e calculates E bin,i ≦E j ≦E bin,i+1 If it is determined that k is the replica, the interval [E bin,i ,E bin,i+1 ] indicates the number of data points in i k is incremented by +1 (step S56).
[0196] The probability density calculation unit 31e performs the calculation after step S56 or after E bin,i ≦E j ≦E bin,i+1 If it is not, then i=N bin The probability density calculation unit 31e determines whether i=N bin If it is determined that this is not the case, i is incremented by 1 (step S58), and the process from step S55 is repeated.
[0197] The probability density calculation unit 31e calculates i=N bin If it is determined that j=N data The probability density calculation unit 31e determines whether j=N data If it is determined that this is not the case, j is incremented by 1 (step S60), and the process from step S54 is repeated.
[0198] The probability density calculation unit 31e calculates the probability density of j=N data If it is determined that k=N replica The probability density calculation unit 31e determines whether k=N replica If it is determined that this is not the case, k is incremented by +1 (step S62), and the process from step S53 is repeated.
[0199] The probability density calculation unit 31e calculates k=N replica If it is determined that this is the case, k=1 (step S63) and i=0 (step S64). After that, the probability density calculation unit 31e calculates n i k , n i k / N data (step S65).
[0200] Then, the probability density calculation unit 31e calculates i=N bin The probability density calculation unit 31e determines whether i=N bin If it is determined that this is not the case, i is incremented by +1 (step S67), and the process from step S65 is repeated.
[0201] The probability density calculation unit 31e calculates i=N bin If it is determined that k=N replica The probability density calculation unit 31e determines whether k=N replica If it is determined that this is not the case, k is incremented by +1 (step S69), and the process from step S64 is repeated.
[0202] The probability density calculation unit 31e calculates k=Nreplica If so, the calculation process of the probability density is completed. It should be noted that the process flow shown in FIG. 19 is merely an example, and the order of the processes may be changed as appropriate.
[0203] The n obtained by the above process i k From the above, the probability of replica exchange (P ex ) is obtained. For each value of the above temperature parameters, min and E max is updated during this calculation, and the above probability density is updated.
[0204] (Example of replica exchange process (main calculation)) In this calculation, an MCMC calculation using a power-law transition probability is performed for each of a plurality of replicas to which any of the plurality of temperature parameter values determined in the process of step S12 is set.
[0205] During the MCMC calculation, the aforementioned E min or E max When updated, the probability density calculation unit 31e calculates the updated E min or E max By updating the histogram using the above, the probability density used to calculate the exchange probability is updated.
[0206] FIG. 20 is a flowchart showing an example of the flow of a probability density update process. The probability density calculation unit 31e calculates MOD(N step ,N prob It is determined whether N )=0 (step S70). step is the current calculation number (step number) of this calculation, and N prob is the number of steps indicating the update frequency of the probability density. In the process of step S70, N step N prob It is determined whether the number is a multiple of .
[0207] The histogram does not need to be updated frequently.prob It is desirable to set N to be sufficiently larger than the number of calculations that indicate the sampling frequency. For example, if sampling is performed once every 1000 calculations, the histogram update frequency is set to N so that it is performed once every 1000 samplings. prob is set.
[0208] The probability density calculation unit 31e calculates MOD(N step ,N prob If it is determined that E ) is not 0, the minimum value of the histogram (E min ) or maximum value (E max ) is updated (step S71), and the process ends.
[0209] The probability density calculation unit 31e calculates MOD(N step ,N prob If it is determined that E=0, the histogram is updated (step S72), and the process ends. In the process of step S72, the latest E min or E max The probability density calculation unit 31e uses E min When the update is made, the histogram will be updated to the interval [E bin,0 ,E bin,1 ] and E max When the update is made, the histogram will be updated to the interval [E bin,N-1 ,E bin,N This reduces the amount of calculations compared to updating the entire histogram.
[0210] Figure 21 shows E min and E max 11 is a flowchart showing the flow of an example of an update process. The probability density calculation unit 31e performs the following process each time a state transition occurs due to the MCMC calculation in each replica.
[0211] The probability density calculation unit 31e calculates the energy (E now ) but Enow <E min It is determined whether or not this is the case (step S80).
[0212] The probability density calculation unit 31e calculates E now <E min If it is determined that min =E now After the process of step S81 or E now <E min If it is determined that it is not, E now >E max It is determined whether or not this is the case (step S82).
[0213] The probability density calculation unit 31e calculates E now >E max If it is determined that max =E now After the process of step S83 or E now >E max If it is determined that it is not, E min and E max The update process is completed.
[0214] It should be noted that the process flow shown in FIG. 21 is merely an example, and the order of the processes may be changed as appropriate. By performing the update process of the probability density as shown in FIG. 20 and FIG. 21, as the number of current calculations of this calculation increases, the sampling accuracy of the probability density also increases.
[0215] In this calculation, the replica exchange calculation unit 31f calculates N ex For each node, the replicas exchange the temperature parameter values based on the exchange probability of Equation (29). Note that instead of exchanging the temperature parameter values, the replicas may exchange the states (the values of N state variables).
[0216] FIG. 22 is a flowchart showing an example of the flow of a replica exchange process. The replica exchange calculation unit 31f calculates MOD(N step ,Nex In the process of step S90, it is determined whether the current number of calculations, N step is the replica exchange frequency, N ex It is determined whether the number is a multiple of .
[0217] The replica exchange calculation unit 31f calculates MOD(N step ,N ex )=0, then MOD(N tot_ex The replica exchange calculation unit 31f determines whether MOD(N step ,N ex If it is determined that N ) is not 0, the replica exchange process is terminated. tot_ex It is determined whether or not is an even number.
[0218] The replica exchange calculation unit 31f calculates MOD(N tot_ex ,2)=0, T odd and T odd+1 The pair of replicas for which T is set is selected as replacement candidates (step S92). odd indicates the odd-numbered temperature parameter value when the temperature parameter (T) values calculated in the process of step S12 are arranged in ascending order. For example, assume that the temperature parameter values are arranged in the order of T1, T2, T3, T4, T5, .... In this case, the replacement candidates include a pair of a replica in which T1 is set and a replica in which T2 is set, and a pair of a replica in which T3 is set and a replica in which T4 is set.
[0219] The replica exchange calculation unit 31f calculates MOD(N tot_ex ,2) is not 0, T even and T even+1 The pair of replicas for which T is set is selected as replacement candidates (step S93). evenindicates the even-numbered temperature parameter value when the temperature parameter (T) values are sorted from smallest to largest. For example, assume that the temperature parameter values are sorted in the order T1, T2, T3, T4, T5, .... In this case, the replacement candidates include a pair of a replica with T2 set and a replica with T3 set, and a pair of a replica with T4 set and a replica with T5 set.
[0220] Next, the replica exchange calculation unit 31f selects one exchange candidate pair (step S94) and generates a random number R having a value in the interval [0, 1] (step S95). Then, the replica exchange calculation unit 31f calculates the exchange probability P ex But, P ex It is determined whether or not ≧R (step S96).
[0221] The replica exchange calculation unit 31f is ex If it is determined that R is satisfied, replica exchange is executed by exchanging the temperature parameter values set between the replicas of the selected pair (step S97).
[0222] The replica exchange calculation unit 31f performs the process of step S97 or P ex If it is determined that R is not satisfied, it is determined whether or not all of the replacement candidates selected in the process of step S92 or step S93 have been selected in the process of step S94 (step S98).
[0223] If the replica exchange calculation unit 31f determines that all the exchange candidates have not been selected, it repeats the process from step S94, and if it determines that all the exchange candidates have been selected, it ends one round of replica exchange processing.
[0224] It should be noted that the process flow shown in FIG. 22 is merely an example, and the order of the processes may be changed as appropriate. In addition, the process shown in Fig. 22 is a replica exchange process by adjacent exchange, but if a random exchange is performed, it is sufficient to change it so that the pair of replicas to be exchanged is selected by random numbers. The calculation procedure after the pair is determined is the same as in the case of adjacent exchange.
[0225] Here, we provide a theoretical supplement: the detailed balance condition between any two replicas in (26) imposes an invariant distribution condition. When power-type transition probabilities are used, the invariant distribution condition is not theoretically necessary because the objective is to find the minimum value. However, it is desirable to create some distribution using power-type transition probabilities and impose constraints so that the distribution becomes an invariant distribution in order to keep the sampling space constant. This is because in the preliminary calculations, the probability density distribution at each value of the temperature parameter is estimated, and according to the estimate, multiple temperature parameter values and the number of replicas are defined so that sampling can be as wide as possible. This implicitly assumes that the probability density distribution obtained at the replicas where each value of the temperature parameter used in the estimation is set does not change due to replica exchange. Therefore, even when power-type transition probabilities are used in the problem of finding the minimum value, it is reasonable to impose the invariant distribution condition.
[0226] (effect) 23 is a diagram showing how the value of the temperature parameter is exchanged, where the horizontal axis represents the number of calculations, and the vertical axis represents the temperature parameter (T).
[0227] FIG. 23 shows how the temperature parameter value is exchanged when the replica exchange process is performed using a transition probability based on the Boltzmann distribution, and how the temperature parameter value is exchanged when the replica exchange process is performed using a power-type transition probability (m=3).
[0228] In the replica exchange process using transition probabilities based on the Boltzmann distribution, the temperature parameter values used are considered to be optimized. In contrast, the temperature parameter values used in the replica exchange process using power-law transition probabilities are not optimized. The reason for this is that, in order to verify the effect, the replica exchange process using power-law transition probabilities is placed under less favorable conditions than the replica exchange process using transition probabilities based on the Boltzmann distribution.
[0229] Regarding the values of multiple temperature parameters in the replica exchange process using the power-law transition probability, the lowest temperature is T=5, which is higher than the temperature when the transition probability based on the Boltzmann distribution is used. This is because the value of m is set to a relatively large value of m=3. T=5 is a value that can be considered to be sufficiently low in a system with m=3 (when m=1.001, a value of about T=0.1 can be considered to be sufficiently low).
[0230] In this way, depending on the value of m, the temperature parameter value that can be considered sufficiently low changes to the minimum temperature T min The maximum temperature T max is determined as:
[0231] In Figure 23, lines are displayed between adjacent temperatures where replica exchange has occurred. When the power-law transition probability is used, the lines are dense, and it can be seen that replica exchange is occurring in all temperature ranges. On the other hand, when the transition probability based on the Boltzmann distribution is used, the higher the temperature range, the more gaps there are, and it can be seen that replica exchange is becoming more difficult to perform.
[0232] 24 is a diagram showing changes in the value of the temperature parameter set in the replica, where the horizontal axis represents the number of calculations (number of steps) and the vertical axis represents the temperature parameter (T). Fig. 24 shows the change in the temperature parameter values set for replicas with replica numbers = 0 and 25 when the replica exchange process is performed using the transition probability based on the Boltzmann distribution. It also shows the change in the temperature parameter values set for replicas with replica numbers = 4 and 25 when the replica exchange process is performed using the power-type transition probability (m = 3). The settings of the multiple temperature parameter values are the same as in Fig. 23.
[0233] As shown in Figure 24, when the transition probability based on the Boltzmann distribution is used, a relatively small temperature parameter value is set for the replica with replica number = 0, and a relatively large temperature parameter value is set for the replica with replica number = 25. In other words, it can be seen that the low temperature region and the high temperature region are separated. This is because it is difficult to adjust the temperature parameter value near the phase transition point. The exchange probability decreases exponentially with respect to the energy difference. Near the phase transition point, the energy difference changes rapidly, making exchange difficult. This makes it difficult to efficiently go beyond the vicinity of the phase transition point.
[0234] On the other hand, when power-law transition probabilities are used, replicas can move between low and high temperature regions, even though the values of multiple temperature parameters are not optimized. This can be understood from the graph of energy as a function of the temperature parameter (T) in Figure 5. When power-law transition probabilities are used, the energy does not increase as rapidly as a function of T compared to when transition probabilities based on the Boltzmann distribution are used. In other words, replica exchange is easier. This means that replica exchange using power-law transition probabilities is robust to the setting of the temperature parameter.
[0235] In this way, we can qualitatively see that the replica exchange process using the power-law transition probability is useful, but in order to discuss the quantitative performance improvement, we adopt the tunneling time as a quantitative evaluation index. The tunneling time is the time it takes for one replica to min From T max again via T min On the other hand, T max From T min again via T max The time it takes to return to the tunnel may be referred to as the tunnel time.
[0236] The reason why this index is a quantitative index is that the motivation for introducing the replica exchange algorithm is to efficiently change the global structure in the energy landscape through the high-temperature region and increase the sampling efficiency. maxand T min This is because it is considered more efficient to be able to move between these two locations.
[0237] Fig. 25 is a diagram showing an example of a comparison result of the tunneling time during the replica exchange process when using the transition probability based on the Boltzmann distribution and when using the power-law transition probability. The horizontal axis represents the tunneling time in terms of the number of calculations (number of steps), and the vertical axis represents the frequency. Note that the power-law transition probability used is m=3.
[0238] In the case of replica exchange processing using transition probabilities based on the Boltzmann distribution, the average tunneling time was approximately 150,000 steps. In contrast, in the case of replica exchange processing using power-law transition probabilities, the average tunneling time was approximately 92,000 steps. The ratio is about 1.63 times, so if we compare based on tunneling time, the performance has improved by about 63%.
[0239] However, even when using transition probabilities based on the Boltzmann distribution, it is possible to shorten the tunneling time by performing repeated optimization and not taking the effort into consideration. The greatest advantage of using power-type transition probabilities is that it is robust to the value of the temperature parameter during the replica exchange process, reducing the effort required to determine each value of the temperature parameter. In other words, it is significant that a certain level of performance can be obtained even if corners are cut. This is because it is difficult to determine the optimal temperature parameter value for each problem. Even if the final calculation time on a computer to obtain a result is reduced to one-tenth, if the calculations and preparations required to obtain the optimal temperature parameter value take ten times as long, it will not be an overall optimization. The above method is similar to the T of power-type transition probabilities. min and T max Once the temperature parameter is determined, the method is robust to the temperature parameter value, so even if the parameter is set roughly, relatively good performance can be obtained. This is because factors that reduce the efficiency of replica exchange are intentionally eliminated.
[0240] As described above, the above processing contents can be realized by causing the information processing device 20 to execute a program. The program may be recorded on a computer-readable recording medium (e.g., recording medium 26a). For example, a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory may be used as the recording medium. Magnetic disks include FDs and HDDs. Optical disks include CDs, CD-R (Recordable) / RW (Rewritable), DVDs, and DVD-R / RWs. The program may be recorded on a portable recording medium and distributed. In that case, the program may be copied from the portable recording medium to another recording medium (e.g., HDD 23) and executed.
[0241] The above describes one aspect of the optimization device, the control method for the optimization device, and the control program for the optimization device of the present invention based on an embodiment, but these are merely examples and are not limited to the above description. [Explanation of symbols]
[0242] 10. Information processing device 11 Storage section 12 Processing section
Claims
1. Obtain information about the evaluation function that the problem was transformed into, determining values of a plurality of temperature parameters different from each other to be used in a process of finding an optimal solution by the replica exchange method; setting the values of the plurality of temperature parameters to any one of the plurality of replicas; performing an update process for repeatedly updating any of the values of the plurality of state variables according to a first transition probability obtained based on a change in a value of the evaluation function caused by a change in a value of any of a plurality of state variables included in the evaluation function and a value of any of the plurality of temperature parameters, the first transition probability being such that a change in the value of the evaluation function with respect to a change in the value of the temperature parameter becomes gentler than when a second transition probability based on a Boltzmann distribution is used, for each of the plurality of replicas independently of each other; and performing the solution-finding process by repeating an exchange process for exchanging, between the plurality of replicas, any of the values of the plurality of temperature parameters set in each of the plurality of replicas or the values of the plurality of state variables in each of the plurality of replicas according to an exchange probability that satisfies an invariant distribution condition of a probability distribution obtained by the first transition probability. An optimization program that causes a computer to carry out the processing.
2. 2. The optimization program according to claim 1, wherein the first transition probability is expressed as an inverse of m (m>1)th power of a product of the change and any one of the values of the plurality of temperature parameters plus 1.
3. 3. The optimization program according to claim 2, wherein the m is 4 or less.
4. 4. The optimization program according to claim 1 , wherein the program causes the computer to execute a process of determining the first value and the second value such that a sum of the evaluation function value giving an apex of a first probability density distribution of the evaluation function values, obtained by the update process using the first transition probability obtained based on a first value among the values of the plurality of temperature parameters, and a value obtained by multiplying the standard deviation of the first probability density distribution by a predetermined coefficient, is equal to a value obtained by subtracting the value obtained by multiplying the standard deviation of the second probability density distribution by the coefficient from the evaluation function value giving an apex of a second probability density distribution of the evaluation function values, obtained by the update process using the first transition probability obtained based on a second value among the values of the plurality of temperature parameters.
5. 5. The optimization program according to claim 1 , wherein the exchange probability when the exchange process is performed between a first replica among the plurality of replicas, in which a third value that is one of the values of the plurality of temperature parameters is set, and a second replica, in which a fourth value that is one of the values of the plurality of temperature parameters is set, is expressed as a ratio of a product of a first probability density of the value of the evaluation function in the first replica and a second probability density of the value of the evaluation function in the second replica before and after the exchange process.
6. The optimization program according to claim 5 , wherein the first probability density or the second probability density is calculated by an approximation calculation using a histogram.
7. 7. The optimization program according to claim 5, wherein, when a minimum value or a maximum value of the evaluation function in the first replica or the second replica is updated in the solution-finding process, the first probability density or the second probability density is updated based on an updated value of the minimum value or the maximum value.
8. The computer Obtain information about the evaluation function that the problem was transformed into, determining values of a plurality of temperature parameters different from each other to be used in a process of finding an optimal solution by the replica exchange method; setting the values of the plurality of temperature parameters to any one of the plurality of replicas; performing an update process for repeatedly updating any of the values of the plurality of state variables according to a first transition probability obtained based on a change in a value of the evaluation function caused by a change in a value of any of a plurality of state variables included in the evaluation function and a value of any of the plurality of temperature parameters, the first transition probability being such that a change in the value of the evaluation function with respect to a change in the value of the temperature parameter becomes gentler than when a second transition probability based on a Boltzmann distribution is used, for each of the plurality of replicas independently of each other; and performing the solution-finding process by repeating an exchange process for exchanging, between the plurality of replicas, any of the values of the plurality of temperature parameters set in each of the plurality of replicas or the values of the plurality of state variables in each of the plurality of replicas according to an exchange probability that satisfies an invariant distribution condition of a probability distribution obtained by the first transition probability. Optimization methods.
9. A storage unit that stores information on the evaluation function obtained by converting the problem; a processing unit that acquires the information, determines values of a plurality of temperature parameters different from each other to be used in a process of finding an optimal solution by a replica exchange method, sets each of the values of the plurality of temperature parameters to any of a plurality of replicas, and performs an update process for each of the plurality of replicas independently of each other, the update process being repeated to update the value of any of the plurality of state variables according to a first transition probability obtained based on a change in a value of the evaluation function caused by a change in a value of any of a plurality of state variables included in the evaluation function and the value of any of the plurality of temperature parameters, the first transition probability being such that a change in the value of the evaluation function with respect to a change in the value of the temperature parameter is more gradual than when a second transition probability based on a Boltzmann distribution is used, and executes the solution finding process by repeating an exchange process for exchanging between the plurality of replicas the value of any of the plurality of temperature parameters set to each of the plurality of replicas or the values of the plurality of state variables in each of the plurality of replicas according to an exchange probability that satisfies an invariant distribution condition of a probability distribution obtained by the first transition probability; An information processing device having the above configuration.
Citation Information
Patent Citations
Simulation device, computer program, and simulation method
JP2018067200A
Information processor, ising device and control method of information processor
JP2019071119A
Clustering device, clustering method, and program
JP2019197355A
Optimization device and method for controlling optimization device
JP2020064536A
Optimization device and control method thereof
JP2020086821A
