A single-layer AR has one zero. A broadband AR must be low everywhere a human eye, a sensor, or a sales spec says it must be low. The merit function is the one number that captures "everywhere low" — the thing the optimiser is allowed to see and nothing else. Pick it carelessly and you ship a design that looks great in a spreadsheet and terrible on a part.
The AR Stack Optimizer uses the simplest honest choice: the band-averaged reflectance at normal incidence.
where R(λ) is the full-part reflectance from the transfer-matrix kernel composed with the selected back-surface scenario, and the sum is taken over the target band at a 2 nm step. The 2 nm step is a deliberate choice — the previous 10 nm grid let the optimiser find designs whose mean R looked ≈0.67 % on the coarse grid but was really 0.82 % at 1 nm. A fine sampling kills that aliasing.
Why the mean
Minimising the mean of R(λ) pushes the whole spectrum down roughly equally. Minimising the maximum instead — min-max — gives a flatter plateau at the cost of a higher average. For displays and windows the eye integrates, so the mean is the right objective. For a laser line you would pick a single-wavelength cost; for a solar cell you would weight by AM1.5. The tool supports swapping the band endpoints, which is how you dial that in.
The band is the design
- Visible AR for a display: 400–700 nm. The human photopic peak at 555 nm gets no special weight; the integral is uniform.
- NIR-blocked windshield: 400–1200 nm. The near-IR half dominates the cost — if you forget to exclude it the optimiser spends its degrees of freedom on 900 nm, where nobody sees.
- LIDAR window: a narrow band around 905 or 1550 nm. A single-wavelength quarter-wave design is already near-optimal; the optimiser mostly cleans up the tails.