Constrained scheduling of jobs with different due dates in a flowshop