The optimization output file optimize.his is not directly plottable but one often wants to plot optimization convergence histrory, so the script cleanSNOPTHis in the Scripts library parses the relevant information (iterations, feasibility, optimality, merit function) into a Tecplot format file called optimize.plt. To use the script, simply run it in the optimization directory and it will produce the optimize.plt output file which can be opened with Tecplot.Â
To simplify plotting, a Tecplot layout file called SNOPTHis.lay is also available in the Scripts library. When moved to your local computer where you do your plotting and opened in Tecplot, it will open the optimize.plt file produced by the cleanSNOPTHis script and produce a standard convergence history such as below.
There is a variation of this script called cleanSNOPTHis_Aero which also takes information from the results.ohis file in order to give the convergence of CL, CD, CM, L/D in the optimization (as opposed to just the feasibility and merit function for the cleanSNOPTHis script.) This script takes one input where it asks if a cheaptest has been performed. This is asked since doing a cheaptest offsets the function call number reported in optimize.his and results.ohis by one since an additional function call is required to do the finite difference test. This script also produces a optimize.plt file. This script isn't maintained with changes to the results.ohis file with different versions of the code, so may or may not work. So, be careful when using it, and double check that the output makes sense.