Why compensators boundaries are ignored when using tolerance scripts ?

  • 18 May 2021
  • 3 replies
  • 122 views

I understand that the min and max values are ignored if user script is selected when doing tolerancing but I dont understand why Zemax could not take tham into account.


Is it something that is going to be solved in future or is there any good reason for this ?


I am wondering if I should go from python to code the tolerance runs because of this...


Thank you a lot for your answer.


 


Regards


 


Audrey


3 replies

Userlevel 6
Badge +2

Hi Audrey


The reason is that a user-script uses a merit function as a criterion. So the software doesn't modify your existing merit function.


When you use a 'built-in' criterion, the software creates a merit function and add some boundary operands at the top that are the compensator boundaries. You can have a look at this if you save one Monte Carlo file.


So when the criterion is a merit function, all boundaries are user-defined.


Sandrine

Hi Sandrine,


Looking at the Monte Carlo files I understand it adds the PMLT etc openrands so I can simply add them in my merit function file.


Thank you a lot for your help !


 


Audrey

Userlevel 6
Badge +2

No problem. Thank you.

Reply