Skip to main content

Boundary constraints user-extension

  • October 29, 2021
  • 1 reply
  • 768 views

David.Nguyen
Luminary
Forum|alt.badge.img+2

Hi everyone,

 

When specifying custom boundary constraints, I was using the Default Merit Function as a template, moving the default boundary constraints above DMFS and making my edits there.

I created a simple user-extension to speed up this process. This user-extension creates default boundary constraints at the top of a sequential Merit Function. It uses the default values (Min: 0 | Max: 1e+03 | Edge Thickness: 0) and only creates the relevant operands. If it is an air space it only creates MNCA, MXCA, and MNEA. If it is a glass space it only creates MNCG, MXCG, and MNEG.

Small update: it only adds boundary constraints to thicknesses that are variable.

Maybe this can be useful for someone else.

Take care,

 

David

1 reply

yuan.chen
Zemax Staff
Forum|alt.badge.img+3
  • Zemax Staff
  • November 1, 2021

Hi David,

This is exactly what I wanted when setting up the merit function operands, Thank you so much!

Take care,

 

Yuan