How do I model a precedence constraint of 12 tasks distributed among 4 work stations in order to balance the line to obtain the shortest possible cycle time?
#Number of tasks
N = 12
#Number of workstations
W = 4
#D[i] duration of task i
D = [3,6,7,6,4,8,9,11,2,13,4,3]
# Precedence (arcs on the precedence graph)
A = [(1,2),(1,3),
(2,4),(2,5),(2,6),
(3,6),(3,7),
(4,9),
(5,9),
(6,8),
(7,11),
(11,10),
(8,9),(8,10),
(9,12),
(10,12)]
Variables:
Xik ={1, if task i = 1,...,N is assigned to station k=1,...,W
0, otherwise
Yik = beginning of task i = 1,...,N on station k =1,...,W
Ej = time at which operations in station k = 1,...,W end