A general framework for five machine batching models