The optimal selection of machine equipment can reduce the energy consumption and processing time of the parts processing process in enterprises. The energy consumption and time of using different equipment to process the same product vary greatly. Traditional equipment selection is only through qualitative analysis comparing the process characteristics of using different equipment or optimizing parameters for a single piece of equipment. It does not take into account the dynamics of the production process and does not consider the impact of process factors on production decisions. To solve this problem, we established a production equipment selection model based on the business compass model and proposed a calculation method that considered energy consumption and time objectives in the production process. Quantitative analysis can be performed for different equipment. The energy consumption and processing time of different equipment are calculated by the beetle antennae search (BAS) algorithm. A case study of machining end cap holes was carried out. The results showed that this method can calculate the optimal energy consumption and the optimal time of different equipment for producing the same product, which has good theoretical and practical significance for enterprises and governments to choose energy-saving and efficient production equipment.