25 #ifndef UQ_OPTIMIZER_MONITOR_H 
   26 #define UQ_OPTIMIZER_MONITOR_H 
   33   class BaseEnvironment;
 
   61     void append( std::vector<double>& x_min, 
double objective, 
double norm );
 
   71     void print( std::ostream& output, 
bool print_xmin = 
false ) 
const;
 
   84     void print_header( std::ostream& output, 
bool print_xmin ) 
const;
 
   86                           bool print_xmin ) 
const;
 
   92 #endif // UQ_OPTIMIZER_MONITOR_H 
void print(std::ostream &output, bool print_xmin=false) const 
Prints entire convergence history. 
 
void append(std::vector< double > &x_min, double objective, double norm)
Add current value of minimizer, objective, and error norm. 
 
Object to monitor convergence of optimizers. 
 
void print_iteration(unsigned int iter, std::ostream &output, bool print_xmin) const 
 
std::vector< std::vector< double > > m_minimizer_hist
 
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
 
void set_display_output(bool enable_output, bool print_xmin)
Enabling output to std::cout everytime append is called. 
 
std::vector< double > m_objective_hist
 
std::vector< double > m_norm_hist
 
OptimizerMonitor(const BaseEnvironment &env, unsigned int n_iters=100)
Constructor. 
 
void reset()
Clears internal datastructures and resets display variables to false. 
 
void print_header(std::ostream &output, bool print_xmin) const 
 
const BaseEnvironment & m_env