Antares Xpansion
Investment simulations for Antares studies
Loading...
Searching...
No Matches
WeightsFileWriter.h
1#ifndef SRC_CPP_LPNAMER_INPUTREADER_YEARLYWEIGHTSWRITER_H
2#define SRC_CPP_LPNAMER_INPUTREADER_YEARLYWEIGHTSWRITER_H
3#include <filesystem>
4#include <map>
5#include <vector>
6
8 public:
9 explicit YearlyWeightsWriter(const std::filesystem::path& xpansion_output_dir,
10 const std::vector<double>& weights_vector,
11 const std::filesystem::path& output_file,
12 const std::vector<int>& active_years);
13
14 void CreateWeightFile();
15
16 private:
17 std::filesystem::path xpansion_output_dir_;
18 std::filesystem::path xpansion_lp_dir_ = "";
19 std::filesystem::path antares_archive_path_;
20 const std::string LP_DIR = "lp";
21 std::map<std::filesystem::path, double> mps_weights_ = {};
22 std::vector<double> weights_vector_;
23 std::filesystem::path output_file_;
24 std::vector<int> active_years_;
25 void FillMpsWeightsMap();
26 int GetYearFromMpsName(const std::string& file_name) const;
27 void DumpMpsWeightsToFile() const;
28};
29#endif // SRC_CPP_LPNAMER_INPUTREADER_YEARLYWEIGHTSWRITER_H
Definition WeightsFileWriter.h:7