Professional Documents
Culture Documents
Vdocuments - MX - Optical Design With Zemax For PHD Basics Iapuni Jenade Designwith
Vdocuments - MX - Optical Design With Zemax For PHD Basics Iapuni Jenade Designwith
Lecture 6: Optimization I
2014-06-05
Herbert Gross
Preliminary Schedule
No Date Subject Detailed content
Zemax interface, menus, file handling, system description, editors, preferences,
1 16.04. Introduction updates, system reports, coordinate systems, aperture, field, wavelength, layouts,
diameters, stop and pupil, solves
Raytrace, ray fans, paraxial optics, surface types, quick focus, catalogs, vignetting,
2 24.04. Basic Zemax handling
footprints, system insertion, scaling, component reversal
aspheres, gradient media, gratings and diffractive surfaces, special types of
3 08.05. Properties of optical systems
surfaces, telecentricity, ray aiming, afocal systems
representations, spot, Seidel, transverse aberration curves, Zernike wave
4 15.05. Aberrations I
aberrations
5 22.05. Aberrations II PSF, MTF, ESF
6 05.06. Optimization I algorithms, merit function, variables, pick up’s
7 12.06. Optimization II methodology, correction process, special requirements, examples
slider, universal plot, I/O of data, material index fit, multi configuration, macro
8 19.06. Advanced handling
language
9 25.06. Imaging Fourier imaging, geometrical images
Contents
start
topology of
meritfunction F
iteration
path
x1
x2
5
Nonlinear Optimization
F
Gradient vector of topology gj
xj
2F
Hesse matrix of 2nd derivatives
H jk
x j x k
6
x 1 =0.1
C
f2
0
7
Nonlinear Optimization
Calculation of Derivatives
Derivative vector in merit function topology: f j (x)
Necessary for gradient-based methods g jk xk f j ( x )
xk
Numerical calculation by finite differences f jright f j
g jk
xk
Possibilities and accuracy
fj(xk)
left
fj-1 fj(xk)
fj
right
fj+1
forward
central
exact
xk xk
backward
xk
xk-xk xk xk+xk
9
x1
Effect of constraints
path without
constraint
local
minimum
0
path with constraint
constraint x1 < 0
global
minimum
initial
point
x2
10
Types of constraints
1. Equation, rigid coupling, pick up
2. One-sided limitation, inequality
3. Double-sided limitation, interval
Numerical realizations :
1. Lagrange multiplier
2. Penalty function
3. Barriere function
4. Regular variable, soft-constraint
F(x) F(x)
penalty p large
p large barrier
function function
P(x) B(x)
p small
F0(x) p F0(x)
small
x x
permitted domain permitted domain
xmin xmax
11
adaptive nonlinear
optimization inequalities
descent
least squares
methods
steepest variable
undamped damped
descents metric
multiplicative second
damping derivative
12
steepest
descent
topology of the
merit function
starting
point quadratic
approximation
method with
around the starting
compromise
point
Gauss-Newton
method
x1
13
Optimization: Convergence
-8
Davidon-
Fletcher-
-10
Powell
-12
0 10 20 30 40 50 60
iteration
14
C'
A'
B'
A
B
p
1
15
F
Method of local minima escape:
merit
temporarily added term to function with
additive term
overcome local minimum F(x)+Fesc
F ( x ) F0 2 conventional Fesc
Fesc ( x ) F0 e path
merit
function
F(x)
Optimization and adaptation
of escape parameters
x
local global
minimum xloc minimum xglo
= 1.0 = 0 . 01
= 0.5
16
Goal of optimization:
Find the system layout which meets the required performance targets according of the
specification
Usual scenario:
Number of requirements and targets quite larger than degrees od freedom,
Therefore only solution with compromize possible
17
Merit function:
j j
2
Weighted sum of deviations from target values g f ist
f j
soll
j 1, m
Formulation of target values:
1. fixed numbers
2. one-sided interval (e.g. maximum value)
3. interval
Problems:
1. linear dependence of variables
2. internal contradiction of requirements
3. initail value far off from final solution
Types of constraints:
1. exact condition (hard requirements)
2. soft constraints: weighted target
- Radii
- Thickness of lenses, air distances
- Tilt and decenter
- Free diameter of components
- Material parameter, refractive indices and dispersion
- Aspherical coefficients
- Parameter of diffractive components
- Coefficients of gradient media
General experience:
- Radii as parameter very effective
- Benefit of thickness and distances only weak
- Material parameter can only be changes discrete
19
Constraints
Optimization in Optics
Typical in optics:
Twisted valleys in the topology
LM4
LM3
23
aperture
2
reduced
good
solution
r1
24
Global Optimization
M2
M1
Fo
Saddel Point Method
Example Double Gauss lens of system network with saddelpoints
27
1.5
1.4 n
100 90 80 70 60 50 40 30 20
28
Negative weights:
requirement is considered as a Lagrange multiplier and is fulfilled exact
General outline:
- use sinple operands in a rough optimization phase
- use more complex, application-related operands in the final fine-tuning phase
31
Variables in Zemax
Auxiliary command: remove all variables, all radii variable, all distances variable
If the initial value of a variable is quite bad and a ray failure occurs, the optimization can not
run and the merit function not be computed
32
Modell glass:
characterized by index, Abbe number and relative
dispersion
Individual choice of variables
Glass moves in Glass map
Restriction of useful area in glass map is desirable
(RGLA = regular glass area)
Re-substitution of real glass:
next neighbor in n-n-diagram
Choice of allowed glass catalogs can
be controlled in General-menu
Other possibility to reset real glasses:
direct substitution
33
Hammer:
- Algorithm not known
- Useful after convergence
- needs long time
- must be explicitely stopped
Global:
- global search, followed by local optimization
- Save of best systems
- must be explicitely stopped
35
Optimization window:
Choice of number of steps / cycles
Automatic update of all windows possible
for every cycle (run time slows down)
After run: change of merit function is seen
Changes only in higher decimals: stagnation
Window must be closed (exit) explictly
Visual optimization