Optimal work rest schemes and working hours in manufacturing environment