7#define BENDERS_OPTIONS_MACRO(name__, type__, default__, \
8 deserialization_method__) \
10#include "SimulationOptions.hxx"
11#undef BENDERS_OPTIONS_MACRO
16 void read(
const std::filesystem::path &file_name);
17 void print(std::ostream &stream)
const;
27 Json::Value get_value_from_json(
const std::filesystem::path &file_name);
29 class InvalidOptionFileException :
public std::runtime_error {
31 explicit InvalidOptionFileException(
const std::string &arg);
Definition SimulationOptions.h:5
SimulationOptions(const std::filesystem::path &options_filename)
Constructor of Benders Options.
Definition SimulationOptions.cpp:30
void print(std::ostream &stream) const
Print all Benders options.
Definition SimulationOptions.cpp:119
void write_default() const
Write default options in "options_default" txt file.
Definition SimulationOptions.cpp:53
void read(const std::filesystem::path &file_name)
Read Benders options from file path.
Definition SimulationOptions.cpp:64