include "globals.mzn"; int: p; %pieces int: m; %machines array[1..p,1..m] of int: time; var int: makespan; array[1..p,1..m] of var int: start; array[1..p,1..m] of var int: end; output [ "makespan: " ++ show(makespan) ++ "\n" ++ "[start-(dur)-end]:" ] ++ [ if j = 1 then "\n" else " " endif ++ "[" ++ show(start[i,j]) ++ "-(" ++ show(dur[i,j]) ++ ")-" ++ show(end[i,j]) ++ "]" | i in 1..p, j in 1..m ];