    

 ## On this page

  

 

 # Example 15: Sequential Optimization

 Last update: 09.03.2026 

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

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

```

[C#](example_15_cs.md)

[C++](example_15_cpp.md)

[Matlab](example_15_m.md)

[Python](example_15_py.md)