1 Introduction

A global effort to reduce energy consumption and waste production is pushing engineers to rethink how to design and build structures. From the construction industry (Senatore et al. 2019), to aerospace (Jenett et al. 2017), automotive (Daynes and Weaver 2013), and robotics (Chen et al. 2018), many have converged to a similar conceptual solution: shape morphing. A shape-morphing structure is understood to have the capacity to broaden its band of functionality by adapting its structure to an external stimulus through a shape change. There are five main criteria to evaluate the design of a morphing structure: weight, load-carrying capacity, energy consumption, shape accuracy, and range and number of deformation modes (Wicks and Hutchinson 2004).

To tackle the criteria of weight and load-carrying capacity, much research has focused on the use of lattice structures. Their advantageous weight to stiffness ratio has motivated their implementation in airplane wings (Jenett et al. 2017), bridges (Senatore et al. 2019), and buildings (Reksowardojo et al. 2020). Pellegrino (1993) and Pellegrino and Calladine (1986) showed that lattice structures are also particularly well suited for controlled deformation, as their kinematic behavior can be entirely expressed through the equilibrium matrix of the morphing structure. Shape change can be induced by inserting the appropriate number of actuators at the appropriate locations in a lattice structure (dos Santos e Lucato and Evans 2006; dos Santos e Lucato et al. 2004; Reksowardojo et al. 2019; Tian et al. 2021). Several examples of the computational approach used to place actuators in a structure for shape morphing are given in Table 1. They address some of the remaining criteria of shape morphing, but not entirely. Methods that assume small deformations (strain \(\le\) 1%) significantly impair their accuracy for large shape change, or reduce the range and number of deformation modes. The method presented by Reksowardojo et al. (2020) addresses all criteria the most completely but limits its application to five lattice cells and 26 variables (see Table 1). The use of a linear or nonlinear method impacts all the criteria of shape morphing but have not yet been compared directly.

The first contribution of this work is the strain-based nonlinear force method, which models how a strain input affects a structure as a whole in the optimization of the placement of linear actuators in a structure to achieve a target shape. The method is adapted from Reksowardojo et al. (2020), whose primary contribution is to counteract the effect of external loads through shape change. The second contribution is the inclusion of the optimization of the number and placement of actuators in both methods. The third contribution is the quantitative comparison of both methods to show that the proposed nonlinear force method is better suited for determining the necessary actuators and their movement for a structure to morph into several target shapes. Most work in the literature has focused on using linear FEM because it requires less computational effort and can be implemented directly in an optimization method. However, it limits the deformation range of a structure and loses accuracy in structures with a large number of states of self-stress.

Both methods presented are benchmarked for four main deformation modes and a similar number of cells and variables against the examples given in Table 1 with respect to the shape-morphing criteria: energy consumption (or number of actuators required), shape accuracy, and range and number of deformation modes achieved.

Finally, both methods are applied to two case studies ubiquitous in the field of shape morphing: a 2D NACA wing profile and a 3D morphing panel. These case studies demonstrate the contributions of this work by extending the field of application to overdeterminate meshed freeform shapes and doubly curved surfaces with a high variable density. The structure of this paper is as follows: first, the theory behind the linear and nonlinear force methods to determine the displacements resulting from the inclusion of actuators is explained in detail. The implementation of the actuator placement optimization using each method is detailed. Then, the benchmark problems, the case studies, and their evaluation parameters are introduced. The benchmark deformations are compared to FEM simulations conducted with Abaqus CAE. The linear and nonlinear force methods are evaluated first with respect to the benchmark problems and then with respect to the case studies. Finally, the results are discussed first in the context of this work and then in the greater context of shape morphing.

Table 1 Examples of shape-morphing lattice structures from the literature

2 Background

2.1 Actuator placement optimization

The search for the appropriate number and location of actuators has been addressed using several numerical approaches. The main parameters of five examples are given in Table 1. dos Santos e Lucato et al. (2004), dos Santos Lucato et al. (2005), du Pasquier and Shea (2021) use a statically and kinematically determinate Kagome lattice structure to produce a hinging and twisting plate. Static and kinematic determinacy allow to model the effect of a set of actuator elongations as the linear combination of single-actuator elongations. This method is extremely quick once the effect of each actuator has been registered in a matrix, but it is limited to small deformations and determinate structures.

Senatore et al. (2019) use a combination of force and displacement sensitivity matrices and load path redirection to first determine the most efficient actuator locations, and then the internal force method to optimize their lengths. This method assumes small deformations: its cases studies achieve a maximum element elongation of 0.34%.

Reksowardojo et al. (2020) use simulated annealing (SA) and the Tanimoto index, a shape similarity criterion, to determine actuator locations. The actuator elongations are determined using force and displacement sensitivity matrices and optimized with a Newton–Raphson scheme. Force and displacement commands are determined using a nonlinear method, which allows for large element elongations, 67.2% at the most.

Wang et al. (2020) and Tian et al. (2021) establish control sequences based on a nonlinear kinematic method using constant curvature, segmentation method, and beam theory. They achieve an exact curvature change in a 2D morphing panel in three steps using two lattice cells by elongating the outer edges using linear slide modules, thus severely, restricting their achievable design space.

2.2 Modeling of strain-induced deformation using the FM

Most work in structural analysis focuses on the displacement based finite-element method (FEM) (Luo and Lu 2006). However, the works of Pellegrino and Calladine (1986), Pellegrino (1993), and Patnaik (1973) are the basis for formulations of the force method (FM) that have inherent advantages in modeling adaptive lattice structures. The main building blocks for the FM are the equilibrium equations and the compatibility equations. The equilibrium matrix A and its subspaces explicitly link the structural and kinematic properties of a lattice structure. Actuator elongations can be formulated as imposed strain distributions so internal forces and nodal displacements can be calculated directly. However, the FM requires a first empirical step of eliminating redundant lattice members and replacing them with external loads. Also, the equilibrium matrix is rectangular and potentially asymmetric for overdeterminate systems and is, thus, not sufficient to solve for internal forces directly. Pellegrino (1993) and Patnaik (1973) developed two formulations to avoid these issues.

The approach of Pellegrino (1993), building on earlier work by Pellegrino and Calladine (1986), is based on the singular value decomposition (SVD) of A and the interpretation of its subspaces. Starting with the equilibrium equations and the compatibility equations, he formulates a method to derive static and kinematic determinacy of a structure, s and m. Subdividing the SVD of A based on s and m, he derives the nodal displacements and element forces resulting from imposed strain distributions and external load. For a statically and kinematically determinate structure (\(s=0\) and \(m=0\)), the solution is direct and exact. This formulation is only valid for small linear displacements and is extended by Luo and Lu (2006) to the nonlinear force method (NFM) by using a Newton–Raphson scheme. This formulation of the FM has recently been used by Reksowardojo et al. (2020) and Kim et al. (2016), focusing on keeping structures within serviceability limits, compensating for vibrations, or detecting damages.

The approach of Patnaik (1973), the internal force method (IFM), avoids the expensive computation time of SVD by compensating for the rank deficiency of A. It builds a new matrix \(\mathbf{S} = [\mathbf{A}^\text{red} \mid \mathbf{C} \cdot \mathbf{G}]^\text{T}\), where the equilibrium matrix is reduced to free degrees of freedom (DoF) \(\mathbf{A}^\text{red}\) and is completed with the multiplication of the compatibility matrix C with the local flexibility matrix G. The additional equations ensure that the desired element elongation is compatible with an imposed strain distribution.

The concept of sensitivity analysis in adaptive lattice structures is introduced in Senatore et al. (2019), Senatore and Reksowardojo (2020), and Yuan et al. (2016). The force and displacement actuation sensitivity matrices \(\mathbf{S}^\text{F}\) and \(\mathbf{S}^\text{u}\) contain the element forces and nodal displacements triggered by a unitary length change for each of the structure’s elements in turn. Element forces and nodal displacements caused by a given element elongation vector x are given directly by \(\mathbf{S}^\text{F} \cdot \mathbf{x}\) and \(\mathbf{S}^\text{u} \cdot \mathbf{x}\) for small displacements. \(\mathbf{S}^\text{F}\) and \(\mathbf{S}^\text{u}\) can be calculated using both the FM and the IFM, but their calculation is a lot more efficient with the FM formulation. The importance of the sensitivity matrices in the optimization of actuator placement in lattice structures motivates the use of the FM formulation of Pellegrino (1993) and the NFM formulation of Luo and Lu (2006) in this work.

3 Method

This section describes the theory and implementation for the actuator placement optimization assuming first that the effect of elongating elements is linear and then that it is nonlinear. Both the linear and nonlinear methods are based on previous work by Pellegrino and Calladine (1986) and Pellegrino (1993) and their definition of kinematic and static determinacy.

3.1 The equilibrium matrix

The equilibrium matrix A of a lattice structure contains all information pertaining to its static and kinematic behavior. It relates external loads to internal loads directly. The SVD of this matrix separates the information into three matrices:

$$\begin{aligned} \mathbf{A}= \mathbf{U} \mathbf{V} \mathbf{W}^T=\begin{bmatrix} \mathbf{U}_\text{r}&\mathbf{U}_\text{m} \end{bmatrix}\begin{bmatrix} \mathbf{V}_\text{r} &{}\mathbf{0}\\ \mathbf{0}&{}\mathbf{0} \end{bmatrix} \begin{bmatrix} \mathbf{W}_\text{r}&\mathbf{W}_\text{s} \end{bmatrix}^T, \end{aligned}$$
(1)

where A \(\in\) \(\mathbb {R}^{n^\text{D}\times n^\text{E}}\), U \(\in\) \(\mathbb {R}^{n^\text{D}\times n^\text{D}}\), W \(\in\) \(\mathbb {R}^{n^\text{E}\times n^\text{E}}\), and \(\mathbf{V} \in \mathbb {R}^{n^\text{E}\times n^\text{E}}\). \(\begin{bmatrix} \mathbf{U}_\text{r}&\mathbf{U}_\text{m} \end{bmatrix}\), \(\begin{bmatrix} \mathbf{W}_\text{r}&\mathbf{W}_\text{s} \end{bmatrix}\), and \(\mathbf{V}_\text{r}\) are the left singular vectors, right singular vectors, and singular values of matrix A, respectively. \(\mathbf{U}\) contains information on the kinematic behavior of \(\mathbf{A}\), and \(\mathbf{W}\) on the static behavior. \(\mathbf{U}_\text{r} \in \mathbb {R}^{n^\text{D}\times (n^\text{D}-m)}\) contains the load components in equilibrium with the stress components in \(\mathbf{W}_\text{r} \in \mathbb {R}^{n^\text{E}\times (n^\text{E}-s)}\) multiplied with the corresponding singular value in \(\mathbf{V}\), so it is the basis of the row space of \(\mathbf{A}\), \(\mathcal{R}(\mathbf{A})\). Since the components of \(\mathbf{U}_\text{r}\) are in equilibrium, they do not cause any displacements. \(\mathbf{W}_\text{s}\) is the basis of the null space of \(\mathbf{A}\), \({\mathcal{N}}(\mathbf{A})\). \(\mathbf{U}_\text{m} \in \mathbb {R}^{n^\text{D}\times m}\) contains the load components that are not in equilibrium and, thus, cause displacements and form the basis of the inextentional mechanisms of the structure. Similarly, \(\mathbf{W}_\text{s} \in \mathbb {R}^{n^\text{E}\times s}\) contains the s linearly independent states of self-stress of \(\mathbf{A}\). \(\mathbf{W}_\text{s}\) can also be interpreted as the incompatible strain basis.

A structure is statically determinate if it contains no states of self-stress, or \(s=0\), and is kinematically determinate if it contains no mechanisms, or \(m=0\). The values of m and s are calculated directly from A:

$$\begin{aligned} m = n^\text{D} - r, \end{aligned}$$
(2)

and

$$\begin{aligned} s = n^\text{E} - r, \end{aligned}$$
(3)

where \(n^\text{E}\) is the number of elements in the structure, or the number of rows of A; \(n^\text{D}={\rm dim}\cdot n^N - n^k\) is the number of nodes multiplied by the dimension of the structure minus the number of kinematic constraints. r is the rank of A. If \(\mathbf{A}\) is kinematically determinate, \(\mathbf{U}_\text{m}\) is empty. If \(\mathbf{A}\) is statically determinate, \(\mathbf{W}_\text{s}\) is empty.

3.2 The force method for imposed strain

The force method used in this work is based on the work of Pellegrino (1993), Senatore et al. (2019), Senatore and Reksowardojo (2020) and is referred to as FM. The FM is based on two sets of equations: the equilibrium conditions and the compatibility conditions. The force equilibrium conditions at a structure’s nodes are

$$\begin{aligned} \mathbf{Af} = \mathbf{p}, \end{aligned}$$
(4)

where \(\mathbf{f}\) is the internal load vector and \(\mathbf{p}\) is the external load vector. The compatibility conditions as defined for the SVD method by Pellegrino (1993) ensure that compatible strain should vanish through orthogonality to the incompatible strain basis \(\mathbf{W}_\text{s}\):

$$\begin{aligned} \mathbf{W}_\text{s}^\text{T} \mathbf{\epsilon } = \mathbf{0} \end{aligned},$$
(5)

or

$$\begin{aligned} \mathbf{W}_\text{s}^\text{T} (\mathbf{Gf}+\Delta \mathbf{L} \cdot \mathbf{L}^\text{-1}) = \mathbf{0}, \end{aligned}$$
(6)

where \(\mathbf{G} \in\) \(\mathbb {R}^{n^\text{E}\times n^\text{E}}\) is the element flexibility matrix and \(\Delta \mathbf{L} \in\) \(\mathbb {R}^{n^\text{E}\times 1}\) is the element elongation vector.

Through the principle of Virtual Work, the compatibility conditions can be rewritten for statically and kinematically determinate systems as Pellegrino and Calladine (1986):

$$\begin{aligned} \mathbf{A}^\text{T} \mathbf{u} = \mathbf{Gf} + \Delta \mathbf{L} \cdot \mathbf{L}^\text{-1} \end{aligned},$$
(7)

so

$$\begin{aligned} \Delta \mathbf{L} = \mathbf{L}\cdot (\mathbf{A}^\text{T}\mathbf{u - Gf}), \end{aligned}$$
(8)

where \(\mathbf{u}\) are nodal displacements. The FM, thus, allows the calculation of element elongations directly from the nodal displacements of a target deformation for kinematically and statically determinate structures, assuming that the effects of the elongations are linear.

3.3 Sensitivity matrices

For indeterminate structures and assuming small deformations, element elongations can be calculated through the force and displacement sensitivity matrices \(\mathbf{S}^\text{F} \in\) \(\mathbb {R}^{n^\text{E}\times n^\text{E}}\) and \(\mathbf{S}^\text{u} \in\) \(\mathbb {R}^{n^\text{D}\times n^\text{E}}\). \(\mathbf{S}^\text{F}\) relates the structure’s flexibility and states of self-stress to determine reactive forces. \(\mathbf{S}^\text{u}\) relates the structure’s flexibility, force sensitivity matrix, and the pseudo-inverse equilibrium matrix to determine displacements ( Senatore et al. (2019)). \(\mathbf{S}^\text{F}_i\) and \(\mathbf{S}^\text{u}_i\) contain the effect of the unitary length change of the \(i{\rm th}\) element of \(\Delta \mathbf{L}\), excluding the external load \(\mathbf{p}\). Another advantage of the FM formulation is that the two matrices can be calculated directly rather than with a loop (Yuan et al. 2016; Senatore and Reksowardojo 2020):

$$\begin{aligned} \mathbf{S}^\text{F} = \mathbf{-W}_\text{s}(\mathbf{-W}_\text{s}^\text{T}\mathbf{GW}_\text{s})^{-1}\mathbf{W}_\text{s}^\text{T} \end{aligned}.$$
(9)
$$\begin{aligned} \mathbf{S}^\text{u} = (\mathbf{A}^+)^\text{T}(\mathbf{GS}^\text{F}+\mathbf{I}) \end{aligned},$$
(10)

where \((\mathbf{A}^+)^\text{T}\) is the Moore–Penrose inverse of A, \((\mathbf{A}^+)^\text{T}=\mathbf{W}_\text{r}\mathbf{V}_\text{r}^{-1}\mathbf{U}_\text{r}^\text{T}\) and \(\mathbf{I}\) is an identity matrix of dimensions \(n^\text{E}\times n^\text{E}\).

3.4 Optimization objectives

The objective of this work is to find the actuator placement and elongations in a lattice structure that best approximate a given target shape, assuming that all elements can be actuators. For indeterminate structures, this problem translates into the following optimization:

$$\begin{aligned} {\left\{ \begin{array}{ll} \min \parallel \mathbf{S^\text{u}x}-\mathbf{u_\text{target}}\parallel ^2 \\ \mathbf{lb} \le \mathbf{x} \le \mathbf{ub} \end{array}\right. } \end{aligned},$$
(11)

where \(\mathbf{lb}\) and \(\mathbf{ub}\) are the maximum contraction and elongation for each element, and \(\mathbf{x}\) is a vector of length \(n^\text{E} \times 1\). \(\text{x}_i\) is the value of the elongation of the \(i{\rm th}\) element, so \(\text{x}_i = 0\) if the element is not an actuator. The quality of a solution x is evaluated with the Tanimoto index, a shape similarity criterion used in machine learning (Tanimoto 1958; Reksowardojo et al. 2020):

$$\begin{aligned} \begin{aligned}&Q_i = \frac{(\mathbf{u}_\text{c} )^T\mathbf{u}_\text{target}}{(\mathbf{u}_\text{c} )^T\mathbf{u}_\text{c} + (\mathbf{u}_\text{target} )^T\mathbf{u}_\text{target} - (\mathbf{u}_\text{c} )^T\mathbf{u}_\text{target}}\\&0 \le Q_i \le 1 \end{aligned} \end{aligned},$$
(12)

where \(Q_i\) is the Tanimoto index for the unitary elongation of element i, \(\mathbf{u}_\text{c}\) is the controlled deformation, and \(\mathbf{u}_\text{target}\) is the target deformation. The closer the Q is to one, the better the shape approximation. In general, the lowest objective function value corresponds to the highest Tanimoto index value but not always since the latter is both a shape and a node similarity criterion, as opposed to the objective function which is only a node position similarity criterion.

Fig. 1
figure 1

Optimization method for the linear method (left) and nonlinear method (right); the NLE solver is described in the Replication of results section

3.5 Linear method

The linear method assumes small deformations of the elements and large nodal displacements. Elements are allowed to elongate and contract up to 100% of their initial length to compare the validity of the model for large-scale shape morphing to the nonlinear method. Figure 1a shows the optimization framework used for the linear method: after calculating the sensitivity matrices as explained above, the actuator placement is optimized using element displacement efficacy assuming that the number of actuators is predetermined, and then the actuator lengths are optimized to achieve the desired target shape \(\mathbf{u}_{\text{target}}\).

3.5.1 Actuator placement

The placement of the actuators within the structure is determined using the concept of placement efficacy from Senatore et al. (2019). The efficacy is a measure of the contribution of each individual element to the desired displacement. The closer the efficacy of an element is to 1, the more it contributes to the desired displacement. It is evaluated as follows:

$$\begin{aligned} \begin{aligned}&{\rm eff}^\text{u}_i = \frac{\sum _{j=1}^{n_{\text{cDOFs}}}(\mathbf{S}^{\text{u} \mid \text{cDOFs}}_j\cdot \Delta \mathbf{L}_i)\circ \frac{1}{\mathbf{u}^{\text{cDOFs}}_{\text{target}}}}{n^{\text{cDOFs}}}\\&0 \le {\rm eff}^u_i \le 1 \end{aligned} \end{aligned}$$
(13)

\(\mathbf{S}^{\text{u} \mid \text{cDOFs}}_j\) is built by extracting the rows from \(\mathbf{S}^\text{u}\) corresponding to the \(j{\rm th}\) controlled DOF. \(\Delta \mathbf{L}_i\) is the unitary elongation vector of the \(i{\rm th}\) element. \(\mathbf{u}^\text{cDOFs}_\text{target}\) is the target vector reduced to the controlled DOFs.

The necessary number of actuators is determined as the number of actuators needed to solve Eq. 14 exactly. For the linear method, the actuator positions are chosen as the \(n^\text{act}\) elements with the highest efficacy.

3.5.2 Actuator length optimization

Assuming small displacements and no external loads, Senatore and Reksowardojo (2020) show that element elongations to achieve a target shape can be directly calculated with

$$\begin{aligned} \mathbf{x} = \mathbf{W}_\text{r}(\mathbf{S}^\text{u}\mathbf{W}_\text{r})^+ \mathbf{u}_\text{target} \end{aligned}$$
(14)

where the \(+\) indicates the Moore–Penrose inverse. However, the quality of the results depends on how close \(\mathbf{W}_\text{r}\) and \(\mathbf{S}^\text{u}\) are to singularity. If the norm of the difference between \(\mathbf{u}_\text{target}\) and \(\mathbf{u}_{0}\), the nodal displacement caused by \(\mathbf{x}\), is smaller than the convergence criterion \(e_\text{Lin}\), then x is already the optimal solution, so the number of objective function calls is 0 and the Tanimoto index \(Q = 1\). If the norm of the difference between \(\mathbf{u}_\text{target}\) and \(\mathbf{u}_{0}\) is larger than \(e_\text{Lin}\), the element elongations are optimized using Eq. 11 reduced to the controlled DOFs and the known actuator positions:

$$\begin{aligned} {\left\{ \begin{array}{ll} \min \parallel \mathbf{S}^{\text{u} \mid \text{cDOFs}}_\text{act}x^\text{act}-\mathbf{u}_\text{target}^\text{cDOFs}\parallel ^2 \\ \mathbf{lb}^\text{act} \le \mathbf{x}^\text{act} \le \mathbf{ub}^\text{act} \end{array}\right. } \end{aligned}.$$
(15)

The starting point \(\mathbf{x}_0\) is previously calculated with Eq. 14. The quality of \(\mathbf{x}_\text{opt}\) is determined by the resulting Tanimoto index.

3.6 Nonlinear method

The nonlinear method presented in this work can be used for large deformations (\(\epsilon>> 1\%\)). The nodal displacements caused by element elongations are computed using a nonlinear solver based on the work of Pellegrino (1990), Luo and Lu (2006). \(\phi\) maps the initial structure and given elongations to the resulting nodal displacements, element forces, and Tanimoto index Q:

$$\begin{aligned} \phi : (\mathbf{x}, \mathbf{D}, \mathbf{E}) \mapsto (\mathbf{u}_{c}, \mathbf{f}, Q) \end{aligned}$$
(16)

where \(\mathbf{D}\) and \(\mathbf{E}\) are the cross-section vector and elastic modulus vector for all elements. Elements can elongate and contract up to 100% of their initial length to assess applicability of the method to large-shape changes.

Figure 1b shows the optimization method used for the nonlinear method introduced in this work. A shape-morphing lattice structure should contain as few actuators as possible to not compromise its structural soundness. Reksowardojo et al. (2020) define that

$$\begin{aligned} {\left\{ \begin{array}{ll} \mathbf{S}^\text{u} \mathbf{x} = \mathbf{u}_\text{target} &{} \text{for } n^\text{act} = n^\text{E} \\ \mathbf{S}^\text{u} \mathbf{x} \simeq \mathbf{u}_\text{target} &{} \text{for } n^\text{cDOFs}+s< n^\text{act}< n^\text{E} \\ \mathbf{S}^\text{u} \mathbf{x} \sim \mathbf{u}_\text{target} &{} \text{for } n^\text{act} < n^\text{cDOFs}+s \\ \end{array}\right. } \end{aligned}.$$
(17)

The first optimization shown in black in Figure 1b starts at \(n^\text{act}_0 = n^\text{cDOFs} + s\). It is implemented to calculate the necessary number of actuators, first using simulated annealing (SA) to determine the actuator positions given unitary elongations, and using IPOPT to optimize the actuator elongations given the positions. SA is chosen due to the combinatorial nature of the actuator placement problem. In the first step (\(i=1\)), the placement and lengths are optimized r times. In the second step (\(i=2\)), the best result from \(i=1\) \(Q_\text{best}\) is saved as \(Q_\text{old},\) and actuators are added so \(n^\text{act}=n^\text{act}+\frac{n^\text{E}}{100}\). The placement and lengths are optimized again for the new \(n^\text{act}\). Convergence is achieved if the new best solution \(Q_\text{best}\) is worse than \(Q_\text{old}\), or \(\frac{Q_\text{best}}{Q_\text{old}} < 1\). The first optimization method is shown in Algorithm 1.

figure a

The second optimization method calculates the best actuator placement and elongations, given \(n^\text{act}_{opt}\). It loops through the same SA and IPOPT algorithms as the first optimization and converges either when the Tanimoto index \(Q_\text{best}\) exceeds the convergence criterion \(Q_\text{conv}\) or when the maximum number of iterations is achieved. For each step, the Tanimoto index, the value of the objective function, and the iteration number are stored in a matrix if they exceed the previous best result.

This work modifies the method reported by Reksowardojo et al. (2020) by optimizing an imposed internal strain \(\pmb {\epsilon }\) to achieve a target shape deformation rather than minimizing any deformations caused by an external load p. It further enhances the method by introducing loops within both optimizations. This meta-heuristic approach enables both optimization methods to avoid local optima in this nonlinear problem.

The linear method is used to determine the nodal displacements given the element elongations x within the objective function of the IPOPT step, given in Eq. 15, for computational efficiency. The results are then adjusted using a nonlinear method before calculating the Tanimoto index and checking for convergence. The details of the implementation of the actuator placement using SA and the elongation optimization using IPOPT are given below.

3.6.1 Actuator placement using SA

The nonlinear nature of the system nullifies the assumption that the \(n^\text{act}\) most efficient elements constitute the best actuator placement solution, since it takes into account only the efficacy of a single actuator at a time rather than actuator combinations. Instead, the efficacy is evaluated using the Tanimoto index for the unitary elongation of each element. The number of possible actuator combinations increases exponentially with the number of elements, so an exhaustive search is impractical. Since the Tanimoto index still only describes the efficacy of single elements but not their combination, the vector Q containing the Tanimoto indices for each element elongation is assumed to represent a probability distribution for elements to contribute to \(\mathbf{u} _\text{target}\).

$$\begin{aligned} \mathbf{Q} = \begin{pmatrix} Q_1\\ \vdots \\ Q_n\end{pmatrix} \end{aligned}$$
(18)

The distribution and its pseudo-inverse, \(\mathbf{Q}_\text{pinv}\), are used in a SA stochastic search to determine the best actuator placement given an initial \(n^\text{act}\) and assuming unitary elongations. The problem size is reduced by setting the probability distributions to zero for elements that link two pinned nodes, as they cannot elongate. The method, which mimics the cooling schedule of molten metals through annealing, was first formulated by Kirkpatrick et al. (1983). In the beginning, as the temperature T is high, the algorithm is likely to accept inferior neighboring solutions and avoids local optima. As T reduces, the algorithm is likely to reject inferior neighboring solutions, and the search is increasingly focused towards an optimum.

The goal is to maximize the Tanimoto index for a combination of actuators. The objective function is

$$\begin{aligned} {\rm min} (1 - Q_j + \lambda ) \end{aligned},$$
(19)

where \(\lambda\) is a penalty. The starting point \(\mathbf{x}_0\) is chosen as the \(n^\text{act}\) elements with the highest \(Q_j\). Neighboring solutions \(\mathbf{x}_j\) are generated by drawing without replacement from the \(n^\text{E}-n^\text{act}\) remaining elements using the probability distribution \(\mathbf{Q}\) and replacing certain actuator elements using the pseudo-inverse distribution \(\mathbf{Q_\text{pinv}}\). In each iteration, the number of elements replaced in \(\mathbf{x}_j\) is chosen at random, and the Tanimoto index of the combined unitary elongation of the new actuator set is evaluated. The acceptance probability \(A_Q\) for a new solution is dependent on T:

$$\begin{aligned} A_Q(\mathbf{x}_j,\mathbf{x}_{j+1}) = {\rm exp}\left(-\frac{Q_{j} - Q_{j+1}}{T}\right) \end{aligned}$$
(20)

\(\lambda\) is draw at random from a uniform distribution \(\mathcal{U}(0,1)\). The acceptance probability \(A_\lambda\) for a new penalty is also dependent on T:

$$\begin{aligned} A_{\lambda }(\mathbf{x}_j,\mathbf{x}_{j+1}) = {\left\{ \begin{array}{ll} exp(-\frac{\lambda _{j} - \lambda _{j+1}}{T}) &{}\text{if }\lambda _{j} \ge \lambda _{j+1}\\ 1 &{}\text{if }\lambda _{j} < \lambda _{j+1}\\ \end{array}\right. } \end{aligned}$$
(21)

As T sinks, so does the acceptance probability of a lower penalty value, and so the search is increasingly focused.

T is updated \(n_\text{temp}\) times, and the search is repeated \(n^\text{rep}\) times for each temperature. \(T_k\), the temperature at step k, is defined as follows:

$$\begin{aligned} T_k = -\frac{1}{{\rm log}(1-\frac{k}{n^{temp}})} \end{aligned}.$$
(22)

The best solution found so far is stored. Convergence is achieved when the solution no longer improves after several iterations. The resulting solution is the actuator placement that scored the highest Tanimoto index. Further implementation details on this method can be found in Wah and Wang (1999) and Reksowardojo et al. (2020) and in the Replication of results section of this work.

3.6.2 Actuator elongation optimization using IPOPT

Once the actuator placement has been determined assuming unitary element elongations using SA, the element elongations are optimized using IPOPT. Since the objective function optimization given in Eq. 15 is estimated using the linear model for computational efficiency, the process is iterative. First, Eq. 15 is solved using IPOPT. Then, the objective function value and Tanimoto index are calculated for the resulting element elongation \(\mathbf{x}_j\) using the nonlinear model. Convergence is achieved either if the objective function value is smaller than \(e_{NL}\) or if the Tanimoto index is lower than in the previous step. If convergence is not achieved, the initial actuator elongations of the next step are set to \(\mathbf{x}_j\) and the coordinates, equilibrium matrix, and sensitivity matrices are updated to reflect the element elongations of \(\mathbf{x}_j\). The boundary conditions are also updated so the total element elongation boundary remains the same. The element elongation optimization is shown in detail in Algorithm 2.

figure b
Table 2 Benchmark nodal displacements

3.7 Benchmark problems

Both methods are tested on four 2D target deformations given in Table 2 that are benchmarked against results using Abaqus CAE 6.14: 1. linear deformation, 2. concave up, 3. concave down, and 4. sine, the transition between the two. The method parameters used in the optimization method as well as the simulation are given in Table 3. All problems have static determinacy \(s=1\) and kinematic determinacy \(m=0\). The quality of both methods is assessed using the Tanimoto index of the optimized results, the average error of their nodal displacements with respect to the simulation, the number of actuators needed for each target deformation, the absolute largest strain, the number of iterations, and the number of objective function evaluations.

Table 3 Benchmark method parameters for the optimization methods and the simulation

3.8 Case studies

The methods are tested on two case studies: in 3D, for complex doubly curved deformations of a tetragonal lattice structure plate, and in 2D, on a NACA 2640 airfoil, using an Abaqus CAE generated tetragonal mesh.

3.9 Implementation details

The work presented above is implemented in MATLAB R2020a and verified with Abaqus CAE 6.14-1 using a static general step and NLGEOM. This problem is solved using an interior point optimization (IPOPT) made available by (Wachter and Biegler, 2004) with default settings and maximum iteration number set to 250. The optimization is run on the ETH Euler cluster using ten cores with 64-core AMD EPYC 7H12 processors.

4 Results

This section first details the results for the benchmark problems of both methods and then the results from the case studies.

For the linear method, the convergence criterion \(e_\text{Lin}\) is set to \(10^{-3}\) and the maximum number of iterations is 100.

For the nonlinear method, the convergence criterion \(Q_\text{conv}\) is set to 0.999 and the maximum number of iterations is 100. Preliminary studies of the stored results matrix showed that setting the maximum number of iterations higher did not lead to a better result for the structures analyzed in this work. The number of loops r in the actuator number optimization is set to five. Preliminary studies showed that increasing the number of loops to ten or twenty only lead to better results in less than 10% of the cases; the number of loops is, thus, set to five for computational efficiency.

Preliminary studies where results were calculated exhaustively for \(n^\text{cDOFs} + s\le n^\text{act} \le n^\text{E}\) showed that, for problems with values of \(n^\text{E} > 100\), the ratio \(\frac{Q_\text{best}}{Q_\text{old}}\) increased every \(\frac{n^\text{E}}{100}\) steps. The size of a problem with \(\frac{n^\text{E}}{100}\) also motivated the reduction of the number of steps. The convergence criterion for the actuator length optimization \(e_{NL}\) is set to \(10^{-6}\).

4.1 Benchmark

Fig. 2
figure 2

Benchmark results for both methods (a and b) and four deformations (1 to 4) with static determinacy \(s=1\); for each deformation type: upper left—actuator placement, blue is elongation, red is contraction; lower left—deformed structure from the method, the red circles indicate the target positions for moving nodes, the black circles indicate fixed nodes; right: axial stress for the deformed structure from the simulation; the stress scales on the right of each column apply for all simulation results

Table 4 Benchmark results

The benchmark results for the two methods are detailed in Fig. 2 and Table 4. Comparing the LE and the NLE method, the Tanimoto indices of all results vary by less than 0.2% from the target shape, but the error with respect to the simulation are 10\(^2\) to 10\(^4\) orders of magnitude larger for the LE. This is also visible when comparing the left and the right columns of Fig. 2a and b, especially in the fourth benchmark problem. The LE method does not take into account internal stresses caused by other element elongations, which in fact cause the structure to warp significantly. Further tests show that the LE method can only achieve similar levels of accuracy if limited to less than 10% element elongation, which in turns limits the achievable macroscopic deformations and drastically increases the number of actuators.

The NLE method needs on average 23% less actuators than the LE method. Its actuators elongate between 1.8% and 77.3% less. The actuator placements are analogous, but better calibrated for the NLE method. Comparing for example the sine deformation in Fig. 2.4, the contracting and elongating elements are placed similarly for the concave down and up portions of the structure, but the NLE method makes more efficient use of the placement, using two rather than eight actuators in both portions, which can lead to a more structurally sound and energy efficient structure. The LE method has the advantage of converging faster, needing roughly 200 times less objective function evaluations and on average 4.64 times less run time. The run time for the LE is under one minute whereas the NLE method needs up to three minutes. The average run time per objective function evaluation is \(7\times 10^{-2}\) s for the LE method and \(2.3\times 10^{-2}\) s for the NLE method, so the NLE method actually iterates faster.

The convergence diagrams for the nonlinear actuator number optimization of the benchmark problems are shown in Fig. 3, where the exact results given in Table 4 are indicated in red. The aim of this work is to obtain the best compromise of shape similarity to number of actuators. As shown in the figure, adding actuators beyond the convergence criteria given in Sect. 3.6 and at the beginning of this section offer little to no improvement.

Fig. 3
figure 3

Convergence results of the benchmark problems for the actuator number optimization; the best solution determined with the convergence criteria is indicated in red; the values for one actuator have been cut off to clarify the convergence process, their average is \(fval_\text{linear,1} = 33.6\), \(fval_\text{concave up,1} = 10.9\), \(fval_\text{concave down,1} = 8.4\), and \(fval_\text{sine,1} = 26.3\)

4.2 Case studies

Fig. 4
figure 4

3D panel deformation for the a. LE and b. NLE methods; the red circles indicate the target positions for moving nodes, the black circles indicate pinned nodes; the undeformed structures in the upper left corner of each deformation show the actuator placement; the actuators in blue are elongating, the actuators in red are contracting, and the elements in gray are fixed

4.2.1 3D panel

The results for the 3D panel for the two methods are detailed in Fig. 4 and in Table 5.

The NLE doubly curved deformation requires nearly four times as many actuators as the LE method. The actuator pattern in Fig. 4a shows that the LE method only deforms locally to accommodate the target shape, whereas the NLE method presents a wider actuation response. The pattern of contracting and elongating elements is, however, apparent in both cases.

The corner lift deformation differs from the doubly curved deformation significantly. For the first and only time, the maximal strain of the actuators for the LE method is significantly lower than for the NLE method. However, it requires nearly three times as many actuators overall, so the lower strain is compensated by a full body response. The NLE method requires significantly more objective function calls and on average 6.38 times more run time, but its resulting Tanimoto index is perfect. Setting lower convergence limits could cut down the number of function evaluations, although it would affect the accuracy. The highest run time of the NLE optimization is 46,465 s, or roughly 12 h, compared to 2.1 h for the LE optimization. The average run time per objective function evaluation is 55.5 s for the LE method and 113 s for the NLE method.

Table 5 3D panel deformation results
Fig. 5
figure 5

NACA airfoil “tail up” and “tail down” deformation for the a. LE and b. NLE methods; the red circles indicate the target positions for moving nodes, the black circles indicate pinned nodes; the undeformed structures in the upper left corner of each deformation show the actuator placement; the actuators in blue are elongating, the actuators in red are contracting, and the elements in gray are fixed

4.2.2 NACA airfoil

The results of the meshed NACA airfoil for the two methods are detailed in Fig. 5 and in Table 6. This case study has five times more nodes than the benchmark problems and twenty-five times more elements. The increase in the elements to nodes ratio considerably increases the numbers of states of self-stress in the structure which affects the results.

As opposed to the benchmark problems, the LE method achieves a Tanimoto index of only 0.793, compared to a nearly perfect 0.993 for the NLE method. This is clearly visible in Fig. 5a for both deformations, where the method results overshoot the desired deformation. However, the increase in shape accuracy comes with a cost, since the NLE method needs 41.7% and 5.5% more actuators for “tail up” and “tail down,” respectively. The additional actuators are offset by a lower maximal strain (48.5% and 62.0% less, respectively). The ratio of objective function evaluations for the NLE and LE methods is roughly \(10^2\) s, similar to the benchmark. The average run time per objective function evaluation is \(3.60 \times 10^{-1}\) s for the LE method and 31.6 s for the NLE method.

Table 6 NACA Results

5 Discussion

This section first reviews the results presented and shows the superiority of the NLE method quantitatively. It then compares qualitatively to examples of shape-morphing lattice structures from literature and discusses the relevance of this work in the broader field of shape morphing.

The results from the benchmark problems clearly show the advantages of the NLE method. With respect to the benchmark problems, the solutions for the NLE method are more accurate and need on average less actuators, which is an advantage for a structure’s soundness. The doubly curved 3D case study is the only instance where the NLE method needs more actuators at a slightly higher maximum strain. Using the actuator location combinations efficacy calculated with the SA rather than single-actuator efficacy combined with the NLE method consistently achieves better results with less actuators and less elongation. The only benchmark problem where the NLE method needs more actuators than the LE method is the sine deformation, which is also where the LE method deviates the most from simulation. However, the accuracy comes at the cost of computational efficiency, with calculation times roughly four times longer than the LE method. The LE method does not take into account internal stresses caused by other element elongations, which in fact cause the structure to warp significantly. Further tests show that the LE method can only achieve similar levels of accuracy if limited to less than 10% element elongation, which in turn limits the achievable macroscopic deformations and drastically increases the number of actuators.

These differences are made more obvious with an increase in number of variables and structural complexity. Adding elements, and thus, states of self-stress, impacts the computational effort: multiplying the number of variables by 25 results in a calculation time roughly 100 times longer. The effect on the run time per iteration is different for the LE and NLE optimizations. In the NLE optimization, increasing the degree of overdeterminacy from 1 to 207 results in a multiplication of the run time per iteration by a factor of 1,374, but a further increase to \(s = 509\) in the 3D panel case study only increases the run time per iteration by a factor of 3.60. In the LE optimization, the same increases correspond to a factor of 5.14 for \(s = 1\) to \(s = 207\) and a factor of 154 for \(s = 207\) to \(s = 509\). So, although the LE method is generally more efficient, it loses its advantage with an increasing degree of overdeterminacy. The NLE methods is thus more appropriate for very large complex structures.

When comparing the results from the two case studies, the 3D panel deformation requires up to 24 times less calculation effort than the NACA profile for the LE method, whereas it requires 2.5 times more calculation effort for the NLE method. The LE method, where the impact of the states of self-stress is less significant, is impacted exponentially by the number of elements and the deformation complexity. However, the NLE method needs more objective function evaluations in the NACA case where there are less variables, but a higher variables-to-states of self-stress ratio. In the NACA case study, the constraints are often on both ends of elements, which creates inherent self-stress, and further increases the number of objective function evaluations needed to solve for the target deformation, which shows that the position of constraints impacts the efficiency of the methods greatly.

However, the case studies differ from the benchmark in the number of actuators needed for both methods. Since the LE method does not take into account the internal stresses caused by element elongations, it underestimates how many actuators it will need to achieve the target deformation, which in turn affects the Tanimoto index. This problem is particularly apparent in the NACA case study, where several elements are self-stressed by the constraints. The NLE method deforms incrementally and includes the induced states of self-stress, which increases the number of necessary actuators significantly while conserving the accuracy of the model. On the other hand, the LE method overestimates the number of actuators needed for the panel “corner lift” case by a factor of four, and delivers a structure that would be significantly harder to build that the NLE method. The case studies also differ from the benchmark in that they need 10 to 100 times fewer objective function evaluations. This is explained by two factors. First, the heuristic for Optimization 1 takes steps of \(n^\text{act}=\frac{n^\text{E}}{100}\), which is 1 for the benchmark, 15 for the 3D panel, and 5 for the NACA profile. This means that, for example, the Corner lift deformation of the 3D panel only iterates twice before \(n^\text{act}\) converges. Second, the ratio of deformation to structure size is much smaller in the case studies, so they require a smaller actuator density than the benchmark to achieve the target shapes.

The NLE method supplemented with the stochastic actuator number optimization (optimization 1) and length optimization (optimization 2) addresses the five main criteria of shape morphing better than the LE method: weight, load-carrying capacity, energy consumption, shape accuracy, and range and number of deformation mode. As in comparable work given in Table 1, weight and load-carrying capacity are addressed in the use of lattice structures. By using actuators more efficiently both in number and maximal strain, the NLE method shows better load-carrying capacities and better energy consumption. The shape accuracy and deformation range are similar for both in simple problems with low levels of overdeterminacy, but the NLE method is better equipped for a range of complex target shapes and high levels of overdeterminacy.

Comparing back to the examples given in the Introduction, the NLE method addresses all criteria where many addressed only one or two. Comparing further to Reksowardojo et al. (2020), on whose work some of the method is based, the NLE method is shown to achieve a larger shape range and to work with a more complex design space.

The extension of the design space and target shape range to highly overdeterminate freeform meshes and variable dense 3D problems of the case studies show the promise of the optimization method proposed in this work for the field of shape morphing. The nonlinear method can be applied to problems with any arbitrary lattice layout, variable number, and target shape. However, an increase in a problem’s complexity is mirrored by an increase in its computational effort. Further work should focus on finding an acceptable compromise between accuracy and computational effort with certain simplifications of the NLE method.

6 Conclusion

This work describes a linear and a nonlinear method to estimate the shape-morphing capacities of an overdeterminate lattice structure by optimizing the number and position of linear actuators within it. It compares the methods quantitatively in four benchmark problems and two case studies relevant to shape morphing. It shows that the nonlinear method is the most appropriate for large deformations of complex structures and leads to results of up to \(10^4\) higher accuracy than the linear method. By implementing a new stochastic optimization approach to minimize the number of actuators in the nonlinear method, it delivers accurate results that are more structurally sound than the results from the linear method. The case studies validate the method for highly overdeterminate, meshed freeform target shapes and doubly curved surfaces with a high number of variables, and indicate the importance of the choice of constraints in these systems. The nonlinear method can, thus, be applied to problem sizes with a number of elements on the order of \(10^3\) and even larger, target shapes with varying curvature, and high degrees of overdeterminacy. However, the efficiency of the nonlinear method is affected by the number of variables, the constraints, and the degree of overdeterminacy. The case studies show the potential for the method to optimize the design of complex, active structures applied in aerospace and construction. Future work should further test the limits of this method in terms of number of variables versus achievable deformation, and the results should be verified experimentally.