Skip to main content
Solved

Optimization parameters with constraint


giacomo

Hi everyone, I’m new on zemax, I’m designing a two-mirror spherical system and I’m in the process of optimization. I would like to know if there is any command on merit function editor that allows you to optimize my variables such as the radius of curvature and the distance between mirrors imposing that the mirror diameter does not super a certain value. I read about the DMLT constraint but didn’t understand how to implement it in the editor.
Thank you 

Best answer by Benjamin.N

Hi giacomo,

from what I understand, you created a merit function with the Optimization Wizard that should minimize the spot size. Now you want to add an additional constraint to limit the diameter of a surface using the DMLT operator.

To do this, you can right-click a line in the merit function editor and select “Insert Operand” and set the type of the new operand to DMLT. The “Surf” parameter must be set to the surface number the diameter of which you want to constrain. The “Target” parameter controls the maximum diameter and, importantly, the “Weight” parameter must be set to a value > 0. Otherwise, the operator always contributes 0 to the merit function and does not impact the optimization result. You can check whether the operator works by playing with the surface diameter. If you set it to a value < Target, the DMLT should contribute 0 to the merit function. For a value > Target, the contribution should be finite.

Best regards
Benjamin

View original
Did this topic help you find an answer to your question?

4 replies

Benjamin.N
Forum|alt.badge.img
  • Visible
  • 34 replies
  • August 3, 2023

Hi giacomo,

can you elaborate what exactly you don’t understand about the implementation of the DMLT operator? Did you check the explanation in the Zemax manual?

Best regards
Benjamin


giacomo
  • Author
  • Single Emitter
  • 2 replies
  • August 3, 2023

Hi Benjamin,

Right now I have the initial merit function with image quality fixed to spot and, from what I understand, I tried to add the constraint DMLT with the command circled in the photo, but then you add many other command lines that however do not change anything in the optimization and it marks me that the constraint DMLT has 0% contribution.

I have never added a constraint manually and do not know well what to do, I have not found around detailed explanations about it.

Giacomo


giacomo
  • Author
  • Single Emitter
  • 2 replies
  • August 3, 2023

This is the picture that I’ve talken about.

 


Benjamin.N
Forum|alt.badge.img
  • Visible
  • 34 replies
  • Answer
  • August 3, 2023

Hi giacomo,

from what I understand, you created a merit function with the Optimization Wizard that should minimize the spot size. Now you want to add an additional constraint to limit the diameter of a surface using the DMLT operator.

To do this, you can right-click a line in the merit function editor and select “Insert Operand” and set the type of the new operand to DMLT. The “Surf” parameter must be set to the surface number the diameter of which you want to constrain. The “Target” parameter controls the maximum diameter and, importantly, the “Weight” parameter must be set to a value > 0. Otherwise, the operator always contributes 0 to the merit function and does not impact the optimization result. You can check whether the operator works by playing with the surface diameter. If you set it to a value < Target, the DMLT should contribute 0 to the merit function. For a value > Target, the contribution should be finite.

Best regards
Benjamin


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings