27 #include <queso/asserts.h> 
   28 #include <queso/Environment.h> 
   29 #include <queso/OptimizerMonitor.h> 
   36       m_display_conv(false),
 
   78     unsigned int width = 37;
 
   93                 output << 
"x" << i << std::string(5,
' ');
 
   98         output << 
"f" << std::string(5,
' ');
 
  101         output << 
"norm" << std::endl;
 
  102         output << std::string(width,
'-') << std::endl;
 
  107                                           bool print_xmin )
 const 
  152         std::cerr << 
"Nothing to print from OptimizerMonitor!" << std::endl;
 
  159     for(
unsigned int i = 0; i < size; i++ )
 
void reset()
Clears internal datastructures and resets display variables to false. 
 
void print_iteration(unsigned int iter, std::ostream &output, bool print_xmin) const 
 
const BaseEnvironment & m_env
 
void append(std::vector< double > &x_min, double objective, double norm)
Add current value of minimizer, objective, and error norm. 
 
std::vector< double > m_norm_hist
 
void print_header(std::ostream &output, bool print_xmin) const 
 
int fullRank() const 
Returns the process full rank. 
 
OptimizerMonitor(const BaseEnvironment &env, unsigned int n_iters=100)
Constructor. 
 
std::vector< double > m_objective_hist
 
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
 
std::vector< std::vector< double > > m_minimizer_hist
 
void print(std::ostream &output, bool print_xmin=false) const 
Prints entire convergence history. 
 
void set_display_output(bool enable_output, bool print_xmin)
Enabling output to std::cout everytime append is called.