A heuristic approach to batching and scheduling a single machine to minimize setup costs.