Next Article in Journal
Integrated Production–Distribution Planning for Paper Manufacturing Under Fuzzy Uncertainty
Previous Article in Journal
Developing Bio-Inspired Sustainability Assessment Tool: The Role of Energy Efficiency
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

An Improved Fruit Fly Optimization Algorithm for Multi-Objective Scheduling in Hybrid Flow Shops †

School of Mechanical and Electrical Engineering, Wenzhou University, Wenzhou 325035, China
*
Author to whom correspondence should be addressed.
Presented at the 5th International Conference on Advances in Mechanical Engineering (ICAME-25), Islamabad, Pakistan, 26 August 2025.
Eng. Proc. 2025, 111(1), 37; https://doi.org/10.3390/engproc2025111037
Published: 4 November 2025

Abstract

This study proposes an improved Fruit Fly Optimization Algorithm integrated with Simulated Annealing (SA-FOA) for hybrid flow shop scheduling problems with dual objectives of minimizing makespan and total tardiness. The algorithm adopts a three-stage integration strategy to generate high-quality initial populations, surpassing random initialization. During olfactory search, insertion-based neighborhood operations expand search scope, while visual search incorporates simulated annealing acceptance criteria to escape local optima. Validation employs three scalable instances, comparing SA-FOA against basic FOA and classical scheduling rules. Experimental results demonstrate significant superiority in Inverted Generational Distance (IGD), Non-dominant rate (NR), and Convergence Matrix (C-matrix metrics), highlighting enhanced convergence, distribution, and diversity. Notably, performance advantages amplify with problem scale growth.

1. Introduction

With the advancement of economic globalization, modern manufacturing systems are facing dual pressures of small-batch customization and rapid delivery [1]. Traditional Flow Shop Scheduling (FSP), characterized by rigid linear process constraints and single-machine configurations, fails to meet the flexible production demands of multi-variety and variable-batch manufacturing [2]. Against this backdrop, Hybrid Flow Shop Scheduling (HFSP) has emerged as a research focus in both industrial and academic communities due to its flexible production capabilities [3]. As an extension of classical FSP, HFSP is distinguished by multiple parallel machines at each processing stage, requiring joint optimization of job sequencing and machine assignment.
In the field of hybrid flow shop scheduling, Cheng et al. [4] investigated single-objective batch scheduling problems in flow shops, designing a simulation-based simulated annealing algorithm. Zhong et al. [5] investigated scheduling algorithm effectiveness within two-stage no-wait hybrid flow shop systems, which are defined by parallel machines at each stage and flexible inter-stage transitions in the production process. Gong et al. [6] explored the impact of worker selection on HFSP, developing a novel variable neighborhood search algorithm alongside a hybrid evolutionary algorithm (Hybrid Evolutionary Algorithm, HEA) incorporating multiple innovative operators to solve this problem. Zeng et al. [7] developed a discrete fruit fly optimization algorithm (DFFO) for the no-idle permutation flow shop scheduling problem, aiming solely at minimizing the makespan.
Many studies have worked on improving metaheuristic algorithms for hybrid flow shop scheduling with unrelated machines. However, most of the updated Fruit Fly Optimization Algorithms (FOAs) only deal with one objective. They often focus only on reducing makespan and ignore how to handle the trade-off with total tardiness. Traditional multi-objective approaches suffer from high computational complexity and lack dynamic weight adjustment mechanisms. To address these gaps, this paper proposes an SA-FOA for solving the HFSP with objectives of minimizing makespan and total tardiness. The SA-FOA adopts a three-stage integration strategy to generate high-quality initial populations, outperforming random initialization. In the olfactory search stage, the algorithm expands the solution space via insertion-based neighborhood searches, and the visual search phase adopts simulated annealing to mitigate local optima trapping.

2. Description of the Problem

The problem can be described as follows: a hybrid flow shop scheduling problem involving n jobs J = { J 1 , J 2 , , J n } to be processed on m sequential operations. Each job follows an identical routing sequence, and each operation comprises M ( k ) 1 unrelated parallel machines, with at least one operation having multiple machines available. The processing time of job i on machine j at operation k is represented as p i , j ( k ) , and the due date for job i is represented as d j . The decision variables involve determining the processing sequence of n jobs and the assignment of each job to machines across m operations. The optimization objectives aim to minimize the makespan (maximum completion time) and total tardiness time. According to the three-field notation [8], the problem is represented as F m / p r m u , d j , p i , j ( k ) / C max , T T , where F m represents a hybrid flow shop with  m processing stages,   p r m u denotes the permutation constraint on job processing sequences, d j denotes the due date of job J i , p i , j ( k ) represents the processing time of job i on machine  j at stage k , C m a x is the makespan and T T is the total tardiness.
The problem is formulated based on the following assumptions:
  • Each job is allowed to run on any machine that is ready to handle operation k;
  • Processing times vary across different machines within the same operation for the same job;
  • All jobs follow an identical routing sequence that requires processing through m sequential operations;
  • A machine can process only one job at a time, and the task cannot be interrupted once started.

3. Simulated Annealing—Fruit Fly Optimization Algorithm

Due to the complex combinatorial structure and multi-objective conflicts inherent in hybrid flow shop scheduling problems with unrelated parallel machines (HFSPs), the solution space exhibits exponential growth. To address the optimization objectives of this multi-objective problem, an improved Fruit Fly Optimization Algorithm integrating a three-stage integration strategy and simulated annealing (SA-FOA) is proposed. Compared to the basic FOA, SA-FOA employs a hybrid initialization strategy to generate high-quality initial solutions. In the olfactory search phase, the algorithm explores new regions via insertion-based neighborhood searches, and the visual search phase employs simulated annealing to avoid getting stuck in local optima. The flowchart of the proposed SA-FOA is illustrated in Figure 1.

3.1. Encode Figures

The Hybrid Flow Shop Scheduling Problem (HFSP) requires solving two sub-problems: job sequencing and machine assignment. An n × ( m + 1 )  matrix encoding is adopted, where n denotes the number of jobs. The first row represents the processing sequence of jobs, while rows 2 to m + 1 specify the machine assignments for each job across m operational stages.
To illustrate this encoding scheme, consider a scheduling problem with six jobs and three stages, where Stage 1 comprises 2 machines, Stage 2 consists of 3 machines, and Stage 3 also includes 3 machines. As showed in Figure 2.

3.2. Initial Solution Generation

High-quality initial populations can significantly enhance algorithmic performance by providing search starting points in proximity to optimal solution regions, thereby effectively reducing the search space and enabling sub-populations to rapidly converge towards potential optima; simultaneously, well-maintained initial diversity serves to prevent premature convergence and diminishes the required number of iterations. The SA-FOA adopts a three-stage integration strategy for generating initial solutions, which sequentially encompasses initial job sequencing, machine assignment, and job re-sequencing, with specific implementation steps as follows.
  • Considering the processing times of each job’s operations across different machines and the job due dates, an initial sequencing is generated. Calculate the sum of minimum processing times for each job across all operations, with the following formulation:
    P i = k = 1 m min j M k ( p i , j ( k ) )
    where m represents the total number of operations, M k represents the machine set for the j-th machine at the k-th operation, and p i , j ( k ) indicates the processing time of job i on the j-th machine during the k-th operation. Based on these definitions, normalization is performed by incorporating job due dates, followed by a weighted summation of the time-related metrics with due dates to derive priority parameters for each job. Jobs are then sequenced according to these priority parameters to generate an initial job sequence with favorable quality.
  • Based on the processing times of jobs across different machines, a roulette wheel selection mechanism is employed to assign machines for each operation. Assume that a job i has M ( k )  alternative machines available for operation k, with its processing times on these machines given by { p i , 1 ( k ) , p i , 2 ( k ) , , p i , j ( k ) } . The fitness value of each machine is then calculated according to the processing time p i , j ( k )
    f i = 1 p i . j ( k )
    The fitness values of machines are normalized into probabilities p i . These probabilities form a distribution where the sum equals 1, ensuring that machines with shorter processing times are assigned higher probabilities  p i , thereby increasing their likelihood of being selected. Based on this probability distribution, machine selection is performed using the roulette wheel selection mechanism. Consequently, this probabilistic selection strategy effectively enhances the probability of generating superior solutions.
  • An improved NEH [9] algorithm optimizes the initial job sequence by ranking jobs in descending order of total processing time and then inserting each job into the position that minimizes the objective function across all candidate positions in the current partial sequence. A neighborhood perturbation mechanism further refines the sequence by randomly removing and globally reinserting preceding/succeeding jobs (or combinations) to escape local optima.

3.3. Olfactory Foraging Phase

During the odor-based foraging process, each fruit fly examines the central area and generates SN neighboring solutions based on its current position in the solution space. To enhance global search capabilities, an efficient insertion-based neighborhood operator is designed. This operator comprises two subprocesses: destruction and construction (illustrated in Figure 3). By destructing and reconstructing existing solutions, the operator explores novel solution spaces, thereby improving global search performance.
During the destruction phase, several jobs are randomly picked and taken out of the current sequence. After that, during reconstruction, these removed jobs are placed back one by one into all possible positions within the partial sequence, following the order in which they were removed. The goal is to rebuild a full job sequence that leads to the shortest possible total completion time. Simultaneously, a mild perturbation mechanism is introduced to the machine assignment: with a 30% probability, the machine allocation for a randomly selected job–operation pair is exchanged with another job’s assignment on the same operation. This joint operation simultaneously modifies both the job sequence and machine configuration, as the machine swap not only alters the processing order of jobs but also adjusts their machining times and subsequent scheduling outcomes, thereby optimizing the overall solution.

3.4. Visual Search Phase

During vision-based foraging, it is essential to not only guide the swarm toward potentially promising locations but also continuously explore the surrounding areas through depth-search operators. To address the optimization requirements of objectives C m a x and T T , the neighborhood search operators proposed in Table 1 are specifically designed.
The simulated annealing acceptance criterion is simultaneously applied during the vision-based foraging phase. Inspired by the physical annealing process in metallurgy, this mechanism addresses local optima trapping in optimization algorithms. It operates by initially permitting suboptimal solutions with higher probability and then gradually reducing this acceptance probability over iterations. The simulated annealing mechanism enables SA-FOA to maintain sufficient exploration capability during global search while progressively refining solution quality in later stages, ultimately converging toward the global optimum.
Specifically, when the best neighboring solution surpasses the current candidate, it becomes the new reference point, prompting all fruit flies in the population to shift toward this position. If not, a random value rand is drawn from the interval [0,1] to decide the next action. Subsequently, if the generated random number falls below the acceptance probability η, the most promising neighboring solution generated from the current candidate is accepted under a certain probability. This acceptance probability, denoted as η, is defined as follows:
η = e C m a x Π C m a x ( Π ) T e m p
Here, Π represents the candidate solution. Temp denotes the ambient temperature, calculated by the formula T e m p = t · i = 1 n j = 1 m p i , j / ( 10 · m · n ) . In this formula, T is a predefined constant, as shown in Equation (3). If C m a x ( Π ) approaches C m a x ( Π ) , then η 1 . Therefore, Π can be accepted with a high probability. On the other hand, if solution Π is significantly worse than solution Π , it will be easily discarded since η 0 . The acceptance rule is designed to keep the search focused on promising regions by preventing large deviations from the current solution area.

4. Design of Experiments and Analysis of Outcomes

4.1. Design of Experiments

To assess the performance of SA-FOA, it was compared with the original Fruit Fly Optimization (FOA) algorithm and two classical scheduling heuristics: Shortest Processing Time (SPT) and Earliest Due Date (EDD). The experimental environment was configured on an AMD Ryzen 5 4600H processor with Radeon Graphics (3.00 GHz), and the implementation was developed in Python 3.7.
The specific parameter ranges are configured as follows: the number of jobs (n) takes values of 20, 50, and 100; the number of stages (k) is set to 3; the processing time for each job–operation pair is uniformly distributed in the range [1,99]; the due date for each job is uniformly distributed in the range [250,300]; the number of machines available per stage is uniformly distributed in the range [1,4].

4.2. Experiments and Discussion

In order to measure the algorithm’s effectiveness, three commonly used multi-objective optimization metrics are employed: Inverted Generational Distance (IGD), which quantifies how closely the solution set approximates the true Pareto front, reflecting the convergence and distribution quality of the algorithm; Non-dominant Rate (NR), which indicates the share of non-dominated individuals within the solution set, serving as an indicator of solution set quality; and the Convergence Matrix (C-matrix), a matrix-based comparative metric used to assess the overall dominance relationship between different algorithms. For brevity, these metrics are referred to as IGD, NR, and C(A,*), respectively, in the subsequent sections.
This section compares the proposed SA-FOA with the basic FOA, as well as the SPT and EDD scheduling rules. Each algorithm was independently executed 10 times on problem instances. Specifically, experiments evaluated algorithm effectiveness by comparing the performance of SA-FOA against the basic FOA, SPT, and EDD scheduling rules across problem instances of varying scales. During each run, algorithms were executed multiple times independently to ensure result reliability, with performance measured using average IGD, NR, and C(A,*). Experimental data are presented in Table 2.
For small-scale scheduling problems involving 20 jobs, the SA-FOA demonstrates statistically significant superiority over the basic Fruit Fly Optimization (FOA) algorithm and classical scheduling rules (SPT and EDD) in terms of both IGD and NR metrics, indicating its solution set exhibits closer approximation to the true Pareto front and encompasses a greater number of non-dominated solutions. Furthermore, SA-FOA achieves the optimal performance in the C(A,*) metric, providing additional evidence of its enhanced global exploration capabilities.
For medium-scale scheduling problems involving 50 jobs, the SA-FOA consistently maintains its leading performance across all evaluation metrics, with particularly remarkable advantages in IGD and NR indicators. This demonstrates that SA-FOA not only obtains high-quality multi-objective solution sets but also ensures superior solution set balance and diversity. Under this scale, neither the SPT nor EDD scheduling rules can generate non-dominated solutions, while the basic FOA exhibits significantly inferior performance compared to SA-FOA.
For complex large-scale scheduling problems involving 100 jobs, the SA-FOA consistently demonstrates superior performance across all three evaluation metrics, achieving the lowest IGD value and highest NR value and attaining a C(A,*) metric score of 0.91. These results comprehensively validate SA-FOA’s robustness and optimization superiority in large-scale search spaces. In contrast, the basic FOA exhibits a significantly higher IGD value of 5164.02 under the same scale, indicating substantial deterioration in solution quality and manifesting severe premature convergence issues.
It is worth noting that the NR (non-dominated ratio) values for the SPT and EDD scheduling rules are all zero across all problem sizes. This outcome stems from the inherent limitations of heuristic-based rules, which are designed to generate only a single deterministic solution rather than a diverse set of candidate solutions. Consequently, these methods exhibit extremely low non-dominated rates in multi-objective optimization scenarios, as their outputs rarely contribute to the Pareto front. In contrast, metaheuristic algorithms like SA-FOA are capable of exploring a wide solution space and generating a variety of non-dominated solutions, which explains the significant differences observed in NR values.
In conclusion, the proposed SA-FOA demonstrates robust convergence properties and maintains solution set diversity across the entire spectrum of problem scales, with particularly significant advantages observed in medium- and large-scale instances of hybrid flow shop scheduling problems. These characteristics render the algorithm particularly suitable for complex multi-objective production scheduling environments where both solution quality and diversity are critical requirements.

5. Conclusions

This study addresses the multi-objective optimization requirements in hybrid flow shop scheduling problems (HFSPs) by proposing an improved Fruit Fly Optimization Algorithm integrated with simulated annealing (SA-FOA). The algorithm incorporates a three-stage integration strategy during initial solution generation, employs insertion-based neighborhood operations in the olfactory search phase, and utilizes simulated annealing acceptance criteria in the visual search phase. Comparative experiments across scheduling instances of varying scales demonstrate that SA-FOA consistently outperforms the basic Fruit Fly Optimization Algorithm (FOA) and two classical scheduling rules (SPT and EDD) across all evaluation metrics, including IGD, NR, and C-matrix coverage. Notably, SA-FOA exhibits superior stability and optimization capabilities for large-scale problems. The results validate the algorithm’s capability to tackle hybrid flow shop scheduling problems involving multiple objectives.

Author Contributions

Conceptualization, Z.S. and Y.C.; methodology, Z.S. and Y.C.; software, Z.S.; validation, Z.S. and Y.C.; formal analysis, Z.S. and Y.C.; writing—review and editing, Z.S. and J.M.; visualization, Z.S.; supervision, Y.C.; funding acquisition, J.M. All authors have read and agreed to the published version of the manuscript.

Funding

This work has been funded by the Scientific Research Project of Wenzhou City, Grant Nos. G20240020 and G2023036.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data that support the findings of this study are available from the corresponding author upon reasonable request.

Acknowledgments

All individuals included in this section have consented to the acknowledgement.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Wang, J.J.; Wang, L. A cooperative memetic algorithm with learning-based agent for energy-aware distributed hybrid flow-shop scheduling. IEEE Trans. Evol. Comput. 2021, 26, 461–475. [Google Scholar] [CrossRef]
  2. Lin, S.W.; Cheng, C.Y.; Pourhejazy, P.; Ying, K.C.; Lee, C.H. A new benchmark algorithm for hybrid flow shop scheduling with identical machines. Expert Syst. Appl. 2021, 183, 115422. [Google Scholar] [CrossRef]
  3. Guan, Y.; Chen, Y.; Gan, Z.; Zou, Z.; Ding, W.; Zhang, H.; Liu, Y.; Ouyang, C. Hybrid flow-shop scheduling in collaborative manufacturing with a multi-crossover-operator genetic algorithm. J. Ind. Inf. Integr. 2023, 36, 100514. [Google Scholar] [CrossRef]
  4. Cheng, L.; Tang, Q.; Zhang, L. Mathematical model and adaptive simulated annealing algorithm for mixed-model assembly job-shop scheduling with lot streaming. J. Manuf. Syst. 2023, 70, 484–500. [Google Scholar] [CrossRef]
  5. Zhong, W.; Shi, Y. Two-stage no-wait hybrid flow shop scheduling with inter-stage flexibility. J. Comb. Optim. 2018, 35, 108–125. [Google Scholar] [CrossRef]
  6. Gong, G.; Chiong, R.; Deng, Q.; Han, W.; Zhang, L.; Lin, W.; Li, K. Energy-efficient flexible flow shop scheduling with worker flexibility. Expert Syst. Appl. 2020, 141, 112902. [Google Scholar] [CrossRef]
  7. Zeng, F.; Cui, J. Improved Fruit Fly Algorithm to Solve No-Idle Permutation Flow Shop Scheduling Problem. Processes 2025, 13, 476. [Google Scholar] [CrossRef]
  8. Graham, R.L.; Lawler, E.L.; Lenstra, J.K.; Kan, A.R. Optimization and approximation in deterministic sequencing and scheduling: A survey. Ann. Discrete Math. 1979, 5, 287–326. [Google Scholar]
  9. Kalczynski, P.J.; Kamburowski, J. An improved NEH heuristic to minimize makespan in permutation flow shops. Comput. Oper. Res. 2008, 35, 3001–3008. [Google Scholar] [CrossRef]
Figure 1. SA-FOA Flowchart.
Figure 1. SA-FOA Flowchart.
Engproc 111 00037 g001
Figure 2. Illustrative Example of Encoding Scheme.
Figure 2. Illustrative Example of Encoding Scheme.
Engproc 111 00037 g002
Figure 3. Insertion-based Neighborhood Operator.
Figure 3. Insertion-based Neighborhood Operator.
Engproc 111 00037 g003
Table 1. Neighborhood search operators.
Table 1. Neighborhood search operators.
Neighborhood Search Scheme
Job sequencingSelect the job with the maximum tardiness time and swap its position with the adjacent preceding job
Select a sequence of consecutive delayed jobs and insert them as a block into an earlier processing position
Machine selectionSelect the job with the longest completion time in the current schedule and reassign machines for all its operations
Select the machine with the highest current load and reallocate the jobs in the processing queue to other machines.
Table 2. Comparison of algorithm results.
Table 2. Comparison of algorithm results.
SizeSA-FOAFOASPTEDD
IGDNRC(A,*)IGDNRC(A,*)IGDNRC(A,*)IGDNRC(A,*)
n = 2010.620.750.6463.960.250.53466.4800.10366.8600.16
n = 5055.60.820.7291.560.180.415191.1200.073323.1900.12
n = 1003.80.890.915164.020.110.2916,907.84008739.8700.05
Note: In the figure, C(A,*) represents the average matrix value of algorithm A compared to the other three algorithms *.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Shang, Z.; Chen, Y.; Mumtaz, J. An Improved Fruit Fly Optimization Algorithm for Multi-Objective Scheduling in Hybrid Flow Shops. Eng. Proc. 2025, 111, 37. https://doi.org/10.3390/engproc2025111037

AMA Style

Shang Z, Chen Y, Mumtaz J. An Improved Fruit Fly Optimization Algorithm for Multi-Objective Scheduling in Hybrid Flow Shops. Engineering Proceedings. 2025; 111(1):37. https://doi.org/10.3390/engproc2025111037

Chicago/Turabian Style

Shang, Ziyi, Yarong Chen, and Jabir Mumtaz. 2025. "An Improved Fruit Fly Optimization Algorithm for Multi-Objective Scheduling in Hybrid Flow Shops" Engineering Proceedings 111, no. 1: 37. https://doi.org/10.3390/engproc2025111037

APA Style

Shang, Z., Chen, Y., & Mumtaz, J. (2025). An Improved Fruit Fly Optimization Algorithm for Multi-Objective Scheduling in Hybrid Flow Shops. Engineering Proceedings, 111(1), 37. https://doi.org/10.3390/engproc2025111037

Article Metrics

Back to TopTop