Optics Lens Optimize
optics_lens_optimizeOptimizes sequential optical systems by adjusting radii and thickness variables to meet merit-function targets, returning before/after focal length and spot-size metrics.
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]}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"surfaces": "<surfaces>",
"variables": "<variables>",
"targets": "<targets>"
},
"name": "optics_lens_optimize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| epd | No | ||
| maxiter | No | ||
| targets | Yes | ||
| surfaces | Yes | ||
| variables | Yes | ||
| workspace | No | Run this call in this named workspace | |
| wavelengths_um | No | ||
| field_angles_deg | No |