# Optimization Report¶

You can generate an optimization report from within a script by calling the opt_report method on the Problem instance after run_driver has been called.

openmdao.visualization.opt_report.opt_report.opt_report(prob, outfile=None)[source]

Write a summary of the optimization to the given file.

Parameters
probProblem

The Problem for which the optimization report is being generated.

outfilestr or None

The path to the HTML file to be written. If None (default), write to the default report output path.