System configuration derivation device and system configuration derivation method
The system configuration derivation device addresses the challenge of large-scale optimization by converting problems into constrained mathematical optimization with reduced variables, enabling real-time progress updates and efficient solution presentation.
Patent Information
- Application Number
- JP2023028153
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-27
- Publication Date
- 2024-09-06
AI Technical Summary
Existing system configuration optimization methods face challenges in obtaining optimal solutions within a realistic time frame, especially for large-scale problems, and lack the ability to provide meaningful progress updates during the optimization process.
A system configuration derivation device and method that converts system optimization problems into mathematical optimization problems with reduced variable sizes by adding constraints, allowing for the sequential output of solutions and progress information, while utilizing progressive optimization techniques to find feasible or optimal configurations.
Enables the calculation of better system configurations that satisfy user requirements with real-time progress updates, even for large-scale problems, by reducing problem size and providing intermediate solutions, thus overcoming the limitations of traditional optimization methods.
Smart Images

Figure 2024121191000001
Abstract
Description
[Technical field]
[0001] The present invention relates to a system configuration derivation device and a system configuration derivation method that execute a system configuration optimization procedure for automatically generating a system with a better index, which corresponds to an evaluation value for the system. [Background technology]
[0002] A system configuration derivation device that executes a system configuration optimization procedure is a useful device. The system configuration optimization procedure is, for example, to input requirements for an ICT (Information and Communication Technology) system desired by a user (hereinafter referred to as "service requirements") and an index corresponding to an evaluation value for the system (hereinafter referred to as "system evaluation index"), and to automatically generate a system with a better system evaluation index among systems that satisfy the service requirements. In addition, it is meaningful to continuously present to the user, among the systems obtained by the system configuration optimization procedure, the system with the best system evaluation index at each point in time, together with the value of the system evaluation index and the progress of the system configuration optimization procedure.
[0003] When building an ICT system for the purpose of operating a service, etc., it is necessary to design the system configuration. System configuration design work requires building all the system components and their connections (collectively referred to as the "system configuration") necessary to meet the requirements for the desired system (hereinafter referred to as the "service requirements"). In addition, it is necessary to correctly set all the configuration items necessary for the entire system to operate normally. These tasks require a lot of man-hours.
[0004] In addition to simply obtaining a system configuration that satisfies service requirements, the problem of obtaining the best system configuration from the viewpoint of some evaluation index (e.g., the level of operating costs, the level of system availability, the level of tolerable service load, etc.) that a user has for the system configuration can be regarded as a combinatorial optimization problem defined on variables that determine the system configuration. In particular, if the above problem is regarded as a problem of minimizing an objective function (corresponding to a system evaluation index) within a range in which the necessary conditions (corresponding to service requirements) for the system configuration to be correctly operable are satisfied, then the above problem can be defined as a constrained mathematical optimization problem.
[0005] For example, Non-Patent Document 1 describes a method for automatically optimizing a system. Specifically, the functional requirements of the system are transformed using a graph rewriting framework, and then an objective function is minimized under the obtained constraints. [Prior art documents] [Patent documents]
[0006] [Patent Document 1] JP 2012-159928 A [Patent Document 2] JP 2003-283198 A [Patent Document 3] Special Publication No. 62-018922 [Non-patent literature]
[0007] [Non-Patent Document 1] Takayuki Kuroda, Takuya Kuwahara, Kouki Yonaga, Takao Osaki, Masamichi J. Miyama and Masayuki Ohzeki, "Quantum annealing for ICTsystem design automation", 2021 IEEE / ACM 21st International Symposium on Cluster, Cloud and Internet Computing (CCGrid), 2021, pp. 156-165 [Non-Patent Document 2] Takayuki Kuroda, Takuya Kuwahara, Takashi Maruyama, Kozo Satoda, Hideyuki Shimonishi, Takao Osaki and Katsushi Matsuda, "Weaver: A Novel Configuration Designer for IT / NW Services in Heterogeneous Environments", 2019 IEEE Global Communications Conference (GLOBECOM), 2019, pp. 1-6. Summary of the Invention [Problem to be solved by the invention]
[0008] Although system optimization problems can be solved as mathematical optimization problems, depending on the scale of the system configuration, it may take an unrealistic amount of time to obtain an optimal solution. In addition, there are problems that require a long time even to obtain a feasible solution.
[0009] Non-Patent Document 1 describes an efficient method for solving optimization problems. However, it has been reported that it takes several tens of seconds to solve a problem with about 60 to 70 variables. Considering the difficulty of mathematical optimization problems, it is quite possible that it will take several hours to several days to solve a problem with hundreds to thousands of variables.
[0010] Therefore, it can be seen that there are two problems to be solved when trying to realize a solution for designing a real system using a method for optimizing the system configuration as a mathematical optimization problem.
[0011] The first problem is that the problem cannot be solved in a realistic time, and therefore the optimal configuration cannot be presented to the user. This problem is likely to occur when optimizing a very large system that would take several days to complete.
[0012] The second problem is that even if the problem can be solved within a realistic time, the user has to wait a long time until the optimal configuration is output. Compared to the time it takes to manually consider the optimal configuration, it may not be an unrealistic time for an automatic system optimization device to spend several days on optimization. However, after executing the optimization procedure, the user has to continue waiting until the optimization is completed.
[0013] Furthermore, in many existing methods, when solving a mathematical optimization problem, the "intermediate progress" cannot be observed as meaningful data for the user. For example, in the method using a quantum annealing machine shown in Non-Patent Document 1, quantum annealing is repeated until a feasible solution is found by sampling. However, for large-scale problems, it may take several tens of minutes to find a feasible solution. During that time, the user is left waiting for the completion of the optimization procedure, with no indication of when it will end.
[0014] The difficulty of optimization problems is fundamental. It takes a long time to find the true optimal solution for a problem of a certain scale. In order to solve the above two problems, a mechanism is needed that can present a system configuration that is a feasible solution as an intermediate step, even if the true optimal configuration has not yet been reached.
[0015] Patent Document 1 describes an information processing device for deriving an optimal arrangement for allocating virtual machines to one or more physical machines. Patent Document 2 describes an apparatus for displaying a progress status to a user when optimizing a process. Patent Document 3 describes an apparatus for processing a load distribution problem in a system in a short time to obtain an optimal solution.
[0016] The present invention aims to provide a system configuration derivation device and a system configuration derivation method that can calculate a better configuration for a system that satisfies service requirements given by a user, in terms of system evaluation indexes given by the user, while presenting the user with the progress status and the best configuration at that time. [Means for solving the problem]
[0017] The system configuration derivation device according to the present invention includes optimization problem conversion means for converting a system optimization problem into a mathematical optimization problem, problem size reduction means for reducing the number of variables of the mathematical optimization problem by adding constraints to the mathematical optimization problem, optimization means for calculating a solution to the mathematical optimization problem with the reduced number of variables, progressive optimization means for sequentially outputting the solution and processing progress information, and solution conversion means for converting the solution into system configuration information, which is the solution to the system optimization problem, and outputting the system configuration information and the progress information.
[0018] In a system configuration derivation method according to the present invention, a computer converts a system optimization problem into a mathematical optimization problem, reduces the number of variables of the mathematical optimization problem by adding constraints to the mathematical optimization problem, calculates a solution to the mathematical optimization problem with the reduced number of variables, sequentially outputs the solution and processing progress information, converts the solution into system configuration information which is the solution to the system optimization problem, and outputs the system configuration information and the progress information.
[0019] The system configuration derivation program according to the present invention causes a computer to execute the following processes: converting a system optimization problem into a mathematical optimization problem; reducing the number of variables of the mathematical optimization problem by adding constraints to the mathematical optimization problem; calculating a solution to the mathematical optimization problem with the reduced number of variables; sequentially outputting the solution and progress information of the process; and converting the solution into system configuration information, which is the solution to the system optimization problem, and outputting the system configuration information and the progress information. Effect of the Invention
[0020] According to the present invention, it is possible to calculate a better configuration for a system that satisfies service requirements given by a user, in terms of system evaluation indicators given by the user, while presenting the user with the progress status and the best configuration at that time. [Brief description of the drawings]
[0021] [Figure 1] 1 is a block diagram showing a configuration example of a first embodiment of a system configuration derivation device; [Diagram 2] 5 is a flowchart showing an operation of an optimization problem conversion unit in the system configuration deriving device of the first exemplary embodiment. [Diagram 3] 5 is a flowchart showing an operation of a progressive optimization unit in the system configuration deriving device of the first exemplary embodiment. [Figure 4] 5 is a flowchart showing an operation of a problem size reduction unit in the system configuration deriving device of the first exemplary embodiment. [Diagram 5] FIG. 2 is an explanatory diagram for explaining a specific image of problem conversion by a problem size reduction unit in the system configuration deriving device of the first embodiment. [Figure 6] 5 is a flowchart showing the operation of a solution conversion unit in the system configuration deriving device of the first exemplary embodiment. [Figure 7] FIG. 11 is a block diagram showing a configuration example of a second embodiment of a system configuration derivation device. [Figure 8] FIG. 13 is a block diagram showing a configuration example of a third embodiment of a system configuration derivation device. [Figure 9] 13 is a flowchart showing an operation of a progressive optimization unit in the system configuration deriving device of the third exemplary embodiment. [Figure 10] FIG. 1 is a block diagram showing an example of a computer having a CPU. [Figure 11] 1 is a block diagram showing a main part of a system configuration deriving device; [Figure 12] FIG. 1 is an explanatory diagram illustrating an example of a system optimization problem. [Figure 13] FIG. 1 is an explanatory diagram illustrating an example of a system optimization problem in which the relationships between components change depending on the solution. [Figure 14] FIG. 2 is an explanatory diagram showing that a solution to a system optimization problem to be addressed corresponds to a specific system configuration. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0022] First, the system optimization problem is described.
[0023] In Non-Patent Document 1, product selection of a server included in a system configuration is handled as an example problem. Fig. 12 is an explanatory diagram showing an example of such a problem (CHOICE-PROBLEM).
[0024] In the CHOICE-PROBLEM problem, we have N servers s1, s2, ... , s N The system includes M types of products p1, p2, ..., p M "Server s i Product j The truth or falsity of the fact that "is adopted" is represented by a binary variable (a variable that can take the value 0 or 1) x i,j By assigning i "Purchase cost of ", "Server s i "Operation costs of "Server s i The value of "available memory amount" is assigned to the variable {x i,j|1≦i≦N,1≦j≦M}. "The total operating cost of all servers in the system is less than *** yen," "Server s i The amount of available memory on server s i Constraints such as "the amount of resources required to operate normally for the services hosted on the server should be greater than or equal to the amount of resources required to operate normally" can also be expressed. Using these constraints and values, the product selection of servers can be treated as a mathematical optimization problem over binary variables {xi,j |1≦i≦N,1≦j≦M}.
[0025] In the example described in Non-Patent Document 1, the result of mathematical optimization does not affect the relationships between the components of the system. However, there are also conceivable examples in which these change depending on the result of the mathematical optimization problem. Fig. 13 is an explanatory diagram showing a problem called HOST-PROBLEM, which is an example of such a problem. Note that Fig. 13 shows an example of a system optimization problem in which the relationships between the components change depending on the solution.
[0026] In the problem HOST-PROBLEM illustrated in Figure 13, there are N servers s1, s2, ... , s N and M application instances a1, a2, ..., a M This deals with a situation where the system contains. The problem HOST-PROBLEM differs from the problem CHOICE-PROBLEM above in that the product of each server has already been determined, but the "HOST" relationship between the server and the instance has not been specified.
[0027] In the problem HOST-PROBLEM, "Instance a i The server j The binary variable p i,j, it can be encoded into a mathematical optimization problem, similar to the CHOICE-PROBLEM. The solution to the mathematical optimization problem obtained in this way can be interpreted as representing the "HOST" relationship between the instance and the server. Figure 15 is an explanatory diagram showing that the solution to the system optimization problem being handled corresponds to a specific system configuration. Figure 15 shows an example of the solution shown in Figure 13 and a system configuration obtained by interpreting it as a "HOST" relationship.
[0028] Next, how the system optimization problem serving as input information for the system configuration deriving device is defined will be described.
[0029] First, the definition of "system configuration" will be explained.
[0030] The system configuration dealt with in this specification is defined by a method for graphically expressing the configuration of an abstract or concrete system, as used in Non-Patent Document 2 and other publications. More specifically, it is defined by components that represent the logical or physical "parts" included in the system, and relations that represent the relationships between the components. There are "concrete" and "abstract" components and relations. In addition, types, identifiers, related parameters, etc. are defined.
[0031] Furthermore, parameter-related constraints (hereafter referred to as "parameter constraints") can be added to the above system configuration. Parameter constraints express the conditions necessary for the system to operate normally (such as "performance" requirements) and the conditions desired by the user for the system (such as requirements related to "budget" and "performance").
[0032] A system configuration in which all components and relations are concrete and the parameters are determined to be normal values (in the sense of satisfying all constraints) can be implemented as an ICT system that operates normally.
[0033] Next, we explain the "system optimization problem" addressed in this specification.
[0034] The system optimization problem addressed in this specification is defined by two elements: an "indefinite system configuration" and a "system evaluation index."
[0035] As described above, the "system evaluation index" corresponds to a function that receives a system configuration and returns an evaluation value. The larger the evaluation value, the better the system configuration is considered to be from the perspective of the system evaluation index.
[0036] In addition, the term "undefined system configuration" refers to a system configuration that includes one or more of the following uncertain elements:
[0037] [Undefined component set] A set of components that includes one parameter whose setting value has not been determined (undefined parameter). However, in one undefined component set, the undefined parameters of each component are assumed to be common (e.g., "MACHINE" type components M1, M2, and M3 with the parameter "product model number" undefined).
[0038] [Undefined Relation Set] A set of relations whose connection destination is not determined. However, in one undefined relation set, the candidate components to which each relation can connect are the same (for example, three "HOST" type relations with "APP" type components A1, A2, A3 as the connection source, and with "MACHINE" type components M1, M2, M3, M4 as the connection destination candidates).
[0039] By determining all the uncertainties in the uncertain system configuration, a system configuration can be obtained. The obtained system configuration is called a "solution" to the system optimization problem.
[0040] Among the solutions to the system optimization problem, a solution that satisfies all of the associated parameter constraints is called a "feasible solution" for the system optimization problem. A feasible solution corresponds to a system configuration that operates normally as an ICT system.
[0041] Furthermore, among the feasible solutions to a system optimization problem, the solution that is best in terms of the system evaluation index is called the "optimal solution."
[0042] Obtaining a feasible solution to a system optimization problem, particularly one with a higher system evaluation index, is called solving the system optimization problem.
[0043] Next, the definition of the constrained mathematical optimization problem dealt with in this specification will be described.
[0044] The constrained mathematical optimization problem (hereinafter simply referred to as "mathematical optimization problem") dealt with in this specification is basically the same as a commonly defined one. That is, a mathematical optimization problem is defined by the following three elements:
[0045] [Decision variable] A variable that represents the value to be determined by solving a mathematical optimization problem. X = (x1, x2, ... , x n )
[0046] [Objective function] A function f(X) that returns a value that represents the "goodness" of a solution.
[0047] [Constraint list] A list of equalities g(X) = c or inequalities g(X) ≦ c that represent the conditions that the decision variables must satisfy.
[0048] The above is an explanation of general definitions. In addition, in this specification, a mathematical optimization problem is defined as having the following elements.
[0049] [one-hot vector list] A sequence of vectors of decision variables (p1, p2, ... ,pk ) and satisfy the following three properties (OVL-1) to (OVL-3).
[0050] (OVL-1) All decision variables involved take values of 0 or 1.
[0051] (OVL-2) Vectors p1, ... , p k are all the same length.
[0052] (OVL-3) For all vectors p i Regarding p, the constraint list is i Each element of contains a one-hot constraint that corresponds to "exactly one variable takes the value 1, and the other variables take the value 0."
[0053] In other words, the one-hot vector sequence corresponds to a vector sequence that summarizes some of the decision variables included in a mathematical optimization problem based on information about which uncertain part of the system they originate from.
[0054] In this specification, the number of elements in a one-hot vector sequence is referred to as the "size" of the one-hot vector sequence. Furthermore, the maximum value of the size of a one-hot vector sequence in a mathematical optimization problem is referred to as the "size" of the mathematical optimization problem itself.
[0055] Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
[0056] Embodiment 1. [Configuration Description] The first embodiment will be described below with reference to the drawings. Fig. 1 is a block diagram showing a configuration example of the first embodiment of a system configuration derivation device 100. The arrows in Fig. 1 simply indicate the direction of signal (data) flow, but do not exclude bidirectionality. This also applies to other block diagrams.
[0057] The system configuration deriving device 100 of this embodiment includes an optimization problem conversion unit 101 , a progressive optimization unit 102 , a problem size reduction unit 103 , an optimization unit 104 , and a solution conversion unit 105 .
[0058] The optimization problem conversion unit 101 converts a system optimization problem into a mathematical optimization problem and mapping information indicating a correspondence with the original problem.
[0059] The incremental optimization unit 102 inputs a mathematical optimization problem. During execution, the incremental optimization unit 102 outputs a feasible solution to the mathematical optimization problem and a progress degree as an intermediate result. The incremental optimization unit 102 ultimately outputs an optimal solution to the mathematical optimization problem.
[0060] The problem size reduction unit 103 receives a mathematical optimization problem and size information (integer value) as input. The problem size reduction unit 103 adds a constraint condition to the constrained mathematical optimization problem, and outputs a mathematical optimization problem with a smaller number of variables than the original problem.
[0061] The optimization unit 104 receives a mathematical optimization problem as input and outputs a true optimal solution of the mathematical optimization problem, or a feasible solution that approximates the true optimal solution in terms of the value of the objective function.
[0062] The solution of the mathematical optimization problem generated based on the system optimization problem is input to the solution conversion unit 105. The solution conversion unit 105 outputs a system configuration corresponding to the solution of the mathematical optimization problem by reflecting the solution in an indefinite system configuration of the system optimization problem.
[0063] [Explanation of operation] The system configuration deriving device 100 receives a system optimization problem as an input, executes an optimization process to find an optimal solution to the system optimization problem, and outputs the obtained optimal solution.
[0064] Furthermore, during the execution of the optimization process, the system configuration deriving device 100 outputs a feasible solution to the input system optimization problem and the degree of progress as an intermediate result.
[0065] Next, the processing of each block of the system configuration deriving device 100 will be described in detail.
[0066] First, the operation of the optimization problem conversion unit 101 will be described.
[0067] FIG. 2 is a flowchart showing the operation of the optimization problem conversion unit 101.
[0068] The optimization problem conversion unit 101 receives a system optimization problem as an input (step S100).
[0069] The optimization problem conversion unit 101 initializes the data structure of the mathematical optimization problem P to be returned as an output. Specifically, the decision variables V[P], the constraint list C[P], and the one-hot vector sequence OH[P] of P are initialized to empty lists (step S101).
[0070] The optimization problem conversion unit 101 executes the processes of steps S102 to S104 for all indefinite component sets IC included in the indefinite system configuration of the system optimization problem.
[0071] In the following explanation, the components included in the uncertain component set IC are denoted as c(1), c(2), ..., c(n), and the candidates for values that can be set to the uncertain parameters in IC are denoted as v(1), v(2), ..., v(m).
[0072] The optimization problem conversion unit 101 generates a variable “x[c(i), v(j)]” for each component c(i) and each value v(j) that can be set for each undetermined parameter, and adds it to the decision variable V[P] (step S102).
[0073] The optimization problem conversion unit 101 adds the vector sequence "x[c(1)], x[c(2)], ..., x[c(n)]" consisting of the variables generated in the process of step S102 to the one-hot vector sequence OH[P] (step S103). The above x[c(i)] is the vector of variables related to the component c(i) x[c(i), v(1)], x[c(i), v(2)], ..., x[c(i), v(m)].
[0074] The optimization problem conversion unit 101 adds n equality constraints “x[c(i), v(1)] + x[c(i), v(2)] + ... + x[c(i), v(m)] = 1” (i = 1, ... , n) for each component c(i) to the constraint condition list C[P] (step S104).
[0075] Intuitively, these constraints express that "the value that is actually set for a parameter of a certain component is limited to one of the settable values."
[0076] The optimization problem conversion unit 101 executes the processes of steps S105 to S107 for all the indefinite relation sets IR included in the indefinite system configuration of the system optimization problem.
[0077] In the following explanation, the components that are the start points of the relations included in the indefinite relation set IR are denoted as s(1), s(2), ... , s(n'), and the candidate components that can be set as the end points of the indefinite relations in IR are denoted as d(1), d(2), ... , d(m').
[0078] The optimization problem conversion unit 101 generates a variable “y[s(i), d(j)]” for each start point s(i) and each end point candidate d(j) and adds it to the decision variable V[P] (step S105).
[0079] The optimization problem conversion unit 101 adds the vector sequence "y[s(1)], y[s(2)], ..., y[s(n')]" consisting of the variables generated in the process of step S105 to the one-hot vector sequence OH[P] (step S106). y[s(i)] is the vector y[s(i), d(1)], y[s(i), d(2)], ..., y[s(i), d(m')] of variables related to the component c(i).
[0080] The optimization problem conversion unit 101 adds n' equality constraints "y[s(i), d(1)] + y[s(i), d(2)] + ... + y[s(i), d(m')] = 1" (i = 1, ... , n') for each starting point s(i) to the constraint condition list C[P] (step S107).
[0081] Intuitively, these constraints express that "for a given relation, its end point is limited to one of the candidates."
[0082] The optimization problem conversion unit 101 converts the objective function of the input system optimization problem into a function on the variables V[P] using the decision variables V[P] added in the processing of steps S102 and S105, and sets it as the objective function F[P] (step S108).
[0083] The optimization problem conversion unit 101 executes the process of step S109 for each constraint condition CST included in the constraint condition list of the input system optimization problem.
[0084] That is, the optimization problem conversion unit 101 converts the constraint CST into a constraint defined on the variable V[P] using the decision variable V[P] added in the processing of steps S102 and S105, and adds it to the constraint list C[P] (step S109).
[0085] The optimization problem conversion unit 101 outputs a mathematical optimization problem P consisting of a decision variable V[P], an objective function F[P], a constraint list C[P], and a one-hot vector sequence OH[P] (step S110).
[0086] The above is a description of the operation of the optimization problem conversion unit 101.
[0087] Next, a specific example of conversion by the optimization problem conversion unit 101 will be described.
[0088] Assume that the optimization problem conversion unit 101 inputs the system optimization problem HOST-PROBLEM shown in FIG. 13. Here, the number of instances is 8, and the number of servers is 6. The objective function is "the sum of the power consumption of a1, ..., a6 (= the total power consumption of the system is small)." j The constraint on the server s j The memory required to run all instances hosted on the MemLimit j Also, "instance a i The server j "Power consumption when running on i,j "Instance a i "The amount of memory used by the i It is expressed as "server s j The amount of memory installed in the computer is set to MemLimit j It is expressed as:
[0089] The HOST-PROBLEM does not have an indefinite component set, and has eight "HOST" type relations starting from each instance a1, ... , a8 as an indefinite relation set. Therefore, a total of 48 variables corresponding to these, "y[a1][s1], y[a1][s2], ... , y[a1][s6], y[a2][s1], ... , y[a8][s6]", are set as decision variables V. One vector sequence, "(y[a1], y[a2], ... , y[a8])", is set as a one-hot vector sequence. In addition, the constraints on these variables, "y[a i ][s1] + ... + y[a i ][s6] = 1" is set as the constraint.
[0090] The objective function "sum of power consumption of a1, ..., a6" is an indefinite value due to the existence of an indefinite relation. i The power consumption of "Σ j∈{1,...,6} Power i,j y[a i ][s j ]” to find the function F(V) = Σ i ∈{1,...,8} , j∈{1,...,6} Power i,j y[a i ][s j ] is set.
[0091] Constraint "Server s j The memory required to run all instances hosted on the MemLimit j "Below" is the "server s" which was indefinite due to the existence of an indefinite relation. j The memory consumption of all instances running on the i∈{1,...,8} ConsumedMem i y[a i ][s j ]」, the constraints on V, Σ i∈{1,...,8} ConsumedMem i y[a i ][sj ] ≦ MemLimit j is set as:
[0092] The above is an explanation of a specific example of conversion by the optimization problem conversion unit 101.
[0093] Next, the operation of the progressive optimizer 102 will be described.
[0094] FIG. 3 is a flowchart showing the operation of the progressive optimizer 102.
[0095] The progressive optimization unit 102 receives a mathematical optimization problem P (step S200). The objective function of the mathematical optimization problem is represented as F(X).
[0096] The progressive optimization unit 102 initializes size information r to 1, and initializes the best score BEST-SCORE to −∞ (negative infinity) (step S201).
[0097] The progressive optimization unit 102 inputs the mathematical optimization problem P and size information r to the problem size reduction unit 103, and obtains an output mathematical optimization problem P[r] (step S202).
[0098] The progressive optimization unit 102 inputs a mathematical optimization problem P[r] to the optimization unit 104. The optimization unit 104 calculates an optimal solution of P[r] (step S203). If the optimization unit 104 succeeds in obtaining an optimal solution V[r], the process proceeds to step S205 (step S204). If the optimization unit 104 fails to obtain an optimal solution, the process proceeds to step S210 (step S204).
[0099] The progressive optimization unit 102 calculates the value F(V[r]) of the objective function F(X) corresponding to the solution V[r], and sets SCORE := F(V[r]) (step S205).
[0100] The progressive optimization unit 102 compares SCORE with BEST-SCORE (step S206). If SCORE is greater, the process proceeds to step S210 (step S207). If not, the process proceeds to step S208 (step S207).
[0101] In step S208, the progressive optimizer 102 updates SCORE with the value of BEST-SCORE.
[0102] The progressive optimization unit 102 inputs the solution V[r] and the progress d (r÷(size of P)) to the solution conversion unit 105, and outputs the intermediate progress (step S209). The progress d corresponds to progress information for the entire optimization procedure (optimization process).
[0103] In step S210, the progressive optimization unit 102 increments the size information r by one.
[0104] The progressive optimization unit 102 ends the operation if the size information r is greater than the size of P (step S209), otherwise, the process returns to step S202 (step S211).
[0105] This concludes the description of the operation of the progressive optimizer 102.
[0106] Next, we will explain the operation of the problem size reduction unit 103. The problem size reduction unit 103 receives a mathematical optimization problem P and size information r as input. Then, the problem size reduction unit 103 outputs a mathematical optimization problem P[r] that has the property that "a feasible solution of P[r] is also a feasible solution of P".
[0107] FIG. 4 is a flowchart showing the operation of problem size reduction unit 103.
[0108] The problem size reduction unit 103 receives the mathematical optimization problem P and size information r as input (step S300).
[0109] The problem size reduction unit 103 initializes a mathematical optimization problem P[r] as a copy of P (P[r]:=P) (step S301). The problem size reduction unit 103 also initializes a list CHUNK of vector sequences to an empty list (step S301).
[0110] The problem size reduction unit 103 performs the processes of steps S302 to S303 for each one-hot vector sequence OH = (x[1], x[2], ..., x[n]) included in the mathematical optimization problem P and whose size is greater than r.
[0111] The problem size reduction unit 103 divides n variable vectors x[1], x[2], ..., x[n] into r variable vector sequences v(1), v(2), ..., v(r) (step S302). Specifically, the problem size reduction unit 103 divides the variables so that each variable is included in exactly one variable vector v(i).
[0112] (Supplementary Note 1) One example of a method for dividing the variable vector into r variable vector sequences in step S302 is to divide a sequence of n variable vectors into r equal parts (if there is a fraction, the last variable vector v(r) will be the vector with the fewest elements).
[0113] (Supplementary Note 2) As another example of the method for dividing the variable vector into r vectors in step S302, a method for dividing a sequence of n variable vectors into r vector sequences by repeating the following procedure 1, "dividing a sequence of k variable vectors into a sequence of k+1 variable vectors," r-1 times can be considered.
[0114] (Procedure 1) Among k variable vector sequences, choose one vector sequence v (with size s) that has the largest number of elements, and let s' be a power of 2 smaller than s (=1, 2, 4, 8, 16, ...). By dividing v into "a vector sequence taking s' elements from the beginning of v" and "a vector sequence taking s-s' elements from the end of v", we can obtain k+1 new variable vector sequences.
[0115] (Supplementary Note 3) Supplements 1 and 2 are examples of methods for dividing variables into r vectors. The method for dividing variables into r vectors in the process of step S302 by the problem size reduction unit 103 in this embodiment is not limited to these. As long as the principle of dividing all variables into exactly one vector is observed, it is also possible to use a method of dividing the variables after rearranging them in a specific way, or a method of dividing them randomly, for example.
[0116] The problem size reduction unit 103 adds the variable vector sequence v(1), . . . , v(r) obtained in the process of step S302 in the previous loop to the list CHUNK of variable vector sequences (step S303).
[0117] The problem size reduction unit 103 executes the processes of steps S304 to S305 for each variable vector sequence (x[1], x[2], . . . , x[m]) included in CHUNK.
[0118] The problem size reduction unit 103 executes the procedure “replace all variables x[k][1], x[k][2], ..., x[k][w] appearing in the objective function and each constraint of P[r] with variables x[1][1], x[1][2], ..., x[1][w], respectively” for each of the variable vectors x[k] = x[2], x[3], ..., x[m] (step S304).
[0119] The problem size reduction unit 103 adds the constraints "x[1] = x[2]", "x[1] = x[3]", ..., "x[1] = x[m]" to the constraint conditions of P[r] (step S305).
[0120] The problem size reduction unit 103 outputs the mathematical optimization problem P[r] (step S306).
[0121] This concludes the explanation of the operation of problem size reducer 103.
[0122] Next, a specific example of problem size reduction by problem size reduction unit 103 will be described. It is assumed that a problem converted from HOST-PROBLEM, which was described as a specific example of an input to optimization problem conversion unit 101, is input to problem size reduction unit 103. It is also assumed that R=4 is input to problem size reduction unit 103 as size information.
[0123] Suppose a one-hot vector sequence (y[a1], ... , y[a8]) is divided into four equal parts from the beginning, into a list of four vector sequences: (y[a1], y[a2]), (y[a3], y[a4]), (y[a5],y[a6]), (y[a7], y[a8]).
[0124] Then, the four constraints y[a1] = y[a2], y[a3] = y[a4], y[a5] = y[a6], y[a7] = y[a8] are added to the constraint list, and the y values of the objective function and other constraints in the constraint list are 2k (k = 1, 2, 3, 4) are y 2k-1 For example, the objective function F(V) = Σ i∈{1,...,8},j∈{1,...,6} Poweri,jy[a i ][s j ] can be expressed as F(V) = Σ k∈{1,...,4},j∈{1,...,6} (Power 2k-1,j + Power 2k,j )y[a 2k-1 ][s j ]
[0125] The above is a specific example of problem size reduction by problem size reduction unit 103. Hereinafter, how a problem is made simpler by the processing by problem size reduction unit 103 will be described with reference to the drawings.
[0126] FIG. 5 is an explanatory diagram showing an image of converting HOST-PROBLEM P with size information 4. i ][s j Intuitively, the operation of dividing y[a1] = y[a2], y[a3] = y[a4], y[a5] = y[a6], y[a7] = y[a8] into four parts and adding constraints y[a1] = y[a2], y[a3] = y[a4], y[a5] = y[a6], y[a7] = y[a8], as shown in Figure 5, can be understood as "dividing two components a 2k-1 , a 2k This corresponds to the operation of making the end points of an indefinite relation with a starting point the same.
[0127] The transformation has transformed the original problem of setting destinations for eight relations into a problem of setting destinations for four relations. In general, the latter is an easier problem. In general, the smaller the size information r, the simpler the problem becomes, since it is effectively transformed into a problem with fewer variables.
[0128] (Supplementary Note) Here, it should be noted that the conversion by the problem size reduction unit 103 may cause a phenomenon that can be said to "deteriorate the quality of the problem solution" in two senses. One is that, for example, if the true optimal solution is a configuration in which a1 is hosted on s1 and a2 is hosted on s2, this configuration is not included in the solution of P[4]. Therefore, the true optimal solution cannot be obtained by solving P[4]. The other is that in a case where a1 and a2 cannot be hosted on the same server due to the amount of memory consumed, there will not even be a feasible solution in P[4]. It is considered that such a phenomenon is more likely to occur the smaller the size information r used for the conversion is. Therefore, it can be said that the result of the problem size reduction unit 103 is in a trade-off relationship between the simplicity of the problem and the "quality of the solution."
[0129] The above is an intuitive explanation of the meaning of problem size reduction by problem size reducer 103.
[0130] Next, the operation of the optimization unit 104 of this embodiment will be described.
[0131] The optimization unit 104 receives a mathematical optimization problem as input and outputs a true optimal solution or a feasible solution that is close to the true optimal solution in terms of the value of the objective function. In the following description, these solutions are collectively referred to as "good feasible solutions."
[0132] A solution V of a mathematical optimization problem P is data that represents "an assignment of a value to each decision variable of P." In this embodiment, the value assigned to the decision variable is 0 or 1. Therefore, the solution is represented as "a set of variables whose value is 1." In other words, for each decision variable x of P, if x∈V, then x is assigned a value of 1 in V. If x∈V is not true, then x is assigned a value of 0 in V.
[0133] In this embodiment, the method by which the optimization unit 104 obtains a good feasible solution is not limited to a specific method. Some specific methods that can be adopted are exemplified below.
[0134] The first method is to use linear programming. This method is applicable only when a linear programming problem is given as input. Well-known algorithms that can be used include the simplex method and the internal point method. Although the problems that can be applied to these methods are limited, they are characterized by their ability to obtain a true optimal solution within a relatively realistic time.
[0135] The second method is to use simulated annealing. This method is based on the natural law that "physical states transition to states with lower internal energy." There are methods such as simulated annealing, which simulates a physical environment on a computer, and special-purpose hardware that actually operates the above physical phenomena.
[0136] For example, calculations based on the latter method are performed in Non-Patent Document 1. Specifically, in the method described in Non-Patent Document 1, in order to find a good feasible solution to a mathematical optimization problem, the mathematical optimization problem is converted into an unconstrained mathematical optimization problem, and then a simulated annealing method is performed using a quantum annealing machine, which realizes a process in which an initial state in which all solution candidates are quantum mechanically superimposed transitions to a ground state (= a state with a lower energy level).
[0137] The above is a specific example of how the optimization unit 104 in this embodiment is implemented.
[0138] However, as described above, the specific method for realizing the operation of the optimization unit 104 in this embodiment is not limited to the above example.
[0139] Next, the operation of the solution conversion unit 105 will be described.
[0140] FIG. 6 is a flowchart showing the operation of the solution conversion unit 105.
[0141] The solution conversion unit 105 receives as input the system optimization problem P, a solution V of a mathematical optimization problem converted based on the optimization problem P, and the degree of progress d (step S500).
[0142] However, as explained in the explanation of the operation of optimization unit 104, it should be noted that the “solution V of the mathematical optimization problem” input here is expressed as “a set of variables whose values are assigned to 1.”
[0143] The solution conversion unit 105 executes the processes in and after step S501 for all variables included in V.
[0144] If the variable is "x[c][v]" (c is an undefined component and v is an undetermined parameter), the solution conversion unit 105 executes the process of step S502 (step S501). If the variable is "y[s][d]" (s and d are the start and end points of an undefined relation, respectively), the solution conversion unit 105 executes the process of step S503 (step S501).
[0145] In step S502, the solution conversion unit 105 sets the value of an undefined parameter of an undefined component c included in the undefined system configuration to v.
[0146] In step S503, the solution conversion unit 105 determines the end point of the undefined relation, which starts from the component s included in the undefined system configuration, as the component d.
[0147] When the execution of steps S502 and S503 for all variables included in V is completed, all the uncertain elements included in the indefinite system configuration are eliminated by the constraint conditions (one-hot constraints) added when the optimization problem conversion unit 101 adds decision variables. In other words, a specified system configuration is obtained.
[0148] The solution conversion unit 105 outputs the indefinite system configuration of the specific optimization problem P and the degree of progress d (step S504).
[0149] The above is a specific example of how the solution conversion unit 105 operates.
[0150] [Effect description] The optimization problem conversion unit 101 in the system configuration deriving device 100 of this embodiment converts the system optimization problem into an equivalent mathematical optimization problem. The progressive optimization unit 102 can perform optimization of the system configuration by outputting a solution of the mathematical optimization problem.
[0151] In addition, the problem size reduction unit 103 adds a constraint that treats multiple variables as one variable. Therefore, the given mathematical optimization problem is converted into a problem that has substantially fewer variables and can be solved quickly. The problem P[r] output at this time is the simplest when the input size information r is "1". The larger the size information r, the more difficult the problem P[r] becomes. Note that when the size information r is equal to or larger than the size of the original problem, the difficulty of the problem P[r] is exactly the same as that of the original problem.
[0152] In this embodiment, the incremental optimization unit 102 sequentially solves P[1], P[2], ... obtained by the problem size reduction unit 103. The incremental optimization unit 102 then outputs the obtained solutions one by one. Although the "quality" of the solution in terms of the objective function is not good, a problem with small size information r can be solved in a very short time compared to the original problem. Therefore, the incremental optimization unit 102 can output information corresponding to the intermediate progress during the procedure of finding the optimal solution to the input problem.
[0153] Furthermore, the progressive optimization unit 102 can also output the degree of progress determined from the size information.
[0154] Therefore, even for problems that are too large in scale to directly obtain a true optimal solution, the system configuration derivation device 100 of this embodiment can quickly proceed with the optimization procedure while presenting to the user the current best solution, which is an intermediate step, and the progress indicating how close the solution has been calculated to the true solution.
[0155] Embodiment 2. [Configuration Description] Next, a second embodiment will be described with reference to the drawings. Fig. 7 is a block diagram showing an example of the configuration of a system configuration deriving device 200 according to the second embodiment.
[0156] The system configuration deriving device 200 includes a system interruption unit 201 in addition to the configuration of the system configuration deriving device 100 .
[0157] In this embodiment, the system interruption unit 201 is connected to all other blocks. Furthermore, the system interruption unit 201 always receives an interruption instruction from the user in a standby state during operation.
[0158] [Explanation of operation] The basic operation of the system configuration deriving device 200 of this embodiment is the same as the operation of the system configuration deriving device 100 of the first embodiment.
[0159] The system interruption unit 201 can issue an interruption command to other connected devices. If a block that receives the interruption command is in operation, it immediately stops operation. If a block that receives the interruption command is not in operation, it does nothing.
[0160] Upon receiving a suspend instruction from the user, the system suspend unit 201 issues a suspend command to all other blocks, so that the user can suspend the operation of the system configuration deriving device 200 at any time.
[0161] [Effect description] The system configuration deriving device 200 of this embodiment can be stopped at any time by a user's instruction. This allows the user to end the optimization process at any time if the user is satisfied with the system configuration presented by the solution conversion unit 105 during the optimization process.
[0162] The system configuration deriving device 200 of this embodiment is a device that assumes that interruption is possible. Therefore, interruption can be applied to a system optimization problem in which the optimization process is unlikely to end in terms of scale or complexity. As a result, it becomes possible to calculate a good feasible solution as long as time permits.
[0163] Embodiment 3. [Configuration Description] Next, a third embodiment will be described with reference to the drawings. Fig. 8 is a block diagram showing an example of the configuration of a system configuration deriving device 300 according to the third embodiment.
[0164] The system configuration deriving device 300 includes a progressive optimization unit 302 instead of the progressive optimization unit 102 in the configuration of the system configuration deriving device 100. The other configurations are the same as those of the system configuration deriving device 100.
[0165] The progressive optimization unit 102 and the progressive optimization unit 302 are the same in terms of input and output.
[0166] [Explanation of operation] The basic operation of the system configuration deriving device 300 of this embodiment is the same as that of the system configuration deriving device 100 of the first embodiment. Only the operation of the progressive optimization unit 302 will be described below.
[0167] FIG. 9 is a flowchart illustrating the operation of the progressive optimizer 302.
[0168] The progressive optimization unit 302 executes the process of step S212 instead of the process of step S202 in the flowchart shown in Fig. 3. The other processes are the same as the operation of the progressive optimization unit 102 in the first embodiment. Only the process of step 212 will be explained below.
[0169] The progressive optimization unit 302 inputs the problem in which the constraint “F(x)>BEST-SCORE” is added to the constraint list of the mathematical optimization problem P, and the size information r to the problem size reduction unit 103, and obtains the output mathematical optimization problem P[r] (step S212).
[0170] By executing the process of step S212, a constraint condition is added to the problem input to the optimization unit 104 thereafter, based on the information of the best feasible solution (in terms of the objective function) output from the optimization unit 104, which forces the output of a better solution.
[0171] The system interruption unit 201 in the second embodiment may be incorporated in the system configuration derivation device 300 in the third embodiment. Even in such a configuration, the system interruption unit 201 can issue an interruption command to other connected devices. If a block in the system configuration derivation device 300 that has received the interruption command is operating, it immediately stops operating.
[0172] [Effect description] In the process of solving the optimization problem while increasing the size information, the incremental optimization unit 302 adds constraints to the new mathematical optimization problem to be solved. In other words, the incremental optimization unit 302 converts the optimization problem into a problem in which only a solution that updates the score of the best solution obtained up to that point is a feasible solution.
[0173] In general, in a mathematical optimization device, the stronger the constraints given, the smaller the search range becomes, and the shorter the time it takes to find an optimal solution tends to be. However, the system configuration deriving device 300 of this embodiment can present an optimal solution in a shorter time than the system configuration deriving device 100 of the first embodiment.
[0174] 10 is a block diagram showing an example of a computer having a CPU. The computer is implemented in a data processing device. The CPU 1000 executes processing in accordance with a program (software element: code) stored in a storage device 1001, thereby realizing each function in the above-mentioned embodiment.
[0175] That is, the computer can realize the functions of the optimization problem conversion unit 101, the incremental optimization unit 102, the problem size reduction unit 103, the optimization unit 104, and the solution conversion unit 105 in the system configuration deriving device 100 shown in Fig. 1. Also, the computer can realize the functions of the optimization problem conversion unit 101, the incremental optimization unit 102, the problem size reduction unit 103, the optimization unit 104, the solution conversion unit 105, and the system interruption unit 201 in the system configuration deriving device 200 shown in Fig. 7. Also, the computer can realize the functions of the optimization problem conversion unit 101, the incremental optimization unit 302, the problem size reduction unit 103, the optimization unit 104, and the solution conversion unit 105 in the system configuration deriving device 100 shown in Fig. 8.
[0176] The storage device 1001 is, for example, a non-transitory computer readable medium. The non-transitory computer readable medium includes various types of tangible storage media. Specific examples of the non-transitory computer readable medium include a magnetic recording medium (for example, a hard disk), a magneto-optical recording medium (for example, a magneto-optical disk), a CD-ROM (Compact Disc-Read Only Memory), a CD-R (Compact Disc-Recordable), a CD-R / W (Compact Disc-ReWritable), and a semiconductor memory (for example, a mask ROM, a PROM (Programmable ROM), an EPROM (Erasable PROM), and a flash ROM).
[0177] The program may also be stored in various types of transitory computer readable media, to which the program is supplied, for example, via a wired or wireless communication path, i.e., via an electrical signal, an optical signal, or an electromagnetic wave.
[0178] The memory 1002 is realized by, for example, a random access memory (RAM), and is a storage means for temporarily storing data when the CPU 1000 executes processing. A configuration is also conceivable in which a program held in the storage device 1001 or a temporary computer-readable medium is transferred to the memory 1002, and the CPU 1000 executes processing based on the program in the memory 1002.
[0179] Fig. 11 is a block diagram showing the main parts of a system configuration deriving device. The system configuration deriving device 10 shown in Fig. 11 includes an optimization problem conversion means 11 that converts a system optimization problem into a mathematical optimization problem, a problem size reduction means 13 that reduces the number of variables of the mathematical optimization problem by adding a constraint condition to the mathematical optimization problem, an optimization means 14 that calculates a solution to the mathematical optimization problem with the reduced number of variables, a progressive optimization means 12 that sequentially outputs the solution and information on the progress of the process, and a solution conversion means 15 that converts the solution into system configuration information, which is the solution to the system optimization problem, and outputs the system configuration information and the progress information. [Explanation of symbols]
[0180] 100,200,300 System configuration derivation device 101 Optimization problem conversion unit 102,302 Progressive Optimizer 103 Problem Size Reduction Division 104 Optimization Department 105 Solution conversion section 201 System Interruption Department 1000 CPU 1001 Storage device 1002 Memory
Claims
1. an optimization problem conversion means for converting a system optimization problem into a mathematical optimization problem; a problem size reduction means for reducing the number of variables of the mathematical optimization problem by adding a constraint to the mathematical optimization problem; an optimization means for calculating a solution to the mathematical optimization problem with a reduced number of variables; A progressive optimization means for sequentially outputting the solution and information on the progress of the process; a solution conversion means for converting the solution into system configuration information which is a solution to the system optimization problem, and outputting the system configuration information and the progress information; A system configuration optimization device comprising:
2. The optimization means calculates a solution to the mathematical optimization problem by a general-purpose optimization algorithm capable of finding an optimal solution to an optimization problem that minimizes an objective function defined by a linear or quadratic function on binary variables, to which a linear equality constraint or linear inequality constraint is imposed. The system configuration optimization device according to claim 1.
3. The problem size reduction means replaces variables included in an objective function and a constraint condition of the mathematical optimization problem with other variables.
3. The system configuration optimization device according to claim 1.
4. the optimization problem conversion means generates a one-hot vector sequence based on a decision variable included in the mathematical optimization problem, and includes the one-hot vector sequence in the mathematical optimization problem; The problem size reduction means subdivides the one-hot vector sequence based on size information, and performs a transformation in which a single variable vector included in the subdivided vector sequence replaces other variable vectors, thereby reducing the number of variables included in the objective function and constraint conditions of the mathematical optimization problem. The system configuration optimization device according to claim 3.
5. The incremental optimization means adds constraints to the mathematical optimization problem to force the output of a good solution.
3. The system configuration deriving device according to claim 1.
6. and a system interruption means for outputting an interruption command indicating a stop of operation to the optimization problem conversion means, the problem size reduction means, the optimization means, the progressive optimization means, and the solution conversion means when an interruption instruction is received. The system configuration deriving device according to claim 1.
7. The computer Converting system optimization problems into mathematical optimization problems, Reducing the number of variables of the mathematical optimization problem by adding constraints to the mathematical optimization problem; calculating a solution to said mathematical optimization problem with a reduced number of variables; Sequentially outputting the solution and processing progress information; The solution is converted into system configuration information that is a solution to the system optimization problem, and the system configuration information and the progress information are output. System configuration optimization method.
8. On the computer, The process of converting a system optimization problem into a mathematical optimization problem; reducing the number of variables of the mathematical optimization problem by adding constraints to the mathematical optimization problem; calculating a solution to the mathematical optimization problem with a reduced number of variables; a process of sequentially outputting the solution and information on the progress of the process; converting the solution into system configuration information that is a solution to the system optimization problem, and outputting the system configuration information and the progress information; A system configuration optimization program for executing the above.
Citation Information
Patent Citations
Information processing device, information processing system, arrangement configuration determination method, and program and recording medium therefor
JP2012159928A
Information processing device, information processing method, and information processing program
JP2022045609A
Planning operation assistance system and planning operation assistance method
WO2016203531A1
Blending plan creation method, blending plan creation device, and operation method for iron works
WO2021186963A1
Emergency backup apparatus for loop line protective relay system
JP1987018922A
