1. Introduction
Assembly is the final stage in the product production cycle, and assembly quality largely determines the final quality of the product. Assembly precision is one of the key indicators for evaluating product assembly quality [
1,
2]. Driven by modern manufacturing models and technologies such as concurrent engineering, computer-integrated manufacturing systems, and virtual manufacturing, intelligent assembly has become one of the core drivers of manufacturing development. Virtual assembly, as the core component in achieving intelligent assembly, holds significant value in enabling low-cost, high-efficiency, and short-cycle completion of component assembly and forming [
3]. This approach has been demonstrated to substantially enhance the quality and efficiency of product design and manufacturing.
Assembly sequence planning (ASP) represents a pivotal technological advancement within the domain of virtual assembly research, with its fundamental objective being the formulation of feasible part assembly sequences within a virtual environment [
4]. Assembly sequence planning is an NP-hard problem that is prone to combinatorial explosion as the number of parts increases [
5,
6,
7]. Therefore, researchers typically use intelligent optimization algorithms to solve this problem.
Existing research has primarily focused on methods based on heuristic and intelligent optimization algorithms [
8,
9]. Common methods include particle swarm optimization, genetic algorithms, and ant colony optimization [
10]. Bonneville et al. [
11] were the first to introduce genetic algorithms into the field of assembly sequence planning, achieving automatic optimization of assembly sequences. Subsequently, Chica et al. [
12] applied the ant colony optimization algorithm to the assembly sequence planning process with a view to enhancing search efficiency and solution quality. Saeed et al. [
13] employed an optimization-based method to address the problem of estimating assembly sequence execution times. Sheng et al. [
14] employed a Symbiotic Organism Search (SOS) algorithm combined with a diversification strategy to address feasibility constraints and cost optimization in assembly sequence planning. Hong Yu et al. [
15] conducted a comparative analysis of the performance of particle swarm optimization and genetic algorithms in assembly sequence planning, thereby verifying the advantages of the particle swarm algorithm in terms of convergence speed and global search capability. While these methods perform well in terms of computational efficiency, their search process relies on randomness, making them prone to getting stuck in local optima under complex constraints [
16].
To address these issues, some scholars have proposed improved or hybrid algorithms. Liang Lifen et al. [
17] incorporated a chaotic search mechanism into the particle swarm optimization algorithm to enhance its ability to escape local optima. Ding Yujin et al. [
18] employed a modified particle swarm optimization algorithm—featuring chaotic initialization, nonlinear inertial weights, and asymmetric learning factors—to address the combinatorial explosion and local optima problems. Wan et al. [
19] employed a multi-optimal genetic algorithm combined with a flexible programming method for assembly sequencing to address the issue that assembly sequencing typically yields only a single optimal solution, whereas actual production requires flexible adjustments to the sequence. Huang Fengyun [
20] used a hybrid strategy involving alternating iterations of the Imperial Competition Algorithm and the genetic algorithm. Zhang et al. [
21] employed a hybrid SOS-PSO algorithm to address the issues of the algorithm getting stuck in local optima and parameter sensitivity in assembly sequence planning. Mutale et al. [
22] used a hybrid Particle Swarm-Based Bacterial Foraging Optimization (PSBFO) algorithm to solve the assembly sequence. Ju et al. [
23] employed a genetic-greedy combinatorial algorithm to address the combinatorial explosion and local optima problems in the sequence planning of cabin assembly for large cruise ships. In addition to heuristic algorithms for determining assembly sequences, there are also model-based methods for determining assembly sequences. While these methods have alleviated the local optimum problem to some extent, they still primarily focus on algorithmic optimization rather than reducing the size of the solution space by modeling actual operating conditions.
In addition, some studies have attempted to incorporate graph models or decision models into assembly sequence planning. Nagpal and Mehr [
24] adopted a sequential decision-making framework that combines dynamic programming, a graph-search-based assembly planner, and a deep Q-network to address the combinatorial explosion and constraint satisfaction problems in robotic assembly sequence planning. Chen et al. [
25] employed a parallel assembly sequence planning method that combines a graph model with ant colony optimization to address the issues of low efficiency and dependence on an initial feasible sequence in the assembly sequence planning of complex products. CHEN YANG et al. [
26] employed interval dynamic modeling, non-probabilistic time-varying reliability constraints, and multi-objective optimization methods to solve the sequential planning problem for the in-orbit assembly of large-scale space structures under conditions of limited data. While these methods can improve the efficiency of solutions to some extent, they usually prioritize geometric feasibility or assembly costs as their main optimization objectives. Since assembly accuracy predictions are not incorporated into the sequence generation decision-making process, it is difficult to ensure that the final assembly meets design requirements in terms of accuracy.
Assembly accuracy is a key factor determining the performance of precision mechanical products. Current methods for predicting assembly accuracy primarily include mathematical modeling and analysis, error propagation and stochastic simulation, digital twins and data-driven approaches, as well as model reduction and accuracy decomposition. For example, Yang et al. [
27] employed a method based on Isogeometric Analysis (IGA) and Non-Uniform Rational B-Splines (NURBS) to address the challenge of accurately predicting the coupled effects of non-ideal surface topography and part deformation in precision mechanical assemblies. Li et al. [
28] utilized a virtual assembly method based on the reconstruction of measured surface topography, employing three matching strategies—high precision, high efficiency, and high yield—to address the challenges of assembly precision prediction and control. Janssen et al. [
29] employed a modular order-reduction method based on relative modal importance and robustness analysis, decomposing assembly accuracy requirements top-down into component accuracy requirements, thereby resolving the issues of redundancy or insufficiency in traditional modal synthesis methods caused by neglecting inter-component coupling. These methods offer excellent geometric representation and deformation analysis accuracy; however, they place a strong emphasis on geometric–physical modeling, resulting in relatively high overall computational complexity.
To address these shortcomings, Zhao et al. [
30] employed a method combining rigid–flexible coupling and a multidimensional vector loop to analyze assembly deformation deviations through equivalent analysis and establish a multi-source deviation propagation model, thereby resolving the issue of inaccurate assembly accuracy predictions caused by the neglect of deformation in weakly rigid components. Chen et al. [
31] utilized a method based on error propagation and stochastic simulation to address the discrepancy between on-site assembly accuracy and design specifications resulting from the randomness of component manufacturing errors. However, the methods described above struggle to capture the dynamic changes that occur during the assembly process. For this reason, Lv et al. [
32] employed a digital twin-driven dual-closed-loop optimization mechanism to construct a four-layer reference model comprising physical entities, virtual entities, twin data, and services, thereby resolving the difficulty of precision control during the assembly of complex products. Yi et al. [
33] employed a digital twin-driven method for multi-source data fusion and error propagation analysis, resolving the issue of prediction inaccuracies caused by multidimensional error coupling in the high-precision assembly of complex products.
However, current assembly accuracy predictions primarily rely on measured data or complete geometric models, making it difficult to conduct them efficiently during the design phase, which results in accuracy issues being identified only at a later stage [
34]. Zheng et al. [
35] propose a method for planning the assembly sequence of complex products, which is based on an improved teaching–learning optimization algorithm. This method uses variable-step adaptive interference analysis to quickly verify the feasibility of assembly and automatically construct dimensional tolerance chains. Using cumulative assembly accuracy as the objective function and leveraging the improved algorithm’s global optimization capabilities, the method achieves highly precise optimization solutions for the assembly sequences of complex products. Building on this research, the present study further expands the optimization objectives to conduct multi-objective optimization that balances cumulative assembly accuracy and efficiency comprehensively. It integrates assembly accuracy prediction directly into the assembly sequence generation process, proactively mitigating tolerance accumulation at this stage. Additionally, it presents proprietary assembly sequence simulation and analysis software that enables the visual verification of sequence proposals and full-process simulation analysis. A comparison of our proposed method with those in the literature is shown in
Table 1.
Traditional assembly sequence planning often treats accuracy evaluation as a post hoc step, failing to mitigate tolerance accumulation proactively during sequence generation. Furthermore, existing methods often fail to fully account for real-world operational constraints during the assembly precedence modeling phase. This results in assembly sequences that may include parts that do not come into contact with each other, thereby compromising the physical feasibility and practicality of the assembly process. Currently, there is no integrated simulation software that can combine interference detection, the automatic extraction of assembly information matrices, modeling of assembly precedence relationships, sequence planning, simulation animation generation, and assembly accuracy calculation. This makes it difficult to achieve rapid closed-loop verification from product models to feasible, high-precision sequences. To address these issues, we propose a drive-based planning method that integrates assembly accuracy prediction directly into the sequence generation process. First, during the assembly priority modeling phase, operational constraints are considered. An assembly priority graph is then constructed based on the assembly information matrix in order to identify base components. Dismantlability verification is incorporated into the disassembly process to prevent isolated parts being created with no contact, thereby enabling feasibility constraints to be screened for in advance. Secondly, an improved greedy topological sorting algorithm is proposed that incorporates assembly accuracy prediction as a key constraint in the objective function. This enables the generation of sequences that consider geometric feasibility, assembly efficiency and tolerance accumulation control simultaneously. Additionally, the accuracy prediction model merges symmetric parts to reduce the search space. Finally, a corresponding virtual assembly simulation system was developed to achieve integrated functionality ranging from interference detection to sequence generation, simulation animation, and accuracy calculation. This approach moves away from a post hoc accuracy evaluation model, enabling the generation of assembly sequences driven by the synergy of accuracy and efficiency.
The remainder of this paper is structured as follows:
Section 1 reviews the relevant literature, analyzes the shortcomings of existing methods for predicting assembly accuracy and sequence planning, and introduces the method we propose.
Section 2 constructs a part relationship matrix through secondary development of Inte3D and interference checking to model assembly priority relationships. We address the issue that current algorithms used for solving assembly sequences search directly across the entire solution space and lack feasibility constraints. In
Section 3, a predictive model for assembly accuracy is established. This is achieved by constructing error propagation relationships based on the rotator model and coordinate system transformations. Statistical calculations are also performed using Monte Carlo simulation. This approach characterizes error accumulation during assembly and provides constraints for optimizing the assembly sequence.
Section 4 incorporates assembly accuracy prediction into an improved topological sorting algorithm to generate a comprehensively optimized assembly sequence by incorporating assembly accuracy predictions at an earlier stage, thereby addressing the shortcoming of traditional assembly sequence planning, which overlooks the impact of accuracy. In
Section 5, we construct a comprehensive evaluation function to assess the quality of the assembly sequence.
Section 6 introduces the simulation software developed for this purpose, which enables the fully automated generation of assembly sequences.
Section 7 validates and evaluates the performance of the optimized sequence through specific case studies. Finally, the entire work is summarized.
4. ASP Based on Improved Topological Sorting
In the field of large-scale network topological sorting, the Kahn algorithm offers the advantage of efficient, quantifiable analysis thanks to its iterative, in-degree-based topological sorting mechanism. Since assembly sequence planning is essentially a directed graph scheduling problem driven by component-priority constraints, applying topological sorting algorithms to assembly sequence planning enables efficient solutions while ensuring the feasibility of assembly priority constraints. The algorithm proposed is an improved version of the classic Kahn topological sorting algorithm. The Kahn algorithm generates a topological sequence by iteratively removing nodes with in-degree zero; however, its selection strategy is arbitrary and cannot optimize assembly performance. Our contributions are twofold: (1) introducing an objective function during the node selection phase to achieve greedy optimization; (2) embedding an assembly accuracy prediction model into the objective function, enabling the algorithm to simultaneously optimize assembly accuracy, tool change counts, and direction change counts while satisfying assembly precedence relationships. The proposed method takes into account several constraints: (1) geometric feasibility constraints, i.e., restrictions on the assembly sequence of parts defined by assembly precedence relationships; (2) assembly efficiency constraints, including minimizing the number of tool changes and minimizing the number of changes in assembly direction; (3) assembly accuracy constraints, which ensure that the final assembly accuracy meets design requirements through an error propagation model. The algorithm performs multi-objective optimization on the latter two types of constraints while satisfying the first type of constraint.
4.1. Generating an Assembly Sequence Diagram
In the proposed method for determining assembly sequences, the assembly precedence graph serves as the foundation for topological sorting and the generation of feasible sequences. This section presents a standardized method for generating an assembly precedence graph from the assembly precedence matrix. The assembly precedence matrix obtained in
Section 2 is processed to yield the assembly precedence graph. An assembly precedence graph is a graph-theoretic model used to express assembly sequence constraints. This graph consists of nodes and directed edges, where nodes represent parts to be assembled, and directed edges indicate assembly precedence relationships between parts. It is defined as G = (V, O), where the set of nodes is denoted as V[G], and the set of directed edges is denoted as O[G], where
, with
representing a part. In O[G], the pair
represents an assembly precedence relationship, indicating a directed edge from
to
, where
and
correspond to the source and destination vertices of the directed edge, respectively.
The steps for constructing a directed graph are as follows: First, based on the number of parts n, mark n nodes in the abstract set; next, traverse the elements of the assembly precedence matrix AP. Since diagonal elements do not generate edges, they are ignored. If an element , draw a directed edge from node to node . Traverse all elements and place them into the set of directed arcs O[G]. If the same pair of directed edges appears more than once, retain only one; finally, all nodes and edges together form the assembly priority graph.
As an example: Suppose the assembly precedence matrix is as follows:
From the matrix, we see that
; so,
. Similarly,
. The assembly sequence diagram is shown in
Figure 3. In the figure, 1, 2, 3, and 4 represent Part 1, Part 2, Part 3, and Part 4, respectively.
4.2. Objective Function Establishment
Assembly Sequence Redirection: A higher number of assembly sequence redirections indicates frequent changes in assembly orientation during the process, reducing assembly efficiency and manufacturability.
For an assembly sequence
that satisfies geometric feasibility, the corresponding assembly directions are
. The function defining assembly sequence reorientation is defined as follows:
where n is the total number of parts in the assembly sequence.
Assembly Tool Aggregation: The greater the assembly tool aggregation, the more frequently tool changes are required, resulting in higher assembly time costs.
Given an assembly sequence
, where the corresponding assembly tools are
, the function defining the assembly tool aggregation for the sequence is defined as follows:
where n is the total number of parts in the assembly sequence.
Assembly Accuracy Constraint Function: To quantify the impact of error propagation on system accuracy during assembly, we establish an assembly accuracy objective function based on the Monte Carlo simulation results. Through multiple random perturbations of geometric elements along the error propagation path and iterative calculations, statistical characteristic values for assembly accuracy metrics are obtained. The assembly accuracy objective function primarily relies on the mean error and range as key parameters. The mean error reflects the overall precision level of the assembly sequence, while the range characterizes the fluctuation range of the error distribution. The objective function is defined as follows:
denotes the mean error of sequence S,
denotes the range, reflecting the fluctuation range of the data, and
are weighting coefficients, where
. In practical simulations, the mean is more widely applicable, whereas the range is less robust. Based on engineering handbooks and expert recommendations, we select the system default values
and
.
After obtaining the initial assembly sequence, a greedy algorithm is employed to optimize the assembly sequence. During the optimization process, the corresponding solution is selected as the optimal scheme based on the criterion of maximizing the objective function [
43]. The objective function F is defined by Equation (13):
In the formula, , , represent the weights corresponding to these three indicators. The specific values of these weights can be determined by process designers or users based on the actual product characteristics. In the simulation software, designers can set these values through a dedicated dialog box; the system default values are W1= W2 = 0.2 and W3= 0.6. This weighting scheme is based on the analytic hierarchy process and engineering experience.
Based on the initial assembly sequence obtained, parallel parts are selected greedily according to the aforementioned objective function. Through this approach, the greedy algorithm makes the optimal choice under the current circumstances at each step. This strategy enables locally optimal selections to eventually accumulate into a globally optimal solution.
4.3. Improved Topological Sorting Algorithm
Traditional assembly sequence planning methods primarily focus on the number of tool changes and changes in assembly direction while neglecting the impact of assembly accuracy. Furthermore, existing assembly sequence algorithms often perform searches across the entire solution space without filtering for feasibility constraints. To address these issues, we propose an improved topological sorting algorithm. The algorithm first generates a set of candidate assembly sequences that satisfy geometric feasibility based on the assembly precedence graph. Building on this, a greedy selection mechanism is introduced: when determining the next assembly part from the set of candidates, the algorithm evaluates the objective function for each candidate part. Specifically, for each candidate part, the algorithm constructs a hypothetical sequence using the currently determined prefix of the assembly sequence as the next assembly part and then applies the assembly accuracy prediction model described in
Section 3 to perform a Monte Carlo simulation on this hypothetical sequence, calculating its mean error and range. These accuracy metrics, together with the number of tool changes and direction changes, form the objective function used to evaluate the relative merits of the candidate parts. Through this mechanism, assembly accuracy is directly incorporated into every decision step of the greedy selection process, thereby achieving accuracy-oriented sequence planning.
Before performing a Monte Carlo simulation on the hypothetical sequence using the assembly accuracy prediction model described in
Section 3, symmetric parts are first identified within the set of candidate assembly sequences. This identification is based on the bounding box information of the parts: if the bounding box dimensions of two parts are identical and their projections on each coordinate axis plane overlap, the two parts are deemed to be symmetric. Symmetric parts are treated as a “super-node” and combined into a single representation within the candidate set. This identification process effectively reduces the search space, eliminates redundant sequences caused by the permutation of symmetric parts, and provides a more streamlined and representative candidate set for subsequent greedy selection.
The comprehensive algorithm proceeds as follows:
After assembly interference detection, obtain the assembly priority relationship matrix to construct the assembly priority relationship model. Generate an assembly priority diagram.
Initialize a temporary set T to store components without preceding dependencies. These dependencies are derived from the assembly priority graph.
Greedily select a component from T, remove it from the assembly drawing, and simultaneously delete all directed links originating from that component.
After completing the topological sorting of all nodes, output the optimal assembly sequence.
To clearly illustrate the execution logic of this algorithm, we have visualized this using flowcharts and pseudocode.
Figure 4 shows the overall flow and control structure of the algorithm, while Algorithm 3 provides specific operational details for each step. Let TS be an array representing a temporary sequence used to store vertices that currently have no direct predecessors (i.e., vertices with in-degree zero).
| Algorithm 3. Improving the topological sorting algorithm. |
| Input: Adjacency matrix of the priority graph, AP. |
| Output: The excellent sequence, ES. |
| 1: // Search the vertex without immediate predecessor in AP. |
| 2: for i = 1 to n do |
| 3: if i without immediate predecessor then |
| 4: TS store i; |
| 5: end if |
| 6: end for |
| 7: // Sequence from TS and extend TS. |
| 8: while TS ≠ ∅ do |
| 9: Select j from TS with greedy strategy; |
| 10: TM store the immediate successor of j; |
| 11: Delete j and each arc in AP; |
| 12: if The vertex in TM without immediate predecessor then |
| 13: TS store it; |
| 14: end if |
| 15: end while |
The assembly precedence graph shown in
Figure 3 is topologically sorted, yielding the following result: {1, (2, 3), 4}. We assume that the objective function values for the
sequence are
,
, and those for the
sequence are
,
. Since 0.42 > 0.25, the greedy selection results in part 3; thus, the assembly sequence is 1→3→2→4.
6. Simulation Software Development
Based on the above research, we present a simulation software for assembly sequence planning that integrates assembly accuracy calculations. The software comprises two core modules: the assembly sequence planning module and the assembly accuracy calculation module. Developed on the MFC platform using the C++ programming language, the software leverages the Inte3D platform and SOLIDWORKS for secondary development and supports the import of mainstream CAD file formats (such as models exported from SOLIDWORKS and Inte3D). All experimental simulations were performed on a hardware platform configured with an Intel Core i7-10700F @ 2.90 GHz and 32 GB of RAM.
In particular, the assembly sequence planning software, developed on the Inte3D platform, provides features such as interference detection, automatic extraction of assembly information matrices, modeling of assembly precedence relationships, assembly sequence planning, and the generation of simulation animations. The assembly accuracy simulation module integrates automatic reading of component dimensional information, automatic search for dimensional chains, and automatic construction of accuracy models. It supports multiple assembly accuracy calculation methods, including the extremum method and Monte Carlo method, and features assembly pass rate statistics.
The assembly sequence planning module interface comprises a functional area and an information display. Its initial system operation interface is shown in
Figure 5.
The top section of the interface is the functional area, integrating the core modules for assembly sequence planning. These include interference detection, disassembly planning, path planning, path correction, and motion simulation. Additionally, the program offers data export and simulation video generation capabilities, enabling visual presentation of assembly results. The core of the interference check function determines whether parts overlap based on their bounding boxes. After traversing all parts, it generates an interference matrix, connection matrix, and support matrix and displays a pop-up window indicating program completion. If interference exists between parts during program execution, the parts are highlighted for notification.
The assembly accuracy simulation module includes a control bar and a calculation result display bar, as shown in
Figure 6 below.
The control bar primarily includes functions for tolerance input, target value input, simulation iteration selection, loading assembly file information, and simulation calculation. Click the edit button to select the assembly information file for analysis. The calculation results display panel shows statistical outcomes and distribution histograms following Monte Carlo simulations. This graph automatically labels maximum and minimum values, while the statistics panel displays target maximum, target minimum, calculated maximum, calculated minimum, mean, and the assembly accuracy distribution band under corresponding confidence intervals.
7. Test Results
To comprehensively validate the effectiveness and engineering applicability of the proposed method, this study employs a validation strategy that combines physical verification of typical components with simulation comparisons of complex components. First, using a simplified product model with representative error accumulation characteristics, we verify the physical consistency of the mathematical model for accuracy prediction based on experimental data. Subsequently, we extend this model to complex assemblies with multiple parts and constraints to compare the performance differences among various optimization algorithms.
Taking the model shown in
Figure 7 as an example, after importing the assembly into the assembly sequence planning and simulation system, the system automatically identifies and reads the quantity and names of each part within the assembly, as shown in
Figure 8.
Subsequently, an interference check was performed on the assembly, with the program generating an assembly information matrix in the background. Based on the inspection results, the support matrix and connection matrix were further calculated, thereby identifying the base component as Part 10. Utilizing the assembly priority relationship model established in
Section 2, the assembly relationship matrix was converted into an assembly priority graph, with its simplified result shown in
Figure 9.
By performing a topological sort based on the assembly precedence graph, the system systematically traverses all nodes in the graph and generates an assembly sequence that satisfies the geometric constraints according to the precedence relationships between parts. The result is as follows: {10, (2, 3, 4, 5, 8), (1, 6), (9, 13, 14, 15, 16), (7, 11), 12}.
Based on the feasible sequences generated by topological sorting, a greedy selection strategy is introduced to screen for the optimal sequence. The weight coefficients of the objective function are set as W1 = W2 = 0.2, W3 = 0.6, where W1 represents the weight for assembly sequence redirectability, W2 represents the weight for assembly tool aggregation, and W3 represents the weight for assembly accuracy. By performing a weighted evaluation of the candidate sequences, the sequence with the optimal objective function value is selected as the final assembly sequence. The optimal assembly sequence obtained after the greedy selection is shown below: 10 → 8 → 2 → 3 → 4 → 5 → 1 → 6 → 13 → 14 → 15 → 16 → 9 → 7 → 11 → 12.
To validate the effectiveness of the simulation method, we used the MetraSCAN 3D point cloud scanner manufactured by CREAFORM to obtain the actual measured dimensions of each section of the assembly and the final assembly. Based on these measurements, we calculated the assembly accuracy for the corresponding assembly sequence and compared it with the simulation results. The product installation and point cloud scanning are shown in
Figure 10; the actual point cloud scan values are listed in
Table 2; the compartment division of the model is shown in
Figure 11; and the three-dimensional dimensions of the model are listed in
Table 3. Specifically, the parallelism error of the reference surface of Module 1 is t
1, the parallelism error of the reference surface of Module 2 is t
2, the perpendicularity error of the centerline of Module 2 is t
3, the parallelism error of the positioning surface for
Section 3 is t
4, and the height dimensional tolerances for Modules 1, 2, 3, and 4 are
, respectively.
We calculated the assembly accuracy for the corresponding assembly sequence. The simulation-derived assembly accuracy is 15.7832, while the assembly accuracy calculated from the point cloud-based measured model is 16.1336. Comparing the simulation results with the measured data reveals an error rate of 2.22%, indicating that the simulation results from the proposed method align well with the measured values. The experimental results demonstrate that the proposed assembly accuracy prediction model effectively captures the influence of part tolerances on assembly outcomes.
To conduct a comparative analysis of assembly sequences, this study designed a set of control experiments: the first employs a discrete particle swarm algorithm to perform a global search across the entire solution space; the second uses a topological sorting algorithm that optimizes only the number of tool changes and changes in assembly direction, without considering assembly accuracy; and the third group adopted the proposed improved topological sorting algorithm, which takes into account geometric constraints, assembly efficiency, and assembly accuracy. The number of iterations was set to 40. The UAV model shown in
Figure 12 serves as the subject of this study. This assembly contains 25 parts.
1—nose, 2—fuselage, 3—upper cover plate, 4—rear cover plate, 5—engine, 6—left wing, 7—right wing, 8—bolt, 9—bolt, 10—bracket, 11—retaining pin, 12—bolt, 13—bolt, 14—left tail wing, 15—right tail wing, 16—left front wing, 17—right front wing, 18—mounting bracket, 19—mounting bracket, 20—bracket, 21—right front wing bracket, 22—front wing shaft, 23—rear wing, 24—retaining pin, and 25—right front wing retaining pin.
After optimization using the discrete particle swarm optimization (DPSO) algorithm, the optimal sequence of this assembly obtained via the DPSO algorithm is as follows: 2 → 5 → 4 → 10 → 6 → 15 → 8 → 16 → 18 → 20 → 21 → 7 → 17 → 9 → 14 → 19 → 13 → 12 → 3 → 25 → 23 → 24 → 22 → 11 → 1.
The topological sorting algorithm, which uses only the number of tool changes and changes in assembly direction as optimization objectives, yields the following assembly sequence: 2 → 5 → 4 → 10 → 6 → 8 → 15 → 16 → 18 → 7 → 20 → 21 → 9 → 14 → 17 → 19 → 3 → 12 → 13 → 11 → 22 → 23 → 24 → 25 → 1.
The assembly sequence obtained using the improved topological sorting algorithm is as follows: 2 → 5 → 4 → 10 → 6 → 8 → 15 → 18 → 16 → 7 → 20 → 21 → 9 → 14 → 17 → 19 → 13 → 12 → 3 → 11 → 22 → 23 → 24 → 25 → 1.
Based on the results of the above analysis, the three assembly sequences were imported into the assembly accuracy simulation system for calculation. Monte Carlo simulation was employed with 10,000 iterations to obtain assembly accuracy simulation results corresponding to the assembly sequence solved by the discrete particle swarm optimization (DPSO) algorithm, the traditional topological sorting sequence that does not consider assembly accuracy, and the assembly accuracy simulation results corresponding to the improved topological sorting algorithm, which takes into account various constraints, including geometric constraints, assembly efficiency constraints, and accuracy constraints. The simulation results are shown in the figure below. The maximum and minimum values represent the upper and lower bounds of the error across 10,000 simulation runs, respectively, and characterize the full range of variation in assembly error for this simulation. These are marked by purple vertical lines in the figure. The mean is the arithmetic mean of all observed sample values, and the green bar chart is a frequency histogram, where the horizontal axis represents the error values and the vertical axis represents the number of samples falling within each interval. The blue vertical lines indicate the 95% confidence interval results. The unit is micrometers.
Figure 13 shows the simulation results for assembly accuracy when the assembly sequence is solved using DPSO. As shown in the figure, the upper bound of the error is 504.7869, the lower bound is 444.7160, and the mean error is 475.6689. The 95% confidence interval is [455.7232, 495.6146].
Figure 14 shows the simulation results for assembly accuracy when the assembly sequence is solved using a traditional topological sorting algorithm. As shown in the figure, the upper bound of the error is 456.8958, the lower bound is 396.4388, and the mean error is 426.7113. The 95% confidence interval is [406.4980, 446.9246].
Figure 15 shows the assembly accuracy simulation results corresponding to the improved topological sorting algorithm. As shown in the figure, the upper bound of the error is 358.0970, the lower bound is 297.5080, and the mean error is 326.1258. The 95% confidence interval is [306.0570, 346.1946]. For a detailed comparison and summary of the results, see
Table 4.
Table 4 provides a detailed comparison of the solution sequences generated by the DPSO algorithm, which performs a global search over the entire solution space; the efficiency-optimized sequences generated by the traditional topological sorting algorithm; and the accuracy–priority sequence generated by the improved topological sorting algorithm, which takes into account multiple constraints, including geometric constraints, assembly efficiency constraints, and accuracy constraints. The comparison results indicate that the proposed method exhibits better convergence. The improved topological sorting algorithm performs best in terms of error control. Its mean error of 326.1258 is approximately 23.6% lower than that of the traditional topological sorting algorithm and approximately 31.4% lower than that of the DPSO algorithm. This demonstrates that the improved topological sorting algorithm achieves a significant improvement in assembly accuracy. Comparing the numerical ranges in
Figure 13,
Figure 14 and
Figure 15 reveals that the upper bound of the error for the improved algorithm (358.0970) is even lower than the lower bounds of the other two algorithms, and the error distribution has shifted to the left overall. This indicates that the improved algorithm effectively suppresses the accumulation of errors during the assembly process by optimizing the logical relationships in the assembly sequence.
The three algorithms each generated an assembly sequence, which were compared using the comprehensive evaluation metrics described in
Section 5. The results are shown in
Table 5.
Table 5 provides a comparison of the results of the three algorithms in terms of computational efficiency, part level, product level, and comprehensive evaluation metrics. The minimal difference in component-level scores indicates that, under geometric feasibility constraints, the local operability of each sequence is comparable. Product-level scores exhibit a distinct gradient: the proposed algorithm achieves approximately 39.8% higher scores than DPSO and approximately 36.7% higher scores than traditional topological sorting. This validates that, by incorporating an assembly accuracy prediction mechanism, the sequence can effectively avoid paths with high error propagation and improve assembly quality. The overall evaluation metric for DPSO is E
1 = 0.655, while that for the topological sorting algorithm is E
2 = 0.677. The selected algorithm yields a result of E
3 = 0.878. The proposed method achieves better evaluation metrics than the other two methods, demonstrating superior assembly performance. In terms of computational efficiency, the runtime of the proposed algorithm is approximately 27.0% shorter than that of DPSO and approximately 19.8% longer than that of the traditional method. However, the improvement in accuracy far outweighs this trade-off. Overall, the proposed algorithm achieves a significant leap in product-level assembly accuracy at an acceptable cost in terms of computational efficiency.
8. Conclusions
We address the issues of post hoc evaluation of accuracy in assembly sequence planning, the lack of feasibility pruning in search algorithms, and insufficient software integration. We propose a drive-based planning method that integrates assembly accuracy prediction into the sequence generation process. During the modeling of assembly precedence relationships, real-world operational constraints are introduced, and disassembly verification is incorporated to avoid isolated parts with no contact, thereby ensuring the physical feasibility of the sequence from the outset. Building on this foundation, the method actively suppresses tolerance accumulation during sequence generation through assembly priority graph constraints, an improved greedy topological sorting algorithm, and a strategy for merging symmetric parts. Additionally, a one-click virtual assembly simulation system was developed, integrating interference detection, information extraction, sequence planning, simulation animation, and accuracy calculation. This approach generates an optimal sequence that simultaneously balances geometric feasibility, assembly efficiency, and assembly accuracy.
To validate the effectiveness of the proposed method, this study conducted comparative experiments using a specific 3D model. The results indicate that compared to traditional methods optimized solely based on tool change frequency and assembly orientation, the assembly sequences generated by this method demonstrate significantly superior predicted accuracy values and exhibit a narrower range of data fluctuation. This reflects enhanced stability and consistency in the assembly process. Experiments demonstrate that this method effectively enhances assembly precision pass rates while maintaining assembly efficiency, thereby reducing the risk of rework and repair caused by insufficient precision. The core value of this research lies in shifting assembly precision prediction from “post-event verification” to “pre-event optimization,” providing a more practically valuable engineering solution for high-precision assembly sequence planning.
Current assembly accuracy analysis relies heavily on the geometric dimensions, tolerance information, and assembly constraints contained in 3D models. However, in actual engineering practice, models often suffer from missing or incomplete information, making it difficult to establish error propagation diagrams and thereby affecting the accuracy and reliability of accuracy predictions. In the future, it may be worthwhile introducing knowledge graph technology to structurally represent and model the relationships among product structural information, tolerance specifications, historical process data, and domain expert knowledge, thereby constructing a domain-specific knowledge graph tailored for assembly accuracy analysis. Building on this foundation, the semantic reasoning and completion capabilities of the knowledge graph can be leveraged to achieve intelligent matching of missing dimensional information and automatic construction of tolerance chains. This will enhance the completeness and accuracy of error propagation modeling, thereby providing higher-quality data support for assembly accuracy prediction.