Optimization device, optimization method and recording medium

By combining the metaheuristic algorithm and the Ising machine with the binary variable model, the problem of difficulty in obtaining an approximate solution to the maximum completion time minimization problem in resource-constrained project scheduling is solved. It achieves high-accuracy approximate solution acquisition in a short time and avoids Computing performance is reduced.

CN113760504BActive Publication Date: 2024-10-29FUJITSU LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202110334140.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-29
Publication Date
2024-10-29
Estimated Expiration
2041-03-29

AI Technical Summary

Technical Problem

In resource-constrained project scheduling problems, it is difficult for existing technologies to obtain an approximate solution to the maximum completion time minimization problem with high accuracy in a short time, especially in combinatorial optimization where the increase in the dimensionality of the search space results in excessive computation time. .

Method used

Metaheuristic algorithm and Ising machine are used to formulate the resource-constrained project scheduling problem through a binary variable model, and the objective function is minimized to obtain an approximate solution. The update mechanism of the relaxed solution and the optimal solution is combined to adjust the target optimization period. End time to optimize approximate solution.

Benefits of technology

Effectively obtain the approximate solution to the maximum completion time minimization problem in resource-constrained project scheduling in a short time, avoiding the reduction in computing performance caused by the increase in the dimension of the search space, and improving the accuracy of the approximate solution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113760504B_ABST
    Figure CN113760504B_ABST
Patent Text Reader

Abstract

The present application relates to an optimization device, an optimization method and a recording medium. An optimization device for repeatedly obtaining a solution that violates a constraint, a solution that satisfies a constraint and an approximate solution in a project scheduling problem with resource constraints, which performs: setting the end time of a target optimization period at a time point between a first completion time and a second completion time, and then using a metaheuristic algorithm to obtain an approximate solution, wherein the first completion time is equal to the completion time of the latest version of the solution that violates the constraint, and the second completion time is equal to the completion time of the latest version of the solution that satisfies the constraint; making a determination as to whether the approximate solution violates the constraint or satisfies the constraint; based on the determination, when the approximate solution violates the constraint, updating the first completion time using the completion time of the approximate solution, and when the approximate solution satisfies the constraint, updating the second completion time using the completion time of the approximate solution.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The disclosure herein relates to an optimization apparatus, an optimization method, and an optimization program. Background Art

[0002] Resource-constrained project scheduling problems are combinatorial optimization problems. They involve constraints imposed on multiple tasks and multiple resources, and require allocating multiple resources to multiple tasks while satisfying the constraints, such that the project duration is shorter than the target optimization period. An example of an objective function used in resource-constrained project scheduling problems is project completion time (i.e., the time it takes for all tasks to be completed). Minimizing the maximum make span is called the maximum make span minimization problem.

[0003] Therefore, there may be a need in resource-constrained project scheduling problems to provide a method for obtaining an approximate solution to the maximum completion time minimization problem with high accuracy in a short time.

[0004] [Related technical literature]

[0005] [Patent Document]

[0006] [Patent Document 1] Japanese Patent Publication No. 2018-185639.

[0007] [Patent Document 2] Japanese Patent Application Publication No. 11-195066. Summary of the Invention

[0008] [Problems to be Solved by the Invention]

[0009] According to one aspect of the embodiment, an optimization device for repeatedly obtaining constraint-violating solutions, constraint-satisfying solutions, and approximate solutions in a resource-constrained project scheduling problem includes a memory and one or more operation circuits coupled to the memory, wherein the one or more operation circuits are configured to perform: setting the end time of a target optimization period at a time point between a first completion time and a second completion time, and then obtaining an approximate solution by using a metaheuristic algorithm, wherein the first completion time is equal to the completion time of the latest version of the constraint-violating solution, and the second completion time is equal to the completion time of the latest version of the constraint-satisfying solution; making a determination as to whether the approximate solution violates or satisfies the constraints; based on the determination, updating the first completion time using the completion time of the approximate solution when the approximate solution violates the constraints, and updating the second completion time using the completion time of the approximate solution when the approximate solution satisfies the constraints; wherein the approximate solution is repeatedly obtained while updating the first completion time and the second completion time. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1is a diagram showing an example of a hardware configuration of an optimization apparatus for executing an optimization method;

[0011] Figure 2 is a diagram showing an example of a functional configuration of an optimization device;

[0012] Figure 3 is a diagram schematically illustrating an example of a resource-constrained project scheduling problem;

[0013] Figure 4 It shows Figure 3 A diagram illustrating an example of a binary variable-based model for a resource-constrained project scheduling problem is shown;

[0014] Figure 5 is a diagram showing an example of input data used in an optimization process and generated based on a relaxed solution and an optimal solution;

[0015] Figure 6 is a diagram showing updating of either relaxed solution data or optimal solution data by using data indicating a generated approximate solution;

[0016] Figure 7 is a flowchart illustrating an example of the process of the approximation method;

[0017] Figure 8 is a flow chart illustrating an example of a process for generating a relaxed solution;

[0018] Figure 9 is a diagram showing an example of a task list;

[0019] Figure 10 is a diagram illustrating an example of an initial state of a model defining a resource-constrained project scheduling problem;

[0020] Figure 11 is a diagram illustrating states of a model defining a resource-constrained project scheduling problem observed after assigning one task;

[0021] Figure 12 is a diagram illustrating the observed state of a model defining a resource-constrained project scheduling problem after assigning two tasks;

[0022] Figure 13 is a diagram illustrating the observed state of a model defining a resource-constrained project scheduling problem after assigning three tasks;

[0023] Figure 14 is a diagram illustrating the observed state of a model defining a resource-constrained project scheduling problem after assigning four tasks;

[0024] Figure 15is a diagram showing the state of a model that defines the project scheduling problem with resource constraints observed after five tasks are assigned; and

[0025] Figure 16 is a diagram showing the state of a model that defines the project scheduling problem with resource constraints observed after six tasks are assigned. Detailed Description

[0026] In combinatorial optimization problems such as the project scheduling problem with resource constraints, an increase in the dimensionality of the search space leads to an explosive increase in the number of variable combinations. In this case, using an exhaustive search that calculates all possible combinations requires a long computation time, which is actually infeasible. Therefore, instead of finding the true optimal solution, a general approximation algorithm (i.e., a metaheuristic algorithm) based on a heuristic method can be used, or an approximation algorithm that obtains a good approximate solution within a practically feasible computation time can be used.

[0027] If given a sufficiently long computation time, a metaheuristic algorithm can obtain an optimal solution or a solution close enough to the optimal solution by searching for state transitions that successively obtain solutions with smaller objective function values starting from an initial state. However, it is not always easy to obtain a solution close enough to the optimal solution within a practically feasible computation time.

[0028] Examples of devices for performing simulated annealing, which is a type of metaheuristic algorithm, include an Ising machine (i.e., a Boltzmann machine) that uses an Ising energy function. In an Ising machine, the problem to be solved is represented as an Ising model using binary variables. In order for the Ising machine to obtain an approximate solution by formulating a model representing the project scheduling problem with resource constraints, various constraints regarding multiple tasks and multiple resources can be incorporated into the objective function, and then the objective function can be minimized to obtain a solution. However, the problem with the Ising model is that it is difficult to directly formulate the problem of minimizing the maximum completion time.

[0029] One method for indirectly incorporating the problem of minimizing the maximum completion time into the Ising model is to use a method of auxiliary variables represented as binary variables. That is, for example, n binary variables y i (i = 1 to n) are introduced, and these n binary variables are used to represent the value C = y1 + 2y2 + 3y3 + 4y4 + … + ny n . Using an Ising machine to minimize the value of the objective function C while satisfying the constraints of "the completion time of all tasks < C" and "only one of y i is 1" enables an approximate solution to be obtained in the problem of minimizing the maximum completion time. However, using this method increases the dimensionality of the search space in combinatorial optimization by n, resulting in a significant reduction in the performance of the Ising model for obtaining a solution.

[0030] Alternatively, the maximum completion time minimization problem can be represented by a different problem that is an approximation thereof, thereby enabling a solution that is similar to the solution of the maximum completion time minimization problem to be obtained. For example, the durations of all individual tasks are added together to obtain a sum, and an Ising machine is used to obtain an approximate solution such as that for minimizing the sum as the objective function. However, it can be noted that even if the maximum completion time is almost the same, the sum may be significantly different between the case where all tasks are completed substantially at the same time and the case where one task is completed significantly later than the others. From the above, it can be understood that the method of using different problems as an approximation of the maximum completion time minimization problem does not produce a highly accurate approximate solution.

[0031] Therefore, in resource-constrained project scheduling problems, there may be a need for a method to obtain an approximate solution to the maximum completion time minimization problem with high accuracy in a short time.

[0032] Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings.

[0033] Figure 1 is a diagram illustrating an example of a hardware configuration of an optimization apparatus for executing the optimization method. Figure 1 The illustrated optimization apparatus includes a CPU 11, a display unit 12, an input unit 13, a ROM 14, a RAM 15, an HDD 16, a network interface 17, a removable storage medium drive 18, and a metaheuristic calculation unit 19. The CPU 11 and the metaheuristic calculation unit 19 are arithmetic circuits.

[0034] The input unit 13 provides a user interface and receives various commands for operating the optimization device and user responses to data requests, etc. The display unit 12 displays the results of processing performed by the optimization device and further displays various data that allows the user to communicate with the optimization device. The network interface 17 is used to communicate with peripheral devices and communicate with remote locations.

[0035] Figure 1 The optimization device shown is a computer, and the optimization method is provided as a computer program that can be executed by the optimization device. The computer program is stored in a memory medium M that can be installed in a removable storage medium drive 18. The computer program is loaded from the memory medium M to the RAM 15 or to the HDD 16 via the removable storage medium drive 18. Alternatively, the computer program can be stored in a memory medium (not shown) provided in a peripheral device or at a remote location and loaded from the memory medium to the RAM 15 or to the HDD 16 via a network interface 17.

[0036] When receiving a user instruction for program execution from the input unit 13, the CPU 11 loads the program from the storage medium 24, a peripheral device, a remote storage medium, or the HDD 16 to the RAM 15. The CPU 11 executes the program loaded to the RAM 15 by using the available memory space of the RAM 15 as a work area, and continues processing while communicating with the user as needed. The ROM 14 stores a control program for controlling the basic operations of the CPU 11, etc.

[0037] By executing the computer program as described above, the optimization device performs the function of obtaining an approximate solution to the maximum completion time minimization problem. The metaheuristic computing unit 19 can be dedicated hardware specifically designed to execute the metaheuristic algorithm, and can be dedicated hardware that performs simulated annealing to search for a solution to the Ising problem. In an alternative configuration, the metaheuristic computing unit 19 may not be provided. In this case, the CPU 11, which is a processor of a general-purpose computer, serves as a metaheuristic computing unit to execute the metaheuristic algorithm. The metaheuristic algorithm may be simulated annealing, a random walk search algorithm, a genetic algorithm, a random evolutionary algorithm, a taboo search, or the like. The metaheuristic algorithm is sufficient to search for a solution (i.e., an approximate solution) that is close to the solution that minimizes the objective function in a heuristic manner.

[0038] Figure 2 is a diagram showing an example of a functional configuration of an optimization device. Figure 2 The optimization device shown includes a data storage unit 20, a data acquisition unit 21, a relaxed solution generation unit 22, an optimization data generation unit 23, a metaheuristic calculation unit 24, a solution checking unit 25, a solution updating unit 26, a termination checking unit 27 and a data output unit 28.

[0039] Functional units other than the data storage unit 20 and the meta-heuristic calculation unit 24 may be composed of Figure 1 The function of the data storage unit 20 can be realized by the CPU 11 shown in FIG. Figure 1 The functions of the meta-heuristic calculation unit 24 can be realized by the RAM 15 or HDD 16 shown. Figure 1 The CPU 11 or the metaheuristic computing unit 19 shown is implemented.

[0040] It may be noted that the boundaries between the functional blocks shown as boxes indicate functional boundaries and do not necessarily correspond to the boundaries between program modules or the separation of control logic. A functional block and another functional block can be combined into a functional block that functions as a block. A functional block can be divided into multiple functional blocks that operate in coordination.

[0041] The data storage unit 20 stores therein a task information database (task information DB) 20A, a resource information database (resource information DB) 20B, relaxed solution data 20C, and optimal solution data 20D.

[0042] The data acquisition unit 21 stores data on each task and data on each resource provided from an external source to define a resource-constrained project scheduling problem in the task information database 20A and the resource information database 20B. Data on the constraints of each task and each resource may also be stored in the task information database 20A and the resource information database 20B.

[0043] Figure 3 is a diagram schematically illustrating an example of a resource-constrained project scheduling problem. Figure 3 The resource-constrained project scheduling problem shown in is defined such that tasks #1 to #3 for each of product A and product B and tasks #1 and #2 for product C are allocated to four facilities 1 to 4. The maximum completion time minimization problem in such a resource-constrained project scheduling problem is a problem that requires that all tasks be scheduled, for example, so that the project completion time Tms (i.e., the completion time of the last completed task) is as early as possible.

[0044] In resource-constrained project scheduling problems, various constraints can be imposed on multiple tasks and multiple resources. Figure 3 In the example shown, for example, a time period indicated as "unavailable" refers to a time period during which the indicated facility cannot be used to perform the task. In this way, constraints can be imposed on resource availability. Furthermore, constraints can be imposed on the order of tasks, such that tasks #1, #2, and #3 for a given product may need to be performed in a specified order without overlapping in time. Furthermore, constraints can be imposed on the correspondence between tasks and resources, such as a requirement that a specific task can only be performed by a specific resource, and constraints can be imposed on the permissible start time and required completion time of each task.

[0045] Figure 4 It shows Figure 3 The diagram shows an example of a binary variable based model for a resource constrained project scheduling problem. Figure 2 The meta-heuristic computing unit 24 shown is used as an Ising machine to perform an optimization process formulated as an Ising model, and the resource-constrained project scheduling problem is formulated as a model based on binary variables, and the optimization process is performed on the model. Figure 4 The presented binary variable based model is applicable not only to optimization processes performed by Ising machines but also to optimization processes performed by different metaheuristic algorithms.

[0046] In order to make Figure 3 The binary variable model formulation of the resource-constrained project scheduling problem shown in the figure can define the binary variable x jmt Subscript j identifies the task, subscript m identifies the resource, and subscript t identifies the time. For example, task #1 for product A is identified by task j=1, the allocation to facility 1 is identified by resource m=1, and the time 8:30 is identified by time slot number 1. For j=1, m=1, and t=1, x jmt The value of x becomes 1 (i.e. 111 =1) represents the fact that task #1 for product A starts at time 8:30 by using facility 1.

[0047] Figure 4 Each row of the table shown represents time (represented by time slots in units of 30 minutes), and each column represents a combination between a task and a facility. For example, column 31 shows the variable x 11t The value of the variable x at time t 11t Define the following fact: Task #1 for Product A is assigned to Facility 1. Task #1 for Product A starts at time 8:30 using Facility 1, such that x 11t The value of x is "1" only in the time slot corresponding to time 8:30 (i.e., 111 =1) and appears as "0" in any other time slot.

[0048] As the value of task j, task #k for product A can be identified by task j = k, task #k for product B can be identified by task j = 3 + k, and task #k for product C can be identified by task j = 6 + k. For example, the variable used to represent the following fact is x 51t :Task #2 for product B is assigned to facility 1. According to this arrangement, Figure 4 The columns shown in correspond to the following variables from left to right: 11t 、x 12t 、x 13t 、x 14t 、x 21t 、x 22t 、x 23t 、x 24t 、x 31t 、x 32t 、x 33t 、x 34t 、x 41t 、x 42t 、x 43t 、x 44t 、x 51t 、x 52t 、x 53t ,……,x 74t 、x81t 、x 82t 、x 83t 、x 84t .variable x 51t corresponds to column 32 and presents the value "1" only at time 10:30, which indicates the fact that task #2 for product B starts at time 10:30 by using facility 1. It can be noted that the time slot corresponding to time 10:30 is the fifth time slot identified by time t=5, so x 515 =1.

[0049] The length of time required to complete each task (i.e., the required time) is not determined by the variable x jmt Alternatively, a constant representing the time required for each task is defined separately. As will be described later, this constant is used to manipulate the subscript t, thereby allowing conditions on the required time to be specified.

[0050] In the following, we will give the example of using the binary variable x described in the above example. jmt Description of an example of formulating a resource-constrained project scheduling problem. To formulate a resource-constrained project scheduling problem, one can use a binary variable x jmt To define the objective function to be minimized in the optimization process performed by the metaheuristic calculation unit 24.

[0051] To specify the binary variable x jmt Various constraints define the following constants.

[0052] jt j : the number of time slots for the required time of task j,

[0053] jst j : the sequence number of the time slot for the permissible start time of task j,

[0054] jdt j : The sequence number of the time slot corresponding to the completion time of task j,

[0055] c k : The weight of the constraint term Qk.

[0056] In addition, the following set is defined.

[0057] J: the set of tasks j,

[0058] M: the collection of resource m,

[0059] T: the set of time slots undergoing optimization,

[0060] MT m : The set of time slots that can be allocated to resource m

[0061] M_JOB m : The set of tasks that can be performed by resource m

[0062] PRE: a set each including a combination of task jp, task jn, and wait time wait (ie, a set of combinations of tasks and wait times for which the start of task jn occurs at the end of time wait after the start of task jp).

[0063] Based on these constants and sets, the objective function E is formulated as a weighted sum of the constraint terms Qk multiplied by the corresponding weight factors ck, as shown below.

[0064] E=c1Q1+c2Q2+c3Q3+c4Q4+c5Q5+c6Q6+c7Q7

[0065]

[0066]

[0067]

[0068]

[0069]

[0070]

[0071]

[0072] In each constraint item shown above, in the case where the summation range is not limited, the summation symbol Σ with respect to the time slot t means obtaining the sum over the set T of time slots subject to optimization.

[0073] Constraint Q1 defines the following constraints: each task is started at or after the preset start time (where the start time of task j is the time slot sequence number jst j ). Get - meet the time slot sequence number jst j The binary variable x that caused the start condition to occur before jmt The sum of x jmt When the value of becomes 1, the value of the objective function E increases due to the penalty.

[0074] Constraint Q2 defines the following constraints: Each task is completed by the preset completion time (where the completion time of task j is the time slot sequence number jdt j ). Get - meet the time slot sequence number jdt j -jtj (i.e., completion time - required time = required start time) after which the start condition occurs - binary variable x jmt The sum of x jmt When the value of becomes 1, the value of the objective function E increases due to the penalty.

[0075] Constraint Q3 defines the following constraint: the time outside the resource available time (ie, belonging to the set MT consisting of time slots that can be allocated to resource m) m The resource is not used during the complement of the time. m The binary variable x is obtained by using the slot sequence number of the complement of jmt The sum of x jmt When the value of becomes 1, the value of the objective function E increases due to the penalty.

[0076] Constraint Q4 defines the following constraint: only tasks that can be assigned to a resource (ie, tasks that belong to the set M_JOB consisting of tasks that can be executed by resource m) can be assigned to a resource. m For a set M_JOB consisting of tasks that can be executed by resource m, m The task of complementing the binary variable x is to obtain jmt The sum of x jmt When the value of becomes 1, the value of the objective function E increases due to the penalty.

[0077] Constraint Q5 defines the following constraint: each task is executed only once. The square term included in constraint Q5 is obtained by converting the binary variable x that specifies a specific task j into jmt The square of the number obtained by subtracting 1 from the sum of all resources m and all time slots t. jmt When the value of becomes 1 only once for all resources m and all time slots t, the square term becomes 0. In other cases, the square term takes a value greater than 0, so that the value of the objective function E increases due to the penalty.

[0078] Constraint Q6 defines the following constraint: no resource is allocated to two or more tasks at the same time. With respect to a given resource m, when task j starts at time slot t, the variable x jmt Presents the value 1, and the required time jt of task j when another task j' is in time slot t and after time slot t j The variable x j'mt' takes on the value 1, which causes the product of these two variables to become 1. Allocating two or more tasks simultaneously to a given resource causes the value of the objective function E to increase due to the penalty, in which case the sum of these products is incorporated into the objective function.

[0079] Constraint Q7 defines the constraints on the order of tasks so that the next task jn starts after the previous task jp by waiting for the time "wait". When task jp starts in time slot t by using resource m, variable x jpmt When task jn starts at time slot t' by using resource m', variable x jnm't' The value 1 is assumed when time slot t' (= t + wait) equals the time "wait" after time slot t, resulting in the product of these two variables becoming 1. The value of this product that satisfies the above-mentioned conditions is not incorporated as a penalty, but the sum of such products corresponding to other conditions is incorporated into the objective function. With this arrangement, the value of the objective function E increases when the task order constraint is violated.

[0080] For example, when using simulated annealing to obtain an approximate solution to a resource-constrained project scheduling problem formulated as the above model, one can define a binary variable x with the above-mentioned jmt The objective function value E of the current state S is calculated, and then the objective function value E' of the next state S' obtained by making a slight change (for example, 1-bit inversion) based on the current state S is calculated, and then the difference ΔE (=E'-E) between the two states is calculated. When the probability distribution of S is expressed using Boltzmann distribution and the Metropolis method is used, for example, the probability P of transition to the next state S' can be defined by the following formula.

[0081] P = min[1, exp(-βΔE)]

[0082] Here, β is the thermodynamic beta (i.e., the inverse of absolute temperature). The function min[1, x] takes the value 1 or x, whichever is smaller. According to the above formula, if ΔE ≤ 0, the transition to the next state occurs with probability 1; and if 0 < ΔE, the transition to the next state occurs with probability exp(-βΔE).

[0083] Reducing the temperature at a sufficiently slow rate while performing the state transition theoretically allows the state to converge to an optimal solution with a minimum objective function value. The Metropolis method is a non-limiting example, and other transition control algorithms such as Gibbs sampling may alternatively be used.

[0084] In the above manner, the resource-constrained project scheduling problem is formulated as a binary variable-based model. Figure 2 The task information database 20A and the resource information database 20B in the data storage unit 20 shown may include a variable x indicating the variables for defining the model as described above. jmt, constants, sets, target functions, etc.

[0085] Refer again Figure 2 , the relaxed solution generation unit 22 generates a relaxed solution, that is, a solution that violates the constraints, based on the data indicating the task, the data indicating the resource, and the data indicating the constraint stored in the task information database 20A and the resource information database 20B. A solution that violates the constraints refers to a solution that does not satisfy at least a part of the constraints imposed on the tasks and resources. Such a solution is outside the search space that satisfies the constraints and is within the search space that satisfies at least part of the relaxed constraints. In this application, the terms "relaxed solution" and "constraint-violating solution" are used to refer to the same meaning.

[0086] Data indicating the relaxed solution generated by the relaxed solution generating unit 22 is stored as relaxed solution data 20C in the data storage unit 20. The relaxed solution data 20C includes at least data indicating the completion time of the relaxed solution, that is, data indicating the completion time of the last completed task among the tasks constituting the relaxed solution.

[0087] As the opposite of a solution that violates the constraints, a solution that satisfies the constraints is further defined as a solution that satisfies the conditions. A solution that satisfies the constraints may be a solution that satisfies all the constraints defined in the objective function, while a solution that violates the constraints may be a solution that does not satisfy a portion of the constraints defined in the objective function. As will be described later, data indicating a solution that satisfies the constraints obtained by the metaheuristic calculation unit 24 is stored in the data storage unit 20 as optimal solution data 20D. In this application, the terms "solution that satisfies the constraints" and "optimal solution" are used to refer to the same meaning. The optimal solution data 20D includes at least data indicating the completion time of the solution that satisfies the constraints, that is, data indicating the completion time of the last completed task among the tasks constituting the solution that satisfies the constraints.

[0088] It can be noted that when a solution that satisfies the constraints is defined as a solution that satisfies all the constraints defined in the objective function as described above, the case of the objective function E described above requires that the solution that satisfies the constraints is a solution in which the value of the objective function E becomes the minimum value "zero". Alternatively, a solution that satisfies a part of the constraints (for example, some of the constraint items Q1 to Q7 described above) can be defined as a solution that satisfies the constraints, and a solution that does not satisfy such a part of the constraints can be defined as a solution that violates the constraints. In this case, such a part of the constraints that should be satisfied by a solution that satisfies the constraints can be a constraint that needs to be satisfied or an important constraint, and can be defined according to the configuration of the problem. For example, the condition that each task is executed only once and the condition that resources are not used outside the available time may be important. In this case, a solution that satisfies these two conditions (i.e., Q3=Q5=0) can be regarded as a solution that satisfies the constraints, and a solution that does not satisfy these conditions can be regarded as a solution that violates the constraints.

[0089] The relaxed solution generation unit 22 may generate a relaxed solution based on a meta-heuristic algorithm. In doing so, the weight factor c may be set relative to one or more constraint items. k The one or more constraint terms are set to zero, for example, a part of the constraint term Qk included in the objective function E described above, and define one or more conditions other than a part of the constraint (for example, the constraint term Q5 requiring each task to be executed only once). Then, an approximate solution is obtained by minimizing the objective function. With this arrangement, a solution that violates the constraints can be obtained, for example, the constraint term Q3 requiring that the resource not be used outside the resource available time takes on a value greater than zero (i.e., the resource is used during the resource unavailable time).

[0090] The relaxed solution generation unit 22 can generate a relaxed solution by using a deterministic algorithm rather than a meta-heuristic algorithm. Typically, a meta-heuristic algorithm is designed so that while satisfying the constraints, the objective function value is gradually reduced using a probability factor without falling into an unfavorable local solution, thereby generating a satisfactory solution. The relaxed solution generation unit 22 is sufficient to generate a solution without considering any constraints. Therefore, a deterministic algorithm that ignores constraints can easily generate a relaxed solution. Using a deterministic algorithm makes it possible to easily obtain the initial value of the relaxed solution in an efficient manner.

[0091] Based on the data stored in the data storage unit 20, the optimization data generation unit 23 generates input data used in the optimization process performed by the metaheuristic calculation unit 24. The input data generated by the optimization data generation unit 23 includes the end time of the target optimization period, which is used for the optimization process performed by the metaheuristic calculation unit 24. The end time of the target optimization period is equal to the sequence number of the last time slot belonging to the set T of time slots undergoing optimization process, and the sequence number is one of the constants described in the model formulation of the resource-constrained project scheduling problem described previously. As will be described later, this time is obtained based on the relaxed solution data 20C and the optimal solution data 20D. Specifically, the end time of the target optimization period is set between the end time of the relaxed solution indicated by the relaxed solution data 20C and the completion time of the optimal solution indicated by the optimal solution data 20D.

[0092] Figure 5 is a diagram showing an example of input data used in the optimization process and generated based on the relaxed solution and the optimal solution. Figure 5 , for convenience of explanation, only data indicating tasks #1 to #3 (ie, tasks A1 to A3) for product A are shown, and relaxed solution data 20C and optimal solution data 20D are stored in the data storage unit 20.

[0093] The relaxed solution data 20C specifies the binary variables x based on the previously described jmt Similarly, the optimal solution data 20D specifies the state of the relaxed solution of the model using the binary variable x jmt The state of the best solution of the model. Figure 5 By using something like Figure 4 The table format of the variable x is shown in the table format jmt In the table showing the relaxed solution data 20C and the optimal solution data 20D, a time period highlighted with dotted shading indicates a period during which the indicated resource cannot be used.

[0094] exist Figure 5 In the example shown, solutions that satisfy the constraints are distinguished from solutions that violate the constraints based on whether the previously described constraint item Q3 is satisfied, that is, whether the indicated resource is used only during the resource availability time. Figure 5 In the table of the relaxed solution shown, the time at which Task A3 (i.e., Task #3 for Product A) is started by using Facility 3 is 10:00, at which time Facility 3 cannot be used. That is, this relaxed solution is a constraint-violating solution, for which the value of the constraint item Q3 described above is greater than zero (i.e., the resource is used during the time when the resource is unavailable). In the table of the optimal solution, the scheduled tasks do not include any tasks executed during the time when the resource is unavailable, so this solution satisfies the constraint represented by the constraint item Q3. That is, this optimal solution is a constraint-satisfying solution, for which the value of the constraint item Q3 described above is zero (i.e., the resource is used only during the time when the resource is available).

[0095] exist Figure 5 In the example, the completion time of the last completed task among the tasks included in the relaxed solution is the completion time T1 of the relaxed solution. In addition, the completion time of the last completed task among the tasks included in the optimal solution is the completion time T2 of the optimal solution. In this example, the time slot sequence number of the completion time T1 is 9, and the time slot sequence number of the completion time T2 is 15.

[0096] like Figure 5 As shown, the optimization data generating unit 23 generates input data 41 for optimization processing based on the relaxed solution data 20C and the optimal solution data 20D stored in the data storage unit 20. The input data 41 represents the experience based on the use of the binary variable x jmt The optimization model of the process deals with tasks, facilities and time slots. Input data 41 define the configuration of the problem, where scheduling is performed to assign tasks to facilities at specific time slots. Figure 5 By using something like Figure 4 The table format of the variable x is shown in the table format jmt, so that the state of the variable can be intuitively identified. Input data 41 specifies that the optimization process is to be performed so that three tasks are assigned to three facilities between time slot sequence number 0 at 8:30 and time slot sequence number 13 at 15:00. It can be noted that the set T of time slots subjected to the optimization process as described above accordingly includes the time slots from 8:30 to 15:00 as elements of the set.

[0097] The optimization data generation unit 23 generates input data 41 so that the time of the last time slot of the input data 41 (i.e., the end time of the target optimization period) is between the completion time T1 of the above-mentioned relaxed solution and the completion time T2 of the optimal solution. In this way, the interval between the completion time T1 and the completion time T2 can be divided at a predetermined ratio (e.g., 1:1) so that the end time of the target optimization period is set at the dividing point. Setting the end time of the target optimization period according to the predetermined ratio enables a simple process of generating input data 41 in an efficient manner. Based on the input data 41 generated as described above, the metaheuristic calculation unit 24 performs the optimization process described below.

[0098] By referring again Figure 2 , the metaheuristic calculation unit 24 performs a heuristic optimization process based on the data configured by the optimization data generation unit 23, thereby generating an approximate solution that minimizes the value of the designed objective function. When performing the optimization process, tasks are scheduled so that the completion time of any given task is no later than the end time of the target optimization period set by the optimization data generation unit 23. That is, for example, when the end time of the target optimization period is set to a time slot at 15:00, the optimization process only evaluates those schedules in which all tasks are completed before or at the time slot of 15:00. This is achieved by setting the last time slot in the set T of time slots undergoing the optimization process to the end time of the target optimization period. The approximate solution generated by the metaheuristic calculation unit 24 may sometimes be a solution that violates the constraints, and may sometimes be a solution that satisfies the constraints, depending on various conditions including the end time of the target optimization period.

[0099] The relaxed solution data 20C or the optimal solution data 20D is updated by the solution updating unit 26 using the constraint-violating solution or the constraint-satisfying solution generated by the metaheuristic calculation unit 24, as will be described in detail later. Specifically, the solution updating unit 26 replaces the relaxed solution data 20C with data indicating the constraint-violating solution when a constraint-violating solution occurs, and replaces the optimal solution data 20D with data indicating the constraint-satisfying solution when a constraint-satisfying solution occurs. In this way, the optimization process of the metaheuristic calculation unit 24 is repeatedly performed to calculate the approximate solution, and the relaxed solution data 20C and the optimal solution data 20D are updated by the solution updating unit 26, thereby continuously updating the solution.

[0100] In the following, the updating of the above solution will be described in more detail.

[0101] The optimization data generation unit 23 and the metaheuristic calculation unit 24 function as an optimization processing unit 30. The optimization processing unit 30 performs optimization processing on the resource-constrained project scheduling problem based on the task information database 20A, the resource information database 20B, the relaxed solution data 20C, and the optimal solution data 20D to generate an approximate solution. Specifically, the optimization processing unit 30 sets the end time of the target optimization period to a time point between the first completion time (i.e., the completion time of the previous solution that violated the constraints) and the second completion time (i.e., the completion time of the previous solution that satisfied the constraints), and then obtains an approximate solution by using a metaheuristic algorithm. That is, the optimization processing unit 30 sets the end time of the target optimization period to a time point between the completion time of the solution indicated by the latest relaxed solution data 20C (i.e., the first completion time) and the completion time of the solution indicated by the latest optimal solution data 20D (i.e., the second completion time), and then obtains an approximate solution by using a metaheuristic algorithm.

[0102] Here, the term "approximate solution" refers to a solution that does not guarantee the occurrence of a minimum value of the objective function for optimization, and can be regarded as a suitable approximation to the optimal solution that minimizes the objective function. In order for the optimization processing unit 30 to obtain an approximate solution, the optimization process performs continuous state transitions in the search space, for example, to randomly reduce the value of the objective function. When a predetermined number of transitions are made, the state observed in the instance can be output as an approximate solution. Alternatively, the optimization processing unit 30 may perform the optimization process within a predetermined duration determined in advance, and then, the state observed in the instance may be output as an approximate solution. Alternatively, the optimization processing unit 30 may detect an event in which the value of the optimization process becomes less than or equal to a predetermined value determined in advance, and then, the state observed in the instance may be output as an approximate solution.

[0103] When the optimization process is performed for the first time based on the completion time of the relaxed solution data 20C and the completion time of the optimal solution data 20D, the corresponding initial value data is used as the completion time of the relaxed solution data 20C and the completion time of the optimal solution data 20D. The initial value used as the first relaxed solution data 20C is the relaxed solution data 20C generated by the relaxed solution generation unit 22 as described previously.

[0104] In order to provide an initial value for the optimal solution data 20D, the optimization processing unit 30 can generate a solution that satisfies the constraints. When providing the initial value for the optimal solution, the end time of the target optimization period can be set to a sufficiently large value (i.e., a sufficiently late time point), which is feasible and sensible from the perspective of time scheduling for the task. In addition, in the optimization process, the weight factors for the relevant constraints included in the objective function for optimization can be set to sufficiently large values ​​to ensure that a solution that satisfies the constraints is obtained. Alternatively, the solution search space used in the optimization process can be limited to a space that satisfies the constraints, so that the state transition performed in the optimization process can be allowed only when the next state satisfies the constraints. Data indicating the solution that satisfies the constraints first generated by the optimization processing unit 30 is stored as initial value data of the optimal solution data 20D in the data storage unit 20.

[0105] When the optimization processing unit 30 generates an approximate solution as part of the solution update process, the solution checking unit 25 determines whether the approximate solution generated by the optimization processing unit 30 is a solution that violates the constraints or a solution that satisfies the constraints. In this way, the solution checking unit 25 can determine that a solution that satisfies all constraints (e.g., all constraint items Q1 to Q7 described previously) is a solution that satisfies the constraints, and can determine that a solution that does not satisfy at least some of the constraints is a solution that violates the constraints. Alternatively, the solution checking unit 25 can determine that an approximate solution that satisfies predetermined constraints among a plurality of constraints is a solution that satisfies the constraints, and can determine that an approximate solution that does not satisfy these predetermined constraints is a solution that violates the constraints. More specifically, the solution checking unit 25 can determine that a solution that satisfies predetermined constraints among the constraint items Q1 to Q7 described previously is a solution that satisfies the constraints, and can determine that a solution that does not satisfy at least some of these predetermined constraints is a solution that violates the constraints.

[0106] Determining the type of solution in response to whether predetermined constraints are satisfied enables appropriate solution determination that responds to the configuration of the problem and reflects the importance of each constraint, thereby enabling efficient solution search processing for the maximum completion time minimization problem. Generally, when the end time of the target optimization period set by the optimization data generation unit 23 is early, the obtained approximate solution is likely to be a solution that violates the constraints. When the end time of the target optimization period set by the optimization data generation unit 23 is late, the obtained approximate solution is likely to be a solution that satisfies the constraints.

[0107] Based on the determination made by the solution checking unit 25, the solution updating unit 26 updates the first completion time by using the completion time of the approximate solution when the approximate solution is a solution that violates the constraints, and updates the second completion time by using the completion time of the approximate solution when the approximate solution is a solution that satisfies the constraints. That is, in the case where the approximate solution generated by the optimization processing unit 30 is a solution that violates the constraints, the data of the approximate solution is used to update (i.e., replace) the relaxed solution data 20C (including data indicating the completion time of the solution) stored in the data storage unit 20. In addition, in the case where the approximate solution generated by the optimization processing unit 30 is a solution that satisfies the constraints, the data of the approximate solution is used to update (i.e., replace) the optimal solution data 20D (including data indicating the completion time of the solution) stored in the data storage unit 20.

[0108] Figure 6 is a diagram showing how to update either the relaxed solution data or the optimal solution data by using data indicating the generated approximate solution. Figure 6 In, with Figure 5 The same or corresponding elements are denoted by the same or corresponding symbols, and description thereof will be appropriately omitted.

[0109] Based on the combination of Figure 5 The input data 41 generated by the optimization data generating unit 23 is described, and the meta-heuristic computing unit 24 performs optimization processing to generate an approximate solution. Figure 6 In the example shown, the approximate solution 51 obtained by the metaheuristic calculation unit 24 indicates that all tasks are executed during the resource available time. In this case, the solution checking unit 25 can determine that the obtained approximate solution 51 is a solution that satisfies the constraints (ie, the optimal solution).

[0110] Based on this determination, the solution updating unit 26 replaces the optimal solution data 20D stored in the data storage unit 20 with data indicating the obtained approximate solution 51. Figure 6 In the example shown, the optimal solution data 20D in the data storage unit 20 is updated so that the completion time T2 of the optimal solution is changed from the time slot sequence number 15 to the time slot sequence number 11 .

[0111] As mentioned above, Figure 2 The optimization device shown sequentially updates the completion time of the solution indicated by the relaxed solution data 20C (i.e., the first completion time) and the completion time of the solution indicated by the optimal solution data 20D (i.e., the second completion time), and causes the metaheuristic calculation unit 24 to repeatedly generate an approximate solution while performing such updates. Through this process, the completion time of the solution indicated by the relaxed solution data 20C (i.e., the first completion time) and the completion time of the solution indicated by the optimal solution data 20D (i.e., the second completion time) gradually approach each other.

[0112] The termination check unit 27 checks whether the difference between the completion time of the solution indicated by the relaxed solution data 20C (i.e., the first completion time) and the completion time of the solution indicated by the optimal solution data 20D (i.e., the second completion time) becomes less than or equal to a predetermined value. When the difference in time becomes less than or equal to the predetermined value, that is, when the first completion time and the second completion time become close enough to each other or equal to each other, the termination check unit 27 terminates the process of obtaining a solution that approximates the minimum solution of the maximum completion time performed by the optimization device. Therefore, the solution indicated by the optimal solution data 20D when the two completion times become equal to each other or substantially equal is an appropriate approximate solution for the minimum solution of the maximum completion time. Alternatively, the termination check unit 27 may check whether the difference between the second completion time and the end time of the target optimization period becomes less than or equal to a predetermined value, and may terminate the process of obtaining a solution that approximates the minimum solution of the maximum completion time based on the result of such a check.

[0113] Hereinafter, a further description of the operation in which the first completion time and the second completion time are close to each other as described above will be given.

[0114] The first completion time is denoted as T1, the second completion time is denoted as T2, and the minimum solution of the maximum completion time (i.e., the ideal solution) is denoted as T IDEAL . T1 is equal to the completion time of the solution when it is impossible (or difficult) to obtain a solution that satisfies the constraints. T2 is equal to the completion time of the solution when a solution that satisfies the constraints is successfully obtained. Therefore, the condition of T1 < T2 is satisfied with a high probability. When the end time of the target optimization period is denoted as T END , since T END is set between T1 and T2, the condition of T END < T2 is satisfied. The completion time of the approximate solution used to update T2 is always earlier than T END , so it is always updated to an earlier time whenever T2 is updated. Therefore, T2 monotonically decreases (i.e., definitely moves gradually to an earlier time). The minimum solution of the maximum completion time is the solution with the earliest completion time among all possible solutions that satisfy the constraints, such that the condition of T IDEAL ≤ T2 is satisfied. Since T2 is selected from the completion times of all solutions that satisfy the constraints so as to monotonically decrease, T2 definitely approaches T IDEAL rapidly. When T2 becomes substantially equal to T1, the value of T2 is therefore a highly accurate approximation of T IDEAL .

[0115] It can be noted that the later of T1 and T2 is T1 - that is, the case where T2 < T1 - can occur with a low probability. Even considering this case, T END is always earlier than T LATTER , the T LATTERis the later of T1 and T2. That is, T END < T LATTER is satisfied. The completion time for updating the approximate solutions of T1 and T2 is always earlier than T END , such that whenever T LATTER is updated, the T LATTER is always updated to an earlier time. Therefore, the larger one of T1 and T2 (i.e., the later one) monotonically decreases (i.e., definitely moves gradually to an earlier time). That is, T2 also monotonically decreases with a high probability. From the above, it can be understood that even when considering the case where T2 < T1 occurs with a certain probability, T2 also rapidly approaches T IDEAL substantially deterministically in a manner similar to the previously described one. When T2 becomes substantially equal to T1, the value of T2 is thus a highly accurate approximation of T IDEAL .

[0116] The data output unit 28 outputs data indicating the solution obtained in the above manner and approximating the minimum solution of the maximum completion time. The output data can be provided to the display screen via the display unit 12 shown in Figure 1 , to the HDD 16, provided to the storage medium M via the removable storage medium drive 18, or provided to an external device via the network interface 17.

[0117] As described above, Figure 2 the optimization device shown in

[0118] successively updates the completion time of the solution indicated by the relaxed solution data 20C and the completion time of the solution indicated by the best solution data 20D, and repeats the metaheuristic optimization process to generate approximate solutions when performing such updates. As a feature of this optimization device, the objective function minimized in the metaheuristic optimization process does not include a term whose value decreases as the maximum completion time (i.e., the project completion time) becomes earlier and earlier. Figure 2 It is difficult to directly incorporate the metric for evaluating the maximum completion time into the objective function. Therefore, the maximum completion time evaluation metric in the prior art is indirectly or approximately incorporated into the objective function, and then the metaheuristic optimization process is performed to obtain a solution approximating the minimum solution of the maximum completion time. In contrast,

[0119] for one round of repeated processing of the optimization process, Figure 2The illustrated optimization apparatus does not evaluate the maximum completion time, but instead obtains an approximate solution for a given end time of a target optimization period that minimizes the objective function within the constraints. Then, based on the approximate solution obtained in the current round of optimization processing, the end time of the target optimization period is shifted in a direction where a solution approximating the minimum maximum completion time exists or is likely to exist, and then the next round of optimization processing is performed relative to the shifted end time of the target optimization period. This shifting and updating of the end time of the target optimization period allows the approximate solution obtained through the optimization process to move closer to a solution approximating the minimum maximum completion time.

[0120] As mentioned above, Figure 2 The optimization apparatus shown does not require incorporating a maximum completion time evaluation metric for resource-constrained project scheduling problems into the objective function indirectly or as an approximation, thereby avoiding reductions in the efficiency of the metaheuristic optimization process and the accuracy of the solution. Furthermore, the end time of the target optimization period is shifted using a process similar to binary search. Therefore, when the total number of time slots is N, executing the optimization process a number of times approximately equal to Log2N enables obtaining a suitable approximate solution for minimizing the maximum completion time.

[0121] Figure 7 is a flowchart illustrating an example of the process of the approximation method. Figure 7 The approximation shown can be obtained by Figure 2 The functional units shown are implemented using Figure 1 is executed by the hardware shown.

[0122] Please note that in Figure 7 In the flowcharts and subsequent flowcharts, the order in which the steps shown in the flowcharts are performed is merely an example. The scope of the disclosed technology is not limited to the disclosed order. For example, a description may state that step A is performed before step B. Despite such a description, it is physically and logically possible to perform step B before step A, and it is also possible to perform step A before step B. In this case, regardless of which step is performed first, all results affecting the results of the flowchart can be the same. Therefore, for the purposes of the disclosed technology, it is obvious that step B can be performed before step A. Although step A is described as being performed before step B, such a description is not intended to place the obvious case described above outside the scope of the disclosed technology. Such obvious cases inevitably fall within the scope of the technology intended by the present disclosure.

[0123] In step S1 , the data acquisition unit 21 receives input data including resource information, task information, time information, etc. The data received by the data acquisition unit 21 is stored in the data storage unit 20 .

[0124] In step S2, the relaxed solution generation unit 22 obtains a solution by allocating resources to tasks by ignoring constraint violations, and then stores data indicating the obtained solution as relaxed solution data 20C in the data storage unit 20. In this way, the relaxed solution generation unit 22 can allocate resources to tasks using a deterministic algorithm.

[0125] In step S3 , the metaheuristic calculation unit 24 obtains a solution satisfying the constraints by using an Ising machine, for example, and then stores data indicating the obtained solution in the data storage unit 20 as optimal solution data 20D.

[0126] In step S4, the optimization data generating unit 23 sets the completion time T1 to the task completion time of the solution indicated by the relaxed solution data 20C, and sets C1 to the amount of constraint violation of the solution indicated by the relaxed solution data 20C. Here, the amount of constraint violation is a value indicating the degree to which the solution violating the constraint violates the constraint. Figure 7 In the optimization method shown, the end time of the target optimization period is not set at a time point where the interval between the first completion time and the second completion time is divided at a predetermined ratio, but is set based on the amount of constraint violation and the amount of constraint compliance margin, which will be described later.

[0127] The amount of constraint violation can be, for example, the total number of time slots in which the constraint is violated by the combination of tasks and resources (i.e., facilities) in the relaxed solution. Specifically, for example, a constraint requiring that tasks be assigned to resources only during the time when the resources are available can be considered. Then, the number of time slots in which the constraint is violated by the assignment is used as the amount of constraint violation. For example, in the case of Figure 5 In the case of the relaxed solution indicated by the relaxed solution data 20C shown, task A3 is allocated to facility 3 at time slot sequence numbers "3" and "4" (i.e., 10:00 and 10:30) which are resource unavailable times. Therefore, in the case of this relaxed solution data, the amount of constraint violation can be 2.

[0128] In step S5, the optimization data generation unit 23 sets the completion time T2 to the task completion time of the solution indicated by the optimal solution data 20D, and sets C2 to the constraint compliance margin of the solution indicated by the optimal solution data 20D. Here, the constraint compliance margin is a value indicating the degree of margin with which a solution that satisfies a constraint satisfies the constraint.

[0129] The amount of constraint compliance margin can be, for example, the total number of time slots that are unallocated and available in the optimal solution and counted across all resources. Specifically, the number of time slots that are unallocated and available outside the resource unavailable time can be obtained for each resource, and such number of time slots can be summed across all resources. Figure 5In the case of the optimal solution indicated by the optimal solution data 20D shown, for example, the number of unassigned and available time slots for Facility 1 is 15. In addition, the number of unassigned and available time slots for Facility 2 is 10, and the number of unassigned and available time slots for Facility 3 is 7. Therefore, in the case of this optimal solution data, the amount of margin for constraint compliance can be 32 = 15 + 10 + 7.

[0130] In step S6, the optimization data generation unit 23 calculates the end time of the target optimization period based on the amount of constraint violation C1 and the amount of margin for constraint compliance C2, and optionally rounds the fraction, and then sets T END to the obtained end time of the target optimization period. For example, the end time of the target optimization period can be set at a time point that divides the interval between the first completion time T1 and the second completion time T2 according to the ratio corresponding to the amount of constraint violation C1 of the relaxed solution (i.e., the initial value of the previous solution that violates the constraint) and the amount of margin for constraint compliance C2 of the optimal solution (i.e., the initial value of the previous solution that satisfies the constraint).

[0131] More specifically, for example, the following formula can be used to calculate the end time T of the target optimization period END .

[0132] T END = T1 + (T2 − T1)C1 / (C1 + C2)

[0133] Calculating the end time of the target optimization period in this way makes the end time of the target optimization period be set to a relatively late time (i.e., a time closer to T2 than to T1) when the amount of constraint violation C1 is relatively large - that is, when the completion time T1 of the relaxed solution is at too early a time. In addition, when the amount of margin for constraint compliance C2 is relatively large - that is, when the completion time T2 of the optimal solution is so late as to provide sufficient margin, the end time of the target optimization period is set to a relatively early time (i.e., a time closer to T1 than to T2).

[0134] Alternatively, for example, the following formula can be used to calculate the end time T of the target optimization period END .

[0135] T END = T1 + (T2 − T1)(1 / 3) (when C1 < C2)

[0136] T END = T1 + (T2 − T1)(1 / 2) (when C1 = C2)

[0137] T END = T1 + (T2 − T1)(2 / 3) (when C1 > C2)

[0138] In this case, the end time of the target optimization period is set to a time point that divides the interval between T1 and T2 according to the ratio of the amount C1 of constraint violation and the amount C2 of constraint compliance margin, that is, according to which of C1 and C2 is larger (1 / 3, 1 / 2, or 2 / 3). Similar to the case of the previous formula, when the amount C1 of constraint violation is relatively large, that is, when the completion time T1 of the relaxed solution is at a time that is too early, the end time of the target optimization period is set to a relatively late time (that is, a time that is closer to T2 than T1). In addition, when the amount C2 of constraint compliance margin is relatively large, that is, when the completion time T2 of the optimal solution is so late as to provide sufficient margin, the end time of the target optimization period is set to a relatively early time (that is, a time that is closer to T1 than T2).

[0139] Setting the end time of the target optimization period based on the amount of constraint violations and the amount of constraint compliance margin allows the time to be set in response to an indicator indicating that the relaxed solution is too early or the margin of the optimal solution is too large, thereby effectively adjusting the end time of the target optimization period. Therefore, an approximate solution for minimizing the maximum completion time is quickly obtained in a more efficient manner.

[0140] In step S7, the termination checking unit 27 checks T END and T2 are equal to each other. Since the time indication given by the time slot sequence number is discrete, the optimization process is repeated a sufficient number of times so that T END Eventually becomes equal to T2. When T END When T2 is not equal to T3, the process proceeds to step S8.

[0141] In step S8, the metaheuristic calculation unit 24 calculates the end time T of the target optimization period. END An approximate solution is obtained using an Ising machine. In step S9, the solution checking unit 25 checks whether the obtained solution is a constraint-violating solution. If the obtained solution is a constraint-violating solution, the process proceeds to step S10, where the solution updating unit 26 stores data indicating the obtained solution in the data storage unit 20 as relaxed solution data 20C. If the obtained solution is not a constraint-violating solution, the process proceeds to step S11, where the solution updating unit 26 stores data indicating the obtained solution in the data storage unit 20 as optimal solution data 20D. Thereafter, the process returns to step S4, from which the subsequent processing is repeated.

[0142] When T is found in step S7 END When T and T2 are equal to each other, the optimization process ends. Therefore, the best solution data 20D existing at the time of termination of the optimization process is regarded as a suitable approximate solution for the maximum completion time minimum solution.

[0143] Figure 8 is a flowchart illustrating an example of a process for generating a relaxed solution. Figure 8 The process of generating the relaxed solution shown can be obtained by Figure 2 The relaxed solution generation unit 22 shown is executed.

[0144] In step S21, the relaxed solution generation unit 22 sorts the tasks in descending order of task duration based on the data in the task information database 20A. Specifically, a task list is generated such that the task with the longest duration among the plurality of tasks indicated by the data in the task information database 20A is placed at the top of the list, and the tasks are arranged such that the lower the position of a task in the list, the shorter the task duration. The generated task list is stored in the data storage unit 20 as a jobList.

[0145] Figure 9 is a diagram showing an example of a task list. An example of a jobList generated by the relaxed solution generation unit 22 is shown as a list 61. The list 61 of this example includes six tasks arranged in the following order from the top: Task #1, Task #2, Task #3, Task #4, Task #5, and Task #6.

[0146] Figure 10 is a diagram illustrating an example of an initial state of a model of a project scheduling problem defining resource constraints. Figure 10 The resource-constrained project scheduling problem shown is to assign 6 tasks #1 to #6 to 3 facilities 1 to 3, where the time range to be scheduled is from the time slot of 8:30 to the time slot of 15:30. Figure 10 In FIG, the time period highlighted with dotted shading indicates a period during which the indicated facility cannot be used. The relaxed solution generation unit 22 expects the relaxed solution generated by the device 22 to be included in the Figure 9 The six tasks in the list 61 are assigned to Figure 10 The resources (ie, facilities) in the model defined in .

[0147] exist Figure 8 In step S22, the relaxed solution generating unit 22 removes the task from the top of the jobList and then designates the removed task as the targetJob. Figure 9 In the example shown, the task stored at the top of the list 61 is Task #1, so Task #1 is removed and designated as the targetJob.

[0148] In step S23, the relaxed solution generating unit 22 selects a resource having the earliest task unassigned time T, and designates the selected resource as "resource". Figure 10In the initial state shown, no task is assigned to a resource (ie, a facility). Therefore, the process in step S23 may select any facility, such as facility 1, and may designate the selected facility as a "resource".

[0149] exist Figure 8 In step S24, the relaxed solution generating unit 22 assigns targetJob to "resource" so that targetJob starts at the earliest unassigned time T of the task in "resource". In this assignment process, assignment is performed by ignoring constraints (for example, a constraint requiring that tasks be assigned only to facility available times).

[0150] Figure 11 is a diagram showing the state of a model of a project scheduling problem with defined resource constraints observed after assigning a task. As described above, Task #1 is assigned to Facility 1, for example, to start at 8:30, which is the earliest time at which no tasks are assigned to Facility 1. Therefore, the state is such that Task #1 is assigned to the location indicated by arrow 71.

[0151] In step S25 , the relaxed solution generating unit 22 checks whether the number of elements in jobList is 0. When the number of elements is not zero, the process performed by the relaxed solution generating unit 22 returns to step S22 .

[0152] The top of the jobList that exists when returning to step S22 is task #2, so the relaxed solution generation unit 22 removes task #2 as targetJob. Then steps S23 and S24 are executed, which causes the relaxed solution generation unit 22 to assign task #2 to facility 2. Due to this assignment process, Figure 11 The current state after the state shown is as follows Figure 12 , where task #2 is assigned as indicated by arrow 72. In this assignment process, task #2 is assigned to facility 2 at the unavailable time by ignoring the period during which facility 2 is unavailable (i.e., the period highlighted with dotted shading). Thereafter, the process returns to step S22 again.

[0153] The top of the jobList existing when returning to step S22 is task #3, so that the relaxed solution generating unit 22 removes task #3 as targetJob. Then, steps S23 and S24 are executed, which makes the relaxed solution generating unit 22 as shown in FIG. Figure 13 As indicated by the arrow 73 in FIG, task #3 is assigned to facility 3. Thereafter, the process returns to step S22 again.

[0154] Steps S22 to S24 are performed again, which causes the relaxed solution generating unit 22 to Figure 14As indicated by arrow 74 in FIG, task #4 is assigned to facility 3. In this case, facility 3 has the earliest task unassigned time among facilities 1 to 3, so that in step S23, facility 3 is designated as "resource" and facility 3 is selected as the assignment location for task #4.

[0155] Subsequently, steps S22 to S24 are executed again, which causes the relaxed solution generating unit 22 to perform the following operations: Figure 15 As indicated by the arrow 75 in FIG, task #5 is assigned to facility 2. Subsequently, steps S22 to S24 are performed again, which causes the relaxed solution generating unit 22 to generate the relaxed solution as shown in FIG. Figure 16 Task #6 is assigned to Facility 1 as indicated by arrow 76 in FIG.

[0156] Thereafter, in step S25, it is determined that the number of elements in jobList is zero, which ends the relaxed solution generation process of the relaxed solution generation unit 22. In the above manner, the relaxed solution generation unit 22 provides a solution that violates the constraints by allocating tasks to resources using a deterministic algorithm by ignoring the constraints, and the solution that violates the constraints will be used as the initial value of the relaxed solution data 20C.

[0157] According to at least one embodiment, in a resource-constrained project scheduling problem, an approximate solution to the maximum completion time minimization problem is obtained in a short time with high accuracy.

Claims

1. An optimization device for repeatedly obtaining a solution that violates a constraint, a solution that satisfies a constraint, and an approximate solution in a resource-constrained project scheduling problem, comprising: Memory; A metaheuristic computing circuit based on an Ising machine, which is a dedicated hardware specially configured to execute a metaheuristic algorithm by using an Ising machine, wherein the metaheuristic algorithm obtains an approximate solution by metaheuristically scheduling tasks while ensuring that the completion time of any given task is no later than the end time of a target optimization period, wherein the approximate solution is the constraint-violating solution or the constraint-satisfying solution; and a processor coupled to the memory and configured to execute: Finding a dividing point that divides an interval between a first completion time that is equal to the completion time of the latest version of the solution that violates the constraint and a second completion time that is equal to the completion time of the latest version of the solution that satisfies the constraint; setting the end time of the target optimization period at the division point in the metaheuristic computing circuit; causing the meta-heuristic computing circuit to execute the meta-heuristic algorithm to obtain the approximate solution; detecting a first event in which the approximate solution violates the constraint; detecting a second event in which the approximate solution satisfies the constraint; In response to detecting the first event, updating the first completion time using the completion time of the approximate solution, thereby adjusting an end time of the target optimization period in the metaheuristic computation circuit; as well as In response to detecting the second event, updating the second completion time using the completion time of the approximate solution, thereby adjusting the end time of the target optimization period in the metaheuristic computing circuit, Wherein, the approximate solution is repeatedly obtained by the meta-heuristic calculation circuit while updating the first completion time and the second completion time.

2. The optimization device according to claim 1, wherein: The initial value of the first completion time is the completion time of a solution that violates the constraint and is obtained by a deterministic algorithm rather than by the metaheuristic algorithm.

3. The optimization device according to claim 1 or 2, wherein: The processor is configured to set an end time of the target optimization period at a time point at which an interval between the first completion time and the second completion time is divided at a predetermined ratio.

4. The optimization device according to claim 1 or 2, wherein: The processor is configured to set the end time of the target optimization period at a time point at which the interval between the first completion time and the second completion time is divided by a ratio corresponding to the amount of constraint violation of the latest version of the constraint-violating solution and the amount of constraint compliance margin of the latest version of the constraint-satisfying solution.

5. The optimization device according to claim 1 or 2, wherein: The processor is configured to cause the metaheuristic computation circuit to execute the metaheuristic algorithm to minimize an objective function including a plurality of constraints; And the processor is configured to determine that the approximate solution that satisfies one or more predetermined constraints among the multiple constraints is the constraint-satisfying solution, and determine that the approximate solution that does not satisfy the one or more predetermined constraints is the constraint-violating solution.

6. The optimization device according to claim 1 or 2, wherein: The processor is configured to cause the meta-heuristic computation circuit to execute the meta-heuristic algorithm to minimize an objective function including a plurality of constraints, and the objective function does not include a term for evaluating a project completion time in the resource-constrained project scheduling problem.

7. An optimization method for a resource-constrained project scheduling problem, using a meta-heuristic computing circuit and a processor based on an Ising machine to repeatedly obtain a solution that violates the constraint, a solution that satisfies the constraint, and an approximate solution, wherein the meta-heuristic computing circuit is dedicated hardware specially configured to execute a meta-heuristic algorithm by using an Ising machine, wherein the meta-heuristic algorithm meta-heuristically schedules tasks to obtain an approximate solution while ensuring that the completion time of any given task is no later than the end time of a target optimization period, wherein the approximate solution is the solution that violates the constraint or the solution that satisfies the constraint, and wherein the optimization method comprises: Finding, by the processor, a dividing point for dividing an interval between a first completion time and a second completion time, wherein the first completion time is the completion time of the latest version of the solution that violates the constraint, and the second completion time is the completion time of the latest version of the solution that satisfies the constraint; Setting the end time of the target optimization period at the division point in the metaheuristic calculation circuit by the processor; Executing the meta-heuristic algorithm by the meta-heuristic computing circuit to obtain the approximate solution; detecting, by the processor, a first event in which the approximate solution violates the constraint; detecting, by the processor, a second event in which the approximate solution satisfies the constraint; In response to detecting the first event, updating the first completion time using the completion time of the approximate solution by the processor, thereby adjusting the end time of the target optimization period in the metaheuristic computing circuit; In response to detecting the second event, updating the second completion time using the completion time of the approximate solution by the processor, thereby adjusting the end time of the target optimization period in the metaheuristic calculation circuit; as well as Repeat the process of finding the division point, setting the end time, executing the metaheuristic algorithm, detecting the first event, detecting the second event, updating the first completion time, and updating the second completion time until the difference between the first completion time and the second completion time becomes less than or equal to a predetermined value.

8. A recording medium, the recording medium containing a program for causing a meta-heuristic computing circuit and a processor based on an Ising machine to execute an optimization method for repeatedly obtaining a solution that violates the constraint, a solution that satisfies the constraint, and an approximate solution for a project scheduling problem with resource constraints, the meta-heuristic computing circuit being dedicated hardware specially configured to execute a meta-heuristic algorithm by using an Ising machine, the meta-heuristic algorithm meta-heuristically scheduling tasks to obtain an approximate solution while ensuring that the completion time of any given task is no later than the end time of a target optimization period, the approximate solution being the solution that violates the constraint or the solution that satisfies the constraint, the program causing: The processor searches for a dividing point that divides an interval between a first completion time and a second completion time, the first completion time being the completion time of the latest version of the solution that violates the constraint, and the second completion time being the completion time of the latest version of the solution that satisfies the constraint; The processor sets the end time of the target optimization period at the division point in the metaheuristic calculation circuit; The meta-heuristic computing circuit executes the meta-heuristic algorithm to obtain the approximate solution; The processor detects a first event in which the approximate solution violates the constraint; The processor detects a second event in which the approximate solution satisfies the constraint; In response to detecting the first event, the processor updates the first completion time using the completion time of the approximate solution, thereby adjusting the end time of the target optimization period in the metaheuristic calculation circuit; In response to detecting the second event, the processor updates the second completion time using the completion time of the approximate solution, thereby adjusting the end time of the target optimization period in the metaheuristic calculation circuit; as well as The metaheuristic calculation circuit and the processor repeatedly perform the processes of finding the division point, setting the end time, executing the metaheuristic algorithm, detecting the first event, detecting the second event, updating the first completion time, and updating the second completion time until the difference between the first completion time and the second completion time becomes less than or equal to a predetermined value.

Citation Information

Patent Citations

  • Method for scheduling parallel test tasks based on grouping and tabu search

    CN101984412A

  • Method for solving resource-constrained project scheduling problem

    CN108846570A

  • Apparatus, method and program for multiobjective optimization

    JP2010152851A

  • Operation plan decision method and operation plan decision system

    JP2015062102A

  • Multi-agent system for distributed manufacturing scheduling with genetic algorithms and tabu search

    US20110224816A1