Introduction

In recent years, the rapid development of the manufacturing industry has greatly boosted China's economic growth. However, despite underpinning China's economic development, the manufacturing industry consumes a vast amount of resources and generates considerable pollution, leading to substantial environmental impact 1. Since the twenty-first century, China's manufacturing industry has accounted for 51% of the country's total energy consumption and 52% of total carbon emissions 2. Therefore, it is necessary to explore green manufacturing.

Zheng and Wang 3 studied the green scheduling problem of unrelated parallel machines with resource constraints and proposed a collaborative multi-objective fruit fly optimization algorithm to optimize the maximum manufacturing time and total carbon emissions. Wang et al. 4 studied the blocking flow shop scheduling problem to optimize its maximum completion time and energy consumption. Sang and Tan 5 designed an optimization method called SV-MA to solve the high-dimensional multi-objective green flexible job shop scheduling problem, aiming to improve the production capacity and processing quality while reducing energy consumption. Qin et al. 6 investigated the green job shop scheduling problem with variable processing speeds and designed a mixed-integer linear programming model and a knowledge-based multi-objective memory algorithm (MOMA) to solve the problem. Liu et al. 7 considered a more realistic dual flexible job shop scheduling problem and established a multi-objective mixed-integer programming model to optimize the maximum completion time, total worker cost, and the overall impact of green production indicators. Afsar et al. 8 considered the uncertainty of processing time and studied the workshop scheduling problem with the aim to minimize energy consumption during machine idle time and minimize the production cycle of projects.

Green scheduling is not just an effective means of realizing green manufacturing, but it also enables modern manufacturing enterprises to attain energy conservation and emission reduction. Previous studies have conducted extensive research on green scheduling problems, but relatively little consideration has been given to the transportation process during manufacturing. The transportation process of some large workpieces can also produce significant carbon emissions, and the transportation of workpieces can also affect the processing process.

Varela et al. 9 studied the collaborative manufacturing scheduling problem. Through an industrial case study, they proposed an operational scheduling system that integrates the proposed scheduling model and various types of solution algorithms. Sang and Tan 10 studied the multi-objective distributed flexible job shop collaborative scheduling problem in intelligent factories and constructed a distributed flexible job shop collaborative scheduling model that simultaneously optimizes economic and green indicators. Due to production or environmental reasons, most products need to go through multiple production workshops, from raw materials to finished products. Qin et al. 11 researched the optimization framework of serial multi-workshop collaborative scheduling problems, compared the optimization results of different frameworks, and analyzed the results of each optimization framework. Tian et al. 12 used the Analytical Target Cascading (ATC) method to solve the collaborative optimization problem of cutting parameters, process routes, and scheduling (CCPJS). Grabot et al. 13 studied the industrial scheduling problem of collaboration between humans and software, analyzed the specific requirements of collaborative methods, and proposed solutions for visualization tools, constraint management, and interactive planning. Moon et al. 14 proposed a method to perform independent scheduling at the network edge through collaborative scheduling between edge devices in a multi-access edge computing structure to solve the job shop scheduling problem.

Existing research on workshop scheduling often concentrates on a single workshop, assuming that all workpieces are prepared beforehand. However, in actual production, the commencement time of workpieces depends on the production of corresponding workpieces in the preceding workshop. Therefore, the collaborative scheduling of multiple workshops with process constraints can help achieve the optimization of overall scheduling effects. Compared with single workshop scheduling, the decision variables of multi-workshop collaborative scheduling optimization in the crankshaft manufacturing process in this paper have multiplied, significantly increasing the difficulty of solving.

Chen et al. 15 conducted research on capacity, operation sequence, and other constraints in multi-order environments and used a mixed-integer programming model to achieve advanced planning and scheduling. Liu et al. 16 studied the workshop scheduling problem for low-volume, multi-variety manufacturing industries, and in order to obtain near-optimal solutions with quantifiable quality within strict time constraints, they proposed a new integer linear programming formulation to minimize the total weighted tardiness. Salido et al. 17 designed a multi-objective genetic algorithm to obtain a trade-off between maximum duration and energy consumption. Qin et al. 18 developed a multi-objective genetic algorithm to minimize total energy consumption and total weighted tardiness. Mahmud et al. 19 developed an improved multi-objective particle swarm algorithm for problems that can provide highly customized and on-time delivery requirements at the lowest cost, and experimentally demonstrated the superiority of the algorithm. Dou et al. 20 designed a multi-objective particle swarm optimization algorithm based on crowding distance and external Pareto archive for the integrated optimization problem of reconfigurable manufacturing system configuration design and scheduling, to find the compromise solution between total cost and tardiness. Li et al. 21 proposed a problem-specific heuristic improved decomposition-based multi-objective evolutionary algorithm for solving the batch flow problem of Hybrid Flow Shop Scheduling (HFSP). Sun et al. 22 considered the flexible job shop scheduling with uncertain processing times represented by fuzzy numbers and proposed an effective hybrid cooperative evolutionary algorithm (hCEA) to minimize the fuzzy maximum completion time. Stastny et al. 23 introduced a new graph-based algorithm draft for optimizing scheduling problems.

Scheduling problem-solving algorithms include two categories: exact algorithms and heuristic algorithms. While exact algorithms can yield more accurate solutions, they are inefficient and are only applicable to small-scale scheduling problems. On the other hand, intelligent approaches can effectively tackle large-scale scheduling issues. In recent times, scholars have widely utilized intelligent optimization algorithms 24,25,26,27,28,29.

The previous studies extensively explore green scheduling and collaborative manufacturing, focusing on optimizing manufacturing time, carbon emissions, energy consumption, and total worker cost. Various models and algorithms, such as the multi-objective fruit fly optimization, mixed-integer linear programming, and multi-objective genetic algorithm, are proposed and tested. However, the underemphasis on the transportation process during manufacturing is lack of study. Also, the contribution of the transportation process to carbon emissions and more efficient algorithms to solve large-scale scheduling problems are still needed to be addressed.

Optimizing workshop scheduling can enhance production efficiency, minimize resource waste and environmental pollution, thereby reducing costs and boosting corporate competitiveness. This aligns with national policy requirements and supports sustainable development. The effective strategy of reducing carbon emissions lies in decreasing pollutant generation and energy consumption via parameter optimization during the manufacturing process. This study concentrates on the collaborative scheduling scheme optimization for multi-stage flexible manufacturing workshops in the crankshaft manufacturing process. Past studies on scheduling optimization primarily focused on machining workshops, overlooking the significant carbon emissions and manufacturing time consumed during the single jacket and double jacket stages. These stages are characterized by distinct manufacturing processes, with processing sequence constraints for some components in the double jacket stage significantly impacting overall manufacturing time. Additionally, this study considers the transportation process of workpieces among various stations and machines, using two overhead cranes and one transfer vehicle. The complexity of the study is amplified by the inclusion of the transportation process and the coordination of multiple transportation equipment.

This paper presents a unique approach to the sustainable optimization of scheduling for multi-stage mixed flow shops, emphasizing the efficient coordination of flexible mixed flow shops in crankshaft component manufacturing. The innovative aspect lies in aiming to minimize both the maximum manufacturing time and total carbon emissions throughout the process. Key considerations include carbon emissions from workpiece processing, machine idling, and transportation. The study also sheds light on the processing sequence of workpieces and the transportation paths used within the manufacturing environment, leading to optimized scheduling outcomes. The main contributions of this work are twofold.

  1. (1)

    It introduces a sustainable collaborative scheduling model specifically tailored to the complex manufacturing process of crankshafts. This model encompasses the processing of workpieces at multiple stages, and the inter-machine transportation process.

  2. (2)

    The paper proposes a modified NSGA-III algorithm incorporating the MFO method to solve the multi-objective optimization model, thereby enhancing its practical applicability.

  3. (3)

    The effectiveness of the proposed algorithm and model is demonstrated through a real-world case study, confirming the potential of this approach to significantly improve manufacturing efficiency and environmental impact.

The remaining content of this paper is organised as follows: “Introduction” summarizes and analyses the current research status in related fields. Section “Problem description and symbols” provides a more detailed description of the research problem and establishes a multi-objective optimization model for this problem. Section “Algorithm flow” introduces the process of the NSGA-III-MFO algorithm. Section “Case study” validates the mathematical model and optimization algorithm constructed in the previous two sections based on a specific crankshaft production case, proving the effectiveness of the model and the superiority of the intelligent algorithm. Section “Conclusions” concludes the research in this paper and introduces the prospects for future research.

Problem description and symbols

This paper studies the multi-stage hybrid flow shop sustainable collaborative scheduling problem in the crankshaft manufacturing process, which can be described as follows: assume there are M machine groups and n workpieces. Workpiece i can be processed through different deterministic processes. Each process encompasses one or more machines, k, with corresponding capabilities. As shown in Fig. 1, during the machining stage, workpieces are transported between various processing machines via overhead crane. (1) Upon completion of the last machining operation, the workpiece is transferred to buffer area 1 by the same crane. Overhead crane 2 transports the workpiece from buffer area 1 to the single-fit area for single-fit operations. After the single-fit operation is completed, the transfer vehicle transports the single-fit pieces to buffer area. (2) Overhead crane 2 is responsible for transporting workpieces from the two buffer areas to the re-fit pit for re-fit operations. Throughout the manufacturing process, there are precedence constraints on the processing operations of the workpieces. However, there are no order constraints between the same type of identical workpieces, such as no precedence constraint between the processing of two identical bends. This paper establishes a mathematical model for this problem, with the aim of minimizing the time consumed and total carbon emissions in the entire manufacturing process, the parameters of the model is given in Table 1.

Figure 1
figure 1

Layout diagram of crankshaft manufacturing workshop.

Table 1 Symbol description.

Assumption

In order to ensure that the proposed model eliminates the interference of all irrelevant factors, the following assumptions are made.

  1. 1.

    All processing parameters of workpieces are determined, which means that the crankshaft machining process is constrained by the parameters of the processing equipment.

  2. 2.

    Each workpiece includes multiple processes, and each process can be executed on a machine with corresponding capabilities.

  3. 3.

    There are no priority constraints between different workpieces during the machining stage, but there are priority constraints between the operation sequences of the same workpiece.

  4. 4.

    Subsequent operations cannot start if the previous operation has not been completed.

  5. 5.

    Each machine processes only one workpiece at a time, and each workpiece can only be processed on one machine at a time.

  6. 6.

    Machines operate normally without interruption due to malfunction.

  7. 7.

    The first process of each workpiece does not require transportation.

  8. 8.

    During the single-fit process, it is necessary to ensure that the corresponding shaft diameter has been processed and transported to the single-fit area when the crank bend heating is completed.

  9. 9.

    There are temporary storage areas in the single-fit and re-fit areas.

  10. 10.

    To simplify the model, the process of using overhead cranes to lift electromagnetic induction heating devices during the single and re-fit process is ignored.

  11. 11.

    Different transport machines do not interfere with each other.

Transportation time and carbon emission model

Transportation time functions

Considering the large area occupied by heavy-duty workpiece processing workshops and the long distances between machines, the startup and braking times of each mechanism of the overhead crane transportation equipment are ignored. The transportation time formulas for each mechanism are as follows:

Unloaded transportation time for operation \({O}_{ij}\):

$$ t^{nl} (O_{ij} ) = \left( {\frac{{|k_{x} - k_{{1_{x} }} |}}{{v_{g} }} + \frac{{|k_{y} - k_{{1_{y} }} |}}{{v_{t} }}} \right)*a_{i(j - 1)}^{k} *a_{i1ji}^{{k_{1} }} $$
(1)

Unloaded waiting time for operation \({O}_{ij}\):

$$ Wt_{nl} (O_{ij} ) = \max [(St_{i1j1}^{{k_{1} }} + t^{nl} (O_{ij} ) - Ft_{i(j - 1)}^{k} ),0] $$
(2)

Total loaded transportation time for operation \({O}_{ij}\):

$$ t^{l} (O_{ij} ) = \left( {\frac{{|k_{x} - k_{{2_{x} }} |}}{{v_{g} }} + \frac{{|k_{y} - k_{{2_{y} }} |}}{{v_{t} }} + \frac{{h_{z} }}{{v_{s} }} + \frac{{h_{z} }}{{v_{d} }}} \right)*a_{i(j - 1)}^{k} *a_{ij}^{{k_{2} }} $$
(3)

Loaded transportation waiting time:

$$ Wt_{l} (O_{ij} ) = \max [(Ft_{i2j2}^{{k_{2} }} - t^{l} (O_{ij} ) - Ft_{i(j - 1)}^{k} ),0] $$
(4)

Time to transport a single set from the single set area to the double set temporary storage area using a tow truck:

$$ t^{\prime} = \frac{{x_{a} }}{{v_{x} }} \times a_{ij}^{t} $$
(5)

Total transportation waiting time for operation \({O}_{ij}\)::

$$ Wt(O_{ij} ){ = }Wt_{nl} (O_{ij} ) + Wt_{l} (O_{ij} ) $$
(6)

Carbon dioxide emissions

Based on the carbon emissions of each operation in production, the carbon emission calculation formula for different machines is given using the Intergovernmental Panel on Climate Change (IPCC) carbon emission accounting method. The IPCC is an abbreviation for the Intergovernmental Panel on Climate Change, which is a United Nations body for assessing science related to climate change. The IPCC reference model is the most widely used carbon emission calculation method. It originates from the report on the greenhouse effect issued by the United Nations Climate Change Committee, expressed as: Carbon Emission = Activity Data*Emission Factor.

  1. (1)

    Carbon emissions in machining process

    Machine tool machining energy consumption:

    $$ E_{c} = \sum\limits_{{k = 1}}^{{m\prime }} {\sum\limits_{{i = 1}}^{n} {\sum\limits_{{j = 1}}^{{q_{i} }} {(p_{c}^{k} *t_{c}^{k} (O_{{ij}} )*a_{{ij}}^{k} )*\eta _{e} } } } $$
    (7)

    Total machine tool standby energy consumption:

    $$ E_{{idle}} = \sum\limits_{{k = 1}}^{{m\prime }} {p_{{idle}}^{k} *t_{{idle}}^{k} *\eta _{e} } $$
    (8)

    Total energy consumption in the machining process:

    $$ E_{machine} = E_{c} + E_{idle} $$
    (9)
  2. (2)

    Carbon emissions in single and double set processes

    Electromagnetic induction heating process carbon emissions:

    $$ E_{el} = \sum\limits_{i = 1}^{n} {\sum\limits_{j = 1}^{{q_{i} }} {\sum\limits_{k = m^{\prime} + 1}^{m} {pt_{ijk} \eta_{e} a_{ij}^{k} } } } $$
    (10)
  3. (3)

    Carbon emissions in transportation process

    1. 1.

      During the workpiece machining process, cranks and shaft diameters are transported from the machining area to the single set temporary storage area by Crane 1; free end and output end are transported to the single set temporary storage area by Crane 1 and then to the double set area by Crane 2. Carbon emissions from crane transportation, single set process, and double set process transportation are calculated. Crane 1 and Crane 2 have the same model.

      For operation \({O}_{ij}\):, crane loaded transportation energy consumption:

      $$ E^{l} (O_{ij} ) = \varepsilon_{1} \theta_{g} |k_{x} - k_{1x} |{ + }\varepsilon_{1} \theta_{t} |k_{y} - k_{1y} |{ + }\varepsilon_{1} \theta_{s} h_{z} $$
      (11)

      Thus, crane loaded transportation carbon emissions:

      $$ E_{crane}^{l} = \sum\limits_{i = 1}^{n} {\sum\limits_{j = 2}^{{q_{i} }} {E^{l} (O_{ij} )} } *\eta_{e} $$
      (12)

      For operation \({O}_{ij}\):, crane loaded waiting energy consumption:

      $$ WE^{l} (O_{ij} ) = Wt_{l} (O_{ij} )*P_{s} $$
      (13)

      Thus, crane loaded waiting carbon emissions:

      $$ WE_{crane}^{l} = \sum\limits_{i = 1}^{n} {\sum\limits_{i2 = 1}^{n} {\sum\limits_{j = 2}^{{q_{i} }} {\sum\limits_{j2 = 1}^{{q_{i} }} {\sum\limits_{k = 1}^{m} {\sum\limits_{{k_{2} = 1}}^{m} {WE^{l} (O_{ij} )*c(k_{i(j - 1)} ,k_{{2_{ij} }} )*d(k_{{2_{i2j2} }} ,k_{{2_{ij} }} )*\eta_{e} } } } } } } $$
      (14)

      Operation \({O}_{ij}\): crane unloaded transportation energy consumption:

      $$ E^{nl} (O_{ij} ) = \varepsilon_{3} \theta_{g} |k_{x} - k_{1x} |{ + }\varepsilon_{3} \theta_{t} |k_{y} - k_{1y} | $$
      (15)

      Operation \({O}_{ij}\): crane unloaded waiting energy consumption:

      $$ WE^{nl} (O_{ij} ) = Wt_{nl} (O_{ij} )*P_{c} $$
      (16)

      Therefore, the total carbon emissions for unloaded crane transportation:

      $$ E_{crane}^{nl} = \sum\limits_{i = 1}^{n} {\sum\limits_{i1 = 1}^{n} {\sum\limits_{j = 2}^{{q_{i} }} {\sum\limits_{j1 = 1}^{{q_{i} }} {E^{nl} (O_{ij} )*b(O_{i1j1} ,O_{ij} )*\eta_{e} } } } } $$
      (17)

      Total carbon emissions for unloaded crane waiting transportation:

      $$ WE_{crane}^{nl} { = }\sum\limits_{i = 1}^{n} {\sum\limits_{i1 = 1}^{n} {\sum\limits_{j = 2}^{{q_{i} }} {\sum\limits_{j1 = 1}^{{q_{i} }} {WE^{nl} (O_{ij} )*b(O_{i1j1} ,O_{ij} )} } } } *\eta_{e} $$
      (18)

      In summary, the total carbon emissions for this stage of crane transportation:

      $$ E_{crane} = E_{crane}^{l} + WE_{crane}^{l} + E_{crane}^{nl} + WE_{crane}^{nl} $$
      (19)
    2. 2.

      Single set transported from single set area to double set area using tow truck:

      $$ E_{a} = 2\sum\limits_{k = m^{\prime} + 1}^{m^{\prime\prime}} {\sum\limits_{i = 1}^{n} {\sum\limits_{j = 1}^{{q_{i} }} {(\varepsilon_{2} + \varepsilon_{4} )\theta_{a} x_{a} \times } } } a_{ij}^{k} $$
      (20)
    3. 3.

      Double set process

      The crane transports the single set from the double set buffer area to the double set pit, then returns to the double set buffer area with unloaded transportation. The carbon emissions for this process are as follows:

      $$ E_{b} = \sum\limits_{k = m^{\prime\prime} + 1}^{m} {\sum\limits_{i = 1}^{n} {\sum\limits_{j = 1}^{{q_{i} }} {[(\varepsilon_{1} + \varepsilon_{3} )(\theta_{s} h_{z} a_{ij}^{k} + \theta_{g} |k_{x} - k_{1x} | + \theta_{t} |k_{y} - k_{1y} |)]} } } $$
      (21)

Integrated optimization model

Manufacturing has always been the most important production goal. Therefore, we will optimize two objectives simultaneously, as shown in Eqs. (22) and (23), where Tmin is the total manufacturing time, and Emin is the carbon emission. Carbon emissions consumed during workshop scheduling mainly consist of machining carbon emissions, single-fitting carbon emissions, and double-fitting carbon emissions. The processing time of a workpiece is composed of the operation time and adjustment time on its corresponding machine.

$$ E_{min} = min(E_{machine} + E_{el} + E_{crane} + E_{a} + E_{b} ) $$
(22)
$$ T_{\min } = \min \{ \max [(Ft_{ij}^{k - 1} + t_{ijk} + st_{ijk} )*a_{ij}^{k} + Wt(O_{ij} )]\} $$
(23)

Constraint conditions:

$${\text{St}}\left({O}_{i\left(j+1\right)}\right)-Ft\left({O}_{ij}\right)\ge 0;$$
(24)
$$\sum_{k=1}^{m}{a}_{ij}^{k}=1;$$
(25)
$${\text{St}}\left({k}_{i+1}\right)-Ft\left({k}_{i}\right)\ge 0;$$
(26)
$${St}_{ij}^{k}+{t}_{ijk}+{st}_{ijk}={Ft}_{ij}^{k};$$
(27)
$${P}_{nl}\left({O}_{i1}\right)={P}_{l}\left({O}_{i1}\right)={P}_{l}\left({O}_{i1j1}\right);$$
(28)
$${P}_{nl}\left({O}_{ij}\right)={P}_{l}\left({O}_{ij}\right)={P}_{l}\left({O}_{i1j1}\right);$$
(29)
$${\text{Ft}}\left({O}_{ij}\right)+{Wt}_{l}\left({O}_{ij}\right)\ge Ft\left({O}_{i2j2}\right);$$
(30)
$$ \sum\limits_{k = 1}^{m} {[Ft_{ij}^{k} - (St_{i(j - 1)}^{k} + t_{ijk} )] \times a_{ij}^{k} } \ge 0 $$
(31)
$$ Ft(O_{{iq_{i} }} ) \ge \sum\limits_{k = m^{\prime}}^{m^{\prime\prime}} {a_{ig}^{k} \times (Ft(O_{{g(q_{i} - 1)}} ) + Wt(O_{{g(q_{i} - 1)}} ) + t(O_{{g(q_{i} - 1)}} ))} $$
(32)

Equation (24) represents the workpiece operation sequence constraint, \({\text{St}}({O}_{i(j+1)})\) is the start time of operation \({O}_{i(j+1)}\), and \(Ft({O}_{ij})\) is the end time of operation \({O}_{i(j+1)}\); Eq. (25) indicates that at the same time, one operation can only be processed by one machine; Eq. (26) states that at the same time, one machine can only process one operation, where \({\text{St}}({k}_{i+1})\) represents the start time of the (i + 1)th process on machine k, and \(Ft({k}_{i})\) represents the end time of the ith process on machine k; Eq. (27) shows that the processing start of the workpiece is not allowed to be interrupted; Eq. (28) states that the first operation of the workpiece does not require crane transportation; Eq. (29) indicates that if the previous and subsequent operations of the same workpiece are processed on the same machine, no transportation is needed; Eq. (30) specifies that the start time of load transportation must begin after the destination machine is free. Constraint (31) refers to the priority relationship of all operations for workpiece i. Constraint (32) indicates that before the crank heating is completed, the corresponding shaft diameter machining is finished and transported to the single-fitting area.

Algorithm flow

This section proposes an intelligent optimization algorithm based on the improved NSGA-III algorithm using MFO to optimize the research problem. Figure 2 shows the algorithm flow of the optimization algorithm. Then, the encoding and decoding methods, as well as the specific implementation of NSGA-III and MFO, are introduced.

Figure 2
figure 2

Algorithm flowchart.

Encoding

The encoding designed in this paper includes the processing sequence of workpieces in the machining workshop and the corresponding processing machines of the machining steps. Suppose a crankshaft needs to be machined, including two curved sections, two necks, one output end, and one free end. The machining steps for each workpiece and the corresponding machining time on each machine are shown in Table 2. The "-" indicates that the machining step cannot be processed on that machine. Workpiece has two identical workpieces \(N_{1} ,N_{2}\), each with four steps. \(N_{{3}} ,N_{{4}}\) are two identical workpieces, each with four steps. \(N_{{5}}\), \(N_{6}\) have three steps.

Table 2 Processing information.

The encoding format of the scheduling task solution is shown in Fig. 3. The first row of numbers in Fig. 3 represents the workpiece number, and the appearance of the workpiece number represents the first machining step of the workpiece. The second appearance represents the second machining step. For example, in Fig. 3, the first machining step of workpiece 3 is performed first, then the second machining step of workpiece 3, followed by the first machining step of workpiece 5. The second row of numbers represents the machine number for the corresponding process, such as the first machining step of workpiece 3 being processed on machine 3 and the second machining step on machine 2.

Figure 3
figure 3

Encoding example diagram.

NSGA-III

Crossover

This paper uses a two-point crossover method to generate offspring individuals. As shown in Fig. 3, two points, \(p(1)\), \(p(2)\), are randomly generated within the length range of the parent encoding. The segments between the two points of parent 1 and parent 2 are exchanged, resulting in the encoding in the middle of the two dashed lines in Fig. 4. At this point, the newly generated encoding may be unreasonable, as shown in the figure, with some repetition and omissions. After adjustment, the offspring 1 and offspring 2 encoding can be obtained, as shown at the bottom of Fig. 4.

Figure 4
figure 4

Crossover diagram.

Mutation

In this study, the insertion method is used for performing mutation operations on the encoding. Firstly, two points, \(w(1)\) and \(w(2)\), are randomly generated within the range of encoding length, as illustrated in Fig. 5. The encoding at position \(w(1)\) is inserted into position \(w(2)\) to create a new offspring individual.

Figure 5
figure 5

Mutation diagram.

Elite selection strategy based on reference point set

To avoid the loss of superior individuals, the offspring population is merged with the parent population after being generated. The top NP chromosomes (assuming the population size is NP) are retained through Pareto non-dominated sorting. Individuals with smaller non-dominated ranks are prioritized to join the new generation St + 1. Most of the time, the number of individuals will exceed NP, while the number of individuals will be less than NP. In this case, an elite strategy based on reference point set is needed to select individuals from Fc + 1.

First, a reference point set needs to be generated. Connect points (0, 1) and (1, 0). Divide the connecting line into several parts using the equal partition method, and the obtained points are the reference points. The lines connecting the origin to the reference points are the reference lines. Then, normalize the two objective values using formula (33) and map the normalized objective function values to the two-dimensional plane. Here, represents the minimum value of each objective in the current population. represents the intercept of the line connecting the extreme points of each objective direction with the coordinate axis. The calculation of the extreme points is shown in formula (34). As shown in Fig. 6, the individual is closest to the reference line of reference point 5, indicating that the individual is related to reference point 5.

$$ f_{i}^{n} ({\rm X}) = \frac{{f_{i} ({\rm X}) - z_{i}^{\min } }}{{a_{i} - z_{i}^{\min } }}\quad {\text{for }}i = 1,2 $$
(33)
$$ ASF(x,w) = \mathop {\max }\limits_{i = 1}^{2} (f_{i} ({\rm X}) - z_{i}^{\min } )/w_{i} \quad w_{i} = (\varepsilon , \ldots ,\varepsilon )^{T} ;\varepsilon = 10^{ - 6} ;w_{i}^{i} = 1 $$
(34)
Figure 6
figure 6

Illustration of correlation between population individuals and reference points.

Ultimately, the steps of the elite selection strategy based on the reference point set are as follows.

  1. 1.

    Count the number of individuals qb related to each reference point.

  2. 2.

    Select the reference point b corresponding to the smallest number of individuals.

  3. 3.

    Check if the current set Fc+1 contains any individuals related to reference point b. If it does, randomly select one of the related individuals to be a member of the offspring population, and \(q_{b} = q_{b} + 1\). Otherwise, remove reference point b from the reference point set.

  4. 4.

    Repeat steps (2) and (3) until the number of individuals in the offspring population reaches NP.

MFO

The inspiration for the Moth-Flame Optimization Algorithm comes from the navigation mechanism of moths. When moths fly at night, they usually guide their flight direction by maintaining the same angle with the moon. Since the distance between the Earth and the moon is very far, this method is feasible. However, in practice, moths can be deceived by artificial light sources. Due to the close distance between moths and artificial light sources, their navigation mechanism leads them to always spiral closer to the light source 30. The Moth-Flame Optimization Algorithm is designed based on the behavior of moths spiraling towards artificial light sources.

$$ M_{i} = S(M_{i} ,F_{j} ) $$
(35)
$$ S(M_{i} ,F_{j} ) = D_{i} *e^{bt} *\cos (2\pi t) + F_{j} $$
(36)

Equation (35) represents the position of each moth relative to the flame, where \(M_{i}\) denotes the i-th moth, \(F_{j}\) represents the j-th flame, and S is the spiral function. The flight path of moths can be simulated through Eq. (36), where \(D_{i}\) denotes the distance from the jth flame to the ith moth, b is a constant defining the logarithmic spiral shape, and t is a random number in the range [− 1, 1] determining the subsequent distance from the moth to the flame. The smaller the t, the closer the moth is to the flame. Equation (37) calculates the distance D. The moths move in a spiral pattern around the flame, allowing the algorithm to explore the search space more thoroughly.

$$ D_{i} = \left| {F_{j} - M_{i} } \right| $$
(37)
$$ N_{{0}} = round\left( {N - l*\frac{N - 1}{T}} \right) $$
(38)

During the iterative process, to improve search efficiency, Eq. (38) provides an adaptive mechanism for the algorithm, where N represents the maximum number of flames, N0 represents the current number of flames, and T represents the maximum number of iterations. This adaptive mechanism enables the number of flames to decrease gradually with each iteration, retaining only the more optimal flames.

figure a

Algorithm MFO.

In this study, a multi-objective optimization model is established to minimize both the maximum manufacturing time and the total carbon emissions. Given that these two optimization objectives exhibit a nonlinear relationship, the paper employs a method to compute the Pareto optimal solution set. Pareto optimality refers to an ideal state of resource allocation where any change cannot improve at least one sub-objective without making any other sub-objective worse.

Case study

Experimental data

This article mainly studies the scheduling problem of machining, single set, and multi-set processes for crankshaft components. The case study in present study is derived from the crankshaft production workshop of Shanghai Marine Crankshaft Co., Ltd. Now, there is a need to produce two types of crankshafts, A and B. Crankshaft A contains nine bends, nine shaft diameters, one output end, and one free end. Crankshaft B contains six bends, six shaft diameters, one output end, and one free end. The gantry crane's horizontal transport speed is 40 m/min, and the vertical transport speed is 5 m/min. The transfer cart's unloaded transport power is 3 kW, the loaded power is 10 kW, and the transport speed is 30 m/min. The gantry crane's standby power is 5 kW, horizontal running power is 20 kW, vertical running power is 30 kW, lifting equipment weight is 6000 kg, and the crane weight is 10,000 kg. The electric energy carbon emission coefficient is 0.6752 kgCO2/Kw h 31. Other relevant workshop information is described in Table 3.

Table 3 Workshop information.

The information pertaining to the workpieces used in the machining process of the two crankshafts is presented in Table 4. The processing of the workpiece encompasses both preparation and working times. It is important to highlight that after undergoing the single set process, the original two workpieces are integrated into a new entity, referred to as the "single set piece". Subsequent multi-set processes are then conducted on this single set piece. Consequently, in Table 4, the processing time for the multi-set process is only annotated subsequent to the bending entry, indicating that the bending and shaft neck do not undergo separate multi-set processes.

Table 4 Workpiece information.

Results and discussions

Algorithm parameter settings

In this section, the algorithm parameters are determined through experiments and by referring to previous research. Based on the scale of the case in this paper, the number of iterations is set to 500. Then, a preliminary experiment is conducted to determine the population size and mutation probability. The population size is set at three levels: 20, 30, and 50, while the mutation probability is set at two levels: 0.6 and 0.2. Since the Pareto front is not sensitive to changes in crossover probability, it is set to 0.6 based on experience.

For the case study, the algorithm is run 10 times sequentially to obtain the non-dominated solution set Pa (a = 1, 2, …, 18). By fixing one parameter, the Pa at different levels of the other parameter for each case is merged to obtain the FE. As shown in Table 5, the probabilities obtained from Pa for each FE are calculated as the result response values. According to Table 5a, regardless of whether the mutation probability is fixed at 0.6 or 0.2, the result response value is the highest when the population size is 50, so the population size is set to 50. When the population size is 50, the result response value is greater with a mutation probability of 0.2, so the mutation probability is set to 0.2.

Table 5 Parameter response values.

Algorithm performance analysis

To validate the performance of the NSGA-III-MFO algorithm, this section compares the optimization results with those of four other algorithms: NSGA-III, NSGA-II, MOEA/D, and MOPSO. The Pareto optimal solutions obtained using different algorithms are shown in Fig. 7. From the figure, we can preliminarily see that the NSGA-III-MFO algorithm has a significant advantage over the other algorithms in solving the problem proposed in this paper.

Figure 7
figure 7

Pareto front of different algorithms.

To further evaluate the performance of the NSGA-III-MFO algorithm, this paper introduces two commonly used evaluation indicators: generational distance (GD) and inverse generational distance (IGD). GD can measure the convergence of the algorithm, while IGD can evaluate the algorithm's extensibility and distribution. The smaller the values of these two indicators, the better the algorithm's performance. The evaluation indicator values for each algorithm are shown in Table 6. The results of Table 6 indicate that the NSGA-III-MFO algorithm has lowest GD and IGD than other algorithms. This means that this NSGA-III-MFO has best performance.

Table 6 Evaluation metric values for each algorithm.

Experimental results

Current research on crankshaft scheduling mainly focuses on its machining stage. However, the single and double jacketing processes in the actual machining process also consume a significant amount of time and generate a large amount of carbon emissions. The single and double jacketing processes and machining interact with each other, so the collaborative scheduling research of crankshaft machining, single and double jacketing processing helps improve crankshaft production efficiency and reduce carbon emissions.

For fairness in comparison, both collaborative scheduling and non-collaborative scheduling use the NSGA-III-MFO algorithm and adopt the same parameters. Similarly, to enhance the reliability of the results, the calculations for non-collaborative scheduling are also run 10 times. The final Pareto front is shown in Fig. 8. From Fig. 8, one solution is chosen from the Pareto front solutions of both collaborative and non-collaborative scheduling, and the corresponding Gantt charts are plotted. Figure 9 shows the solution for the collaborative scheduling of crankshaft machining, single and double jacketing processes. Figure 10 presents the solution obtained by optimizing scheduling for each crankshaft machining stage separately. Comparing Figs. 9 and 10, we can see that collaborative scheduling for crankshaft machining contributes to a better overall process, including machining efficiency and carbon emissions. In addition, Table 7 shows the average values of the final Pareto front, where collaborative scheduling is relatively better in terms of maximum manufacturing time and carbon emissions. Carbon emissions are reduced by approximately 3619.74 kg, and the maximum completion time is also reduced by about 17,637.81 min. Thus, the multi-stage collaborative scheduling of the crankshaft manufacturing process can significantly improve machining efficiency and reduce carbon emissions.

Figure 8
figure 8

Pareto front of cooperative scheduling and non-cooperative scheduling.

Figure 9
figure 9

Gantt chart of cooperative scheduling optimization results.

Figure 10
figure 10

Gantt chart of non-cooperative scheduling optimization results.

Table 7 Average values of pareto frontier.

Conclusions

In order to optimize the production efficiency of crankshaft manufacturing enterprises and further promote the green manufacturing of enterprises, this paper proposes a sustainable collaborative scheduling problem for multi-stage mixed flow shop with transportation processes in crankshaft manufacturing. For this problem, a mixed-integer programming model is established, with the minimization of the maximum completion time and carbon emissions as the optimization objectives. An enhanced NSGA-III heuristic optimization algorithm, utilizing the MFO algorithm, is proposed to solve this mathematical model. The case study demonstrates that the integrated optimization algorithm can effectively solve the multi-objective optimization problem studied in this paper. Compared with the classic optimization algorithms for solving multi-objective optimization problems, such as NSGA-III, NSGA-II, MOEA/D, and MOPSO, the NGSA-III-MFO algorithm shows an absolute advantage in optimization results. In addition, this paper compares the multi-stage optimization collaborative scheduling research and non-collaborative scheduling research for crankshaft manufacturing, and the results show that collaborative scheduling research contributes to a more optimal overall realization of the crankshaft manufacturing process, significantly improving production efficiency and reducing carbon emissions. The results indicate that the annual carbon emissions can reduce about 3.6 ton.

While this study provides meaningful insights, it is not without certain limitations. Future research could concentrate on several key areas to address these shortcomings and enhance the robustness and practicality of the findings.

The model does not currently take into account unexpected situations such as equipment failures, which are a common occurrence in manufacturing processes. Future studies could focus on integrating contingency planning and risk mitigation strategies into the model. This would increase its reliability and ensure that it remains effective even in the face of unforeseen disruptions.

Also, the current model could benefit from the design and implementation of more efficient optimization algorithms. While the existing algorithm demonstrates promising results, there is always room for enhancement. Future work could delve into creating and testing new algorithms that further improve efficiency and reduce computational resources. This, in turn, could lead to more sustainable and efficient manufacturing processes in practice. By focusing on these directions, future research can contribute to a more comprehensive and effective approach to sustainable manufacturing.