pyoptsparse icon indicating copy to clipboard operation
pyoptsparse copied to clipboard

Create a CLI tool to quickly plot optimization history

Open ewu63 opened this issue 3 years ago • 2 comments

Description of feature

I'm thinking something like

plotOpt <file> --vars "feasibility" "optimality" --vars "cruise_drag" "maneuver_drag" --vars "twist" --output opt.png

which will generate a 3x1 stacked plot of these variables over optimization iterations. Should be pretty straightforward to make.

ewu63 avatar Jan 31 '22 03:01 ewu63

Hi @nwu63 , i think its really good idea, is plotOpt is python script? where i can find it ? best regards, cherif

cherifM avatar Feb 22 '23 10:02 cherifM

Hello, this feature has not been implemented so far. To monitor and plot the optimization history, you can use OptView. You can also access the history file as done in this example (check the .hst database layout here) to retrieve all the database info in a dictionary format for your postprocessing purposes.

marcomangano avatar Feb 22 '23 23:02 marcomangano