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:

Next using the Navigation Bar, change modes to Parameter.

After Adding the Variable it should look like this:

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.

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.

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.

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.

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.

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!

Last updated