Hi all,
Consider the code below,
schedule(T,EndTime) :-
Starts = [S1,S2],
Ends = [E1,E2],
T = [ task(S1,D1,E1,C1,t1),
task(S2,D2,E2,C2,t2)
],
[D1,D2] = [3, 2],
[C1,C2] = [1, 1],
Starts ins 8..12,
Ends ins 8..12,
max_member(EndTime, Ends),
cumulative(T, [limit(2)]),
labeling([min(EndTime)],Starts).
?- schedule(T,EndTime)
EndTime = 10,
T = [task(8,3,11,1,t1), task(8,2,10,1,t2)]
I simply do not understand why EndTime is not equal to 11.