1 Introduction

The process route plays an important role during the whole process design, it determines the production cost, processing time, product quality, production resources and environmental impact of the whole product. Greenhouse gas emission has become a recent global concern for green manufacturing, as product low-carbon process route design is an essential approach to achieve low-carbon manufacturing [1]. Carbon emission of manufacturing process includes the carbon emission from material flow, energy flow and environmental flow in the production and machining processes. Hence, it is of great significance to perform a study on process route optimization model for low carbon manufacturing, such that the carbon emission in the manufacturing process could be reduced.

Process route sequencing is considered as the key technology for computer aided process planning (CAPP) and is very complex and difficult. Some researchers focused their work on the traditional objective optimization. The shortest processing time [2], the minimum number of steps [3], and the minimum machining cost [4] were considered as the optimization goal. Multi-objective optimization was also carried out by many researchers. A mathematical model of IPPS is proposed based on the methodology of NLPP, the process plan of every job and the scheduling plan are generated simultaneously in this model, and the selection of process plan and generation of scheduling plan are guided by the objectives (such as minimizing makespan or cost) [5]. An evolutionary algorithm was presented to solve a multi-objective FMS process planning (MFPP) problem with various flexibilities. The MFPP problem simultaneously considers four types of flexibilities related to machine, tool, sequence, and process and takes into account three objectives: balancing the machine workload, minimizing part movements, and minimizing tool changes [6]. A process route optimization model was proposed to solve the decision-making problems of the process route in a Computer Aided Process Planning (CAPP) system based on the ant colony algorithm, Then generated and optimized by using the modified ant colony algorithm under the taboo criterion and constraints [7].

With the growing problem of resources and environment, the energy consumption was taken into account as the optimization goals in the process route optimization research. Based on this background the developed concept realizes the optimization of the energy consumption of a forging process chain by adaptation of its energetic relevant parameters [8]. Some multi-objective optimization model were established, which takes the minimum total processing time and the lowest total carbon emissions as the optimization objectives, and the optimization model is solved based on NSGA-II (Non-dominated sorting genetic algorithm II) [9, 10]. A similar work was carried out by Li et al. [11] with the emphasis on the batch splitting flexible job shop scheduling model, with the optimization objectives of minimizing energy consumption and makespan. An energy-saving optimization method was proposed that considers machine tool selection and operation sequence for flexible job shops [12]. Similar work can be found in Zhang et al. (2016) (which gives a detailed introduction of) the objective of minimizing energy consumption into a typical production scheduling model, i.e., the job shop scheduling problem, based on a machine speed scaling framework [13]. The manufacturing process of an automotive crankshaft was systematically investigated via a numerical simulation approach towards energy savings. The aim of this work is to propose potential solutions for improving the energy efficiency of the forging process chain in which energetically relevant parameters are optimized variables [14]. An algorithm was developed that optimally arranges EPS process, to control the stability of the craft, wherein the center of gravity is used as an object function [15].

Toward the development of process plans with reduced environmental impacts (carbon emissions et al.), A proposed method is presented for environmentally conscious process planning, which identifies impactful process steps, and associated design features, in terms of manufacturing cost and environmental impact [16]. Then Yin et al. [17] presented a new process planning method based on a carbon emission function model is that integrates both economic and environmental considerations. The method is demonstrated using an example part and the benefits of the method in terms of energy consumption and carbon emissions are evaluated. An optimization model for low carbon oriented Modular Product Platform Planning (MP3) is presented by Qi et al. [18], which is developed for solving the optimization problem by Adaptive Memetic Algorithm (AMA).

While the literature seems abundant, and some significant studies on the quantitative analysis and evaluation carbon emissions has been performed in manufacturing system. However, these studies have focused on optimizing energy consumption, economic benefits or carbon emissions. But considering the differences of each task of processing, production plan, material and energy consumption characteristics, the green degree of machining process could not be evaluated only by carbon emissions. The relationship between carbon emissions and efficiency should be introduced, considering the carbon efficiency of the whole machining process. In our previous work [19, 20], the concept of carbon efficiency (The carbon efficiency was defined as the produced carbon emissions per unit cutted-volume) was proposed, and the optimization of grinding process parameters was carried out taking the carbon efficiency and processing time as the optimization objective. At the same time, carbon emissions caused by changes in material flow, energy flow and environmental emissions flow should be taken into account in the process of quantifying carbon emissions.

Therefore, in this paper, a research was given on low carbon manufacturing oriented machining process route. The following part was outlined as follows: Sect. 2 analyzed the carbon emission of the production process in detail, and the carbon efficiency model of the machining process route was established based on the material flow, energy flow and environmental flow. In Sect. 3, A machining process route optimization model for low-carbon manufacturing was established based on genetic algorithms, under considering the constraint conditions that need to be satisfied in the process. An experiment case study was performed on grinding carriage box, and a comparison was given between the optimized process and traditional process, the validity and practicability of the model were verified in Sect. 4. The conclusions were discussed in Sect. 5.

2 Carbon Efficiency Model of Production Process

2.1 Carbon Efficiency Model

In order to analyze the carbon emissions and evaluate the optimization of carbon efficiency during the machining process, a feasible low-carbon optimization model must be established. According to the characteristics of carbon emissions, this paper established a carbon emissions quantitative model of the machining process. In the model, the removed volume of machining process was connected to the carbon efficiency, the carbon efficiency (produced carbon emissions per unit volume which was cutted) as the low carbon manufacturing comprehensive evaluation index, as shown in Eq. (1):

$$Q_{process} = \frac{{C_{process} }}{{\sum\nolimits_{{i = 1}}^{{i_{0} }} {\Delta V_{i} } }}$$
(1)

Where Qprocess is carbon efficiency of machining process, Cprocess is the carbon emissions generated in a machining process, ΔV is the material removal volume in machining process, i(i = 1, 2…i0) means each process.

2.2 Carbon Emission Quantification of Machining Process Route

The whole input and output process of the machining process should be considered to quantify carbon emissions. Input includes materials (raw materials, auxiliary materials, etc.) and energy (electricity, coal, natural gas, etc.). The output includes energy (electric energy, thermal energy) and emissions (exhaust gases, attle, and liquid waste). Therefore, the carbon emission of the whole machining process can be analyzed from the perspective of “three flows” (energy flow, material flow and environmental flow). The direct carbon emission from the production of materials was included, and indirect carbon emission from waste disposal was also generated through energy consumption.

Component processing is the most important stage of workblank production and workblank forming. Materials, energy and environmental emissions were included in the process. The consumption of materials includes raw materials, coolant, tools and fixtures; Energy consumption includes the consumption of electricity; Environmental emissions include attle, and liquid waste. Therefore, Material flow consumption M, Energy flow consumption E and Environmental flow consumption W of each process should be considered. Material flow consumption materials include all kinds of materials j(j = 1, 2…j0); Energy flow consumption includes all kinds of energy k(k = 1, 2…k0); Environmental flow consumption includes all kinds of pollutants l(l = 1, 2, …l0). The carbon emission model of the machining process route based on material flow, energy flow and environmental flow is shown in Fig. 1.

Fig. 1
figure 1

Machining process route carbon emission model based on “Three flows” model

During the process, an analysis model was performed for energy flow, material flow and environmental flow. The total amount of carbon emission could calculated in Eq. (2):

$$C(M,E,W) = C_{M} + C_{E} + C_{W}$$
(2)

Carbon emission from machining process is shown in Eq. (3):

$$\begin{aligned} C_{{process}} & = C(M,E,W) = \sum\limits_{{i = 1}}^{{i_{0} }} {\sum\limits_{{j = 1}}^{{j_{0} }} {M_{{j_{i} }} } } \times f_{{_{M} }}^{N} + \sum\limits_{{i = 1}}^{{i_{0} }} {\sum\limits_{{k = 1}}^{{k_{0} }} {E_{{k_{i} }} } } \times f_{{_{E} }}^{N} \\ & \quad + \sum\limits_{{i = 1}}^{{i_{0} }} {\sum\limits_{{l = 1}}^{{l_{0} }} {W_{{l_{i} }} } } \times f_{W}^{N} \\ \end{aligned}$$
(3)

Where CM is the carbon emission from material flow, CE is the carbon emission from energy flow, CW is the carbon emission from environmental flow, f N M is carbon emission factor of the corresponding material flow, f N E is carbon emission factor of the corresponding energy flow, f N W is carbon emission factor of the corresponding environmental flow. N is the natural number. The relevant carbon emission factors can be obtained through the literature [21,22,23].

2.2.1 Carbon Mission from Material Flow

Material consumption is mainly concentrated in raw materials consumption C rmc M , coolant liquid consumption C clc M , cutting tools consumption C ctc M and fixtures consumption C fc M , as shown in Eq. (4):

$$C_{M} = \sum\limits_{i = 1}^{{i_{0} }} {\left( {C_{{M_{i} }}^{rmc} + C_{{M_{i} }}^{clc} + C_{{M_{i} }}^{ctc} + C_{{M_{i} }}^{fc} } \right)} .$$
(4)
  1. 1.

    Raw materials consumption

    The carbon emission from raw material consumption refers to those caused by materials consumed during the mechanical processing system. The machining system will be processed into products and excised materials. Then the part of the material entering the product will enter the next stage with the product. The carbon emission from the excision materials were taken into account during machining process system. As shown in Eq. (5).

    $$C_{M}^{rmc} = \Delta m \times f_{M}^{rmc}$$
    (5)

    where Δm is the removed quality of the material, f rmc M is the carbon emission factor of removed material consumption.

  2. 2.

    Coolant liquid consumption

    In the machining process, coolant fluid will return to the box after used. At the same time, coolant fluid will evaporate and stick on the workpiece or attle. Therefore, the fluid consumption of machining process should be calculated by using the standard time and converted to the replacement cycle time. The calculation formula is as the following Eq. (6).

    $$C_{M}^{clc} = \frac{{T_{process} }}{{T_{rct} }}\rho_{cf} V_{rvf} \times f_{M}^{clc}$$
    (6)

    where Tprocess is the processing time, Trct is the replacement cycle time of coolant fluid,ρcf is the coolant fluid density, Vrvf is the replaced volume of coolant fluid, f clc M is the carbon emission factor of coolant fluid consumption.

  3. 3.

    Cutting tools (grinding wheel) consumption

    Generally speaking, the direct environmental impact caused by the cutting tools is relatively small during the machining process, mainly the caused by the indirect influence (the environmental impact of the tool preparation process was assessed in the tool use process). Thus, for a certain process, the carbon emission of cutting tool is calculated in a similar way to that of the coolant fluid, which also employs a conversion distribution method according to time.

    $$C_{M}^{ctc} = \frac{{T_{process} }}{{T_{tl} }}m_{ct} \times f_{M}^{ctc}$$
    (7)

    where Ttl is the tool life, mct is the quality of cutting tool, f ctc M is carbon emission factor of cutting tool consumption.

  4. 4.

    Fixture consumption

    The carbon emission of fixture is calculated in a similar way to that of the coolant fluid, which also employs a conversion distribution method according to time.

    $$C_{{_{M} }}^{fc} = \frac{{T_{process} }}{{T_{rcf} }}m_{f} \times f_{M}^{fc}$$
    (8)

    Where Trcf is the replacement cycle time of fixture, mf is the quality of fixture, f fc M is carbon emission factor of fixture consumption.

2.2.2 Carbon Emission from Energy Flow

The energy consumption of machine tool mainly includes basic startup part, transmission part, processing part and auxiliary device. The energy consumption of the machining part includes No-load energy consumption, processing energy consumption and additional load loss energy consumption.

Generally, the machine input power Pe consists of three parts:No-load power Pu, Cutting power Pc and Additional load loss power Pa [24]. The power balance equation is shown in Eq. (9):

$$P_{e} = P_{u} + P_{c} + P_{a} .$$
(9)

The total output power and the no-load power of the machine will be maintained at a certain stable value when the spindle speed of the machine is maintained at the steady-state operation. The no-load energy consumption can be regarded as a quadratic function relation with the rotational speed, furthermore the additional load loss is in a linear proportional relation to the load (The proportionality coefficient is often set to between 0.15 and 0.25, in this paper, the value was set as 0.2 in calculation). The cutting power is related to the product of force and feed rate.

Therefore, The carbon emission from energy consumption can be calculated as the following Eq. (10):

$$C_{E} = \sum\limits_{{i = 1}}^{{i_{0} }} {\left( {\int_{0}^{{T_{{no - load}} + T_{{process}} }} {P_{u} } dT + \int_{0}^{{T_{{process}} }} {1.2P_{c} dT} } \right)_{i} } \times f_{{_{E} }}^{{eec}}$$
(10)

where Tno-load is the no-load time of machine tool, f eec E is the carbon emission factor of electric energy consumption.

2.2.3 Carbon Emission from Environmental Flow

Environmental emissions are mainly attle and liquid waste products after processing. Thus, carbon emissions from attle and liquid waste disposal were included. As shown in Eq. (11):

$$C_{W} = \sum\limits_{i = 1}^{{i_{0} }} {\left( {C_{{W_{i} }}^{ad} + C_{{W_{i} }}^{lwd} } \right)} .$$
(11)
  1. 1.

    Attle disposal C ad w

    $$C_{W}^{ad} = \Delta m \times f_{W}^{ad}$$
    (12)
  2. 2.

    Liquid waste disposal \(C_{{_{W} }}^{lwd}\)

    $$C_{W}^{lwd} = \frac{{T_{process} }}{{T_{rct} }}\rho_{cf} V_{rvf} \times f_{W}^{lwd}$$
    (13)

    Where f ad W f lwd W are the carbon emission factor of attle disposal/liquid waste disposal (include waste recycle part and the waste treatment part).

3 Machining Process Route Multi-Objective Optimization Model Based on GA

The process decision of parts process is a very complicated process, which is influenced by many factors such as the selection of machining methods, machine tools and tools, etc. During the whole manufacturing process, the development of process route of parts not only affects the processing energy consumption, carbon emission was also influenced. Therefore, reasonable planning process route can reduce energy consumption effectively, thus reducing the carbon emission of manufacturing process.

After the determination of the feature, processing technology and processing methods of each processing unit, which takes the minimum processing time and the optimal carbon efficiency as the optimization objectives, and the machining process route was determined by GA. The technology roadmap is shown in Fig. 2.

Fig. 2
figure 2

High efficiency and low carbon machining process route optimization technology roadmap based on genetic algorithm

3.1 Feature of mechanical parts

In order to better describe the optimization of process route, two concepts named feature element and machining element were introduced [10]. Each machining feature of the part was defined as a feature element, and all machining features of the parts were expressed as the Eq. (14):

$$F = \left\{ {F_{1} ,F_{2} ,F_{3} , \ldots F_{a} } \right\}$$
(14)

Each machining element, as an information entity required by the core feature of the parts, has a uniform processing technique which contains machining features F, machining process i and machining methods P. The machining element can be expressed as the Eq. (15):

$$ME = \left\{ {F_{a} ,i,P} \right\}$$
(15)

Generally speaking, the machining method can be composed of different resources in mechanical processing, which the compilations of machine, tools and other resources were included. The compilations of machine were set as: \(M^{\prime } = \left\{ {M_{{_{1} }}^{\prime } ,M_{{_{2} }}^{\prime } , \ldots ,M_{b}^{\prime } } \right\}\), the compilations of tools were set as: \(T^{\prime } = \left\{ {T_{{_{1} }}^{\prime } ,T_{{_{2} }}^{\prime } , \ldots ,T_{{_{c} }}^{\prime } } \right\}\).

The compilations of process route can be written as the Eq. (16):

$$ME = \left\{ {me_{1} ,me_{2} , \ldots ,me_{a} } \right\}$$
(16)

where Fa is the ath feature element, \(M_{{^{{_{b} }} }}^{'}\) is the bth machine, T c is the cth tool. mea is the set of all the machining elements of Fa. Process line is a random combination of all components in the set of machining elements for parts. For example x = {mea1mea2, ···, meai} means process route from begin at mea1 and end with meai. Hence, the problem of process route optimization can also be considered as the selection and sequencing of machining elements.

3.2 Multi-Objective Optimization Model

From the above discussion about the machining element analysis, the crux problem of the process route optimization design is to analysis the part feature structure, select the machining method, machining equipment and tool information, such that it can optimize the structure size of the parts and determine the sequential optimization design of machining methods. Note that it is essential to take carbon efficiency and processing time into consideration, hence, the process route should be a multi-objective optimization.

In order to realize the whole process line, the generalized carbon efficiency and processing time are optimized simultaneously, the machining process route optimization for low-carbon manufacturing is actually a selection and sorting of processing elements. The selection of processing elements includes the selection of machining methods, machines, tools etc. The general mathematical model of the optimization of process route can be expressed as a constrained combinatorial optimization problem, and the variable of combinatorial optimization is the process element sequence. Therefore, the optimization objective function for low-carbon manufacturing can be expressed as:

$$\hbox{min} f(x) = y(Q_{process} ,T_{total} )$$
(17)

3.2.1 Carbon Efficiency Function

Based on Eq. (1) and synthesizing the Eq. (2)–(13), carbon efficiency comprehensive calculation model could be established as the following Eq. (18):

$$\begin{aligned} Q_{{process}} & = \frac{{C_{{process}} }}{{\sum\nolimits_{{i = 1}}^{{i_{0} }} {\Delta V_{i} } }} = {{\left( {\sum\limits_{{i = 1}}^{{i_{0} }} {\sum\limits_{{j = 1}}^{{j_{0} }} {M_{{j_{i} }} } } \times f_{{_{M} }}^{N} + \sum\limits_{{i = 1}}^{{i_{0} }} {\sum\limits_{{k = 1}}^{{k_{0} }} {E_{{k_{i} }} } } \times f_{{_{E} }}^{N} + \sum\limits_{{i = 1}}^{{i_{0} }} {\sum\limits_{{l = 1}}^{{l_{0} }} {W_{{l_{i} }} } } \times f_{W}^{N} } \right)} \mathord{\left/ {\vphantom {{\left( {\sum\limits_{{i = 1}}^{{i_{0} }} {\sum\limits_{{j = 1}}^{{j_{0} }} {M_{{j_{i} }} } } \times f_{{_{M} }}^{N} + \sum\limits_{{i = 1}}^{{i_{0} }} {\sum\limits_{{k = 1}}^{{k_{0} }} {E_{{ki}} } } \times f_{{_{E} }}^{N} + \sum\limits_{{i = 1}}^{{i_{0} }} {\sum\limits_{{l = 1}}^{{l_{0} }} {W_{{l_{i} }} } } \times f_{W}^{N} } \right)} {\sum\limits_{{i = 1}}^{{i_{0} }} {\Delta V_{i} } }}} \right. \kern-\nulldelimiterspace} {\sum\limits_{{i = 1}}^{{i_{0} }} {\Delta V_{i} } }} \\ & = {{\sum\limits_{{i = 1}}^{{i_{0} }} {\left[ \begin{gathered} \Delta m \times (f_{M}^{{rmc}} + f_{W}^{{ad}} ) + \frac{{T_{{process}} }}{{T_{{rct}} }}\rho _{{cf}} V_{{rvf}} \times (f_{M}^{{clc}} + f_{W}^{{lwd}} ) + \frac{{T_{{process}} }}{{T_{{tl}} }}m_{{ct}} \times f_{M}^{{ctc}} \hfill \\ + \frac{{T_{{process}} }}{{T_{{rcf}} }}m_{f} \times f_{M}^{{fc}} + (\int_{0}^{{T_{{no - load}} + T_{{process}} }} {P_{u} } dT + \int_{0}^{{T_{{process}} }} {1.2P_{c} dT} ) \times f_{{_{E} }}^{{eec}} \hfill \\ \end{gathered} \right]_{i} } } \mathord{\left/ {\vphantom {{\sum\limits_{{i = 1}}^{{i_{0} }} {\left[ \begin{gathered} \Delta m \times (f_{M}^{{rmc}} + f_{W}^{{ad}} ) + \frac{{T_{{process}} }}{{T_{{rct}} }}\rho _{{cf}} V_{{rvf}} \times (f_{M}^{{clc}} + f_{W}^{{lwd}} ) + \frac{{T_{{process}} }}{{T_{{tl}} }}m_{{ct}} \times f_{M}^{{ctc}} \hfill \\ + \frac{{T_{{process}} }}{{T_{{rcf}} }}m_{f} \times f_{M}^{{fc}} + \left(\int_{0}^{{T_{{no - load}} + T_{{process}} }} {P_{u} } dT + \int_{0}^{{T_{{process}} }} {1.2P_{c} dT} \right) \times f_{{_{E} }}^{{eec}} \hfill \\ \end{gathered} \right]_{i} } } {\sum\limits_{{i = 1}}^{{i_{0} }} {\Delta V_{i} } }}} \right. \kern-\nulldelimiterspace} {\sum\limits_{{i = 1}}^{{i_{0} }} {\Delta V_{i} } }} \\ \end{aligned}$$
(18)

3.2.2 High Efficiency Function

The high efficiency of the process route can be defined as the shortest processing time, then the total processing time Ttotal of process route was taken as another optimization objective, which include part processing time Tppt, machine replacement time Tmrt and tool replacement time Ttrt. It can be described in detail as shown in Eq. (19):

$$T_{total} = T_{ppt} + T_{mrt} + T_{trt} .$$
(19)
  1. 1.

    Part processing time. The no-load time Tno-load and processing time Tprocess were included in parts processing time, as shown in Eq. (20):

    $$T_{ppt} = \sum\limits_{i = 0}^{{i_{0} }} {(T_{{no - load_{i} }} + T_{{process_{i} }} )} .$$
    (20)
  2. 2.

    Machine replacement time

    If different machines are required for two adjacent processes, it is necessary to replace the machine. The parts were removed from the machine and then loaded into the next one. It can be obtained by the replacement time of each process machine. Therefore, the replacement time was as follows:

    $$T_{mrt} = T_{emrt} \times \sum\limits_{i = 0}^{{i_{0} - 1}} {\left( {M_{{_{i + 1} }}^{\prime } - M_{{_{i} }}^{\prime } } \right)}$$
    (21)
    $$\left( {M_{{_{i + 1} }}^{\prime } - M_{{_{i} }}^{\prime } } \right) = \left\{ {\begin{array}{*{20}l} 1 ,\\ 0, \\ \end{array} } \right.\begin{array}{*{20}l} {M_{{_{i} }}^{\prime } \ne M_{{_{i + 1} }}^{\prime } } \\ {M_{{_{i} }}^{\prime } = M_{{_{i + 1} }}^{\prime } } \\ \end{array}$$
    (22)

    where Temrt is each machine replacement time,\(M_{{_{i} }}^{'}\) is the machine that the ith stage used. If two adjacent processes ith and (i + 1)th were processed on the same machine, the result was \(\left( {M_{{_{i + 1} }}^{\prime } - M_{{_{i} }}^{\prime } } \right) = 0\), otherwise the answer was 1.

  3. 3.

    Tool replacement time

    The tool replacement time is calculated in a similar way to that of the machine, which also depends on the replacement according to time. As shown in Eq. (23), (24):

    $$T_{trt} = T_{etrt} \times \sum\limits_{i = 0}^{{i_{0} - 1}} {\left( {T_{{_{i + 1} }}^{\prime } - T_{{_{i} }}^{\prime } } \right)}$$
    (23)
    $$\left( {T_{{_{i + 1} }}^{\prime } - T_{{_{i} }}^{\prime } } \right) = \left\{ {\begin{array}{*{20}l} {1,\quad T_{{_{i} }}^{\prime } \ne T_{{_{i + 1} }}^{\prime '} } \\ {0,\quad T_{{_{i} }}^{\prime } = T_{{_{i + 1} }}^{\prime } } \\ \end{array} } \right.$$
    (24)

    where Tetrt is tools replacement time, Ti′ is the tools that the \(i_{{^{th} }}\) stage used. If two adjacent processes ith and \((i + 1)_{{^{th} }}\) were processed on the same tool, the result was \(\left( {T_{{_{i + 1} }}^{\prime } - T_{{_{i} }}^{\prime } } \right) = 0\), otherwise the answer was 1.

In conclusion, the total processing time of the process route can be expressed as:

$$\begin{aligned} T_{total} & = \sum\limits_{i = 0}^{{i_{0} }} {(T_{{no - load_{i} }} + T_{{process_{i} }} )} + T_{emrt} \times \sum\limits_{i = 0}^{{i_{0} - 1}} {\left( {M_{{_{i + 1} }}^{\prime } - M_{{_{i} }}^{\prime } } \right)} \\ & \quad + T_{etrt} \times \sum\limits_{i = 0}^{{i_{0} - 1}} {\left( {T_{{_{i + 1} }}^{\prime } - T_{{_{i} }}^{\prime } } \right)} \\ \end{aligned}$$
(25)

3.3 Constraint Model

The machining process of parts can be divided into rationality constraints and optimal constraints according to their mandatory differences. One optimal solution of process route optimization must satisfy rationality constraints and try to gratify optimal constraint as far as possible.

The rationality constraints include: (1) Coarse-to-precise, that is, first rough machining, then semi-finishing, and finally finishing machining; (2) Primary-to-secondary, that is, the main surface is processed first and the secondary surface is processed later; (3) The datum is processed before other surfaces. When there is geometric tolerance relationship between two machining features, the processing features including the benchmark are processed first. (4) Nondestructive constraint, that is, to ensure that the subsequent processing does not destroy the attributes generated during the previous processing. (5) In addition, the general rationality constraint should also meet the principles of non-destructive constraint relationship (the processing characteristics of the previous process cannot be destroyed in the subsequent processing process), and the processing order determined by the feature attribute itself (for example, the drilling of the inner hole must be done before the reaming process).

The optimal constraints are generally out of consideration for the optimization goal, including how to shorten the machining time, reduce costs, ensure the quality of machining precision, etc., The optimal constraints mainly including minimize the replacement of machines, tools and fixtures subject to the principles of processes concentration and processing economy.

The mathematical model of the constraint process through the following equations is as follows:

$$S.T.\left\{ {\begin{array}{*{20}l} {RC_{i} \left( x \right) = 0,} & {i = 1,2,...i_{0} } \\ {OC_{i} \left( x \right) = 0,} & {i = 1,2,...i_{0} } \\ {x \in \Omega ,} & {\Omega = x_{1} ,x_{2} ,...x_{{i_{0} !}} } \\ \end{array} } \right.$$
(26)

Among them, RCi(x), OCi(x) are the rationality constraints and optimal constraints discussed above. Ω is the set of all the solutions in the component processing elements, which comprises of \(i_{0} !\) process route. Due to the constraints, the practical process route plan should be far less than i0.

3.4 Optimization Model Based on Genetic Algorithm

Genetic algorithm is a random search algorithm, which referenced from biology natural selection and natural genetic mechanism, and aims to search the optimal solution by simulating the natural evolution process. In this paper, an improved multi-objective genetic algorithm was used to solve the optimization of the machining process route. In order to meet the needs of practical problems, a coding method based on processing characteristics was adopted, and genetic operations such as crossover and mutation are adjusted accordingly to adapt to the coding mode and various constraints in actual machining process. The carbon efficiency and processing time are taken as the optimization objective and fitness equation to make evolutionary choices about the population.

The genetic algorithm optimization flowchart for the machining process route is shown in Fig. 3.

Fig. 3
figure 3

Genetic algorithm flowchart

3.4.1 Encode

According to machining feature, every complete process route is represented by a chromosome, which includes machining sequence, machining machines, machining tools, etc. Chromosome is shown in Fig. 4, including machining procedure code Si, machining machines code \(M_{{_{i} }}^{\prime }\) and machining tools code \(T_{{_{i} }}^{\prime }\).

Fig. 4
figure 4

Encoding method

Each gene X in the substring represents the machining feature X of the part, while in the middle of Si, the previous process will be machined prior to the subsequent process. Both \(M_{{_{i} }}^{\prime }\) and \(T_{{_{i} }}^{\prime }\) were coded according to the machining number of machines, of whose genes correspond to those in Si.

3.4.2 Basic Operation of Genetic Algorithm

Genetic algorithm can be divided into three basic operations: selection, crossover and variation. We set up the corresponding coding for the process-machine-tool when encoding, The MATLAB functions (PemCom etc.) was used in this article to implement substitution to satisfy the sequence constraint of processing sequence (Coarse-to-precise, Primary-to-secondary etc.).

Selection is based on the fitness value of each individual, and individuals with better processing time and carbon efficiency in the current population were selected to perform genetic operation.

The crossover operation in this paper can be divided into the machining procedure, machines and tools. The operation of generating new individuals by replacing and recombining parts of the two parent individuals by cross operations.

In order to adapt to the above mentioned encoding method based on processing characteristics, the improved block crossover method is adopted in this paper. The main steps are as follows: Chromosomes were divided into block cross point according to the processing sequence. The genes other than the intersections of parent chromosomes were copied to the same position of offspring chromosomes. Then, the genes outside the intersection are checked. If they do not conflict with the changed gene fragments, they are retained directly. If there is a conflict, they are replaced by mapping. The same gene in machining procedure of parental chromosome was deleted, and the remaining gene sequence of was maintained to copy it to the uncrossed position. The generation of illegal individuals and exchanges according to the mapping relationship in the matching region were avoided by this crossover scheme, so that the process sequence (work step) ordering is theoretically possible.

More genes were exchanged within a single chromosome to form new offspring under certain mutation probability through mutation operation. The main steps are as follows: A chromosome was randomly selected from the current population. Multiple random positive integers are generated as switching points within the interval of chromosome length n. More genes were exchanged at the switching point to form a new individual. The new individual was judged whether meets the constraint conditions. If satisfied, join the next generation group, otherwise return to the step.

3.4.3 Fitness function evaluation and operation parameters

Fitness function is a measurement tool to measure the quality of chromosomes. Its value is the basis of selection and operation, which directly affects the convergence performance and is an important factor of genetic optimization. The carbon efficiency and total processing time of the process route were optimized, and the Eqs. (18) and (25) were selected as fitness functions to calculate the carbon efficiency and total processing time of each individual chromosome, based on which genetic algorithm optimization was carried out.

The weight coefficient transformation method was used to transform the multi-objective optimization problem into a single-objective optimization method. Then the linear weighting calculation is carried out. The linear weighted sum function is the fitness function.

Aiming at the objective function of the high efficiency and low carbon grinding optimization model, according to the corresponding sub-targets importance to determine weights, the weighted functions of the two sub-objective functions are expressed as:

$$func_{fit} = \omega_{1} \times Q_{process} + \omega_{2} \times T_{process}$$
(27)

where ω1 and ω2 are the weight coefficients.

The MATLAB computing software was used to implement the genetic algorithm. Then the GA randomly generated population and defined a fitness function based on the objective function after set the GA parameters. New individuals were then generated by using some genetic operators. The optimized results which meet the requirements would be output after the crossover, selection and mutation. Because the genetic algorithm is a random method and the approximate solution is obtained, the results of each calculation in the MATLAB environment will be slightly different.

4 Case Study

In order to verify the feasibility of carbon efficiency quantification method and the reliability of the process route optimization conclusion, we conducted an example study on manufacturing a grinding carriage box of CNC camshaft grinder. The grinding wheel box body was made of castings, and its dimensions and machining features are shown in Fig. 5.

Fig. 5
figure 5

Grinding carriage box

4.1 Machining Feature and Experiments Analysis

The grinding carriage box contains many typical machining characteristics, such as upper end-surface, lower end-surface, hole, chamfering and hole chamfering. The main features and process description were shown in Table 1.

Table 1 Feature processing scheme of grinding carriage box

The machine to be used in the processing is shown in Table 2. Lathe (M′1/M′2), Machining Center (M′3/M′4), Milling and Boring Machine (M′5/M′6), Drilling Machine (M′7) and Planer (M′8/M′9) in the workshop. The machine power and the workpiece handing time were measured by experiment.

Table 2 Machine list

The relative parameters of machine tools can be found in the literature [25]. The replacement time of the tools is about 10 s. Since the hole size of the part is not consistent, the drill and the tap used are not the same. According to the small difference between the quality and life of some tools, the smaller ones were combined to simplify the calculation in this paper. All those machine tools and machines are always available for certain process procedure. The detailed tool information is shown in Table 3.

Table 3 Tool list

According to the above optional machines and tools, the experiment was carried out with the usual processing parameters of the enterprise, and the AWS2013S Power Analyser digital power meter was used to measure power. The carbon emission and carbon efficiency can be calculated through the established model. The experimental data obtained by selecting the machine and the tool for each machining feature of the parts, as shown in Table 4.

Table 4 Machining feature, machining sequence and machining resources list

The traditional machining process route of enterprise is as follows:01 M′03T′05 → 02 M′03T′06 → 03 M′03T′05 → 04 M′03T′06 → 05 M′03T′05 → 06 M′03T′06 → 07 M′09T′04 → 08 M′09T′04 → 09 M′09T′04 → 10 M′09T′04 → 11 M′07T′07 → 12 M′07T′07 → 13 M′07T′07 → 14 M′07T′07 → 15 M′07T′07 → 16 M′07T′07 → 17 M′07T′07 → 18 M′07T′07 → 19 M′07T′07 → 20 M′07T′07 → 21 M′01T′01 → 22 M′01T′01.

4.2 Optimization Result

The key parameters of the genetic algorithm were set as follows: NIND (Number of individuals) = 500, MAXGEN (Maximum number of generations) = 500, Crossover = 0.9, Mutation = 0.1. The MATLAB computing software was used to implement the genetic algorithm to get the optimal process route, and the minimum processing time and optimal carbon efficiency were set as the optimization objectives. High efficiency and low carbon optimization convergent graph are shown in Fig. 6.

Fig. 6
figure 6

High efficiency and low carbon optimization convergent graph

The optimal machining process route form generated by genetic algorithm optimization is shown in Fig. 7.

Fig. 7
figure 7

Optimal machining process route performance chart

The above optimal performance form is compiled into machining process route as shown in Table 5.

Table 5 Optimal machining process route

4.3 Result Analysis

The carbon emission and carbon efficiency of the optimal process route were analyzed. The detailed experimental result was shown in Table 6. The results were as shown in Figs. 8 and 9.

Table 6 Experimental results of optimal machining process route
Fig. 8
figure 8

Analysis process route of carbon emission based on “three flow”

Fig. 9
figure 9

Analysis process of carbon efficiency

It can be seen from Fig. 8 that the influence of “three flows” on carbon emission in the whole machining process route is: material flow > energy flow > environmental flow. The reasons for those were as follows: (1) The carbon emission from material were related to machining allowance; (2) Material consumption of machining process is larger; (3) The processing time is not long; (4) This process lack of precision machining (such as grinding). Those factors lead to the carbon emission impact of material consumption more than the energy consumption and environmental consumption.

As shown in Fig. 9, the carbon emission of planing is obviously better than boring, drilling and tapping and turning, in addition, the carbon efficiency of heavy machining is better than that of precision machining, and the carbon efficiency of tapping and turning is worse. Compared with Fig. 8, carbon emission of planning is the biggest but carbon efficiency is the best. Instead, the turning process has less carbon emission but less carbon efficiency. It is because the planing process removes a lot of material, and the amount of finish turning and tapping is very small. It can be seen from the results that the processing efficiency should be improved, and the removal quantity should be increased to reduce the carbon emission and optimize the carbon efficiency.

In order to verify the feasibility of optimized result, the traditional process route of the enterprise was compared with the optimized process route, the comparison results are shown in Table 7.

Table 7 Comparison table of different processing route

Figure 10 shows the comparison of processing time, carbon emissions and carbon efficiency before and after the optimization, the results revealed clearly that the processing time and carbon emissions has been significantly reduced and the carbon efficiency has reached a better value after the optimization.

Fig. 10
figure 10

Comparison diagram of different process route

To achieve high efficiency and low carbon, the relatively concentrated tools and machine were used to reduce the change times of tools and machine in comparison to other case correspond in to less time processing. The process route optimization model has a better trade-off between carbon efficiency and processing time with decrease of the energy consumption and the increase of the carbon efficiency. It saved 15.7% processing time and increased 8.25% carbon efficiency on average, compared with traditional process route.

5 Conclusion

  1. 1.

    The carbon efficiency model (the produced carbon emissions per unit cutted-volume) of the machining process route was established based on the material flow, energy flow and environmental flow, and the process route optimization model of minimum processing time and optimal carbon efficiency were set up.

  2. 2.

    Based on the genetic algorithm, the optimization of the high efficiency and low carbon optimization model of the above process route was carried out, which realizes the optimization steps of different process characteristics, and the feasible and optimized process route was obtained.

  3. 3.

    With the established carbon efficiency model, it could effectively understand the carbon emission of different stages.

  4. 4.

    The optimized technological route was compared with the traditional one of the enterprises, and the results indicated that takes a reasonable process planning can effectively reduce carbon emission.