|
NOX
Development
|
Common line search utilites for printing line search information to the screen. More...
#include <NOX_LineSearch_Utils_Printing.H>


Public Member Functions | |
| Printing (const Teuchos::RCP< NOX::Utils > &u) | |
| Default constructor. | |
| virtual | ~Printing () |
| Destructor. | |
| void | reset (const Teuchos::RCP< NOX::Utils > &u) |
| void | printOpeningRemarks (const std::string &lineSearchName) const |
| Prints the opening information. | |
| void | printStep (int n, double step, double oldf, double newf, const std::string s="", bool unscaleF=true) const |
| Print out step information for the inner iterations of a line search algorithm. | |
Common line search utilites for printing line search information to the screen.
All line searches should print output results in a similar format. This utility provides common output routines.
| void NOX::LineSearch::Utils::Printing::printStep | ( | int | n, |
| double | step, | ||
| double | oldf, | ||
| double | newf, | ||
| const std::string | s = "", |
||
| bool | unscaleF = true |
||
| ) | const |
Print out step information for the inner iterations of a line search algorithm.
Example of output from the inner iterations of a Polynomial line search:
************************************************************************ -- Polynomial Line Search -- 1: step = 1.000e+00 oldf = 2.403e+00 newf = 1.076e+03 2: step = 1.000e-01 oldf = 2.403e+00 newf = 4.440e+00 3: step = 1.000e-02 oldf = 2.403e+00 newf = 2.394e+00 (STEP ACCEPTED!) ************************************************************************
| unscaleF | - If this is true (the default), than the values printed are and . This is to accomodate the standard merit function, . |
References NOX::Utils::fill(), and NOX::Utils::InnerIteration.
1.7.6.1