Compliance benchmarks
The compliance cases of the bank: the MBB beam against top88, SiMPL and Kim et al. (2020), the 3D cantilever, the double well (the bridge of Takezawa et al. and the cantilever), levelset88, and the MBB beam with every method. The discussion of the cases with a reference is on the Validation page. The first row of the top88 and levelset88 tables is the reference code. The rows of the fixed table are described on the Benchmarks page, with the rule for comparing methods (LUSolver, backend :compiled; "–" marks what a row does not have). The SVG figures are written to the results folder by each script; the ones shown here are copies in docs/src/assets/benchmarks.
MBB beam against top88 (Andreassen et al. 2011)
Two references: Fig. 4 of the paper (PDE filter), 1 % on J, for the cell mean with OC as top88; top88.m run in Octave 9.1 with its density filter (ft = 2; its compliance is that of Fig. 3), 5 % on J_bin, for the other rows (the script checks every row against it). validation/mbb_top88.jl; Apple M5 Max, 4 threads, Julia 1.13.0 · commit cd77bab · 2026-11-28 12:17.
| case | variant | J | J_bin | ref | vs ref | V | V_bin | grey | perimeter | holes | iterations | solves state/adjoint/filter/step | time (s) | time ÷ state solves (s) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| MBB top88 60×20 | Andreassen et al. (2011), Fig. 4, PDE density filter (published) | 237.6 | – | – | – | – | – | – | – | – | – | – | – | – |
| MBB top88 60×20 | top88.m in Octave 9.1, density filter ft = 2, rmin = 2.4 (Fig. 3: 233.71) | 233.713 | 187.446 | – | – | 0.5000 | 0.5100 | 0.330 | 217 | 2 | 144 | – | – | – |
| MBB top88 60×20 | P0, cell mean, OC as top88 | 237.606 | 187.333 | 237.6 | +0.00 % (J) | 0.5000 | 0.5100 | 0.349 | 219 | 2 | 138 (converged, change_tol) | 139/0/277/0 | 1.4 | 0.00983 |
| MBB top88 60×20 | P0, Gauss points, OC as top88 | 235.032 | 188.342 | 187.446 | +0.48 % (J_bin) | 0.5000 | 0.5108 | 0.358 | 220 | 2 | 88 (converged, change_tol) | 89/0/177/0 | 0.8 | 0.00882 |
| MBB top88 60×20 | P1, Gauss points, OC as top88 | 237.555 | 187.347 | 187.446 | -0.05 % (J_bin) | 0.5000 | 0.5217 | 0.367 | 219 | 2 | 137 (converged, change_tol) | 138/0/275/0 | 1.4 | 0.00997 |
| MBB top88 60×20 | P0, cell mean, OC() | 238.978 | 188.369 | 187.446 | +0.49 % (J_bin) | 0.5000 | 0.5108 | 0.360 | 220 | 2 | 72 (converged, objective_range) | 73/0/145/0 | 0.8 | 0.0106 |
| MBB top88 60×20 | P0, Gauss points, SiMPL() | 235.069 | 188.056 | 187.446 | +0.33 % (J_bin) | 0.5000 | 0.5125 | 0.357 | 220 | 2 | 39 (converged, objective_range) | 50/0/89/0 | 0.5 | 0.01 |
| MBB top88 60×20 | P1, Gauss points, SiMPL() | 239.291 | 187.242 | 187.446 | -0.11 % (J_bin) | 0.5000 | 0.5242 | 0.377 | 220 | 2 | 36 (converged, objective_range) | 45/0/81/0 | 0.4 | 0.00831 |
| MBB top88 150×50 | Andreassen et al. (2011), Fig. 4, PDE density filter (published) | 235.36 | – | – | – | – | – | – | – | – | – | – | – | – |
| MBB top88 150×50 | top88.m in Octave 9.1, density filter ft = 2, rmin = 6.0 (Fig. 3: 235.73) | 235.735 | 189.651 | – | – | 0.5000 | 0.5129 | 0.334 | 549 | 2 | 362 | – | – | – |
| MBB top88 150×50 | P0, cell mean, OC as top88 | 235.363 | 190.528 | 235.36 | +0.00 % (J) | 0.5000 | 0.5077 | 0.326 | 564 | 2 | 457 (converged, change_tol) | 458/0/915/0 | 18.3 | 0.0399 |
| MBB top88 150×50 | P0, Gauss points, OC as top88 | 234.75 | 190.473 | 189.651 | +0.43 % (J_bin) | 0.5000 | 0.5076 | 0.326 | 564 | 2 | 543 (converged, change_tol) | 544/0/1087/0 | 20.4 | 0.0375 |
| MBB top88 150×50 | P1, Gauss points, OC as top88 | 235.373 | 190.21 | 189.651 | +0.29 % (J_bin) | 0.5000 | 0.5108 | 0.327 | 562 | 2 | 365 (converged, change_tol) | 366/0/731/0 | 14.6 | 0.0398 |
| MBB top88 150×50 | P0, cell mean, OC() | 237.021 | 191.381 | 189.651 | +0.91 % (J_bin) | 0.5000 | 0.5093 | 0.332 | 561 | 2 | 58 (converged, objective_range) | 59/0/117/0 | 2.3 | 0.0389 |
| MBB top88 150×50 | P0, Gauss points, SiMPL() | 235.542 | 190.702 | 189.651 | +0.55 % (J_bin) | 0.5000 | 0.5087 | 0.329 | 566 | 2 | 45 (converged, objective_range) | 59/0/104/0 | 2.2 | 0.0365 |
| MBB top88 150×50 | P1, Gauss points, SiMPL() | 235.934 | 191.007 | 189.651 | +0.72 % (J_bin) | 0.5000 | 0.5092 | 0.331 | 564 | 2 | 48 (converged, objective_range) | 59/0/107/0 | 2.1 | 0.0353 |
MBB beam against SiMPL, 768 × 256
Published values (tables 1 and 2 of the paper), compared on J: 1 % with the sensitivity of the authors' code, 5 % with the exact one and with OC. validation/mbb_simpl.jl; Apple M5 Max, 4 threads, Julia 1.13.0 · commit cd77bab · 2026-11-28 12:26.
| case | variant | J | J_bin | ref | vs ref | V | V_bin | grey | perimeter | holes | iterations | solves state/adjoint/filter/step | time (s) | time ÷ state solves (s) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| MBB SiMPL 768×256 | rmin 0.05, P0, SiMPL, authors' sensitivity, S ≤ 1e-5 (table 1) | 0.0012078 | 0.000967674 | 0.0012078 | +0.00 % (J) | 0.3000 | 0.3016 | 0.197 | 17.7 | 6 | 50 (converged, stationarity_tol) | 58/0/108/0 | 66.4 | 1.15 |
| MBB SiMPL 768×256 | rmin 0.05, P0, SiMPL, exact sensitivity, S ≤ 1e-5 | 0.00119603 | 0.000964159 | 0.0012078 | -0.97 % (J) | 0.3000 | 0.3005 | 0.190 | 17.2 | 4 | 104 (converged, stationarity_tol) | 114/0/218/0 | 135.9 | 1.19 |
| MBB SiMPL 768×256 | rmin 0.05, P1, SiMPL, exact sensitivity, S ≤ 1e-5 | 0.00120303 | 0.000966876 | 0.0012078 | -0.40 % (J) | 0.3000 | 0.3002 | 0.195 | 17.71 | 6 | 73 (converged, stationarity_tol) | 81/0/154/0 | 91.3 | 1.13 |
| MBB SiMPL 768×256 | rmin 0.02, P0, SiMPL, authors' sensitivity, 29 iterations (table 2) | 0.00105663 | 0.000971927 | 0.0010566 | +0.00 % (J) | 0.3000 | 0.3008 | 0.089 | 19.03 | 10 | 29 (maxiter) | 31/0/60/0 | 37.1 | 1.2 |
| MBB SiMPL 768×256 | rmin 0.05, P0, OC(), default stop (vs OC of table 1) | 0.00121132 | 0.00098081 | 0.0012234 | -0.99 % (J) | 0.3000 | 0.2993 | 0.196 | 17.97 | 7 | 102 (converged, objective_range) | 103/0/205/0 | 121.9 | 1.18 |
3D cantilever 24 × 12 × 12
No reference; the perimeter is an area and the holes are closed cavities. validation/cantilever3d.jl; Apple M5 Max, 4 threads, Julia 1.13.0 · commit cd77bab · 2026-11-28 12:28.
| case | variant | J | J_bin | ref | vs ref | V | V_bin | grey | perimeter | holes | iterations | solves state/adjoint/filter/step | time (s) | time ÷ state solves (s) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| cantilever 3D 24×12×12 | P0, OC() | 1.65812 | 0.874251 | – | – | 0.3000 | 0.2847 | 0.483 | 7.264 | 0 | 82 (converged, objective_range) | 83/0/165/0 | 15.2 | 0.183 |
| cantilever 3D 24×12×12 | P0, SiMPL() | 1.27693 | 0.738577 | – | – | 0.3000 | 0.2969 | 0.407 | 5.792 | 0 | 30 (converged, objective_range) | 34/0/64/0 | 6.5 | 0.192 |
| cantilever 3D 24×12×12 | P1, OC() | 1.71558 | 0.893944 | – | – | 0.3000 | 0.2784 | 0.500 | 7.264 | 0 | 90 (converged, objective_range) | 91/0/181/0 | 17.5 | 0.192 |
| cantilever 3D 24×12×12 | P1, SiMPL() | 1.31487 | 0.777166 | – | – | 0.3000 | 0.2859 | 0.420 | 5.556 | 0 | 30 (converged, objective_range) | 36/0/66/0 | 6.9 | 0.191 |
Bridge of Takezawa et al. (2010), 200 × 100
Published J = 23.3 at 100 iterations, compared on J within 3 % (the tolerance decided for the double well). validation/bridge_takezawa.jl; Apple M5 Max, 4 threads, Julia 1.13.0 · commit cd77bab · 2026-11-28 12:29.
| case | variant | J | J_bin | ref | vs ref | V | V_bin | grey | perimeter | holes | iterations | solves state/adjoint/filter/step | time (s) | time ÷ state solves (s) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| bridge Takezawa 200×100 | reaction–diffusion double well, method default, seed takezawa | 23.6684 | 22.0839 | 23.3 | +1.58 % (J) | 0.3000 | 0.3034 | 0.100 | 18.95 | 9 | 100 (maxiter) | 101/0/0/388 | 11.0 | 0.109 |
| bridge Takezawa 200×100 | reaction–diffusion double well, method default, seed hex | 23.8995 | 21.9336 | 23.3 | +2.57 % (J) | 0.3000 | 0.3105 | 0.087 | 16.6 | 6 | 100 (maxiter) | 101/0/0/396 | 10.9 | 0.108 |
| bridge Takezawa 200×100 | reaction–diffusion double well, method takezawa2010, seed takezawa | 23.6144 | 21.6804 | 23.3 | +1.35 % (J) | 0.3001 | 0.3072 | 0.104 | 19.73 | 9 | 100 (maxiter) | 101/0/0/0 | 11.0 | 0.108 |
| bridge Takezawa 200×100 | reaction–diffusion double well, method takezawa2010, seed hex | 23.6614 | 21.5482 | 23.3 | +1.55 % (J) | 0.3001 | 0.3083 | 0.108 | 20.86 | 8 | 100 (maxiter) | 101/0/0/0 | 11.0 | 0.109 |
Cantilever 2 × 1 with the double well: mesh independence
No reference; J within ±2.7 % of the value on 200 × 100. validation/mesh_double_well.jl; Apple M5 Max, 4 threads, Julia 1.13.0 · commit cd77bab · 2026-11-28 12:31.
| case | variant | J | J_bin | ref | vs ref | V | V_bin | grey | perimeter | holes | iterations | solves state/adjoint/filter/step | time (s) | time ÷ state solves (s) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| cantilever 2×1 double well 100×50 | reaction–diffusion double well, κ = 1e-5, T = 25, seed :hex | 2.5582 | 2.43937 | – | – | 0.5000 | 0.5052 | 0.114 | 12.16 | 6 | 92 (converged, all) | 93/0/0/181 | 2.7 | 0.0293 |
| cantilever 2×1 double well 200×100 | reaction–diffusion double well, κ = 1e-5, T = 25, seed :hex | 2.49332 | 2.41558 | – | – | 0.5000 | 0.5033 | 0.070 | 13.88 | 8 | 75 (converged, all) | 76/0/0/371 | 7.9 | 0.105 |
| cantilever 2×1 double well 400×200 | reaction–diffusion double well, κ = 1e-5, T = 25, seed :hex | 2.42552 | 2.3795 | – | – | 0.5001 | 0.5004 | 0.049 | 16.92 | 14 | 100 (converged, all) | 101/0/0/1905 | 48.1 | 0.476 |
Cantilever of levelset88 (Otomori et al. 2015), 80 × 64
levelset88 run in Octave 9.1, another method on the same mesh: rule between methods on J_bin; the HyperShape row reads its design as the rest of the bank (cell mean of the physical field of Ersatz() at least ½), the Octave row by its own rule (mean nodal φ positive). validation/otomori_levelset88.jl; Apple M5 Max, 4 threads, Julia 1.13.0 · commit cd77bab · 2026-11-28 12:32.
| case | variant | J | J_bin | ref | vs ref | V | V_bin | grey | perimeter | holes | iterations | solves state/adjoint/filter/step | time (s) | time ÷ state solves (s) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| cantilever levelset88 80×64 | levelset88 in Octave 9.1, stop of Otomori (reference; its elements: mean nodal φ > 0) | 534.949 | 534.949 | – | – | 0.4996 | 0.4996 | 0.000 | 722 | 8 | 112 | – | – | – |
| cantilever levelset88 80×64 | reaction–diffusion level set, Ersatz(), phibc = :zeroboundary | 519.405 | 531.802 | 534.949 | -0.59 % (J_bin) | 0.5001 | 0.4996 | 0.060 | 598 | 5 | 128 (converged, all) | 129/0/0/128 | 7.5 | 0.0584 |
MBB beam: one problem, every method
One problem with physical parameters, solved with the six methods of the bank; only the block of design variables and the method change between the runs. The half MBB beam (0, 3) × (0, 1), plane stress, E = 1, ν = 0.3, Emin = 1e-3; a total force (0, −1) spread over x ≤ 0.075 of the top, symmetry on x = 0, a roller on x ≥ 2.925 of the bottom (the widths are multiples of the cell size on every mesh of the bank: checked); volume fraction 0.5; mesh 240 × 80. The Helmholtz filter radius rmin = 0.06 is in domain units, the diffusion τ = 2e-4 is dimensionless (κ = τ|D| = 6e-4). The methods (BENCH_METHODS in validation/common/problems.jl): density OC and density SiMPL, each with a P0 and a P1 design (the filtered density, SIMP p = 3, no projection), the reaction–diffusion level set (φ ∈ [−1, 1] read through Ersatz(), E = Emin + (1 − Emin) χ) and the reaction–diffusion density (φ ∈ [0, 1], SIMP); every run with its default stop. The designs are read as 0/1 keeping the volume 0.5. Rule between methods: J_bin within 5 % of density SiMPL, P0, a sanity check between methods whose regularisations (rmin and τ) are not calibrated against each other: they do not solve the same regularised problem, and the perimeter column shows how much boundary each one is allowed. Holes: at least π(rmin/2)². validation/mbb_methods.jl.
| variant | J | J_bin | vs ref (J_bin) | perimeter | holes | V_bin (½) | iterations |
|---|---|---|---|---|---|---|---|
| density OC, P0 | 186.686 | 166.629 | +0.27 % | 15.75 | 6 | 0.5044 | 56 |
| density OC, P1 | 186.707 | 166.883 | +0.42 % | 15.76 | 6 | 0.5090 | 74 |
| density SiMPL, P0 (reference) | 185.212 | 166.186 | +0.00 % | 14.74 | 4 | 0.5044 | 43 |
| density SiMPL, P1 | 185.4 | 166.461 | +0.17 % | 14.56 | 4 | 0.5058 | 51 |
| reaction–diffusion level set, Ersatz() | 160.35 | 162.42 | -2.27 % | 17.68 | 7 | 0.5008 | 67 |
| reaction–diffusion density | 171.255 | 164.315 | -1.13 % | 12.68 | 3 | 0.5011 | 151 |
The objectives that the methods optimise differ by 16 % (160.4 for the level set with its cut cells to 186.7 for OC with its grey material); read as 0/1 keeping the volume, the six designs are within 2.7 % (J_bin from −2.27 % to +0.42 % of the reference): the sanity check holds with a margin of about 3 points. Differences below 2 % between the density methods are not read as a ranking (with the threshold ½ instead, OC P1 would move from +0.42 % to −0.88 % because it keeps 1.8 % more material). The perimeters show the different regularisations: 12.7 for the reaction–diffusion density, 14.6–15.8 for the density methods (rmin = 0.06), 17.7 for the level set (τ = 2e-4), which ends with the most holes (7) and the lowest J_bin; the reaction–diffusion density needs the most iterations (151). Matching the regularisations (calibrating τ against rmin) is not done here.
The fixed report table (J_bin, V_bin, perimeter and holes of the design read keeping the volume):
Apple M5 Max, 4 threads, Julia 1.13.0 · commit 9554a90+dirty · 2026-11-29 16:45.
| case | variant | J | J_bin | ref | vs ref | V | V_bin | grey | perimeter | holes | iterations | solves state/adjoint/filter/step | time (s) | time ÷ state solves (s) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| MBB 240×80 | density OC, P0 | 186.686 | 166.629 | 166.186 | +0.27 % (J_bin) | 0.5000 | 0.5000 | 0.222 | 15.75 | 6 | 56 (converged, objective_range) | 57/0/113/0 | 5.7 | 0.1 |
| MBB 240×80 | density OC, P1 | 186.707 | 166.883 | 166.186 | +0.42 % (J_bin) | 0.5000 | 0.5000 | 0.225 | 15.76 | 6 | 74 (converged, objective_range) | 75/0/149/0 | 7.1 | 0.0946 |
| MBB 240×80 | density SiMPL, P0 (reference) | 185.212 | 166.186 | 166.186 | +0.00 % (J_bin) | 0.5000 | 0.5000 | 0.207 | 14.74 | 4 | 43 (converged, objective_range) | 48/0/91/0 | 4.5 | 0.0944 |
| MBB 240×80 | density SiMPL, P1 | 185.4 | 166.461 | 166.186 | +0.17 % (J_bin) | 0.5000 | 0.5000 | 0.209 | 14.56 | 4 | 51 (converged, objective_range) | 56/0/107/0 | 5.2 | 0.0926 |
| MBB 240×80 | reaction–diffusion level set, Ersatz() | 160.35 | 162.42 | 166.186 | -2.27 % (J_bin) | 0.5000 | 0.5000 | 0.040 | 17.68 | 7 | 67 (converged, all) | 68/0/0/67 | 7.0 | 0.102 |
| MBB 240×80 | reaction–diffusion density | 171.255 | 164.315 | 166.186 | -1.13 % (J_bin) | 0.4999 | 0.5000 | 0.091 | 12.68 | 3 | 151 (converged, all) | 152/0/0/151 | 16.0 | 0.105 |
Half MBB beam of Kim et al. (2020), loop 1
The first stage of Kim, Kim, Choi and Yoon (2020, Struct. Multidiscip. Optim. 62:439–455), the reaction–diffusion density with the settings of the paper (KIM2020, validation/common/presets.jl). From the paper (Listings 4 and 5, the appendix and Table 4, checked in the PDF): (0, 3) × (0, 1), plane strain (λ = Eν/((1 + ν)(1 − 2ν))), E₀ = 2e11, ν = 0.33 (the listing, which produced Table 4; their Table 1 says 0.3), p = 3, u₁ = 0 on the left side, u₂ = 0 on the bottom for x ≥ L − L/160, f = (0, −1e4) on the top for x ≤ L/160, φ₀ = 0.5, volume 0.45, κ = 1e-3 |Ω|, Δt = 0.1, the augmented Lagrangian with q₀ = 0, r₀ = 0.2, γ = 1.025, the stop max |Δφ| ≤ 0.01; φ in P2 and u in P1 on 9 472 unstructured triangles. Table 4, loop 1: 132 iterations, compliance 3.49e-5, grey 18.68 %. Here: E = 1, f = 1 (their compliance is ours times f²/E₀ = 5e-4, so 3.49e-5 is 0.0698), φ in P1 and u in Q1 on the Cartesian meshes 160 × 53 (the load is one cell wide) and 320 × 106, Emin = 1e-9, τ = 1e-3, StopCriteria(change_tol = 0.01). One difference in the penalty of the augmented Lagrangian: their code multiplies r by γ at every iteration without bound (r ≈ 5.2 at iteration 132); Bertsekas(…) grows it only while the constraint is violated, up to μmax = 2, a cap that does not act (a run with μmax = 1e6 gives the same iterates); no measurable effect. The rule of a published value with another discretisation: J within 5 %. J_bin (the design read as 0/1 keeping the volume 0.45) is given for information. validation/mbb_kim2020.jl.
Apple M5 Max, 4 threads, Julia 1.13.0 · commit 9554a90+dirty · 2026-11-29 16:46.
| case | variant | J | J_bin | ref | vs ref | V | V_bin | grey | perimeter | holes | iterations | solves state/adjoint/filter/step | time (s) | time ÷ state solves (s) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| MBB Kim 2020 | Kim et al. (2020), table 4, loop 1: φ P2, 9 472 triangles (published: 3.49e-5 in their units, grey of the field 18.68 %) | 0.0698 | – | – | – | – | – | – | – | – | 132 | – | – | – |
| MBB Kim 2020 160×53 | reaction–diffusion density, KIM2020, φ P1, change_tol = 0.01 (grey of the field 17.53 %) | 0.0695349 | 0.0624578 | 0.0698 | -0.38 % (J) | 0.4499 | 0.4500 | 0.180 | 11.56 | 2 | 126 (converged, change_tol) | 127/0/0/126 | 5.7 | 0.0448 |
| MBB Kim 2020 320×106 | reaction–diffusion density, KIM2020, φ P1, change_tol = 0.01 (grey of the field 17.19 %) | 0.0695808 | 0.0624903 | 0.0698 | -0.31 % (J) | 0.4500 | 0.4500 | 0.173 | 11.63 | 2 | 118 (converged, change_tol) | 119/0/0/118 | 20.7 | 0.174 |
The first stage of Kim et al. is reproduced within 0.4 % (−0.38 % on 160 × 53, −0.31 % on 320 × 106), with 126 and 118 iterations against their 132 and a grey of the field of 17.5 % and 17.2 % against their 18.68 % (P1 against their P2 on another mesh; the iterations and the grey are reported, without a rule). The design read as 0/1 keeping the volume has J_bin = 3.12e-5 in their units, 2.8 % above the compliance of their loop 2 (3.037e-5 on the refined mesh), which is the 0/1 design that the second stage approaches.