Aug 3, 2022, 4:02:30 AMAug 3
to OptaPlanner development
I have been studying OptaPlanner for some time. I used the example Task Assignment as the basis for my project development. But I have a problem. Here is a simplified description of my project design:
1. The machine is ProblemFact and the task is PlanningEntity.
2. Each machine can perform tasks of the corresponding type. There are more than one machine of the same type.
3. Each device can be reused. Each task must be scheduled after the execution of the previous task on the corresponding machine (except the first task).
4. Minimize the makespan that performs all tasks.
Simplified data set:
TaskList: task1, task2, task3, task4, task5. (These 5 tasks can be executed on the machine of type A, and the execution time is 10 minutes.)
There are two types of machines of type A (assuming they are exactly the same, regardless of other parameters) : Machine1 and Machine2.
Because the data is very simple, the ideal task arrangement result can be quickly obtained as follows: three tasks are allocated on one machine and two tasks are allocated on the other machine. The resulting makespan value is 30min.
But what I actually got was this:
Machine1: task1, task3, task4, task5
Both machine2: task2
Machine1: task1, task2, task3, task4, task5
Both machine2: null
can please help me analyze the cause of this result and how to solve it?