yeh_tm.optimize_thicknesses

yeh_tm.optimize_thicknesses(S, w, Q, dQ=0.01, Qid=4, dmin=0.001, keep_first_fixed=True, MAXit=10)

Optimize the thicknesses of each layer to minimize the merit function. The algorithm uses a parabolic approximation of the merit function and optimizes one layer thickness at a time.

Parameters:
  • S (System) – Optical system containing the layer stack.
  • w (array) – List of frequencies where a target is specified.
  • Q (array) – List of target values at the given frequencies (same shape as w).
  • dQ (float) – Allowed design tolerance of the target (in absolute units).
  • Qid (int) – Identifier of the quantity that should be used for calculation of the merit function. (0 = Rxx, ..., 7 = Tyy).
  • dmin (float) – Minimum layer thickness and thickness increment (default = 1nm).
  • keep_first_fixed (bool) – Set to True if first layer should not be modified.
  • MAXit (int) – Maximum number of iterations (default = 10).
Returns:

Value of merit function.