2.1 First Optimization

How to Optimize a Singlet
Here we describe a step-by-step process from taking the Singlet designed in the previous tutorial to optimize for a particular Effective Focal Length (EFL).
First we ask that you navigate to the CLOUD Dashboard and open the Project from the previous tutorial, which should look similar to the below:
Singlet from previous Example
Next using the Navigation Bar, change modes to Parameter.
Parameter mode with Optimization Engine shown.
From here you can start by using the horizontal scroll bar to scroll the Parameter Action Bar to the far right (if needed), and press the
to add a new Variable.
Parameter Action Bar scrolled to right without variable added yet.
After Adding the Variable it should look like this:
Parameter Action Bar scrolled to right after variable is added.
Now that you have added the variable, you should now click on the Variable in the Parameter Action Bar (
). This will pull up the properties in the Properties Pane.
New Variable Properties.
Start by changing the Variable's Name to \text{EFL} . The Variable's Name takes any valid LaTeX. You will also see the Variable's name change in the Action Pane.
Changing the Variable Name.
Next let's change the variable Type. Choose "Computed Metric" from the list. This will tell KostaCLOUD that you want it to calculate some quantity for you based on the design.
You can see the Computer Metric now.
Since we want to optimize for EFL, lets change the "Metric" Field from Back Focal Distance to "Effective Focal Length". After doing this set "Sim Source" to be "Default Source" if the Sim Source field is Blank. The properties should look similar to the below.
Effective Focal Length Metric.
Now you have EFL setup in KostaCLOUD. But you will need to tell the Optimizer what it is allowed to change in your system. Now click on your Lens and click the field within the Quick Access -> Surface 0 -> R. Now press ctrl+q . You will now see that the Action Bar has added a new Variable "
". And if you click back onto the R field, you will see that it has set the value of the field to "1/x[1]".
New Quick-Key Variable
Now we just need to tell KostaCLOUD that we want to Optimize for EFL. To do this click on the blue background and scroll to the bottom of the Properties Menu.
Bottom of Optimization Properties menu shows the Criteria List
By clicking on the Expression Field, a small Latex Editor field will show up and type "x[0]" in the editor. It should in turn show it as "EFL" in the editor as shown below. To save this press "Enter" or "Return" on the keyboard and "EFL" should show up in the Properties Menu under Expression. What you just did was Link the shorthand variable name, which is shown on the top left of the Variable in the Action Pane to the Merit Function.
Latex Editor with EFL
Now set the Target to 10mm and the
to 10um.
Criteria is now set!
Now Scroll the Horizontal Action Pane scrollbar back to the left, and click on the red Optimize button. You can also press the Blueish MFV Progress button to see the Merit Function progress as a function of time. When the system is accepted the Acceptance Criteria will get a nice big green Check. You can see all of this as shown below. Now you have successfully Optimized a Lens in KostaCLOUD!
Lens After Optimization with Optimization Progress Bar and Acceptance Criteria.