    

 ## On this page

  

 

 # Example 15: Sequential Optimization 

 Last update: 16.07.2025 

Ex 15: The quick focus and optimization tools are demonstrated. A sample file is opened, and the ‘remove all variables’ and ‘quick focus’ tools are used. Some variables and solves are specified, and a merit function is generated with the merit function wizard. The local, global, and hammer optimizers are each run and closed in sequence.

```
Input:      Short course\sc_dbga1.zos
<p>Output:     API\e15_Seq_Optimization\OptimizedFile.zos
API\e15_Seq_Optimization\OptimizedFile1.zos
API\e15_Seq_Optimization\OptimizedFile2.zos
API\e15_Seq_Optimization\OptimizedFile3.zos
API\e15_Seq_Optimization\RMS_Spot_Radius.mf
API\e15_Seq_Optimization\OptimizedFile4.zos
</p>
```

[C#](page_ex15_cs.xhtml)

[C++](page_ex15_cpp.xhtml)

[Matlab](page_ex15_m.xhtml)

[Python](page_ex15_py.xhtml)