Recorder_standard.hpp
Go to the documentation of this file.
1 // Copyright 2019, University of Maryland and the MANGO development team.
2 //
3 // This file is part of MANGO.
4 //
5 // MANGO is free software: you can redistribute it and/or modify it
6 // under the terms of the GNU Lesser General Public License as
7 // published by the Free Software Foundation, either version 3 of the
8 // License, or (at your option) any later version.
9 //
10 // MANGO is distributed in the hope that it will be useful, but
11 // WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 // Lesser General Public License for more details.
14 //
15 // You should have received a copy of the GNU Lesser General Public
16 // License along with MANGO. If not, see
17 // <https://www.gnu.org/licenses/>.
18 
19 #ifndef MANGO_RECORDER_STANDARD_H
20 #define MANGO_RECORDER_STANDARD_H
21 
22 #include <fstream>
23 #include "Solver.hpp"
24 #include "Recorder.hpp"
25 
26 namespace mango {
27 
28 class Recorder_standard : public Recorder {
29 private:
30  Solver* solver;
31  std::ofstream output_file;
32  void write_file_line(int function_evaluations, clock_t print_time, const double* x, double f);
33 
34 public:
36  void init();
37  void record_function_evaluation(int function_evaluations, clock_t print_time, const double* x, double f);
38  void finalize();
39 };
40 
41 }
42 
43 #endif
mango::Recorder_standard::finalize
void finalize()
Definition: Recorder_standard.cpp:73
mango::Recorder
Definition: Recorder.hpp:27
Solver.hpp
mango::Recorder_standard::Recorder_standard
Recorder_standard(Solver *)
Definition: Recorder_standard.cpp:27
mango::Recorder_standard::record_function_evaluation
void record_function_evaluation(int function_evaluations, clock_t print_time, const double *x, double f)
Definition: Recorder_standard.cpp:67
mango
This C++ namespace contains everything related to MANGO.
Definition: Imfil.hpp:7
mango::Recorder_standard::init
void init()
Definition: Recorder_standard.cpp:31
mango::Solver
Definition: Solver.hpp:31
mango::Recorder_standard
Definition: Recorder_standard.hpp:28
Recorder.hpp