Automatic selection of machine type