optics_lens_optimize
Optimize a sequential optical system via optiland's optimizer: vary surface radii and thicknesses to meet focal length or RMS spot size targets and converge the merit function.
Instructions
Optimize a SEQUENTIAL optical system with optiland's optimizer (MIT,
in-process) — the capability rayoptics lacks. Requires the optics extra;
degrades to {ok:false, reason, install} otherwise.
surfaces: as in optics_lens_design. variables: [{type:'radius'|'thickness',
surface:<1-based int>}] — the degrees of freedom. targets: [{operand:'f2'|
'rms_spot_size'|…, target, weight?, surface?}] — the merit function. maxiter
caps iterations.
Returns the degradation dict, or {ok, backend:'optiland', converged, n_fev, before:{efl_mm,rss}, after:{efl_mm,rss}, surfaces:[optimized]}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| epd | No | ||
| maxiter | No | ||
| targets | Yes | ||
| surfaces | Yes | ||
| variables | Yes | ||
| wavelengths_um | No | ||
| field_angles_deg | No |