Antares Xpansion
Investment simulations for Antares studies
Loading...
Searching...
No Matches
VoidWriter.h
1
2#pragma once
3
4#include "antares-xpansion/benders/output/OutputWriter.h"
5namespace Output {
11class VoidWriter : public OutputWriter {
12 public:
16 VoidWriter() = default;
17
21 virtual ~VoidWriter() = default;
22
33 virtual void write_iterations(const IterationsData &iterations_data);
34
47 virtual void update_solution(const SolutionData &solution_data);
48
53 virtual void write_failure();
54
58 virtual void dump();
59 virtual void initialize();
60 virtual void end_writing(const IterationsData &iterations_data);
61 void write_solver_name(const std::string &solver_name) override;
62 void write_master_name(const std::string &master_name) override;
63 void write_log_level(const int log_level) override;
64 void write_solution(const SolutionData &solution) override;
65 void write_iteration(const Iteration &iteration_data,
66 const size_t iteration_num) override;
67 void updateBeginTime() override;
68 void updateEndTime() override;
69 void write_nbweeks(const int nb_weeks) override;
70 void write_duration(const double duration) override;
71 std::string solution_status() const override;
72 void WriteProblem(const ProblemData &problem_data) override;
73 void WriteProblemFormat(const std::string format) override;
74};
75} // namespace Output
OutputWriter class to describe the execuion session of an antares xpansion optimization in a log file...
Definition OutputWriter.h:93
VoidWriter class to describe the execuion session of an antares xpansion optimization.
Definition VoidWriter.h:11
virtual void write_failure()
write an a priori errored json output, overwritten if optimization ends
Definition VoidWriter.cpp:26
VoidWriter()=default
VoidWriter default constructor.
virtual void update_solution(const SolutionData &solution_data)
saves some entries to be later written
Definition VoidWriter.cpp:16
virtual void dump()
write the json data into a file
Definition VoidWriter.cpp:33
virtual ~VoidWriter()=default
destructor of class VoidWriter
virtual void write_iterations(const IterationsData &iterations_data)
saves some entries to be later written
Definition VoidWriter.cpp:12
virtual void initialize()
initialize outputs
Definition VoidWriter.cpp:36
Definition OutputWriter.h:39
struct containing some entries to be later written to the json file
Definition OutputWriter.h:77
Definition OutputWriter.h:83
struct saves some entries to be later written to the json file
Definition OutputWriter.h:60