In this assignment, we will use the classic MBB beam as an example to compare the performance differences of three different optimization methods: OC, MMA, and IP (Interior Point Method).
The volfrac is set to 0.5, penal is set to 3, and four groups are prepared with nelx=60, 120, 180, and 240, nely=nelx/3, and rmin=nelx*0.04.
This image corresponds to the optimization results and objective function variation curves for different methods, with nelx=60, 120, 180, and 240 from top to bottom, and OC, MMA, and IP from left to right.
This image illustrates the variation of the objective function value with the increase in the number of elements.
This image illustrates the variation in runtime as the number of elements increases.
Based on the two plots, we can analyze the performance of the three methods — OC (Optimality Criteria), MMA (Method of Moving Asymptotes), and IP (Interior Point Method) — in terms of compliance and time across different element sizes.
In the first plot, which shows the relationship between compliance and the number of elements:
60x20
to 240x80
, indicating that both methods maintain a relatively consistent performance in terms of compliance, regardless of mesh density.120x40
and 240x80
. This suggests that the IP method becomes less efficient at minimizing compliance as the problem’s complexity increases.The second plot shows the computational time required by each method:
180x60
and 240x80
, the time jumps significantly, making MMA the slowest method for the largest problem size.In conclusion, IP is the most computationally efficient method in terms of time, but its compliance performance degrades as problem size increases. OC provides a good balance between compliance and computational efficiency, making it a reliable choice for larger problems. MMA delivers good compliance but is significantly slower for larger problem sizes, making it less suitable for large-scale problems.