Add new grouping method based on the number of machine sets and related
methods.