A model for batch rod milling