4#include <json/writer.h>
9#include "antares-xpansion/benders/output/OutputWriter.h"
10#include "antares-xpansion/xpansion_interfaces/Clock.h"
21 std::shared_ptr<Clock> _clock;
22 std::filesystem::path _filename;
23 std::ofstream _jsonOut_l;
37 const std::filesystem::path &json_filename);
39 JsonWriter(
const std::filesystem::path &json_filename,
40 const Json::Value &json_file_content);
72 void write_iteration(
const Iteration &iteration_data,
73 const size_t iteration_num)
override;
74 void write_solver_name(
const std::string &solver_name)
override;
75 void write_master_name(
const std::string &master_name)
override;
76 void write_log_level(
const int log_level)
override;
77 void write_solution(
const SolutionData &solution)
override;
78 void write_nbweeks(
const int nb_weeks)
override;
79 void write_duration(
const double duration)
override;
80 std::string solution_status()
const override;
81 void WriteProblem(
const ProblemData &problem_data)
override;
82 void WriteProblemFormat(
const std::string format)
override;
JsonWriter class to describe the execuion session of an antares xpansion optimization in a json file.
Definition JsonWriter.h:19
virtual void update_solution(const SolutionData &solution_data)
saves some entries to be later written to the json file
Definition JsonWriter.cpp:113
void updateBeginTime() override
updates the execution begin time
Definition JsonWriter.cpp:36
void updateEndTime() override
updates the end of execution time
Definition JsonWriter.cpp:40
virtual void dump()
write the json data into a file
Definition JsonWriter.cpp:138
JsonWriter()=delete
JsonWriter default constructor.
virtual ~JsonWriter()=default
destructor of class JsonWriter
void initialize()
initialize outputs
Definition JsonWriter.cpp:31
OutputWriter class to describe the execuion session of an antares xpansion optimization in a log file...
Definition OutputWriter.h:93
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