Originally posted by: hzwpku
Thanks!
The idea to make 2 intervals that overlap have the same length may work.
At first, I describe the problem more clearly. Each interval has a size which is given, such as the above example: [5,6,5,4,7,7].
But when two jobs with different sizes are in same batch, the lengths of these two jobs are equal to the larger size between these two jobs, such as job 4 and job 5 can be assigned into
one batch, the lengths of these two jobs are equal to 7 (the larger one between 4 and 7). The following solution is better than the above solution.
R Present Start End Size
1 1 0 5 5
2 1 5 11 6
3 1 0 5 5
4 1 11 18 7
5 1 11 18 7
6 1 18 25 7
Best regards!
#DecisionOptimization#OPLusingCPOptimizer