Optical Merit Functions, Damped Least Squares, and Global Optimization
Structure operand weights and physical boundary constraints so numerical optimizers converge cleanly toward manufacturable lens prescriptions.
Anatomy of a Well-Conditioned Optical Merit Function
An optical merit function reduces dozens of competing performance targets—focal length, RMS spot radius, wavefront OPD, distortion, and edge thickness—into a single scalar sum of weighted squared errors. Every optimization step adjusts radii, thicknesses, and air spaces to drive that scalar down.
Mixing wildly different physical units without normalization destabilizes solvers. Weighting wavefront error in waves alongside 20 mm focal length residuals lets large-magnitude mechanical terms dominate while sharp aberration correction stalls.
- Normalize target residuals relative to tolerances (for example 0.05 waves vs. 0.5 mm EFL).
- Separate optical performance operands from mandatory mechanical boundary penalties.
- Include multiple field points (0.0, 0.5, 0.7, 1.0) and polychromatic wavelengths.
How Damped Least Squares (DLS) Navigates Nonlinear Valleys
Because ray aberrations depend nonlinearly on surface curvatures, pure Gauss-Newton steps frequently overshoot into ray-failure regions where rays miss surfaces altogether. Damped Least Squares adds a diagonal damping factor to the Jacobian matrix, trading step size for guaranteed descent stability.
As DLS approaches a valley floor, tiny step improvements signal convergence into a local minimum. Importantly, DLS never jumps across high error barriers—it finds the best solution within the starting glass and bending topology.
Preventing Unmanufacturable Thin Edges and Zero Air Gaps
Left unconstrained, optimizers routinely drive positive element edges to razor-sharp negative thickness or collapse air spaces so lenses intersect mechanically. Adding explicit center thickness, edge thickness, and air-space inequality bounds keeps designs physically buildable.
Controlling incidence angles on steep surfaces also reduces sensitivity to decenter and tilt tolerances later, preventing fragile 'knife-edge' prescriptions that look great nominally yet fail assembly.
Escaping Local Minima with Global Search and AI Surrogates
Different lens power distributions and element bendings form distinct basins of attraction. Pairing multi-start global search, saddle-point construction, or AI-assisted parameter exploration with local DLS polishing uncovers superior architectures—such as swapping flint/crown ordering or moving the aperture stop.
Once top candidate topologies emerge, full tolerancing and ghost checks verify which minimum delivers the highest real-world yield.
Essential Merit Function Operands and Typical Constraints
| Operand Category | Example Metric | Typical Weight / Constraint | Failure If Omitted |
|---|---|---|---|
| First-Order Paraxial | Effective Focal Length / BFL | Tight target (+/- 0.5%) | Lens drifts away from magnification |
| Image Quality | RMS Spot Radius or OPD | Primary weighted sum | Blurry on-axis or edge field |
| Chromatic Correction | Axial & Lateral Color | Polychromatic d-F-C weights | Purple/green fringing at edges |
| Mechanical Geometry | Min Edge & Center Thickness | >= 1.0 mm edge, >= 1.5 mm CT | Sharp edges or self-intersecting glass |
| Sensitivity Control | Max Angle of Incidence | Soft limit < 45-55 deg | Tight tolerances & heavy Fresnel loss |
Exact thickness minimums depend on element diameter; scale edge thickness bounds roughly to 4-6% of clear aperture.
Worked Illustration: Balancing Edge Thickness and RMS Spot Size
A 25 mm f/2.0 doublet initially optimizes to 4.2 um RMS spot radius, but its positive crown lens edge drops to 0.25 mm.
- Worked example step 1: Inspect mechanical feasibility; 0.25 mm edge thickness chips easily during grinding and centering.
- Worked example step 2: Add an inequality boundary operand enforcing edge thickness >= 1.2 mm on Element 1 and center thickness >= 2.0 mm.
- Worked example step 3: Re-run Damped Least Squares with curvature and airspace variables unlocked.
- Worked example step 4: Center thickness expands automatically to 4.6 mm while RMS spot radius settles at 4.8 um—well below the 6.5 um sensor pixel pitch.
Worked Example Outcome: Constraining manufacturability inside the merit function trades 0.6 um of nominal spot margin for a robust, grindable 1.2 mm lens edge.
Lens Optimization Setup Checklist
- Define exact stop position, entrance pupil diameter, and full field angles first.
- Assign realistic multi-wavelength weights matching sensor QE and illumination spectrum.
- Enforce minimum center thickness, edge thickness, and positive air clearances.
- Monitor ray-failure warnings and cap steep angles of incidence on curved faces.
- Run multi-start or global topology sweeps before locking glass selections.
- Evaluate MTF and tolerance sensitivity alongside raw merit value before sign-off.
Frequently Asked Questions
Should I optimize on RMS spot radius or wavefront OPD?
Use RMS spot radius early when aberrations are several wavelengths large, then switch to wavefront OPD or MTF operands once approaching diffraction-limited performance.
Why does my optimizer stall without improving the merit function?
Stalling happens when variables are locked at boundary constraints, conflicting operands cancel gradients, or the lens sits inside a flat local minimum.
Should refractive index and Abbe number stay continuous during early design?
Yes—optimizing continuous 'model glass' variables identifies ideal glass regions first, after which you substitute the nearest real catalog glasses and re-optimize.
Does a lower merit value always mean a better lens?
Not necessarily. If two designs differ by 5% in nominal spot size, the one with gentler surface incidence angles and lower tolerance sensitivity is usually far better in production.
Primary Standards & Technical References
- Michael J. Kidger, Fundamental Optical Design, SPIE Press
- Rudolf Kingslake and R. Barry Johnson, Lens Design Fundamentals, 2nd Edition, Academic Press
- ISO 10110-5: Optics and photonics — Surface form tolerances