Next Article in Journal
Nonlinear Dynamics of Displacement Fronts in Two-Phase Flows Propagating Through Porous Media
Previous Article in Journal
An Evolutionary Game Theory Analysis of Accounts Receivable Financing Models for China’s New Agricultural Entities in Supply Chain Finance
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Research on an Optimization Method for Cable Layout in Confined Spaces

1
State Key Laboratory of Advanced Nuclear Energy Technology, Nuclear Power Institute of China, Chengdu 610213, China
2
College of Electronics and Information Engineering, Sichuan University, Chengdu 610065, China
*
Author to whom correspondence should be addressed.
Mathematics 2026, 14(11), 1999; https://doi.org/10.3390/math14111999
Submission received: 2 April 2026 / Revised: 23 May 2026 / Accepted: 30 May 2026 / Published: 4 June 2026

Abstract

Cable routing is a pivotal design component for electrical systems and safety-critical engineering fields, such as nuclear propulsion systems, nuclear power plants and aircraft. Scientific and optimized routing schemes are essential for efficient and safe power and signal transmission and for mitigating system failure risks. Previous studies have adopted heuristic search and swarm intelligence optimization algorithms for cable path planning; however, these methods tend to converge to local optima under complex constraints and cannot theoretically guarantee global optimality, failing to address multi-constraint, high-dimensional optimization challenges of confined-space cable routing. This paper proposes a mathematical programming-based systematic optimization model: it first discretizes continuous three-dimensional space into a grid coordinate system and constructs a composite cost field integrating geometric distance and thermal interference, then formulates a multi-objective optimization model considering path length, thermal impact and routing feasibility, which is converted into a single-objective problem via normalized weighting coefficients and solved by exact mathematical programming techniques, yielding a best feasible solution together with a provable lower bound and an optimality gap. When the solver converges within the time limit, global optimality for the discretized model can be certified. Simulation results show the proposed method reduces overall path cost by an average of 31.8% compared with classical algorithms like the A* algorithm, Dijkstra’s algorithm, Rapidly-exploring Random Tree (RRT), Particle Swarm Optimization (PSO), and Genetic Algorithm (GA). Furthermore, it cuts decision variables by an average of 70% (up to 82% in complex scenarios) against the 0–1 Integer Linear Programming (ILP) model and the graph-theoretic Multi-Commodity Flow (MCF) model with multi-cost considerations. These results preliminarily validate the favorable solution quality, computational efficiency and engineering applicability of the proposed model for confined-space cable routing optimization.

1. Introduction

Since the 1970s, the optimization of cable layouts has been extensively studied in shipbuilding, aerospace, and other industrial fields [1]. Key challenges in this domain include limited wiring space, a large number of cables, and dense electrical equipment. In many practical applications, confined spaces are often densely packed with numerous electrical devices, such as in nuclear power plants, nuclear propulsion systems, aircraft, and aviation instruments. With the continuous advancement of technology, the core components of these systems have shown an increasingly pronounced trend toward compactness: reduced available space, a growing number of cables, and increasingly complex electronic equipment. In this context, interactions between cables, such as electromagnetic interference and heat accumulation, may pose threats to system safety and reliability, potentially leading to economic losses or safety accidents. Therefore, research on optimizing cable layouts within confined spaces is of great theoretical and engineering significance, as it can provide effective support for improving system performance and reducing potential risks.
Traditional cable layout methods mainly rely on manual wiring, where workers develop layout plans based on personal experience. This approach is not only inefficient and time-consuming but also highly dependent on individual expertise, lacking systematic and consistent quality control, which results in low reliability. With technological advancements, the spatial structures of modern buildings and equipment have become increasingly complex. At the same time, higher standards for construction quality and equipment performance are being demanded. Cable layout must now meet basic functional requirements while also taking into account multiple safety challenges and environmental constraints. Under these circumstances, traditional layout techniques are increasingly unable to meet current demands due to their inherent limitations. Meanwhile, rapid developments in computer technology have driven the transition toward digital and intelligent cable layout solutions. In recent years, an increasing number of researchers have focused on cable layout under various environmental conditions. Zhang et al. [2] developed a mathematical model for multi-branch cable harness layout optimization based on Steiner tree theory and proposed a path search strategy using the Theta* algorithm, significantly improving the smoothness and overall quality of cable routing. Hu et al. [3] employed the Information Sharing and Feedback-based Optimization (INFO) algorithm, incorporating all feasible solutions of the model into the search range to finally obtain the optimal cable connection layout scheme. Zhao et al. [4] proposed a routing method for bundled cables in aircraft engines based on Multi-Objective Particle Swarm Optimization (MOPSO), successfully identifying Pareto-optimal solutions for cable bundling at the routing level, thereby saving space and enhancing system stability. Taylor et al. [5] proposed a new optimization method based on the Ant Colony Optimization (ACO) to solve the cable layout problem of complex offshore wind farm array. This method improved computing performance by introducing decomposition technology designed according to the characteristics of the problem. This new algorithm could obtain near-optimal solutions with limited computing resources. Duvnjak et al. [6] applied a reliability-centered Mixed-Integer Linear Programming (MILP) approach to optimize cable layout in onshore wind farms, reducing cable costs and significantly improving operational stability and system reliability. Gritzbach et al. [7] proposed a solution based on MILP to solve the cost optimal cable layout scheme in solar power plants.
From the perspective of generalized topology optimization, path-planning problems in discretized spaces can be reformulated as layout optimization problems. This theoretical linkage establishes the mathematical foundation for the paradigm shift of integer programming methods in path planning. Current research predominantly constructs MILP models [8,9,10,11,12,13,14,15] based on Minimum-Cost Multi-Commodity Network Flow (MCMCNF) theory and graph-theoretic frameworks, through the definition of binary connection variables and flow conservation constraints between nodes. Such models explicitly incorporate constraints including edge capacity limitations and node throughput capacities during formulation, thereby ensuring comprehensive characterization of the solution space.
Beyond edge-driven MCMCNF formulations, an alternative family of integer linear programming models represents paths using node-occupancy or node-order variables, typically coupled with degree constraints or other connectivity-enforcing mechanisms. Such node-based formulations have been widely used in grid-based path planning and coverage problems in robotics and related fields [13,14,15], and they motivate variable reduction strategies for improving solver tractability. Motivated by these ideas, the present work develops a task-specific node-driven formulation for multi-cable routing in confined spaces. Unlike most existing node-based models that focus on single-agent shortest paths or coverage, our formulation jointly optimizes multiple cables under non-violable engineering constraints and incorporates a composite cost field capturing wall-hugging preferences and thermal interference, as well as a bundling term to encourage tray sharing (Section 2).
From a theoretical perspective, the proposed node-driven formulation differs from the conventional edge-driven MCMCNF model in the granularity of decision variables and constraint structure. Specifically, MCMCNF introduces flow variables for each edge–cable pair and enforces flow conservation constraints at nodes, leading to a variable count that scales with |E| × n and a corresponding proliferation of coupling constraints. In contrast, the proposed model defines binary selection variables solely at the node–cable level and enforces s–t connectivity via neighborhood-based node-degree constraints, thereby reducing the decision variable count to the order of |V| × n. In a 3D 6-connected grid graph, |E| is typically several times larger than |V|; therefore, this structural difference directly explains the observed reductions in both decision variables and constraints and underpins the improved solvability under a fixed time limit.
However, MCMCNF presents dual limitations:
(1)
To maintain computational tractability, models typically handle only linear-separable constraints while requiring approximate relaxation of nonlinear-kinematic constraints;
(2)
As an edge-driven model, the computational complexity of MCMCNF models grows combinatorially with problem scale. Despite its theoretical significance, the prohibitively high computational time for solving medium-to-large-scale scenarios severely restricts its engineering applicability.
Existing studies have adopted a variety of algorithms for cable layout optimization, among which intelligent meta-heuristic algorithms are the most widely used. While these algorithms are capable of efficient searching in complex constrained spaces, they lack strict theoretical support, easily fall into local optima during iteration, and cannot guarantee the global optimality of the generated path. This drawback becomes extremely severe in large-scale, high-complexity engineering scenarios. Meanwhile, the mainstream mixed-integer linear programming models based on MCMCNF theory suffer from explosive growth of decision variables and combinatorial computational complexity with the expansion of problem scale, resulting in poor engineering applicability for medium-to-large-scale instances.
In contrast, this paper proposes a mathematically rigorous cable path planning model. The main contributions and novelties of this work are presented below:
(1)
Methodological Rigor: Proposes a mathematically rigorous cable path planning model and solves it using exact mathematical programming techniques, yielding a best feasible solution together with solver-provided optimality bounds (lower bound and optimality gap) under a prescribed time limit;
(2)
Variable Efficiency: Employs a node-driven variable definition that streamlines the modeling process, reducing the dimensionality of the solution space by approximately 83%;
(3)
Computational Scalability: Successfully mitigates the exponential growth of computational complexity, making exact mathematical optimization feasible for complex confined-space scenarios;
(4)
Convergence and Optimality Certification: The proposed formulation enables convergence to the model’s optimum when the solver proves optimality; otherwise, it reports the incumbent solution quality together with the optimality gap under time limits, providing a more reliable alternative to traditional swarm intelligence or random-search methods.
By describing the problem from a global perspective, this method searches for high-quality solutions within the discretized spatial domain. While the model serves as a discrete approximation of the continuous problem, the optimality of the discretized model can be certified only when the solver converges; under a fixed time limit, the solver returns the best feasible solution found with an associated optimality gap.
The remainder of this paper is organized as follows. Section 2 establishes the mathematical programming-based model, detailing the definitions of decision variables, the construction of the composite objective function, and the formulation of both violable and non-violable engineering constraints. Section 3 delineates the problem-solving methodology, focusing on the linear indexing system for spatial discretization and the systematic handling of constraints within the optimization framework. In Section 4, the effectiveness and scalability of the proposed model are rigorously validated based on six distinct scenarios. Among them, Scenario 6 is a large-scale real-world case study, and comparative analyses with classical heuristic and exact algorithms are also conducted. Finally, Section 5 concludes this paper by summarizing the key findings and outlining potential directions for future research.

2. Problem Modeling and Optimization Objectives

Given the complexity and multiplicity of constraint conditions in nuclear power plants, metaheuristic algorithms have traditionally been predominantly employed for solving cable path planning problems. The solution quality of such methods is challenging to evaluate quantitatively; they typically only yield feasible solutions that satisfy engineering constraints, with difficulty in providing optimality certificates for the obtained solutions. By contrast, integer linear programming models can provide globally valid lower bounds for the objective function and, when solved to proven optimality, can certify global optimality for the discretized model. When terminated early due to time limits, the solver still returns the best feasible solution found along with an optimality gap, thereby enabling a quantitative assessment of solution quality.
However, the time complexity of integer linear programming exhibits an exponential relationship with the number of decision variables. In large-scale three-dimensional spatial scenarios, the feasibility of model solving within a reasonable time frame is significantly diminished. Consequently, practical applications typically require integration with heuristic algorithms or rely on prior knowledge to reduce the dimensionality of decision variables, aiming to balance solution efficiency and optimization performance. This constitutes an inherent limitation of such mathematical models in engineering practice [8,9].

2.1. Definitions and Annotations

The symbols and their meanings used in this paper are shown in Table 1.

2.2. Decision Variables

This section presents a model for solving the cable-routing problem, with decision variables defined as follows:
x u i = 1 , u V 0 , others
The value of the decision variable is 1, indicating that the i-th cable occupies the coordinate with the index u.
S u = 1 , u V 0 , others
The value of the decision variable is 1, indicating that at least one cable select coordinates with index u.

2.3. Objective Function

The objective function mainly considers the following two aspects:
(1)
Total cable routing cost:
i = 1 n u V c u × x u i
Here, c u = d u + h u , the grid cost with index u is composed of the distance cost d u from the obstacle and the grid heat value h u . To ensure the resulting routes adhere to wall-hugging constraints, d u is defined to increase with the distance from obstacles. This penalty-based definition ensures that any path straying into open spaces incurs a higher cost, thereby guiding the optimization toward solutions where cables are routed as close to the walls as possible. Since the total cost of the cable path directly reflects the quality of the sought route—where a lower cost indicates a better route—the objective when using a mathematical model to solve this problem is to minimize this cost.
(2)
Length of sharing same tray:
u V S u
The total cost incorporates key environmental factors, including the distance to walls and the distance to the heat source. As the wiring space is discretized through grid partitioning, the cost is represented as a discrete cost field, where each point in the space is assigned a specific cost value. Specifically, the cost at each point is computed as the sum of two components: the distance to the nearest obstacle (such as a wall) and the cumulative distances to all heat sources. The corresponding thermal field distribution is illustrated in Figure 1. This formulation unifies these factors into a single quantitative metric. By simultaneously accounting for environmental routing constraints—such as obstacle avoidance and thermal impact reduction—and aiming to minimize cable length, the method effectively balances wiring efficiency with environmental adaptability [10].
Objective function (2) is designed to optimize cable bundling by encouraging cables to share the same grid cells as much as possible, thereby promoting efficient integration and reducing space occupation. However, the model involves multiple optimization objectives. The mathematical formulation is inherently non-convex, which suggests that standard linear aggregation may fail to capture the complete Pareto frontier. To enhance the model’s tractability and simplify the solution procedure, the multi-objective problem is transformed into a single-objective function using the Weighted Sum Method [16]. This approach handles the trade-off between individual path costs and global space efficiency effectively. Since the two objectives—total cable length and global grid occupancy—may operate on different scales, they are normalized to a dimensionless form. The normalized objective function is expressed as follows:
m i n ( α × i = 1 n u V c u × x u i + β × u V S u )
where α and β are hyperparameters determined by domain expertise. In this study, we set α   = 0.6 and β = 0.4 based on empirical knowledge in naval electrical design. This configuration prioritizes the shortest path and safety requirements of individual cables while maintaining a high degree of integration. This weighted formulation yields a single-objective 0–1 ILP model. Here, “linear relaxation” refers to relaxing the binary constraints to continuous variables in [0, 1], which results in an LP relaxation that is convex and can be solved efficiently to provide a bound. Importantly, this relaxation does not make the original combinatorial problem convex; rather, it is typically used within MILP solvers to accelerate the search for high-quality integer-feasible solutions.

2.4. Constraints

In practical cable layout engineering, constraint preferences can vary depending on the specific application. The constraints involved in the design can generally be categorized into two types: violable and non-violable. Violable constraints may be relaxed to some extent under real-world conditions, and some researchers have incorporated them into the optimization process by using penalty functions within the objective function [17]. In contrast, the non-violable constraints addressed in this study must be strictly satisfied and cannot be compromised under any circumstances. These include the following:
(1)
avoid obstacles;
(2)
orthogonal routing;
(3)
maintain a certain distance from obstacles;
(4)
the path must be continuous;
(5)
the starting and ending points must be included within the path.
Violable constraints include the following:
(1)
keeping as close to the walls as possible;
(2)
staying away from heat source;
(3)
sharing the same tray or ladder rack as much as possible.
In the mathematical model, the five non-violable constraints are expressed as follows:
x t i = 1 , t T   i [ 1 , n ]
x s i = 1 , s S   i [ 1 , n ]
r D u x r i = 1 , u S T 2 , x u i = 1
x u i S u , u V , i 1 , n
v O x v i = 0 , i [ 1 , n ]
Equations (6) and (7) enforce the boundary conditions of the path planning problem. They ensure that for each cable i [ 1 ,   n ] , the designated starting node s S and terminal node t T are mandatory components of the solution. Equation (8) maintains path continuity through node-degree control: for the starting and terminal nodes, the sum of their selected neighbors must be 1, ensuring a single entry or exit point. For intermediate nodes included in the path ( x u i = 1 ), the neighbor sum is 2 to satisfy the ‘one-in-one-out’ requirement. For nodes not selected ( x u i = 0 ), no restrictions are imposed on their neighbors, allowing the path to navigate the grid without logical deadlocks.
Let G = ( V , E ) be the grid adjacency graph and let H i denote the subgraph induced by the nodes selected by cable i (i.e., x u i = 1 ) and their adjacency relations. Under Equation (8), each connected component of H i is either (i) a simple path whose endpoints are exactly the degree-1 nodes (the terminals), or (ii) a simple cycle (all nodes degree 2). In any finite undirected graph, a connected component in which every node has degree 2 must be a cycle. If a connected component has exactly two nodes of degree 1 and all remaining nodes have degree 2, then starting from a degree-1 node and traversing along the unique unused incident edges cannot branch and must terminate at the other degree-1 node, yielding a path.
Degree constraints of this type are standard in established integer-programming formulations for routing; when strict exclusion of disconnected cycles is required, subtour-/cycle-elimination cuts can be incorporated.
The degree/connectivity constraints may allow an s–t path plus additional disconnected cycles. However, since c u 0 and α , β > 0 , adding any cycle can only increase the objective: it increases i , u c u x u i and cannot decrease u S u because S u is an indicator of the union of used grids. Therefore, there always exists an optimal solution corresponding to a simple s–t path without cycles. Equation (9) captures the dependency relationships among decision variables, and Equation (10) represents the obstacle avoidance requirement. For constraints involving logical variable judgments, the BIG-M relaxation method effectively simplifies the model without introducing auxiliary variables, preserving computational tractability. Other potentially violable constraints are handled by incorporating them into the objective function as penalty terms. To enforce the requirement of maintaining a minimum distance from obstacles, a preprocessing step is implemented in which the boundaries of all obstacles are expanded outward by a predefined safety margin before the optimization process begins. The example diagram of a preprocessing step is shown in Figure 2. This approach effectively reduces the number of decision variables and lowers the complexity of constraint generation, thereby enhancing the overall efficiency and solvability of the model [18]. For the flexible constraints: the preferences for routing cables as close as possible to walls while maintaining a safe distance from heat sources are encoded as penalty terms in the grid cost matrix. Similarly, the preference for maximizing the shared use of brackets or trays is also incorporated into the objective function as an additional penalty term. Given that the cable routing problem is fundamentally an integer programming problem with relatively easy-to-define variable bounds, logical conditions involving decision variables can be linearized using the big-M relaxation method, without the need to introduce additional decision variables [19].

3. Constraint Handing

To address the cable layout problem using mathematical programming, the layout space was first discretized into a grid, and a corresponding cost field was established. The problem was then analyzed and formulated into a mathematical model. Constraints were systematically identified and translated into mathematical expressions, which were incorporated into the formulation of the objective function. To facilitate computation, the multi-objective optimization problem was converted into a single-objective optimization problem by introducing appropriate weight coefficients. Finally, an optimized path (i.e., the best feasible solution found within the prescribed time limit) was obtained by solving the model using mathematical optimization techniques, together with solver-reported optimality information (lower bound and optimality gap) when available. The overall workflow employed in this study is illustrated in Figure 3.
To enhance computational efficiency and streamline the data structure, this study employs a linear indexing system to record spatial grid information. We define a 1D index set I to represent the discretized 3D solution space. This approach effectively achieves dimensionality reduction, enabling the reformulation of complex 3D spatial constraints into index-dependent logical constraints. A one-to-one mapping exists between the linear indices and the 3D coordinates (x, y, z). Following the X Y Z axis mapping order, the specific mapping function is defined as follows:
i n d e x = x + y × n u m x + z × n u m x × n u m y
Here, the grid index values were assigned sequentially along the X-, Y-, and Z-axes. Equation (11) allows for mutual conversion between the index and three-dimensional coordinates (x, y, z). The example of coordinate transformation is shown in Figure 4 and Figure 5. As a result, the relationships between the coordinates are also reflected in the indices, and the differences between the coordinates can be translated into differences between the indices:
A difference of 1 in the X-coordinate corresponds to a difference of 1 in the index.
A difference of 1 in the Y-coordinate corresponds to a difference in the n u m x in the index.
A difference of 1 in the Z-coordinate corresponds to a difference in the n u m x × n u m y in the index.
The concept of a neighborhood is employed to represent certain constraints in alternative, more computationally tractable forms. For instance, orthogonal cabling can be expressed as selecting only neighboring points within a predefined neighborhood around the current position. Similarly, the continuity requirement of cable paths can be transformed into a condition where the sum of decision variables within the neighborhood of the current point must equal two. These reformulations enable more efficient constraint handling within the optimization framework. The example of the neighborhood is shown in Figure 6.

4. Experiment and Comparison

Simulations were conducted using MATLAB R2021a to validate the effectiveness of the proposed mathematical model. The experiments were carried out in the following environment: Gurobi Toolbox version 11.0.3, an Intel(R) Xeon(R) Platinum 8375C CPU running at 2.90 GHz, 256 GB of RAM, and a Windows 10 64-bit operating system. For comparative analysis, several existing algorithms were also tested, including A* algorithm [20], Dijkstra’s algorithm [21], RRT [22], PSO [23], the GA [24], ILP [8], and MCF [9].
To ensure a fair and reproducible comparison, all algorithms were implemented and executed under the same hardware and software environment described above. For each scenario and each trial, the voxel grid, obstacle configuration, composite cost field parameters, and the cable start/end coordinates were kept identical across all methods [25,26]. Wall-clock runtime was measured in a unified manner, excluding visualization, and using the same timing scope for all algorithms. For stochastic methods, the random seed was fixed for each trial to ensure repeatability, and the stopping criteria were applied consistently as reported. For exact models, the same solver settings and time-limit policy were used to ensure comparability.
In the experiments, this paper optimizes the perception logic of the A* and Dijkstra’s algorithms. The revised logic prioritizes minimizing the total cost rather than minimizing path length. For the GA, the hyperparameters are set as follows: population size of 100, number of generations of 50, number of intermediate control points of 10, and mutation rate of 0.01. For the PSO algorithm, the hyperparameters are configured as: swarm size of 50 particles, maximum number of iterations of 300, inertia weight of 0.7, cognitive (individual) learning factor of 1.4, social learning factor of 1.4, and number of intermediate control points of 10. In all experiments, the start and end points were randomly generated for each trial, and the same generated start/end points were used for all compared algorithms in that trial, thereby avoiding cases where no valid path exists.
The convergence theories of different path planning algorithms differ fundamentally. Deterministic search algorithms such as A* and Dijkstra possess completeness and optimality guarantees, inevitably converging to the global optimum within a finite number of steps. In contrast, RRT, as a sampling-based probabilistically complete algorithm, primarily aims to rapidly identify a feasible collision-free path within the solution space; provided that a solution exists and sampling time approaches infinity, the algorithm is guaranteed to converge. Meanwhile, for metaheuristic optimization algorithms such as PSO and GA, the convergence process manifests as an iterative approximation dynamic, with specific convergence characteristics illustrated in Figure 7.
In Scenarios 1–5, Gurobi terminates with MIPGap = 0, meaning that the solver certifies global optimality within the imposed time limit for all tested instances. Therefore, for these scenarios the optimization process converges to a proven optimum rather than a time-limited incumbent solution. We additionally report the time when the gap first reaches zero to characterize solver convergence speed.
Scenario 1: The wiring space dimensions were 10 × 10 × 10, with two cables involved. The starting coordinates of the cables are (1, 5, 3) and (1, 7, 2), respectively, whereas their ending coordinates are (8, 3, 4) and (8, 8, 5), respectively. Planning was conducted using both the mathematical model proposed in this paper and the A*, Dijkstra’s, RRT, PSO, and GA algorithms, with the results presented in Figure 8.
To reduce the impact of randomness while keeping the starting and ending coordinates as well as the wall obstacles fixed, the positions of the randomly generated obstacles within the enclosed space were varied across trials. A total of 1000 simulations were conducted, with one additional obstacle introduced into the environment every 50 iterations. Statistical analysis was performed on the results from these 1000 runs, and the comparative outcomes are summarized in Table 2.
The experimental results fully verify the comprehensive superiority of the proposed algorithm in the task of 3D complex environment cable layout. In terms of geometric path quality, the algorithm achieves an average path length of 22.662, compared to other algorithms, it achieves an average reduction of 21.96%. This demonstrates its good performance in avoiding path redundancy and oscillation. Regarding comprehensive optimization, the proposed algorithm attains the lowest average objective function value of 2779.989, representing reductions of approximately 22.38%, 24.32%, 37.80%, 23.00%, and 51.50% compared to A*, Dijkstra’s, RRT, PSO, and GA, respectively. This strongly proves its exceptional capability in balancing path length, obstacle avoidance safety, and thermal environment constraints. Most notably, in terms of computational efficiency, the average solving time is only 0.65 s. This is not only significantly faster than traditional and intelligent algorithms such as A*, Dijkstra’s, PSO, and GA, but also approximately 27% faster than the RRT algorithm, showcasing favorable real-time performance. In summary, while effectively balancing path quality and comprehensive cost, the proposed algorithm achieves a faster solving speed, making it an efficient and robust path planning method for certain engineering applications.
Scenario 2: Identical to Scenario 1, the wiring space dimensions were still 10 × 10 × 10, but the number of cables increases to five. The starting coordinates of the cables are (1, 2, 2), (1, 7, 2), (3, 6, 5), (1, 3, 1), and (4, 4, 3), while their ending coordinates are (8, 2, 3), (8, 7, 5), (5, 8, 6), (8, 8, 1), and (5, 5, 7), respectively. Planning was conducted using both the mathematical model proposed in this paper and the A*, Dijkstra’s, RRT, PSO, and GA algorithms, with the results presented in Figure 9.
To avoid the effects of randomness and to maintain the same settings as in Scenario 1, the number of trials was changed to 500. An obstacle was added to the wall space every 50 trials. The results of these 500 experiments were statistically analyzed, and the comparison results are presented in Table 3.
In the five-cable laying task, the algorithm proposed in this paper continues to demonstrate significant comprehensive superiority. Specifically, regarding geometric path quality, the algorithm achieves an average path length of 51.236, which is significantly better than the RRT and GA algorithms, with reductions of 4.27% and 51.51%, respectively. In terms of the average number of nodes, the proposed model (52.236) exhibits greater stability compared to RRT (65.824). For the core metric of average objective function value, the proposed model leads other algorithms by a large margin with a score of 6271.451. It reduces the objective value by 16.78%, 14.77%, 34.22%, 8.09%, and 57.20% compared to A* (7536.365), Dijkstra’s (7358.534), RRT (9534.256), PSO (6823.320), and GA (14,651.583), respectively. This fully highlights its robust capability in comprehensively optimizing path costs and environmental constraints in multi-cable layouts. Furthermore, regarding computational efficiency, the proposed model requires an average computation time of only 2.36 s, which is substantially faster than A* (7.43 s), Dijkstra’s (7.59 s), RRT (4.51 s), PSO (11.38 s), and GA (15.49 s), demonstrating highly efficient real-time solving capabilities. Overall, in complex multi-cable scenarios, the proposed model not only ensures superior path quality and comprehensive optimization but also possesses outstanding computational efficiency, providing a more effective solution for multi-cable layout problems.
Scenario 3: This experiment aims to systematically evaluate the influence of weighting parameters in a weighted objective function on the outcomes of multi-cable path planning. The wiring space dimensions are still 10 × 10 × 10, with the number of cables set to 2. To eliminate confounding effects arising from environmental variability, all comparative trials employ an identical obstacle configuration and share the same start and end coordinates for each cable. For enhanced clarity and improved visual interpretability, obstacles are omitted from the illustrative figures. Two distinct weight configurations are compared: (i) α = 0.6 , β = 0.4 , which balances path length minimization and collision avoidance; and (ii) α = 0 , β = 1 , which exclusively prioritizes collision avoidance while disregarding path length optimization. The experimental results are shown in Figure 10.
In the formulated objective function, the parameter α represents the weight assigned to the voxel cost term: a higher value of β places greater emphasis on routing cables through low-cost voxels. Conversely, the parameter β governs the weight associated with path-sharing among multiple cables: increasing β encourages the co-location of multiple cable trajectories within fewer voxels, thereby promoting spatial consolidation of routes. Experimental results demonstrate that as β increases, the optimized cable paths exhibit a stronger tendency toward spatial overlap, resulting in a more pronounced bundling effect. In contrast, elevating α prioritizes avoidance of high-cost regions—even at the expense of reduced path-sharing length. These observations align precisely with the theoretical intent of the objective function, confirming that the relative magnitudes of α and β enable a principled, interpretable, and controllable trade-off between the competing objectives of minimizing traversal cost and maximizing multi-cable path sharing.
Scenario 4: This experiment aims to quantitatively evaluate the impact of thermal field distribution on the outcomes of multi-cable path planning. The experimental setup strictly adheres to the configuration established in Scenario 1, ensuring methodological consistency. To guarantee comparability across all comparative trials, an identical obstacle configuration and consistent start–end coordinates for each cable are employed throughout. Although obstacles are omitted from the visualizations to emphasize spatial variations in the thermal field, their geometric constraints are fully retained in all computational planning processes. Furthermore, to systematically investigate the influence of heat source placement on path planning behavior, three representative thermal source layouts are selected, each giving rise to a distinct thermal field configuration. These three configurations serve as the foundation for the controlled comparative analysis. The experimental results are shown in Figure 11.
In the formulated objective function, the thermal value of each voxel is incorporated as a thermal risk cost term and participates in the weighted optimization process. Experimental results demonstrate that, across all three distinct thermal source configurations, the planned cable trajectories consistently exhibit a pronounced tendency to actively avoid high-temperature regions, preferentially routing through voxels with lower thermal values—a behavior that aligns closely with the theoretical expectations of the model design. Although circumventing high-heat zones may entail increased geometric complexity—manifested as greater path curvature or extended route length—it yields a substantial reduction in thermal exposure risk. These findings collectively underscore that the spatial distribution of the thermal field constitutes a critical environmental factor governing path planning decisions in multi-cable systems. Moreover, by appropriately tuning the weighting parameter associated with the thermal risk term in the objective function, a principled, interpretable, and controllable trade-off can be achieved between the competing objectives of thermal safety and path length/traversal cost.
Scenario 5: This experiment is designed to systematically compare two distinct path planning modeling approaches in terms of scalability and computational efficiency. The first approach is a Binary Integer Linear Programming (BILP) model grounded in binary selection variables and capacity constraints, whose mathematical structure bears formal resemblance to the classical 0–1 knapsack problem. The second approach is a graph-theoretic Minimum-Cost Multi-Commodity Network Flow (MCMCNF) model with multiple cost metrics, which explicitly represents the routing of each cable through edge-based flow variables. To ensure a fair and rigorous comparison, both models are evaluated under identical experimental conditions. Specifically, problem instances are constructed on cubic voxel grids with side lengths of 10, 20, 30, and 40, respectively, enabling a progressive assessment of scalability. Across all instances, the obstacle configuration, cable start and end coordinates, and cost parameters—including traversal costs and capacity limits—are held strictly constant to eliminate confounding factors. Furthermore, to guarantee solution completeness and comparability in the optimization process, a uniform solver time limit of T L = 4000 s is imposed for all runs. The experimental results are shown in Table 4.
Experimental results demonstrate that, compared to the MCF model, the formulation proposed in this work reduces the number of decision variables by up to 83.3% across the tested problem scales. This substantial reduction stems from a fundamental distinction in the granularity of variable definition between the two modeling paradigms. Specifically, the MCF model introduces decision variables at the edge–commodity level, assigning a distinct flow variable to every combination of edge and cable. In a three-dimensional 6-connected voxel grid, each node is incident to at most six neighboring edges; consequently, the total number of variables scales linearly with both the number of edges and the number of cables. In contrast, the proposed model defines binary selection variables solely at the node or node–cable level, directly indicating whether a given node is occupied by a specific cable, without explicitly modeling edge-wise flows. As a result, its variable count scales linearly with the number of nodes (or the product of nodes and cables). In a typical 3D 6-connected cubic lattice, the number of edges is generally 3 to 6 times that of nodes—depending on whether the graph is directed or undirected and on the specific edge-counting convention. Therefore, under identical spatial resolution and cable count, the edge-based flow formulation of the MCF model inevitably incurs an order-of-magnitude increase in decision variables, accompanied by a proportional proliferation of constraints related to flow conservation, capacity limits, and coupling conditions. This structural disparity not only leads to substantially higher memory consumption but also imposes a severe computational burden on optimization solvers. Consequently, the proposed formulation exhibits clear advantages in terms of variable compactness and scalability, particularly in large-scale 3D path planning scenarios.
Given that integer programming is theoretically NP-Hard, its practical solution time is highly sensitive to the number of decision variables and constraints; specifically, within the Branch-and-Bound framework, the size of the search tree typically grows superlinearly—often exponentially—with respect to problem dimensionality. Consequently, a substantial reduction in the number of decision variables directly translates into a significant decrease in computational time. Experimental results further demonstrate that as the problem scale—such as grid resolution or the number of cables—continues to increase, this computational advantage exhibits a pronounced and amplifying marginal gain. This behavior robustly validates that the proposed model exhibits favorable scalability and computational efficiency in large-scale multi-cable path planning tasks, making it a potential candidate for real-world applications with certain real-time or resource constraints.
Scenario 6: In this experiment, a real-world case study was conducted using nuclear island data provided by the China Nuclear Power Research Institute (CNPRI). One layer of the nuclear island was selected as the solution space to perform empirical research on nuclear-grade cable routing. The cable-related parameters are presented in Table 5. The experimental results are shown in the Figure 12. The proposed model is compared with MCMCNF and the PSO heuristic algorithm that achieved the best performance in the previous experiments, and the comparison results are presented in Table 6.
In the real-world scenario, the experimental results further demonstrate that the proposed mathematical model retains favorable overall performance for large-scale instances. First, in terms of model size, the Proposed Model contains 31,245,856 decision variables and 33,634,742 constraints, which are substantially lower than the 158,675,133 decision variables and 252,352,027 constraints required by MCMCNF, corresponding to reductions of approximately 80.3% and 86.7%, respectively. This result is consistent with the previous conclusion that the node-driven variable definition can substantially compress the model size and alleviate the growth of combinatorial complexity, thereby indicating that the proposed model exhibits better compactness and scalability at the modeling level. Second, under the same time limit, both the Proposed Model and MCMCNF reach TL; however, the proposed model still attains a lower feasible objective value and a smaller optimality gap, indicating that, under the same computational budget, the Proposed Model is capable of identifying a higher-quality feasible solution and demonstrates stronger performance under limited solving time. In contrast, PSO yields a final objective value of 212,307.6, which is significantly higher than that of the Proposed Model, and requires 11,152.2 s of computation time. This indicates that, in real and complex scenarios, although heuristic methods are able to generate feasible solutions, they remain clearly inferior to the mathematical programming model proposed in this paper in terms of solution quality. Overall, these results further verify that, by significantly reducing the number of decision variables and constraints, the proposed model is able to obtain relatively better solutions even under a stringent time limit, thereby demonstrating superior engineering applicability and practical value.

5. Conclusions

In this paper, a cable layout optimization model based on mathematical planning is proposed to solve the challenges brought by the complex spatial structure, dense equipment distribution and limited wiring space in a limited environment. Firstly, the 3D layout space is discretized into regular grids, and the routable area and obstacle position are accurately represented by 3D coordinates. Then, a comprehensive cost field is constructed on the basis of the grid, which consists of a distance field and a heat field. The distance field is defined as the shortest distance from each grid node to the nearest obstacle, and its value increases with the distance from the obstacle to avoid routing conflicts; the thermal field is used to quantify the impact of thermal environment. Considering the physical characteristics that the thermal effect attenuates with the increase of the distance from the heat source, and combining the superposition effect of multiple heat sources, the cumulative distance from a point to all relevant heat sources is mapped to a positive real number, thus reflecting the overall heat load level of the location. On this basis, the geometric, thermal safety, connectivity and other constraints on cable routing are systematically analyzed and transformed into strict mathematical expressions to build the objective function of the multi-objective optimization model. By introducing weight coefficients, the multi-objective problem is transformed into a single objective optimization problem, which is solved using mathematical programming methods to obtain a high-quality feasible routing path under the prescribed time limit, together with solver-provided optimality information (lower bound and optimality gap). Global optimality for the discretized model can be certified only when the solver converges and proves optimality.
In the experimental verification phase, the proposed method is compared with many classic path planning algorithms such as A*, Dijkstra’s, RRT, PSO and GA in a variety of complex scenarios. The results show that in the two-cable layout task, although the average path length and number of nodes of the method in this paper are slightly higher than those of A* and Dijkstra’s algorithms, the objective function value decreases by 20% on average, reflecting better comprehensive performance; compared with RRT, this method performs better in path length, node number and objective function value. Compared with PSO and GA, although the number of nodes generated is slightly more, the path is shorter and the objective function value is significantly lower. In the more complex five cable layout scheme, the performance trend is consistent: the proposed method is still comprehensively superior to A*, Dijkstra’s, RRT and PSO in the average objective function value. Furthermore, in terms of computational efficiency, the proposed algorithm was significantly faster than the classical algorithms in both dual-cable and five-cable laying tasks. These results preliminarily validate the proposed mathematical programming model’s effectiveness, robustness, and certain adaptability under varying levels of wiring complexity.
Although the proposed node-driven formulation significantly reduces the scale of decision variables and computational pressure compared with conventional edge-driven integer programming models, it still inherits the inherent scalability limitations of integer optimization methods when facing ultra-large-scale engineering scenarios. In practical applications, the solving efficiency may be restricted by problem size and computational resources.
For further improvement, multiple promising optimization directions can be adopted in future research, including problem decomposition strategies, hybrid cooperation with heuristic algorithms, parallel computing technology, and Lagrangian relaxation methods, to further enhance the computational adaptability and scalability of the proposed model for complex large-scale cable routing tasks. Therefore, future research should focus on introducing parallel computing, model dimensionality reduction or decomposition strategies to improve solution efficiency and promote the practical application of this method in large-scale engineering systems.

Author Contributions

W.L. and Q.N.; methodology, W.L.; software, W.L.; validation, L.H., Y.M. and X.Y.; formal analysis, W.L.; investigation, Y.L. and X.L.; resources, Q.N.; data curation, W.L. and L.H.; writing—original draft preparation, W.L.; writing—review and editing, Q.N.; visualization, W.L. and Y.M.; supervision, Q.N.; project administration, Q.N.; funding acquisition, Q.N. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Joint Fund of China Nuclear Power Research and Design Institute, grant number SCU&NPIC-LHCX-20.

Data Availability Statement

The data presented in this study are not publicly available due to restrictions on data access permissions and can be requested from the corresponding author upon reasonable request.

Acknowledgments

The authors would like to express their sincere gratitude to all co-authors for their valuable contributions and dedicated efforts throughout the entire research process, including the experimental design, data analysis, and manuscript preparation.

Conflicts of Interest

Authors Wenjing Liu, Liang He, Yu Ma, Xiaopin Yue, Yanan Liu and Xianghong Liu were employed by the company State Key Laboratory of Advanced Nuclear Energy Technology, Nuclear Power Institute of China, Chengdu 610213. The remaining author declares that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
INFOInformation Sharing and Feedback-based Optimization
MOPSOMulti-objective particle swarm optimization
RRTRapidly-exploring Random Tree
PSOParticle Swarm Optimization
GAGenetic Algorithm
ILP0–1 Integer Linear Programming
MCFMulti-Commodity Flow
BILPBinary Integer Linear Programming
MCMCNFMinimum-Cost Multi-Commodity Network Flow
TLTime Limit

References

  1. Cui, Y.P. Research progress of cable layout design technology: A review. J. Mech. Eng. 2023, 59, 268. [Google Scholar] [CrossRef]
  2. Zhang, D.; Cai, C.; Zhou, C.; Chen, W. Multi-branch Cable Harness Layout Optimization Based on Pattern Search Improved Particle Swarm Optimization Algorithm. In Advances in Mechanical Design. ICMD 2021; Tan, J., Ed.; Mechanisms and Machine Science; Springer: Singapore, 2022; Volume 111, pp. 1255–1273. [Google Scholar] [CrossRef]
  3. Hu, L.; Yu, Z.; Liang, M.; Chen, X.; Chen, L.; Huang, G. Optimization of cable connection layout of unattended AC/DC joint construction station based on INFO algorithm. Discov. Appl. Sci. 2025, 7, 501. [Google Scholar] [CrossRef]
  4. Zhao, H.; Liu, Q.; Tong, B. Multi-pipe routing in bundles for aero-engine using MOPSO. In Proceedings of DEStech Transactions on Computer Science and Engineering; DEStech Publishing Inc.: Lancaster, PA, USA, 2019; pp. 927–933. [Google Scholar]
  5. Taylor, P.; Yue, H.; Campos-Gaona, D.; Anaya-Lara, O.; Jia, C. Wind farm array cable layout optimisation for complex offshore sites—A decomposition based heuristic approach. IET Renew. Power Gener. 2023, 17, 243–259. [Google Scholar] [CrossRef]
  6. Duvnjak Zarkovic, S.; Shayesteh, E.; Hilber, P. Onshore wind farm-reliability centered cable routing. Electr. Power Syst. Res. 2021, 196, 107201. [Google Scholar] [CrossRef]
  7. Gritzbach, S.; Stampa, D.; Wolf, M. Solar farm cable layout optimization as a graph problem. Energy Inform. 2022, 5, 25. [Google Scholar] [CrossRef]
  8. Blanco, V.; González, G.; Hinojosa, Y.; Ponce, D.; Pozo, M.A.; Puerto, J. The pipelines and cable trays location problem in naval design. Ocean Eng. 2023, 286, 115525. [Google Scholar] [CrossRef]
  9. Karlsson, T.; Åblad, E.; Hermansson, T.; Carlson, J.S.; Tenfält, G. Automatic Cable Harness Layout Routing in a Customizable 3D Environment. Comput. Aided Des. 2024, 169, 103671. [Google Scholar] [CrossRef]
  10. Wędzik, A.; Siewierski, T.; Szypowski, M. A New Method for Simultaneous Optimizing of Wind Farms Network Layout and Cable Cross-Sections by MILP Optimization. Appl. Energy 2016, 182, 525–538. [Google Scholar] [CrossRef]
  11. Blanco, V.; González, G.; Hinojosa, Y.; Ponce, D.; Pozo, M.A.; Puerto, J. Network flow based approaches for the pipelines routing problem in naval design. Omega 2022, 111, 102659. [Google Scholar] [CrossRef]
  12. Blanco, V.; González, G.; Puerto, J. Optimal Embedding of Wiring Diagrams in Constrained Three-Dimensional Spaces. arXiv 2026, arXiv:2603.08157. [Google Scholar] [CrossRef]
  13. Dutta, S.; Wilde, N.; Smith, S.L. Informative path planning in random fields via mixed integer programming. In Proceedings of the 2022 IEEE 61st Conference on Decision and Control (CDC); IEEE: Piscataway, NJ, USA, 2022. [Google Scholar]
  14. Han, S.D.; Yu, J. Integer programming as a general solution methodology for path-based optimization in robotics: Principles, best practices, and applications. In Proceedings of the 2019 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS); IEEE: Piscataway, NJ, USA, 2019. [Google Scholar]
  15. Gareau, C.; Beaudry, É.; Makarenkov, V. Fast and optimal branch-and-bound planner for the grid-based coverage path planning problem based on an admissible heuristic function. Front. Robot. AI 2023, 9, 1076897. [Google Scholar]
  16. Behera, S.; Sahoo, S.; Pati, B.B. A Review on Optimization Algorithms and Application to Wind Energy Integration to Grid. Renew. Sustain. Energy Rev. 2015, 48, 214–227. [Google Scholar] [CrossRef]
  17. Turner, S.D.O.; Romero, D.A.; Zhang, P.Y.; Amon, C.H.; Chan, T.C.Y. A New Mathematical Programming Approach to Optimize Wind Farm Layouts. Renew. Energy 2014, 63, 674–680. [Google Scholar] [CrossRef]
  18. Dong, Z.; Bian, X. Ship pipe route design using improved a* algorithm and genetic algorithm. IEEE Access 2020, 8, 153273–153296. [Google Scholar] [CrossRef]
  19. Niu, W.; Sui, H.; Niu, Y.; Cai, K.; Gao, W. Ship pipe routing design using nsga-ii and coevolutionary algorithm. Math. Probl. Eng. 2016, 2016, 7912863. [Google Scholar] [CrossRef]
  20. Hart, P.E.; Nilsson, N.J.; Raphael, B. A formal basis for the heuristic determination of minimum cost paths. IEEE Trans. Syst. Sci. Cybern. 1968, 4, 100–107. [Google Scholar] [CrossRef]
  21. Dijkstra, E.W. A note on two problems in connexion with graphs. Numer. Math. 1959, 1, 269–271. [Google Scholar] [CrossRef]
  22. Lavalle, S.M. Rapidly-exploring random trees: A new tool for path planning. Annu. Res. Rep. 1998, 98, 293–308. [Google Scholar]
  23. Eberhart, R.C.; Kennedy, J. A new optimizer using particle swarm theory. In Proceedings of the Sixth International Symposium on Micro Machine and Human Science (MHS ’95), Nagoya, Japan, 4–6 October 1995; pp. 39–43. [Google Scholar]
  24. Chahar, V.; Katoch, S.; Chauhan, S.S. A review on genetic algorithm: Past, present, and future. Multimed. Tools Appl. 2020, 80, 8091–8126. [Google Scholar]
  25. Dantzig, G.; Fulkerson, R.; Johnson, S. Solution of a large-scale traveling-salesman problem. J. Oper. Res. Soc. Am. 1954, 2, 393–410. [Google Scholar] [CrossRef]
  26. Wolsey, L.A.; Nemhauser, G.L. Integer and Combinatorial Optimization; John Wiley & Sons: Hoboken, NJ, USA, 2014. [Google Scholar]
Figure 1. Schematic diagram of heat field.
Figure 1. Schematic diagram of heat field.
Mathematics 14 01999 g001
Figure 2. sketch of obstacle expansion: (a) Sketch before obstacle expansion. (b) Sketch after obstacle expansion.
Figure 2. sketch of obstacle expansion: (a) Sketch before obstacle expansion. (b) Sketch after obstacle expansion.
Mathematics 14 01999 g002
Figure 3. Workflow Diagram.
Figure 3. Workflow Diagram.
Mathematics 14 01999 g003
Figure 4. Schematic diagram of assigning grid indices in the order of X, Y, Z axes.
Figure 4. Schematic diagram of assigning grid indices in the order of X, Y, Z axes.
Mathematics 14 01999 g004
Figure 5. Schematic diagram of index changes.
Figure 5. Schematic diagram of index changes.
Mathematics 14 01999 g005
Figure 6. Schematic Diagram of Orthogonal Neighborhood.
Figure 6. Schematic Diagram of Orthogonal Neighborhood.
Mathematics 14 01999 g006
Figure 7. Convergence curves of PSO and GA algorithms.
Figure 7. Convergence curves of PSO and GA algorithms.
Mathematics 14 01999 g007
Figure 8. Schematic diagram of algorithm running results for Scenario 1 (blue dots represents the starting and ending points, red ‘x’ represent wall obstacles, and black dots represent randomly generated obstacles within the wall space, and the lines represent the cable path): (a) Planning results of mathematical model. (b) Planning results of A* algorithm. (c) Planning results of Dijkstra’s algorithm. (d) Planning results of RRT algorithm. (e) Planning results of PSO algorithm. (f) Planning results of GA algorithm.
Figure 8. Schematic diagram of algorithm running results for Scenario 1 (blue dots represents the starting and ending points, red ‘x’ represent wall obstacles, and black dots represent randomly generated obstacles within the wall space, and the lines represent the cable path): (a) Planning results of mathematical model. (b) Planning results of A* algorithm. (c) Planning results of Dijkstra’s algorithm. (d) Planning results of RRT algorithm. (e) Planning results of PSO algorithm. (f) Planning results of GA algorithm.
Mathematics 14 01999 g008
Figure 9. Schematic diagram of algorithm running results for Scenario 2 (blue dots represents the starting and ending points, red ‘x’ represent wall obstacles, black dots represent randomly generated obstacles within the wall space, and the lines represent the cable path): (a) Planning results of mathematical model. (b) Planning results of A* algorithm. (c) Planning results of Dijkstra’s algorithm. (d) Planning results of RRT algorithm. (e) Planning results of PSO algorithm. (f) Planning results of GA algorithm.
Figure 9. Schematic diagram of algorithm running results for Scenario 2 (blue dots represents the starting and ending points, red ‘x’ represent wall obstacles, black dots represent randomly generated obstacles within the wall space, and the lines represent the cable path): (a) Planning results of mathematical model. (b) Planning results of A* algorithm. (c) Planning results of Dijkstra’s algorithm. (d) Planning results of RRT algorithm. (e) Planning results of PSO algorithm. (f) Planning results of GA algorithm.
Mathematics 14 01999 g009
Figure 10. Schematic diagram of algorithm running results for Scenario 3 (Green dots denote cable start points, red dots denote cable end points, and solid lines denote cable routing paths. Passable nodes refer to all remaining available grid nodes eligible for cable layout and are set transparent for clearer visualization.) (a) Schematic diagram of cable layout results when α = 0.6 , β = 0.4 , (b) Schematic diagram of cable layout results when α = 0 , β = 1 .
Figure 10. Schematic diagram of algorithm running results for Scenario 3 (Green dots denote cable start points, red dots denote cable end points, and solid lines denote cable routing paths. Passable nodes refer to all remaining available grid nodes eligible for cable layout and are set transparent for clearer visualization.) (a) Schematic diagram of cable layout results when α = 0.6 , β = 0.4 , (b) Schematic diagram of cable layout results when α = 0 , β = 1 .
Mathematics 14 01999 g010
Figure 11. Schematic diagram of algorithm running results for Scenario 4 (Green dots represent the starting point of the cable, red dots represent the ending point of the cable, and lines represent the cable path. Passable nodes refer to all remaining available grid nodes eligible for cable layout and are set transparent for clearer visualization.)). (a) Schematic diagram of heat field when the heat source is located at coordinates ( 0,0 , 0 ) . (b) Schematic diagram of cable path when the heat source is located at coordinates ( 0,0 , 0 ) . (c) Schematic diagram of heat field when the heat source is located at coordinates ( 3,3 , 3 ) . (d) Schematic diagram of cable path when the heat source is located at coordinates ( 3,3 , 3 ) . (e) Schematic diagram of heat field when the heat source is located at coordinates ( 4,7 , 2 ) . (f) Schematic diagram of cable path when the heat source is located at coordinates ( 4,7 , 2 ) .
Figure 11. Schematic diagram of algorithm running results for Scenario 4 (Green dots represent the starting point of the cable, red dots represent the ending point of the cable, and lines represent the cable path. Passable nodes refer to all remaining available grid nodes eligible for cable layout and are set transparent for clearer visualization.)). (a) Schematic diagram of heat field when the heat source is located at coordinates ( 0,0 , 0 ) . (b) Schematic diagram of cable path when the heat source is located at coordinates ( 0,0 , 0 ) . (c) Schematic diagram of heat field when the heat source is located at coordinates ( 3,3 , 3 ) . (d) Schematic diagram of cable path when the heat source is located at coordinates ( 3,3 , 3 ) . (e) Schematic diagram of heat field when the heat source is located at coordinates ( 4,7 , 2 ) . (f) Schematic diagram of cable path when the heat source is located at coordinates ( 4,7 , 2 ) .
Mathematics 14 01999 g011
Figure 12. Real scene results (Proposed Model).
Figure 12. Real scene results (Proposed Model).
Mathematics 14 01999 g012
Table 1. List of symbols and definitions.
Table 1. List of symbols and definitions.
SymbolMeaning
g Grid resolution
nNumber of cables
i Cable i
u , r Index u,r
s i Starting point coordinates of the i-th cable
t i Ending point coordinates of the i-th cable
d u The distance from the grid with index u to the nearest obstacle
h u Heat value possessed by grid with index u
c u Grid cost of index u
n Total number of cables
p a t h i The path vector composed of the i-th cable
D u The index set of orthogonal neighbors of the coordinates with index u
n u m x The total number of grid units (divisions) along the X-axis.
n u m y The total number of grid units (divisions) along the Y-axis.
S = { s 1 , s 2 , , s n } Cable start-point index set
T = { t 1 , t 2 , , t n } Cable end-point index set
N Total coordinate space
O Obstacle coordinate space/Obstacle point set
V Feasible point set
x u i Binary variable indicating if cable i passes through grid u
S u Binary variable indicating if grid u is selected by any cable
Table 2. Comparison of Experimental Results between the six Algorithms over 1000 Runs.
Table 2. Comparison of Experimental Results between the six Algorithms over 1000 Runs.
AlgorithmAverage Path LengthAverage Number of NodesAverage Objective FunctionAverage Bend CountCalculation Time (s)
Proposed Model22.66223.6622779.98940.65
A*24.47424.4743581.419101.76
Dijkstra’s27.84427.8443673.42161.64
RRT25.50829.5314469.41170.89
PSO25.63417.7373610.78062.35
GA41.73418.5705731.75283.47
Table 3. Comparison of Experimental Results between the six Algorithms over 500 Runs.
Table 3. Comparison of Experimental Results between the six Algorithms over 500 Runs.
AlgorithmAverage Path LengthAverage Number of NodesAverage Objective FunctionAverage Bend CountCalculation Time (s)
Proposed Model51.23652.2366271.45172.36
A*47.42846.4287536.365127.43
Dijkstra’s48.63847.6387358.534107.59
RRT53.52465.8249534.256184.51
PSO46.32827.3166823.3201111.38
GA105.65649.22414,651.5832015.49
Table 4. Comparison of the number of decision variables between ILP and MCF.
Table 4. Comparison of the number of decision variables between ILP and MCF.
ModelThe Number of Cables Is 2Cube Grid Edge Length
10203040
BILPNumber of decision variables864819235,15293,312
MCMCNF215646,080210,912559,872
Reduction ratio of decision variables59.93%82.22%83.33%83.33%
BILPCalculation 9 time (s)0.246.8853.37502.1
MCMCNF1.11685.9TLTL
Table 5. Related parameters of real scene case.
Table 5. Related parameters of real scene case.
Related Parameters of Real Scene Case
Grid Resolution20 cm
n u m x 236
n u m y 228
n u m z 73
Number of cables8
Time Limit40,000 s
Table 6. Real scene results.
Table 6. Real scene results.
Real Scene Results
-n#Vars#Ctrs Obj opt ObjBend CountGapTime
Proposed Model831,245,85633,634,74239,274.289,571.16556.1TL
MCMCNF158,675,133252,352,02756,691.3173,124.07967.2TL
PSO---212,307.6102-11,152.2
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

Liu, W.; He, L.; Ma, Y.; Yue, X.; Liu, Y.; Liu, X.; Ning, Q. Research on an Optimization Method for Cable Layout in Confined Spaces. Mathematics 2026, 14, 1999. https://doi.org/10.3390/math14111999

AMA Style

Liu W, He L, Ma Y, Yue X, Liu Y, Liu X, Ning Q. Research on an Optimization Method for Cable Layout in Confined Spaces. Mathematics. 2026; 14(11):1999. https://doi.org/10.3390/math14111999

Chicago/Turabian Style

Liu, Wenjing, Liang He, Yu Ma, Xiaopin Yue, Yanan Liu, Xianghong Liu, and Qian Ning. 2026. "Research on an Optimization Method for Cable Layout in Confined Spaces" Mathematics 14, no. 11: 1999. https://doi.org/10.3390/math14111999

APA Style

Liu, W., He, L., Ma, Y., Yue, X., Liu, Y., Liu, X., & Ning, Q. (2026). Research on an Optimization Method for Cable Layout in Confined Spaces. Mathematics, 14(11), 1999. https://doi.org/10.3390/math14111999

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop