scieee AI-readable full text Open interactive document viewer

Mastering Truss Structure Optimization With Tree Search

Garayalde, Gabriel; Rosafalco, Luca; Torzoni, Matteo; Corigliano, Alberto

Abstract

This study investigates the combined use of generative grammar rules and Monte Carlo tree search (MCTS) for optimizing truss structures. Our approach accommodates intermediate construction stages characteristic of progressive construction settings. We demonstrate the significant robustness and computational efficiency of our approach compared to alternative reinforcement learning frameworks from previous research activities, such as Q-learning or deep Q-learning. These advantages stem from the ability of MCTS to strategically navigate large state spaces, leveraging the upper confidence bounds for trees formula to effectively balance exploitation–exploration trade-offs. We also emphasize the importance of early decision nodes in the search tree, reflecting design choices crucial for highly performative solutions. Additionally, we show how MCTS dynamically adapts to complex and extensive state spaces without significantly affecting solution quality. While the focus of this article is on truss optimization, our findings suggest that MCTS is a powerful tool for addressing other increasingly complex engineering applications.

Full text

Gabriel Garayalde Department of Civil and Environmental Engineering, Politecnico di Milano, Piazza L. Da Vinci 32, Milano 20133, Italy e-mail: [email protected] Luca Rosafalco Department of Civil and Environmental Engineering, Politecnico di Milano, Piazza L. Da Vinci 32, Milano 20133, Italy e-mail: [email protected] Matteo Torzoni 1 Department of Civil and Environmental Engineering, Politecnico di Milano, Piazza L. Da Vinci 32, Milano 20133, Italy e-mail: [email protected] Alberto Corigliano Department of Civil and Environmental Engineering, Politecnico di Milano, Piazza L. Da Vinci 32, Milano 20133, Italy e-mail: [email protected] Mastering Truss Structure Optimization With Tree Search This study investigates the combined use of generative grammar rules and Monte Carlo tree search (MCTS) for optimizing truss structures. Our approach accommodates intermediate construction stages characteristic of progressive construction settings. We demonstrate the significant robustness and computational efficiency of our approach compared to alternative reinforcement learning frameworks from previous research activities, such as Q-learning or deep Q-learning. These advantages stem from the ability of MCTS to strategically navigate large state spaces, leveraging the upper confidence bounds for trees formula to effectively balance exploitation–exploration trade-offs. We also emphasize the importance of early decision nodes in the search tree, reflecting design choices crucial for highly performative solutions. Additionally, we show how MCTS dynamically adapts to complex and extensive state spaces without significantly affecting solution quality. While the focus of this article is on truss optimization, our findings suggest that MCTS is a powerful tool for addressing other increasingly complex engineering applications. [DOI: 10.1115/1.4068300] Keywords: Monte Carlo tree search, truss optimization, reinforcement learning, computational design synthesis, agent-based design, computer-aided engineering, design optimization, design process, machine learning 1 Introduction Machine learning (ML) is impacting engineering applications, from structural health monitoring [1,2] and predictive maintenance [3] to optimal flow control [4] and automation in construction [5]. Thanks to algorithmic advances and increased computational capabilities, there is a promise in enabling new approaches in computational design synthesis (CDS)—a multidisciplinary research field aimed at automating the generation of design solutions for complex engineering problems [6–8]. By integrating constraints related to the fabrication process, for instance, through physicsbased simulation, CDS could unlock the potential of additive manufacturing in various fields [9], e.g., 3D concrete printing [10]. The effectiveness of traditional approaches to truss optimization, such as the ground-structure method [11,12], has been established through decades of research. However, these methods suffer from high computational complexity and solution instability [13,14]. Alternative strategies for discrete truss optimization rely on heuristic techniques, including genetic algorithms [15–17], particle swarm [18,19], differential evolution [20], and simulated annealing [21]. Nevertheless, the applicability of these methods is similarly limited by their high computational burden and slow convergence as the size of the search space increases [14]. The search space of candidate solutions can be narrowed through generative design grammars [22], which facilitate the exploration of alternative designs within a coherent framework [23,24]. These grammars are structured sets of rules that constrain the space of design configurations by accounting for mechanical information, such as the stability of static equilibrium. By integrating these rules within optimization procedures, it is therefore possible to explore incremental construction processes where the final design is reached through intermediate feasible configurations. The use of grammar-based approaches for truss topology generation and optimization has been proposed in Ref. [25], while their integration within heuristic approaches has been explored in Refs. [26–30]. Recently, the optimal truss design problem has been formalized as a Markov decision process (MDP) [31]. The solution to an MDP involves a series of choices, or actions, aimed at maximizing the longterm accumulation of rewards, which in this context measures the design objective. Viewing truss optimal design through the MDP lens, an action consists of adding or removing truss members, with the ultimate goal of optimizing a design objective, e.g., minimize the structural compliance. The final design thus emerges from a series of actions, possibly guided by grammar rules. This procedure is particularly suitable for truss structures, as it naturally 1 Corresponding author. Contributed by the Design Automation Committee of ASME for publication in the JOURNAL OF MECHANICAL DESIGN. Manuscript received May 30, 2024; final manuscript received February 1, 2025; published online April 16, 2025. Assoc. Editor: Shikui Chen. Journal of Mechanical Design OCTOBER 2025, Vol. 147 / 101702-1 Copyright © 2025 by ASME; reuse license CC-BY 4.0 Downloaded from http://asmedigitalcollection.asme.org/mechanicaldesign/article-pdf/147/10/101702/7453649/md-24-1369.pdf by Politecnico Di Milano user on 17 April 2025 accommodates discrete structural optimization, where adding a single member can significantly alter the functional objective of the design problem. Additionally, it can be extended to design optimization in additive manufacturing settings and continuum mechanics. The same methodology is similarly applicable to parametric optimization problems [32], including cases with stochastic control variables [33]. Reinforcement learning (RL) is the branch of ML that addresses MDPs through repeated and iterative evaluations of how a single action affects a certain objective [34]. Relevant instances of RL-based optimization in engineering include two-dimensional kinematic mechanisms [35] and the ground structure of binary trusses [36]. The advantage of RL over heuristic methods lies in its flexibility in handling high-dimensional problems, as demonstrated in Refs. [37–39]. In Ref. [31], the MDP formalizing the optimal truss design has been solved using Q-learning [40], constraining the search space with the grammar rules proposed in Ref. [41]. In a separate work [42], the same authors have also addressed the challenges of large and continuous design spaces through deep Q-learning. In this article, we demonstrate how addressing optimal truss design problems with the Monte Carlo tree search (MCTS) algorithm [43,44] can offer significant computational savings compared to both Q-learning and deep Q-learning. MCTS is the RL algorithm behind the successes achieved by “AlphaGo”[45] and its successors [46,47] in playing board games and video games. In science and engineering, MCTS has been used for various applications employing its single-player games version [48]. Notable instances include protein folding [49], materials design [50,51], fluidstructure topology optimization [52], and the optimization of the dynamic characteristics of reinforced concrete structures [53]. For truss design, MCTS has been used in “AlphaTruss”[54]to achieve state-of-the-art performance while adhering to constraints on stress, displacement, and buckling levels. The same framework has been extended to handle continuous state-action spaces through either kernel regression [55]orsoftactor-critic[56]—an off-policy RL algorithm. Despite the potential of using continuous descriptions of the design problem, the combination of RL and grammar rules proposed in Refs. [31,42] remains highly competitive, as it enables constraining the design process with strong inductive biases reflecting engineering knowledge. Building on this insight, the novelty of our approach lies in the integration of MCTS with grammar rules to strategically navigate the solution space, allowing for significant computational gains compared to Refs. [31,42], where Q-learning and deep Q-learning have been respectively adopted. The effectiveness of the proposed approach lies in the MCTS capability to propagate information from the terminal nodes of the tree, which are associated with the final design performance, back to the ancestor nodes linked with the initial design states. This feedback mechanism allows for informing subsequent simulations, exploiting previously synthesized designs to enhance the decision-making process at initial branches and progressively refine the search toward optimal designs. Moreover, the probabilistic nature of MCTS enables the discovery of highly performative design solutions by balancing the exploitation–exploration tradeoff. This balance is achieved through a heuristic hyperparameter that tunes the upper confidence bounds for trees (UCT) formula, whose effect is investigated through a parametric analysis. The remainder of the article is organized as follows. Section 2 states the optimization problem and provides an overview of the MDP setting, grammar rules, and the MCTS algorithm. In Sec. 3, the computational procedure is assessed on a series of case studies. We provide comparative results with respect to Refs. [31,42], demonstrating superior design capabilities, and we test our methodology on two novel progressive construction setups. Section 4finally summarizes the obtained results and draws the conclusions. 2 Methodology In this section, we describe the methodology characterizing our optimal truss design strategy. This includes the physics-based numerical model behind the design problem in Sec. 2.1, the MDP formalizing the design process in Sec. 2.2, the grammar rules for truss design synthesis in Sec. 2.3, the MCTS algorithm for the optimal truss design formulated as an MDP in Sec. 2.4, and the UCT formula behind the selection policy in Sec. 2.5, before detailing their algorithmic integration in Sec. 2.6. 2.1 Optimal Truss Design Problem. The design problem involves defining the truss geometry that optimizes a design objective under statically applied loading conditions. In the following, we consider minimizing the maximum absolute displacement experienced by the structure, although this is not a restrictive choice. This design setting, similar to the compliance minimization problem typical of topology optimization [13], has been retained for the purpose of comparison with Refs. [31,42]. For the sake of generality, we set the design problem in the context of a continuum elasticity, of which truss design is an immediate specialization. Specifically, we seek a set of Isubdomains {Ωs 1,...,Ωs I}, each occupying a certain region of the design domain, whose union Ω=I i=1Ωs iminimizes the structure’s displacement to the greatest extent, as follows:  Ω= I i=1  Ωs i=arg min Ω=I i=1Ωs i u(x)∞,with x∈Ω(1) where uis the displacement field, xare the spatial coordinates, and u∞is the infinity norm of u,defined as a∞=maxm|am|, with am,m=1,...,M, being the mth entry of a∈RM. Problem (1) is subjected to the following constraints, ∀Ω=I i=1Ωs i: ∇·σ+b=0 equilibrium (2a) σ=Eϵlinear elastic constitutive law (2b) ϵ=∇u+∇u⊤ 2linear kinematic compatibility (2c) ensuring the static elasticity condition. Herein, σis the stress field, ϵ is the strain field, bis the vector of body forces, Eis the elasticity tensor, (∇·) is the divergence operator, and (∇) is the gradient operator. Moreover, problem (2) needs to be equipped with the following set of boundary conditions (BCs): u=ug,on ∂Ωg= I i=1 ∂Ωs giDirichlet BC (3a) σ·n=f,on ∂Ωh= I i=1 ∂Ωs hiNeumann BC (3b) where ∂Ωgand ∂Ωhare the Dirichlet and Neumann boundaries, respectively; ugis the assigned displacement field on ∂Ωg;fis the vector of surface tractions acting on ∂Ωh; and nis the outward unit vector normal to ∂Ωh. It is worth highlighting that this framework can be generalized to include nonlinear constitutive behaviors—an extension that will be explored in future works. Equation (1) can be easily adapted for planar trusses by introducing a finite element (FE) discretization to solve problem (2),defining each subdomain Ωs i,i=1,...,I, to be a truss element, with the union set operator representing the connections made through hinges. Accordingly, the optimization problem is reformulated as min Ω=I i=1Ωs i U(Ω)∞,with Ωs ia truss FE (4a) 101702-2 / Vol. 147, OCTOBER 2025 Transactions of the ASME Downloaded from http://asmedigitalcollection.asme.org/mechanicaldesign/article-pdf/147/10/101702/7453649/md-24-1369.pdf by Politecnico Di Milano user on 17 April 2025 subject to :KU =F,in Ω= I i=1 Ωi(4b) U=U0,on ∂Ωg= I i=1 ∂Ωs gi(4c) V≤Vmax ,with V= I i=1 AiLi(4d) where Uis the vector of nodal displacements; Kis the stiffness matrix; Fis the vector of forces induced by the external loadings; U0is the vector of nodal displacements enforced on ∂Ωg;Aiand Liare the cross-sectional area and the length of the ith truss element Ωs i, respectively; and Vmax is a prescribed threshold on the maximum allowed volume of the truss lattice. For further details on the FE method, the reader may refer to Ref. [57]. 2.2 Markov Decision Process Framework for Sequential Decision Problems. In a decision-making setting, an agent must choose from a set of possible actions, each potentially leading to uncertain effects on the state of the system. The decision-making process aims to maximize, at least on average, the numerical utilities assigned to each possible action outcome. This involves considering both the probabilities of various outcomes and our preferences among them. In sequential decision problems, the agent’s utility is influenced by a sequence of decisions. MDPs provide a framework for describing these problems in fully observable, stochastic environments with Markov transition models and additive rewards [58]. Formally, an MDP is a four-tuple 〈S,A,P,R〉, comprising a space of states S that the system can assume, a space of actions Athat can be taken, a Markov transition model P, and a space of rewards R. The characterization of these quantities for truss optimization purposes is detailed below, after discussing their roles in MDPs. We consider a time discretization of a planning horizon (0,T) using nondimensional time-steps t=0,...,T, and we denote the system state at time tas st∈S, which is the realization of the random variable St∼p(st), with p(st) being the probability distribution encoding the relative likelihood that St=st. Moreover, we denote the control input at time tas at∈A. The transition model P:S×S×A7! [0,1] encodes the probability of reaching any state st+1at time t+1, given the current state stand an action at, i.e., p(st+1∣st,at)∈P. The reward Rt∼p(rt), with rt∈R, quantifies the value associated with each possible set {st,at,st+1}. We define a control policy π:S7! Aas the mapping from any system state to the space of actions. The goal is to find the optimal control policy π∗(St) that provides the optimal action a∗ t for each possible state st. The optimal policy π∗(St) is learned by identifying the action a∗ tthat maximizes the expected utility over (0,T). The problem of finding the optimal control policy is inherently stochastic. Consequently, the associated objective function is additive and relies on expectations [59]. This is typically expressed as the total expected discounted reward over (0,T). The sequential decision problem can be viewed from the perspective of an agent–environment interaction, as depicted in Fig. 1.In this view, the agent perceives the environment and aims to maximize the long-term accumulation of rewards by choosing an action atthat influences the environment at time t+1. The environment interacts with the agent by defining the evolution of the system state, and providing a reward rtfor taking atand moving to st+1. One way to characterize an MDP is to consider the expected utility associated with a policy π(St) when starting in any state stand following π(St) thereafter. To this aim, the state-value function Vπ(St):S7 ! Rquantifies, for every state st, the total expected reward an agent can accumulate starting in stand following policy π(St). In contrast, the action-value function, Qπ(St,at):S×A7! R,reflects the expected accumulated reward starting from st, taking action at, and then following policy π(St). In both cases, the probability of reaching anystatest+1is estimated using transition probabilities p(st+1∣st,at). For our purposes of optimal truss design, we refer to a gridworld environment with a predefined number of nodes on which possible truss layouts can be defined. The reward function shaping Rcould account for local design objectives, such as the displacement at a prescribed node, or global performance indicators, such as the maximum absolute displacement, stress level, or strain energy. As previously commented, we monitor the maximum absolute displacement experienced by the structure. The state space Scould potentially include any feasible truss layout resulting from progressive construction processes. Accordingly, the space of actions Acould account for any possible modification of a given layout. In this scenario, the sizes of Sand A increase significantly, even considering a reasonably small design domain. For this reason, explicitly modeling the Markov transition model Pis not feasible. The availability of a transition model for an MDP influences the selection of appropriate solution algorithms. Dynamic programming algorithms, for instance, require explicit transition probabilities. In situations where representing the transition model becomes challenging, a simulator is often employed to implicitly model the MDP dynamics. This is typical in episodic RL, where an environment simulator is queried with control actions to sample environment trajectories of the underlying transition model. Examples of such algorithms include Q-learning, as seen in Refs. [31,42], and MCTS, both of which approximate the actionvalue function and use this estimate as a proxy for the optimal control policy. As noted in Ref. [44], convergence to the global optimal value function can only be guaranteed asymptotically in these cases. In our truss design problem, optimal planning is achieved via simulated experience provided by the FE model in Eq. (4b), which can be queried to produce a sample transition given a state and an action. 2.3 Grammar Rules for Truss Design Synthesis. To introduce the grammar rules that we employ to guide the process of optimal design synthesis, we refer to a starting seed configuration s0,defined by deploying a few bars to create a statically determinate truss structure. This initial configuration must be modified through a series of actions selected by an agent. Every time an allowed action is enacted on the current state st, a new configuration st+1is generated (see Fig. 2). The process continues until reaching a state sT, characterized by a terminal condition, such as achieving the maximum allowed volume Vmax of the truss members. To identify the allowed actions, we use the same grammar rules as those used in Refs. [31,41,42]. Starting from an isostatic seed configuration, these rules constrain the space of design configurations by allowing only truss elements resulting in triangular forms to be added to the current configuration, thereby ensuring statically determinate configurations. Given any current configuration st,an allowed action is characterized by a sequence of three operations: Fig. 1 Schematic agent–environment interaction Journal of Mechanical Design OCTOBER 2025, Vol. 147 / 101702-3 Downloaded from http://asmedigitalcollection.asme.org/mechanicaldesign/article-pdf/147/10/101702/7453649/md-24-1369.pdf by Politecnico Di Milano user on 17 April 2025 (1) Choosing a node among those not yet reached by the already placed truss elements. We term these nodes as inactive,to distinguish them from the previously selected active nodes. (2) Selecting a truss element already in place. (3) Applying a legal operator based on the position of the chosen node with respect to the selected element. The legal operators are either “D”or “T,”see also Fig. 2.ADoperator adds the new node and links it to the current configuration without removals, while a Toperator also removes the selected element before connecting the new node. In both cases, the connections to the new node are generated ensuring no intersection with existing elements. 2.4 Monte Carlo Tree Search. The MCTS algorithm is a decision-time planning RL method [34]. It relies on two fundamental principles: (i) approximating action-values through random sampling of simulated environment trajectories and (ii) using these estimates to inform the exploration of the search space, progressively refining the search toward highly rewarding trajectories. In the context of optimal truss design formulated as a sequential decision-making problem, MCTS incrementally grows a search tree where each node represents a specific design configuration and edges correspond to potential state transitions triggered by allowed actions (see Fig. 3). During training, the algorithm explores the search space of feasible truss designs to progressively learn a control policy, referred to as the tree policy. This progressive policy improvement is based on value estimates of state-action pairs derived from previous runs of the algorithm, termed episodes. Each episode consists of four main phases [34]: (1) Selection: Starting from the root node associated with the seed configuration, the algorithm traverses the tree by selecting child nodes according to the tree policy until reaching a leaf node. The tree policy typically uses the UCT formula [44] to select child nodes. This formula ensures that actions leading to promising nodes are more likely to be chosen while still allowing for the exploration of less-visited nodes. (2) Expansion: If the selected leaf node corresponds to a nonterminal state st, the algorithm expands the tree by adding one or more child nodes representing unexplored actions from st. This expansion phase introduces new potential design configurations into the search tree, broadening the scope of exploration. (3) Simulation (rollout): From one of the newly added nodes, the algorithm performs a path simulation or “rollout”to estimate the value gained by passing from that node. Since the tree policy does not yet cover the newly added nodes, MCTS employs a rollout policy during this simulation phase to pick actions until reaching a terminal state sT. The rollout policy is a random policy satisfying the truss design grammar rules, directing action along unexplored paths to backpropagate the associated reward signal back up the decision tree. While the tree policy expands the tree via selection and expansion, the rollout policy simulates environment interaction based on random exploration. (4) Backpropagation: Upon reaching a terminal state sT, the associated design is synthesized to evaluate the design objective. This reward is then backpropagated through the nodes traversed during selection and expansion. This process involves updating the visit counts of the nodes and the values Qπ(s,a) for the corresponding state-action pairs, both of which influence the decision-making process through the UCT formula, as detailed in the following section. Each time a reward signal is backpropagated to update the actionvalue estimates of state-action pairs, an episode is completed. This iterative process progressively refines the tree policy, making actions that lead to better rewards more likely to be chosen in future episodes, while still allowing for the exploration of new design configurations. The number of episodes is determined by the available computational budget. As the number of episodes increases, more nodes are added to the tree, and the precision of the Monte Carlo estimates for the mean return from each state-action pair improves. After completing the prescribed number of episodes, a deterministic policy can be derived by selecting, for example, the action with the highest estimated value Qπ(s,a) at each state. The advantages of MCTS stem from its online, incremental, sample-based value estimation and policy improvement. MCTS is particularly adept at managing environments where rewards are not immediate, as it effectively explores broad search spaces despite the minimal feedback. This makes MCTS especially suitable for progressive construction settings, where the final design Fig. 2 Exemplary actions following operators Dand T. The current configuration st(top) is modified either through action a1(bottom left) following the Doperator or through action a2(bottom right) following the Toperator, resulting in a new configuration st+1. In both cases, the selected truss element is e1, and the chosen inactive node is n1. 101702-4 / Vol. 147, OCTOBER 2025 Transactions of the ASME Downloaded from http://asmedigitalcollection.asme.org/mechanicaldesign/article-pdf/147/10/101702/7453649/md-24-1369.pdf by Politecnico Di Milano user on 17 April 2025 requirements often differ from those of intermediate structural states. Intermediate construction stages typically involve sustaining self-load only, while different combinations of dead and live loads are experienced during operations. This capability stems from the backpropagation step, which allows information related to sTto be transferred to the early nodes of the tree. In contrast, bootstrapping methods like Q-learning may require a longer training phase to equivalently backpropagate information, as we demonstrate in Sec. 3. Further advantages of MCTS include: (i) accumulating experience by sampling environment trajectories, without requiring domain-specific knowledge to be effective; (ii) incrementally growing a lookup table to store a partial action-value function for the state-action pairs yielding highly rewarding trajectories, without needing to approximate a global action-value function; (iii) updating the search tree in real-time whenever the outcome of a simulation becomes available, in contrast, e.g., with minimax’s iterative deepening; and (iv) focusing on promising paths thanks to the selective process, leading to an asymmetric tree that prioritizes more valuable decisions. This last aspect not only enhances the algorithm’sefficiency but can also offer insights into the domain itself by analyzing the tree’s structure for patterns of successful courses of action. 2.5 Upper Confidence Bounds for Trees. The UCT formula is widely used as a selection policy in MCTS due to its ability to balance exploitation and exploration. In this work, we employ a modified UCT formula, compared to the one proposed in Ref. [44], by introducing an αparameter that scales the relative weights of the exploitation and exploration terms as follows: UCTj=(1 −α)vΣ j nj +α 2 log lnl nj (5) which provides the UCT score of the jth child node of st. Herein, vΣ j is the Monte Carlo estimate of the total return gained by passing through the jth child node, where this return represents the sum of all the terminal state rewards rTachieved after traversing the jth child node; njis the number of episode runs passing through the jth child node; lnlis the total number of episode runs traversing the children of st; and αis a parameter that balances exploitation (average reward for the jth child node) and exploration (encouraging exploration of nodes that have been visited less frequently than their siblings), respectively encoded in the first and second terms. It is also worth noting that both vΣ jand njare updated after each training episode. 2.6 Algorithmic Description. The algorithmic description of the optimal truss design strategy using the proposed MCTS approach is detailed in Algorithm 1. It begins by initializing the root node with a seed configuration and then iteratively explores potential truss configurations through a sequence of selection, expansion, simulation, and backpropagation phases. In each episode, the algorithm selects a child node based on the UCT formula, generates and evaluates a new child node from a possible action, simulates random descendant nodes to explore the design Fig. 3 Exemplary use of grammar rules for the optimal truss design, formalized as a Markov decision process and solved through Monte Carlo tree search. The search tree construction and the corresponding truss design synthesis are achieved by repeating the four steps of selection, expansion, simulation, and backpropagation. Table 1 Truss optimization—problem setting description Domain size Decision times, TV max threshold Case 1 4 × 3 2 160 Case 2 5 × 3 3 240 Case 3 5 × 5 3 225 Case 4 5 × 9 3 305 Case 5 5 × 5 4 480 Case 6 7 × 7 4 350 Journal of Mechanical Design OCTOBER 2025, Vol. 147 / 101702-5 Downloaded from http://asmedigitalcollection.asme.org/mechanicaldesign/article-pdf/147/10/101702/7453649/md-24-1369.pdf by Politecnico Di Milano user on 17 April 2025 space, and backpropagates the computed reward to update the policy. Algorithm 1 Monte Carlo tree search for optimal truss design input: number of episodes Ne parametrization of the physics-based model grid design domain seed configuration grammar rules for truss design synthesis exploration parameter α 1: initialize root node for the seed configuration 2: for Nedo 3: t=0 4: set root node for st=0(seed configuration) ⊳selection 5: while t<Tand stpreviously explored do 6: select st+1via UCT formula 7: t←t+1 ⊳expansion 8: if t<Tand stnot previously explored then 9: for states st+1from allowed actions atdo 10: solve static equilibrium for st+1 11: compute design objective U(Ω)∞ 12: t←t+1 ⊳simulation 13: while t<Tdo 14: select a random child st+1 15: if st+1not previously explored then 16: solve static equilibrium for st+1 17: compute design objective U(Ω)∞ 18: t←t+1 ⊳backpropogation 19: compute reward rTfrom terminal state sT 20: while t>0do 21: append rTto strewards list 22: stvisit count += 1 23: t←t−1 24: return deterministic control policy π≈π∗ 3 Results In this section, we assess the proposed MCTS framework on different truss optimization problems. First, we adopt six case studies from Refs. [31,42], each featuring different domain and boundary conditions, to directly compare the achieved performance. Then, we consider two additional case studies to demonstrate the applicability of our procedure for progressive construction purposes. While in the former case studies the seed configuration fully covers the available design domain, in the latter we allow the seed configuration to grow—mimicking an additive construction process—until reaching a terminal node at the far end of the domain. The experiments have been implemented in PYTHON using the Spyder development environment. All computations have been carried out on a PC featuring an AMD Ryzen ™ 9 5950X CPU @ 3.4 GHz and 128 GB RAM. 3.1 Truss Optimization. In the following, we present the results achieved for the six case studies adapted from Refs. [31,42], providing comparative insights for each scenario. All case studies deal with planar trusses, with truss elements featuring dimensionless Young’s modulus E=103and cross-sectional area A=1. The applied forces have a dimensionless value of fx=fy=10, as per Refs. [31,42]. The monitored displacement refers to the maximum absolute displacement experienced by the structure. Each row of Table 1describes a case study in terms of design domain size, number of decision times or planning horizon T, and volume threshold Vmax. These parameters have been set according to Refs. [31,42] to facilitate the comparison between the proposed MCTS procedure and the Q-learning methods. For each case study, the design domain, structural seed configuration, externally applied force(s), and boundary conditions are shown under the corresponding s0label in Fig. 4. The target optimal configuration sT, identified through a brute-force exhaustive search of the state space, is illustrated under the sTlabel. Case Study 4 is the only one that differs from the reference due to the additional constraint at (0,0). For each case study, Fig. 5shows the evolution of the design objective, i.e., the maximum absolute displacement experienced by the structure, as the number of training episodes increases. Results are reported in terms of average displacement (solid line) and one-standard-deviation credibility interval (shaded area), over ten independent training runs. Each run utilizes MCTS for a predefined number of episodes. In practice, the number of episodes is set after an initial long training run in which we assess the number of episodes required to achieve convergence—which typically depends on the complexity of the case study. After each training run, the best configuration is saved to subsequently compute relevant statistics. The attained displacement values are compared with those associated with the global minima (dashed lines), representing the optimal design configurations in Fig. 4. The heuristic αparameter in Eq. (5) controls the balance between exploitation and exploration. The αvalues employed for the six case studies are overlaid on each learning curve in Fig. 5. Since an optimal value for this parameter is not known a priori, this is set using a rule of thumb derived through a parametric analysis, as explained in the following section for case study 4. A quantitative assessment of the optimization performance for each case study is summarized in Table 2. Results are reported in terms of the optimal design objective U(Ω)∞, the percentage ratio of the optimal design objective to the displacement achieved by the learned policy, and the percentile score relative to the exhaustive search space. To clarify, a percentile score of 100%corresponds to reaching the global optimum. A lower score, such as 99%, indicates that the design objective achieved with the final design sT, synthesized from the learned optimal policy, is lower than the displacement associated with 99%of all the possible configurations explored through an exhaustive search. An exemplary distribution of the design objective across the population of designs synthesized from the exhaustive search of the state space is shown in Fig. 6for case study 4. Interestingly, the distributions obtained for the other case studies also exhibit a lognormal-like shape, although these are not shown here due to space constraints. While the objective ratio provides a dimensionless measure of how close the achieved design is to the global optimum in terms of performance, the percentile score quantifies the capability of MCTS to navigate the search space and find a design solution close to the optimal one. Both performance indicators are computed by averaging over ten training runs. Additionally, we report the number of FE evaluations required to achieve a near-optimal or optimal policy, also averaged over ten training runs, and indicate the percentage savings in the number of FE evaluations compared to those required by the deep Q-learning strategy from Ref. [42]. It is worth noting that FE evaluations are only performed for the terminal state sT, after it has been selected. 3.2 Case Study 4—Detailed Analysis. In this section, we provide a detailed analysis of case study 4. We selected this case study because it is the only one in which we employ boundary conditions different from those reported in Ref. [42], which is useful for checking the MCTS capability to exploit constrained domain portions not included in the seed configuration. Figure 7illustrates the sequence of structural configurations synthesized from the optimal policy obtained through an exhaustive search. For each 101702-6 / Vol. 147, OCTOBER 2025 Transactions of the ASME Downloaded from http://asmedigitalcollection.asme.org/mechanicaldesign/article-pdf/147/10/101702/7453649/md-24-1369.pdf by Politecnico Di Milano user on 17 April 2025 decision time, we report the corresponding value of the design objective and the volume of the truss lattice below the synthesized configuration st. Figure 8summarizes the impact of varying the αparameter on the attained percentile score to provide insights into the selection of an appropriate value. Specifically, Fig. 8(a)shows the percentile score relative to the exhaustive search space for different αvalues, averaged over ten training runs. Figure 8(b)illustrates how the percentile score evolves as the number of episodes increases, offering insights into the effect of αon the convergence of MCTS. To compare the achieved performance for varying αvalues with the associated computational burden, Fig. 9presents the number of FE evaluations required to achieve a near-optimal design policy, revealing an almost linear increase in the number of FE evaluations as αgrows. Therefore, we consider α=0.3 to provide an appropriate balance between exploitation and exploration, yielding an average percentile score of 99.90%across ten training runs, which is close to the scores for α=0.4 and α=0.5, but with only Fig. 4 Truss optimization—case studies adapted from Ref. [42]: summary of design domain, seed configuration s0, and target optimal design sTidentified through a brute-force exhaustive search Fig. 5 Truss optimization—case studies 1–6: evolution of the design objective during training, shown as the average value (solid line) with its one-standard-deviation credibility interval (shaded area) and target global minimum (dashed line). Results averaged over ten training runs. Journal of Mechanical Design OCTOBER 2025, Vol. 147 / 101702-7 Downloaded from http://asmedigitalcollection.asme.org/mechanicaldesign/article-pdf/147/10/101702/7453649/md-24-1369.pdf by Politecnico Di Milano user on 17 April 2025 1672 FE evaluations. The achieved ratio of the optimal design objective to the displacement achieved by the learned policy is 91.91%(see Table 2). Similar results from the parametric analysis of αfor the other case studies are provided in Appendix A. 3.3 Progressive Construction. In this section, we showcase the potential of the proposed MCTS strategy in guiding the progressive construction of a truss cantilever beam and a bridge-like structure. Unlike in the previous case studies, where a simplified seed configuration was initially assigned to comply with the target boundary conditions and then refined, here we allow the seed configuration to progressively grow until reaching a prescribed terminal node not included in the initial configuration. Therefore, the agent must account for the intermediate construction stages per se, not just as necessary steps to reach the final configuration. Another difference compared to the previous case studies is that instead of considering a fixed loading configuration, the structure Table 2 Truss optimization—case studies 1–6: optimal design objective U(Ω)∞, percentage ratio of the optimal design objective to the displacement achieved by the learned policy, percentile score relative to the exhaustive search space, number of finite element evaluations required to achieve a near-optimal or optimal policy, and relative speed-up compared to Ref. [42]. The speed-up is not reported for case study 4, as it differs from the reference for the additional constraint at (0,0). Results averaged over ten training runs. U(Ω)∞Objective ratio (%) Percentile score (%) FE runs FE runs versus Ref. [42] (%) Case 1 0.0895 100 100 106 −74.70 Case 2 0.1895 100 100 517 −76.27 Case 3 0.0361 100 100 966 −56.51 Case 4 0.5916 91.91 99.90 1672 N/A Case 5 0.0390 95.23 99.99 9739 −70.74 Case 6 0.0420 90.44 99.98 7931 −31.25 Fig. 6 Truss optimization—case study 4: design objective distribution over the population of designs synthesized from an exhaustive search of the state space Fig. 7 Truss optimization—case study 4: sequence of design configurations from the target optimal policy, identified through a brute-force exhaustive search, with details about the design objective value and the truss lattice volume Fig. 8 Truss optimization—case study 4: impact of varying the αparameter on the attained percentile score relative to the exhaustive search space. For each value of α, results are reported in terms of (a) the average percentile score with its one-standard-deviation credibility interval and (b) the evolution of the percentile score during training, shown as the average value with its credibility interval. Results averaged over ten training runs. 101702-8 / Vol. 147, OCTOBER 2025 Transactions of the ASME Downloaded from http://asmedigitalcollection.asme.org/mechanicaldesign/article-pdf/147/10/101702/7453649/md-24-1369.pdf by Politecnico Di Milano user on 17 April 2025 is subjected to self-weight (unit dimensionless density), modifying the loading configuration at each stage. However, as in the previous cases, since the design process aims to maximize the performance of the final configuration, the chosen design objective is again the maximum absolute displacement. Although we did not set a limit on the maximum number of states, the agent must strike a balance between achieving higher structural stiffness by adding additional members and the weight these extra elements bring. For the cantilever case study, we assign a domain size of 50 ×20, while for the bridge-like case study, we consider a larger domain of 80 ×30, which features a central passive area where FEs cannot be connected. The sequence of optimal design configurations is shown in Fig. 10 for the cantilever beam and in Fig. 12 for the bridge-like structure. These optimal sequences have been synthesized from an exhaustive search, halted due to computational constraints after scanning 10,000,000 and 1,200,000 possible configurations, respectively. The maximum length of the individual elements has been constrained to comply with the typical fabrication, transportation, and on-site assembly limitations encountered in construction projects. This realistic constraint compels the algorithm to explore more detailed designs, avoiding trivial configurations that rely on only a few long elements to reach the target node. For the cantilever case study, the optimal configuration is synthesized 100%of the time over ten training runs. Using α=0.3, MCTS requires an average of 507 FE evaluations per training run, yielding an optimal displacement of 20.861. It is worth noting how the algorithm identifies the optimal configuration by focusing on the most promising solutions, which feature more elements near the clamped side rather than near the free end (see s7in Fig. 10). Refer to Fig. 11 for the evolution of the attained design objective as the number of episodes increases during training. Similarly, for the bridge-like case study, the MCTS policy synthesizes the optimal configuration 100%of the time over ten training runs. The evolution of states from the MCTS policy is identical to that of the target optimal policy, as shown in Fig. 12. Using α=0.3, the algorithm requires an average of 901 FE evaluations per training run, yielding an optimal displacement of 7.147. Finally, Fig. 13 presents the corresponding evolution of the attained design objective during training. These case studies highlight the advantages of MCTS over Q-learning approaches for optimal design synthesis in large state spaces. In such cases, Q-learning struggles because it requires sufficient sampling of each state-action pair to build a Q-table that stores values for every possible pair, leading to exponential growth in memory and computational demands as the number of states increases. In contrast, MCTS dynamically builds a decision tree based on the most promising moves explored through simulation, focusing computational resources on more relevant parts of the search space. This selective exploration allows MCTS to handle large state spaces more efficiently than Q-learning, making it better suited to problems where direct enumeration of all state-action pairs is infeasible. Appendix Bprovides an overview of the computational burden associated with a pilot MCTS training of 1000 episodes for the bridge-like case study. 3.4 Discussion. In the case studies used for comparison with Ref. [42], the proposed MCTS framework has been capable of synthesizing a near-optimal solution with significantly fewer FE evaluations. Case study 2 has shown the greatest reduction, requiring Fig. 9 Truss optimization—case study 4: number of finite element evaluations required to achieve a near-optimal design policy for varying values of αparameter Fig. 10 Progressive construction—cantilever case study: sequence of design configurations from the target optimal policy Fig. 11 Progressive construction—cantilever case study: evolution of the design objective during training, shown as the average value (solid line) with its one-standard-deviation credibility interval (shaded area), and target global minimum (dashed line). Results averaged over ten training runs. Journal of Mechanical Design OCTOBER 2025, Vol. 147 / 101702-9 Downloaded from http://asmedigitalcollection.asme.org/mechanicaldesign/article-pdf/147/10/101702/7453649/md-24-1369.pdf by Politecnico Di Milano user on 17 April 2025