Skip to main content
Question

Optimization ranges using CPAR and COMP

  • January 11, 2024
  • 2 replies
  • 256 views

Daniel P. Calero

Hi,

I am working on a tolerance script that uses different surface optimizations (thickness as well as tilts) on its components.

I am using the CPAR and COMP commands, but there is a constraint in the maximal optimization range. Is there a way to set this range in the script? I can try to use the merit function to set the limits, but seems too convoluted.

2 replies

Mark.Nicholson
Luminary
Forum|alt.badge.img+3
  • Luminary
  • 911 replies
  • January 11, 2024

Can you enforce the constraint in the tolerancing merit function? The only other thing I can think of is using a solve (including a ZPL solve) in the Lens Data Editor as a way of enforcing the constraint.


Daniel P. Calero

Thank you very much Mark.

I was considering constraints in the merit function, but a solve can be a more elegant solution.