# Shape optimization

Shape optimization is part of the field of optimal control theory. The typical problem is to find the shape which is optimal in that it minimizes a certain cost functional while satisfying given constraints. In many cases, the functional being solved depends on the solution of a given partial differential equation defined on the variable domain.

Topology optimization is, in addition, concerned with the number of connected components/boundaries belonging to the domain. Such methods are needed since typically shape optimization methods work in a subset of allowable shapes which have fixed topological properties, such as having a fixed number of holes in them. Topological optimization techniques can then help work around the limitations of pure shape optimization.

## Definition

Mathematically, shape optimization can be posed as the problem of finding a bounded set $\Omega$, minimizing a functional

$\mathcal{F}(\Omega)$,

possibly subject to a constraint of the form

$\mathcal{G}(\Omega)=0.$

Usually we are interested in sets $\Omega$ which are Lipschitz or C1 boundary and consist of finitely many components, which is a way of saying that we would like to find a rather pleasing shape as a solution, not some jumble of rough bits and pieces. Sometimes additional constraints need to be imposed to that end to ensure well-posedness of the problem and uniqueness of the solution.

Shape optimization is an infinite-dimensional optimization problem. Furthermore, the space of allowable shapes over which the optimization is performed does not admit a vector space structure, making application of traditional optimization methods more difficult.

## Examples

• Among all three-dimensional shapes of given volume, find the one which has minimal surface area. Here:
$\mathcal{F}(\Omega)=\mbox{Area}(\partial \Omega)$,

with

$\mathcal{G}(\Omega)=\mbox{Volume}(\Omega)-\mbox{const.}$
The answer is the inside of a sphere.
• Find the shape of an airplane wing which minimizes drag. Here the constraints could be the wing strength, or the wing dimensions.
• Find the shape of various mechanical structures, which can resist a given stress while having a minimal mass/volume.
• Given a known three-dimensional object with a fixed radiation source inside, deduce the shape and size of the source based on measurements done on part of the boundary of the object. A formulation of this inverse problem using least-squares fit leads to a shape optimization problem.

## Techniques

Shape optimization problems are usually solved numerically, by using iterative methods. That is, one starts with an initial guess for a shape, and then gradually evolves it, until it morphs into the optimal shape.

### Keeping track of the shape

Example: Shape optimization as applied to building geometry. Example provided courtesy of Formsolver.com
Example: Optimization shape families resulting from differing goal parameters. Example provided courtesy of Formsolver.com

To solve a shape optimization problem, one needs to find a way to represent a shape in the computer memory, and follow its evolution. Several approaches are usually used.

One approach is to follow the boundary of the shape. For that, one can sample the shape boundary in a relatively dense and uniform manner, that is, to consider enough points to get a sufficiently accurate outline of the shape. Then, one can evolve the shape by gradually moving the boundary points. This is called the Lagrangian approach.

Another approach is to consider a function defined on a rectangular box around the shape, which is positive inside of the shape, zero on the boundary of the shape, and negative outside of the shape. One can then evolve this function instead of the shape itself. One can consider a rectangular grid on the box and sample the function at the grid points. As the shape evolves, the grid points do not change; only the function values at the grid points change. This approach, of using a fixed grid, is called the Eulerian approach. The idea of using a function to represent the shape is at the basis of the level set method.

A third approach is to think of the shape evolution as of a flow problem. That is, one can imagine that the shape is made of a plastic material gradually deforming such that any point inside or on the boundary of the shape can be always traced back to a point of the original shape in a one-to-one fashion. Mathematically, if $\Omega_0$ is the initial shape, and $\Omega_t$ is the shape at time t, one considers the diffeomorphisms

$f_t:\Omega_0\to \Omega_t, \mbox{ for } 0\le t\le t_0.$

The idea is again that shapes are difficult entities to be dealt with directly, so manipulate them by means of a function.

### Iterative methods using shape gradients

Consider a smooth velocity field $V$ and the family of transformations $T_s$ of the initial domain $\Omega_0$ under the velocity field $V$:

$x(0) = x_0 \in \Omega_0, \quad x'(s) = V(x(s)), \quad T_s(x_0) = x(s), \quad s \geq 0$,

and denote

$\Omega_0 \mapsto T_s(\Omega_0) = \Omega_s.$

Then the Gâteaux or shape derivative of $\mathcal{F}(\Omega)$ at $\Omega_0$ with respect to the shape is the limit of

$d\mathcal{F}(\Omega_0;V) = \lim_{s \to 0}\frac{\mathcal{F}(\Omega_s) - \mathcal{F}(\Omega_0)}{s}$

if this limit exists. If in addition the derivative is linear with respect to $V$, there is a unique element of $\nabla \mathcal{F} \in L^2(\partial \Omega_0)$ and

$d\mathcal{F}(\Omega_0;V) = \langle \nabla \mathcal{F}, V \rangle_{\partial \Omega_0}$

where $\nabla \mathcal{F}$ is called the shape gradient. This gives a natural idea of gradient descent, where the boundary $\partial \Omega$ is evolved in the direction of negative shape gradient in order to reduce the value of the cost functional. Higher order derivatives can be similarly defined, leading to Newtonlike methods.

Typically, gradient descent is preferred, even if requires a large number of iterations, because, it can be hard to compute the second-order derivative (that is, the Hessian) of the objective functional $\mathcal{F}$.

If the shape optimization problem has constraints, that is, the functional $\mathcal{G}$ is present, one has to find ways to convert the constrained problem into an unconstrained one. Sometimes ideas based on Lagrange multipliers can work.

### Geometry parametrization

Shape optimization can be faced using standard optimization methods if a parametrization of the geometry is defined. Such parametrization is very important in CAE field where goal functions are usually complex functions evaluated using numerical models (CFD, FEA,...). A convenient approach, suitable for a wide class of problems, consists in the parametrization of the CAD model coupled with a full automation of all the process required for function evaluation (meshing, solving and result processing). Mesh morphing is a valid choice for complex problems. In this case the parametrization is defined after the meshing stage acting directly on the numerical model used for calculation that is changed using mesh updating methods. There are several algorithms available for mesh morphing (deforming volumes, pseudosolids, radial basis functions). The selection of the parametrization approach depends mainly on the size of the problem: the CAD approach is preferred for small-to-medium sized models whilst the mesh morphing approach is the best (and sometimes the only feasible one) for large and very large models.

## References

• Allaire, G. (2002) Shape optimization by the homogenization method. Applied Mathematical Sciences 146, Springer Verlag. ISBN 0-387-95298-5
• Ashok D. Belegundu, Tirupathi R. Chandrupatla. (2003) Optimization Concepts and applications in Engineering Prentice Hall. ISBN 0-13-031279-7.
• Bendsøe M. P.; Sigmund O. (2003) Topology Optimization: Theory, Methods and Applications. Springer. ISBN 3-540-42992-1.
• Burger, M.; Osher, S.L. (2005) A Survey on Level Set Methods for Inverse Problems and Optimal Design. European Journal of Applied Mathematics, vol.16 pp. 263–301.
• Delfour, M.C.; Zolesio, J.-P. (2001) Shapes and Geometries - Analysis, Differential Calculus, and Optimization. SIAM. ISBN 0-89871-489-3.
• Haslinger, J.; Mäkinen, R. (2003) Introduction to Shape Optimization: Theory, Approximation and Computation. Society for Industrial and Applied Mathematic. ISBN 0-89871-536-9.
• Laporte, E.; Le Tallec, P. (2003) Numerical Methods in Sensitivity Analysis and Shape Optimization. Birkhäuser. ISBN 0-8176-4322-2.
• Mohammadi, B.; Pironneau, O. (2001) Applied Shape Optimization for Fluids. Oxford University Press. ISBN 0-19-850743-7.
• Simon J. (1980) Differentiation with respect to the domain in boundary value problems. Numer. Fuct. Anal. and Optimiz., 2(7&8), 649-687 (1980).