15 const std::filesystem::path& xpansion_output_dir,
16 const std::vector<double>& weights_vector,
17 const std::filesystem::path& output_file,
18 const std::vector<int>& active_years,
19 const std::string& solver_name,
20 std::shared_ptr<ProblemGenerationLog::ProblemGenerationLogger> logger);
22 void CreateWeightFile(
const std::vector<std::pair<int, ProblemData>>& year_and_data);
26 using LogUtils::XpansionError<std::runtime_error>::XpansionError;
30 std::filesystem::path xpansion_output_dir_;
31 std::filesystem::path xpansion_lp_dir_ =
"";
32 std::filesystem::path antares_archive_path_;
33 const std::string LP_DIR =
"lp";
34 std::map<std::filesystem::path, double> problem_filename_to_weight_ = {};
35 std::vector<double> weights_vector_;
36 std::filesystem::path output_file_;
37 std::vector<int> active_years_;
38 std::string solver_name_;
39 std::shared_ptr<ProblemGenerationLog::ProblemGenerationLogger> logger_;
40 void FillMpsWeightsMap(
const std::vector<std::pair<int, ProblemData>>& problems_and_data);
41 int GetYearFromMpsName(
const std::string& file_name)
const;
42 void DumpMpsWeightsToFile()
const;