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.

casevariantJJ_binrefvs refVV_bingreyperimeterholesiterationssolves state/adjoint/filter/steptime (s)time ÷ state solves (s)
MBB top88 60×20Andreassen et al. (2011), Fig. 4, PDE density filter (published)237.6––––––––––––
MBB top88 60×20top88.m in Octave 9.1, density filter ft = 2, rmin = 2.4 (Fig. 3: 233.71)233.713187.446––0.50000.51000.3302172144–––
MBB top88 60×20P0, cell mean, OC as top88237.606187.333237.6+0.00 % (J)0.50000.51000.3492192138 (converged, change_tol)139/0/277/01.40.00983
MBB top88 60×20P0, Gauss points, OC as top88235.032188.342187.446+0.48 % (J_bin)0.50000.51080.358220288 (converged, change_tol)89/0/177/00.80.00882
MBB top88 60×20P1, Gauss points, OC as top88237.555187.347187.446-0.05 % (J_bin)0.50000.52170.3672192137 (converged, change_tol)138/0/275/01.40.00997
MBB top88 60×20P0, cell mean, OC()238.978188.369187.446+0.49 % (J_bin)0.50000.51080.360220272 (converged, objective_range)73/0/145/00.80.0106
MBB top88 60×20P0, Gauss points, SiMPL()235.069188.056187.446+0.33 % (J_bin)0.50000.51250.357220239 (converged, objective_range)50/0/89/00.50.01
MBB top88 60×20P1, Gauss points, SiMPL()239.291187.242187.446-0.11 % (J_bin)0.50000.52420.377220236 (converged, objective_range)45/0/81/00.40.00831
MBB top88 150×50Andreassen et al. (2011), Fig. 4, PDE density filter (published)235.36––––––––––––
MBB top88 150×50top88.m in Octave 9.1, density filter ft = 2, rmin = 6.0 (Fig. 3: 235.73)235.735189.651––0.50000.51290.3345492362–––
MBB top88 150×50P0, cell mean, OC as top88235.363190.528235.36+0.00 % (J)0.50000.50770.3265642457 (converged, change_tol)458/0/915/018.30.0399
MBB top88 150×50P0, Gauss points, OC as top88234.75190.473189.651+0.43 % (J_bin)0.50000.50760.3265642543 (converged, change_tol)544/0/1087/020.40.0375
MBB top88 150×50P1, Gauss points, OC as top88235.373190.21189.651+0.29 % (J_bin)0.50000.51080.3275622365 (converged, change_tol)366/0/731/014.60.0398
MBB top88 150×50P0, cell mean, OC()237.021191.381189.651+0.91 % (J_bin)0.50000.50930.332561258 (converged, objective_range)59/0/117/02.30.0389
MBB top88 150×50P0, Gauss points, SiMPL()235.542190.702189.651+0.55 % (J_bin)0.50000.50870.329566245 (converged, objective_range)59/0/104/02.20.0365
MBB top88 150×50P1, Gauss points, SiMPL()235.934191.007189.651+0.72 % (J_bin)0.50000.50920.331564248 (converged, objective_range)59/0/107/02.10.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.

casevariantJJ_binrefvs refVV_bingreyperimeterholesiterationssolves state/adjoint/filter/steptime (s)time ÷ state solves (s)
MBB SiMPL 768×256rmin 0.05, P0, SiMPL, authors' sensitivity, S ≤ 1e-5 (table 1)0.00120780.0009676740.0012078+0.00 % (J)0.30000.30160.19717.7650 (converged, stationarity_tol)58/0/108/066.41.15
MBB SiMPL 768×256rmin 0.05, P0, SiMPL, exact sensitivity, S ≤ 1e-50.001196030.0009641590.0012078-0.97 % (J)0.30000.30050.19017.24104 (converged, stationarity_tol)114/0/218/0135.91.19
MBB SiMPL 768×256rmin 0.05, P1, SiMPL, exact sensitivity, S ≤ 1e-50.001203030.0009668760.0012078-0.40 % (J)0.30000.30020.19517.71673 (converged, stationarity_tol)81/0/154/091.31.13
MBB SiMPL 768×256rmin 0.02, P0, SiMPL, authors' sensitivity, 29 iterations (table 2)0.001056630.0009719270.0010566+0.00 % (J)0.30000.30080.08919.031029 (maxiter)31/0/60/037.11.2
MBB SiMPL 768×256rmin 0.05, P0, OC(), default stop (vs OC of table 1)0.001211320.000980810.0012234-0.99 % (J)0.30000.29930.19617.977102 (converged, objective_range)103/0/205/0121.91.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.

casevariantJJ_binrefvs refVV_bingreyperimeterholesiterationssolves state/adjoint/filter/steptime (s)time ÷ state solves (s)
cantilever 3D 24×12×12P0, OC()1.658120.874251––0.30000.28470.4837.264082 (converged, objective_range)83/0/165/015.20.183
cantilever 3D 24×12×12P0, SiMPL()1.276930.738577––0.30000.29690.4075.792030 (converged, objective_range)34/0/64/06.50.192
cantilever 3D 24×12×12P1, OC()1.715580.893944––0.30000.27840.5007.264090 (converged, objective_range)91/0/181/017.50.192
cantilever 3D 24×12×12P1, SiMPL()1.314870.777166––0.30000.28590.4205.556030 (converged, objective_range)36/0/66/06.90.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.

casevariantJJ_binrefvs refVV_bingreyperimeterholesiterationssolves state/adjoint/filter/steptime (s)time ÷ state solves (s)
bridge Takezawa 200×100reaction–diffusion double well, method default, seed takezawa23.668422.083923.3+1.58 % (J)0.30000.30340.10018.959100 (maxiter)101/0/0/38811.00.109
bridge Takezawa 200×100reaction–diffusion double well, method default, seed hex23.899521.933623.3+2.57 % (J)0.30000.31050.08716.66100 (maxiter)101/0/0/39610.90.108
bridge Takezawa 200×100reaction–diffusion double well, method takezawa2010, seed takezawa23.614421.680423.3+1.35 % (J)0.30010.30720.10419.739100 (maxiter)101/0/0/011.00.108
bridge Takezawa 200×100reaction–diffusion double well, method takezawa2010, seed hex23.661421.548223.3+1.55 % (J)0.30010.30830.10820.868100 (maxiter)101/0/0/011.00.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.

casevariantJJ_binrefvs refVV_bingreyperimeterholesiterationssolves state/adjoint/filter/steptime (s)time ÷ state solves (s)
cantilever 2×1 double well 100×50reaction–diffusion double well, κ = 1e-5, T = 25, seed :hex2.55822.43937––0.50000.50520.11412.16692 (converged, all)93/0/0/1812.70.0293
cantilever 2×1 double well 200×100reaction–diffusion double well, κ = 1e-5, T = 25, seed :hex2.493322.41558––0.50000.50330.07013.88875 (converged, all)76/0/0/3717.90.105
cantilever 2×1 double well 400×200reaction–diffusion double well, κ = 1e-5, T = 25, seed :hex2.425522.3795––0.50010.50040.04916.9214100 (converged, all)101/0/0/190548.10.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.

casevariantJJ_binrefvs refVV_bingreyperimeterholesiterationssolves state/adjoint/filter/steptime (s)time ÷ state solves (s)
cantilever levelset88 80×64levelset88 in Octave 9.1, stop of Otomori (reference; its elements: mean nodal φ > 0)534.949534.949––0.49960.49960.0007228112–––
cantilever levelset88 80×64reaction–diffusion level set, Ersatz(), phibc = :zeroboundary519.405531.802534.949-0.59 % (J_bin)0.50010.49960.0605985128 (converged, all)129/0/0/1287.50.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.

variantJJ_binvs ref (J_bin)perimeterholesV_bin (½)iterations
density OC, P0186.686166.629+0.27 %15.7560.504456
density OC, P1186.707166.883+0.42 %15.7660.509074
density SiMPL, P0 (reference)185.212166.186+0.00 %14.7440.504443
density SiMPL, P1185.4166.461+0.17 %14.5640.505851
reaction–diffusion level set, Ersatz()160.35162.42-2.27 %17.6870.500867
reaction–diffusion density171.255164.315-1.13 %12.6830.5011151

The six designs of the MBB beam 240 × 80 read as 0/1 keeping the volume, the reference (density SiMPL, P0) first

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.

casevariantJJ_binrefvs refVV_bingreyperimeterholesiterationssolves state/adjoint/filter/steptime (s)time ÷ state solves (s)
MBB 240×80density OC, P0186.686166.629166.186+0.27 % (J_bin)0.50000.50000.22215.75656 (converged, objective_range)57/0/113/05.70.1
MBB 240×80density OC, P1186.707166.883166.186+0.42 % (J_bin)0.50000.50000.22515.76674 (converged, objective_range)75/0/149/07.10.0946
MBB 240×80density SiMPL, P0 (reference)185.212166.186166.186+0.00 % (J_bin)0.50000.50000.20714.74443 (converged, objective_range)48/0/91/04.50.0944
MBB 240×80density SiMPL, P1185.4166.461166.186+0.17 % (J_bin)0.50000.50000.20914.56451 (converged, objective_range)56/0/107/05.20.0926
MBB 240×80reaction–diffusion level set, Ersatz()160.35162.42166.186-2.27 % (J_bin)0.50000.50000.04017.68767 (converged, all)68/0/0/677.00.102
MBB 240×80reaction–diffusion density171.255164.315166.186-1.13 % (J_bin)0.49990.50000.09112.683151 (converged, all)152/0/0/15116.00.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.

casevariantJJ_binrefvs refVV_bingreyperimeterholesiterationssolves state/adjoint/filter/steptime (s)time ÷ state solves (s)
MBB Kim 2020Kim 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×53reaction–diffusion density, KIM2020, φ P1, change_tol = 0.01 (grey of the field 17.53 %)0.06953490.06245780.0698-0.38 % (J)0.44990.45000.18011.562126 (converged, change_tol)127/0/0/1265.70.0448
MBB Kim 2020 320×106reaction–diffusion density, KIM2020, φ P1, change_tol = 0.01 (grey of the field 17.19 %)0.06958080.06249030.0698-0.31 % (J)0.45000.45000.17311.632118 (converged, change_tol)119/0/0/11820.70.174

The design on 160 × 53 read as 0/1 and the whole histories of the compliance against the published value at its iteration

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.