1. Introduction
Modern industry demands that machine tools become increasingly efficient and precise. This article addresses one of the key errors affecting machining accuracy—errors caused by thermal deformations of the machine tool’s supporting structure. It is estimated that this error can account for up to 70% of the total machining error [
1], and its reduction or elimination can significantly improve machining accuracy.
Literature sources [
2,
3,
4] provide an extensive discussion on the impact of heat generated by machine tool components on the dimensional and shape accuracy of manufactured parts. By limiting excessive heating of the machine tool assemblies, thermal deformation of components is reduced, which significantly improves machining precision. The phenomenon of minimizing heat influence on the machining process and its quality is especially important in the case of heavy-duty machine tools.
Therefore, to meet the stringent requirements for dimensional and shape accuracy, it is not sufficient to conduct only static, dynamic, and strength analyses of the machine tool. It is also essential to account for thermal deformations. Thermal analysis requires consideration of the distribution and influence of all heat sources, the material properties of structural elements and joints, as well as heat exchange with the environment.
Machine tools contain a considerable number of heat sources, both internal and external, whose heat generation intensity depends on load, operating time, and working conditions. The instability of generated heat leads to variability in the temperature distribution across machine tool components. Heat is generated during cutting processes, by drive motors (as thermal losses), and through friction in gears and guideways. External heat sources also significantly affect the heat distribution in the machine tool, transferring heat through convection and thermal radiation. These external sources include, among others, other nearby machine tools, heaters, sunlight, and fluids in contact with the machine (e.g., cutting fluids) [
5,
6,
7].
One of the most commonly applied and described groups of methods for minimizing thermal deformations involves compensating for these deformations through CNC control of the machine tool. Such methods typically consist of three stages: measuring the temperature and thermal errors of the machine tool under typical operating conditions, establishing mathematical models correlating the temperature of machine components with the magnitude of errors, and compensating for thermal errors based on these models [
8,
9,
10]. These methods often require the machine tool’s structure and the placement of heat sources to be as symmetrical as possible [
11]. Achieving structural symmetry is challenging but feasible, whereas attaining symmetry in heat sources is often impractical. The objective of the research presented in this study was to develop reliable methods for optimizing the structural design of the rotary table of a vertical turning lathe, and more broadly, the design of machine tool body structures, with the aim of minimizing thermal deformations while maintaining the original level of static stiffness.
3. Optimization
The analyzed problem of machine tool body deformations can be considered within the framework of multi-criteria optimization. In general, optimization involves modifying three key parameters:
Thus, the problem can be formulated as a search for an optimal vector of decision variables that balances these conflicting objectives. There are several approaches to solving multi-criteria optimization problems, including
Scalarization, where the multi-objective problem is transformed into a single-objective function by assigning weights to different criteria.
Pareto-based optimization, which seeks a set of non-dominated solutions, allowing a trade-off between conflicting objectives without reducing them to a single metric.
Defining the primary and dominant criterion, as well as assessing the significance of the remaining criteria, allows for the transformation of a multi-criteria problem into a single-criterion problem according to the simplified scheme (
Figure 3).
Before optimization can be performed, a certain number of computational analyses must be conducted. Finite element analysis (FEA) for complex models is highly time-consuming. To reduce computation time, certain simplifications are introduced. The primary simplification involves eliminating contact elements necessary for determining contact stiffness. This allows for the use of a linear model, which significantly reduces computational demands. Consequently, the obtained stiffness values of the machine tool cannot be directly compared with results from experimental studies. However, they remain sufficient as a reference point for optimization results.
In the analyzed case, the goal of the optimization is to minimize the thermal displacements of the vertical lathe table. Based on the scheme (
Figure 3), the parameters q
2 (static stiffness of the machine) and q
3 (mass) have been moved to constraints:
q2 (static stiffness) is subject to a left-sided constraint, meaning its value cannot be lower than that of the initial model.
q3 (mass of the lathe) is subject to a right-sided constraint, meaning the maximum mass must not exceed 105% of the initial model’s mass.
These constraints are imposed due to the load-bearing capacity of the main axial bearing of the lathe table and the need to minimize the impact of mass changes on the machine’s dynamic behavior. Given that the bearing has been designed as a high-load capacity variant, any further increase in load would require a modification of the bearing system. The measurement of displacements is conducted at three points: A, B, and C. However, only point B—located on the periphery of the lathe table’s working surface—was selected for optimization. This choice was made because point B exhibits relatively large displacement values, which significantly affect the machining accuracy of the system.
The verification of the FEM model, used as input data in the structural optimization process, was carried out—among other methods—based on thermal measurements and geometrical measurements of the actual structure (i.e., relative table deformation).
The temperature measurement system is based on both contact and non-contact (pyrometric) measurement methodologies. The contact measurement circuit employs a Multi-I/O National Instruments PXI-6259 measurement card integrated with an SC-2345 connection and signal-conditioning module designed for temperature sensors. The system includes five dual-channel SCC-RTD01 extension modules compatible with PT100 resistance temperature detectors (RTDs), providing a measurement accuracy better than 0.3 K.
Non-contact temperature measurements were performed using a VigoCam V50 thermal imaging camera (Vigo Photonic, Ożarów Mazowiecki, Poland). This long-wave infrared (LWIR) camera operates within a spectral range of 8–14 μm and is equipped with a microbolometric Focal Plane Array (FPA) detector with a resolution of 384 × 288 pixels. The thermographic results were calibrated to account for the appropriate emissivity values. The primary objective of this measurement system is to identify variations in the temperature distribution across the table surface, thereby enabling the localization of heat sources. The measurement results, shown in
Figure 4, are discussed in detail in [
12].
Geometrical measurements of the relative deformation of the table were performed using a contact method with analog Mitutoyo XQR dial gauges. These gauges, which hold valid calibration certificates, provide a measurement accuracy of 0.003 mm and a resolution of 0.001 mm.
3.1. Parametric Optimization
The parametric optimization methodology developed to solve the analyzed problem is schematically presented in
Figure 5. The foundation of the computational model is the geometric model of the analyzed machine, which serves as the basis for creating the discrete parametric model in the finite element method (FEM) convention, along with the initialization parameters of the computational algorithm. Based on the discrete FEM model, a numerical computation block controlled by the optimization algorithm is executed iteratively.
First Iteration—Thermal State Analysis:
A steady-state thermal analysis is conducted, which is independent of time.
The use of a static thermal model accelerates calculations by eliminating transient effects.
The steady-state condition is determined by analyzing results from the dynamic thermal model.
Heat source power compensation is applied to account for the load from the lathe table’s self-weight.
The algorithm determines the heat source components based on analytical relationships that depend on the table mass.
Second Iteration—Static Stiffness Analysis:
The static stiffness of the machine tool is evaluated.
After each iteration, the results are compared with predefined constraints.
If the constraints are not satisfied, the parameter set is rejected, and the optimization algorithm selects a new set of initialization parameters.
The automated numerical computation process repeats until all constraint conditions are satisfied.
Final Verification—Dynamic Thermal Analysis:
Once an acceptable solution is found, a time-dependent dynamic thermal analysis of the machine tool is conducted to verify the obtained parameters.
If the solution meets acceptance criteria, it is considered optimal. Otherwise, the algorithm starts a new iteration.
Dynamic analysis helps identify the best solution from the set of feasible solutions by minimizing mass while maintaining maximum allowable displacements and the required minimum stiffness.
If the algorithm fails to find a satisfactory solution within a specified number of iterations, it terminates. The stopping criterion for the optimization process depends on the type of computational algorithm used. The parametric optimization was first performed based on the table design proposed by the designer (
Figure 6). The optimization focused solely on the thickness of the table’s walls and ribs. Therefore, the number of ribs and their placement were not considered in the optimization process. Additionally, the overall dimensions of the table were assumed to remain unchanged.
3.2. Optimization Models and Parameter Tuning
The optimization process employed three classes of algorithms: response surface and gradient-based methods, population-based metaheuristics (GA and PSO), and hybrid variants (hGA and hPSO) combining evolutionary optimization with metamodeling.
3.3. Response Surface and Gradient-Based Methods
For response surface method (RSM)-based and gradient-based algorithms, the optimization models integrated within HyperStudy were utilized with automatic parameter tuning relative to the problem configuration. Convergence was governed by standard termination criteria: negligible change in the solution point or objective function value, attainment of a predefined maximum number of iterations, and, in the case of gradient-based methods, satisfaction of the gradient stationarity condition.
When the solver encountered infeasible regions or failed analyses, the permissible methodologies of the ARSM, GRSM, and MFD algorithms were applied, involving a 50% reduction in the step size. For the SQP algorithm, failed line searches resulted in step-size halving, while failed gradient evaluations led to zero-gradient assignment. If convergence could not be achieved, the optimization process was terminated with a negative outcome.
These configurations ensured stable convergence while mitigating the impact of numerical instabilities and local infeasibility zones.
3.4. Genetic Algorithm (GA)
A built-in GA model from HyperStudy was employed, based on the canonical genetic algorithm framework. Parameter selection followed the empirical studies of Szczepanik [
13], correlating algorithm efficiency with the number of decision variables. The adopted settings (
Table 2) were selected to ensure a balance between convergence speed and population diversity.
For both the basic (three-variable) and extended (fourteen-variable) models, crossover and mutation probabilities were adjusted to improve robustness against premature convergence. The GA typically achieved convergence within 40–60 generations, maintaining consistent search behavior across runs.
3.5. Particle Swarm Optimization (PSO)
The PSO algorithm was implemented through the HyperOpt interface of HyperStudy, allowing direct communication between the solver and an external MATLAB R2019a -based optimization engine. The implementation followed the formulations presented by Szczepanik [
13] and the reference models developed by Heris [
14].
Parameter tuning was performed based on empirical analysis, adjusting inertia and acceleration coefficients depending on the number of decision variables to improve convergence rate and prevent oscillations. The adopted PSO parameters are summarized in
Table 3.
Convergence was defined by negligible improvements in the objective function or design vector, or by reaching the maximum iteration limit. For both tested configurations, the PSO algorithm exhibited stable convergence behavior, with the extended model demonstrating a longer transient phase before achieving a steady global optimum.
3.6. Hybrid Algorithms (hGA, hPSO)
Hybrid algorithms combined evolutionary search (GA or PSO) with metamodel-based response approximation, allowing accelerated convergence through reduced solver evaluations. The hybrid model generated an approximated parameter matrix based on bidirectional sampling within predefined bounds, followed by numerical evaluations using the finite element (FE) model.
The optimization algorithm then explored the reduced-order design space defined by the metamodel, and the resulting optimal parameters were validated using a dynamic thermal FE simulation. Due to inherent approximation errors, final verification was essential. The hybrid method proved effective for the extended model with fourteen design variables, achieving a reduction in computational cost of approximately 30–40% while maintaining comparable solution accuracy.
In the optimization model, the possibility of adjusting the thickness of different rib groups was considered, while maintaining their axial symmetry relative to the table. Accordingly, appropriate rib groups were selected. The ribs were divided into 14 groups, each corresponding to different decision variable parameters. The parametric model of the ribs is shown in
Figure 7.
The decision variables for the parametric optimization of the topological model are presented in
Table 4. In the model, topology modifications through the removal of ribs were not allowed, even if the optimization algorithm resulted in rib thickness values close to zero. The different colors of the FEM surface elements visible in the model represent various parameters that define the rib structure.
The summary of results obtained using different optimization algorithms for the expanded model is presented in
Table 5. The optimized mass remains within the acceptable limit of 105% of the initial mass. As a result of the optimization, the table displacement at point B was reduced to 0.5 mm. However, for point C, no significant change was observed compared to the initial model, while the displacement at point A increased by 0.01 mm, reaching 0.07 mm.
The displacement map of the table’s working surface (
Figure 8) reveals an asymmetry in the Z-axis displacement on one side of the table. This discrepancy may be due to the axial asymmetry of the table, arising from assembly connections or bed deformation. Due to technological constraints in casting production, all algorithm-derived values were rounded to 1 mm.
For the obtained parameters, graphical heat distribution maps on the table’s working surface (
Figure 9) are presented for the steady-state thermal condition after t = 300 min. Additionally, the displacement map in the Z direction after the same duration is shown in
Figure 8. The most relevant results in the tabular summary are those from the GA (Genetic Algorithm) and PSO (Particle Swarm Optimization) algorithm, along with their hybrid versions. The optimized thickness parameters for the table ribs and walls of the carousel lathe based on the expanded model are provided in
Table 5. The modifications introduced compared to the original (initial) model led to a 4% increase in the optimized table’s mass due to rib thickness adjustments.
The ARSM, GRSM, SQP, and MFD algorithms failed to find an optimal solution. In the case of gradient-free algorithms, both SQP and MFD did not reach a feasible solution within 1000 iterations, resulting in premature termination. The gradient-based algorithms were stopped due to stationarity of the gradient condition, with ARSM terminating after 274 function evaluations and GRSM after 307 evaluations.
The best performance in terms of the lowest number of function evaluations was achieved by hybrid algorithms. Particle swarm-based algorithms demonstrated the highest efficiency, even when compared to genetic algorithms (GAs). Among the hybrid models combining GA and PSO with a gradient-based search method, the hPSO algorithm proved to be the most efficient, due to the superior effectiveness of the PSO-based search strategy.
3.7. Topological Optimization
The conducted optimization process is based on the SIMP (Solid Isotropic Microstructure with Penalization) method. The choice of this method was made based on a literature review regarding the effectiveness of topological optimization algorithms. The problem of topological optimization using GSO methods is widely discussed in [
15,
16,
17,
18,
19,
20], where the high effectiveness of SIMP has been demonstrated. Additionally, a detailed methodological description and proof of its superior performance compared to other material, geometric, and evolutionary algorithms were presented by Kalpakjian in [
21]. Based on prior experience in topology optimization using various methods [
22,
23,
24,
25], the high efficiency of this algorithm was also confirmed.
To solve the analyzed problem, an extended version of the SIMP method was applied, incorporating a material addition process in highly stressed areas. Based on the defined task, following an approach analogous to the parametric optimization methodology presented in the diagram (
Figure 5) and using FEM, the problem was divided into three sub-optimization tasks. The first task concerns the thermal model of the machine, the second addresses the time-dependent dynamic model, considering the table’s rotational speed, and the third focuses on static stiffness.
All optimization models operate based on the SIMP method, differing in the criteria used for material removal from the initial finite continuum Ω. In general terms, based on FEM analysis results, the SIMP algorithm iteratively removes material from the discretized domain Ω, consisting of finite elements, according to the adopted criterion.
For thermal analysis, the algorithm removes finite elements with displacements u smaller than the allowable displacements for a given step, udop + p, where p represents the iterative displacement increment until the boundary displacement is established. The solution is accepted only if the allowable displacement specified in the constraints is not exceeded.
In the case of the dynamic model of table rotation, the analysis constraint is the table’s resistance to the centrifugal force acting during its rotation. The algorithm for dynamic analysis removes finite elements from Ω where stresses s are lower than the allowable stresses for a given step, sdop + p, where p represents the iterative stress increment until the boundary stress is established.
For static stiffness, the algorithm eliminates finite elements from Ω with displacements u smaller than the allowable displacements for a given step, udop + p, where p represents the iterative displacement increment until the boundary displacement is established, similar to the thermal analysis.
All three subproblems of topology optimization are executed independently, based on the initial finite continuum model Ω. In each case, the algorithm selects the last iteration before exceeding the constraints or after reaching a predefined level of input mass reduction. The results obtained from the three independent processes are then superimposed, resulting in a discrete model that combines all input variants.
In the second part of the process, the obtained solution is verified and re-optimized to add material in highly stressed areas.
The model with the supplemented material is verified using the FEM according to the analysis cases defined in the first phase of optimization. After verification, the topology is either accepted or the material addition procedure is repeated until the structure meets the imposed constraints. The result of the optimization is a discretized model of the obtained structure in the form of a 3D finite element mesh, following the FEM convention.
According to the recommendations presented in [
19], a safety factor of 1.5 was adopted for stresses, along with an allowable increase in table rotation speed up to 75 rpm. The load value for determining static stiffness was not increased, as the limiting condition requires that the minimum static stiffness of the optimized model should not be lower than that of the initial machine model. The developed methodology is presented in the form of a block diagram in
Figure 10. As a result of the topology optimization based on the simple table (
Figure 11), a discretized model of the central part of the table was obtained, as shown in
Figure 12.
The resulting topology optimization model represents optimal energy flow paths and does not take manufacturing constraints into account; therefore, it requires refinement to remove erroneous elements and adaptation to manufacturing technology. Furthermore, despite the SIMP algorithm’s resistance to elements with zero or negative material density, it is necessary to verify the obtained model for their presence.
Based on the results of shape optimization and the determined energy flow paths, which correspond to the table’s ribbing topology, a CAD model of the structure was developed. Manufacturing aspects and design recommendations were taken into account. Compared to the topology model, the parametric model has a reduced number of ribs, as closely spaced thin ribs with a thickness not exceeding 25 mm were merged to form a rib with a thickness equal to the sum of the original rib thicknesses. Additionally, a full ribbing structure was introduced without cutouts and holes. Internal spaces with zero material density were filled with material.
The model was subjected to parametric optimization, where rib and table wall thicknesses were taken as decision variables, following the methodology. The parametric discrete model is shown in
Figure 13.
5. Results of the Conducted Research
The displacement results for each model of the carousel lathe table obtained through parametric optimization, compared to the baseline model, are graphically presented in the form of charts in
Figure 14. The displacement result at point B for the baseline model with 3 decision variables is 0.56 mm, representing a 15% reduction in displacement compared to the baseline model (0.66 mm). For the extended model with 14 decision variables, the displacement at point B was reduced to 0.5 mm after optimization. This result represents a 24% reduction in displacement relative to the baseline model (based on the original machine’s documentation). The percentage change in displacement at point B for different models, relative to the baseline model, is shown in
Figure 15.
A comparison of the mass of the carousel lathe table models obtained through parametric optimization, in comparison to the baseline model, is graphically presented in
Figure 16. After optimization based on the baseline model, the table’s mass increased by 3% compared to the baseline model, which is within the acceptable limit set by the constraints. As a result of the changes introduced in the extended model optimization, the modification of rib thickness parameters caused a 4% increase in the mass of the optimized table compared to the original (input) model. The final mass of the table is within the acceptable range of 105% of the initial mass.
These results highlight the improvements in structural performance (displacement reduction) while maintaining the mass within acceptable limits. In addition to optimizing the rib and wall parameters of the table, the topology of the carousel lathe table was optimized using the extended SIMP method. As a result of the optimization, a discrete model in the FEM convention was obtained. Based on the obtained rib and wall trajectories of the table, a parametric model with 7 decision variables was created in the FEM convention. The model derived from the obtained topology of the table was subjected to parametric optimization using the best among the tested algorithms—the hybrid optimization algorithm hPSO.
On the displacement map of the table’s working surface, asymmetrical greater displacements in the Z-axis direction can be observed on one half of the table, which could be a consequence of axial asymmetry of the table resulting from its joining or deformation of the bed. The displacements measured at point B were reduced by 20% compared to the original model in the case of topology optimization alone, and by 43% in the case of topological–parametric optimization (
Figure 14).
The achieved uniformity of displacements across the entire working surface of the table provides a basis for the implementation of active deformation compensation systems in machine tool bodies, which is an additional benefit arising from the introduced changes.
As a result of the optimization, the mass of the table was reduced to 35 tons, which is 1 ton lower than the original model (
Figure 16) and 2.5 tons lower compared to the best solution after optimizing the rib and wall thicknesses of the original model.
An important aspect is that the displacement of the working surface of the table in the normal direction is uniform, with a deviation between the extreme measurement points A and B of just 0.01 mm.