> For the complete documentation index, see [llms.txt](https://tlcfem.gitbook.io/suanpan-manual/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tlcfem.gitbook.io/suanpan-manual/example/structural/optimization/evolutionary-structural-optimization.md).

# evolutionary structural optimization

In this example, the optimization of a loaded panel is performed by using the BESO method. The model can be downloaded [here](https://github.com/TLCFEM/suanPan-manual/tree/dev/docs/Example/Structural/Optimization/evolutionary-structural-optimization.zip).

## Design Domain

The design domain has a dimension of $$100\times40$$ with left side fully fixed. At the center of the right side, a point load is applied. The panel is discretized with $$4000$$ `CP4` elements.

The node and elements are defined in files `node.supan` and `element.supan`. They can be loaded.

```
file node.supan
file element.supan
```

The boundary condition is applied to a group that selects all nodes on $$x=0$$.

```
generatebyrule nodegroup 1 1 1. 0.
groupmultiplierbc 1 E 1
```

## The Optimization Step

To perform structural optimization, a [`Optimization`](/suanpan-manual/step/optimization.md) step needs to be defined.

```
step Optimization 1
```

To define a proper rule to update the model by adding/deleting elements, one can use the [`StrainEnergyEvolution`](/suanpan-manual/criterion/strainenergyevolution.md) criterion. The following command defines a strain energy based evolution rule with an increment step of $$2%$$ to reach the final design level $$50%$$, that is to remove $$50%$$ elements.

```
criterion StrainEnergyEvolution 1 2 50 1 1 40
```

## Result

![optimization](https://1124082496-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEquxr3H9WpPg4iPvT2mB%2Fuploads%2Fgit-blob-f68a8ce8ce33aaee973d43b5588847a20553ff82%2Fevolutionary-structural-optimization.gif?alt=media)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://tlcfem.gitbook.io/suanpan-manual/example/structural/optimization/evolutionary-structural-optimization.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
