Cost considerations in serial production lines