5#include "antares-xpansion/helpers/AntaresVersionProvider.h"
6#include "antares-xpansion/lpnamer/helper/ProblemGenerationLogger.h"
7#include "antares-xpansion/lpnamer/model/ActiveLinks.h"
8#include "antares-xpansion/lpnamer/problem_modifier/LinkProblemsGenerator.h"
19 std::filesystem::path studyPath_;
22 std::shared_ptr<ProblemGenerationLog::ProblemGenerationLogger> logger_;
32 std::shared_ptr<ProblemGenerationLog::ProblemGenerationLogger> logger);
50 const std::map<std::string, double>& investments_p)
const;
61 [[nodiscard]]
int update(
const std::vector<ActiveLink>& links_p,
62 const std::map<std::string, double>& investments_p);
73 int update(
const std::vector<ActiveLink>& links_p,
const std::filesystem::path& jsonPath_p);
Definition ActiveLinks.h:15
Definition AntaresVersionProvider.h:14
Class that updates an antares study after an antares-xpansion execution.
Definition StudyUpdater.h:16
virtual ~StudyUpdater()=default
default destructor of calass StudyUpdater
int updateLinkdataFile(const ActiveLink &link_p, const std::map< std::string, double > &investments_p) const
updates the linkdata file for a given link according to the investments of its candidates
Definition StudyUpdater.cpp:21
StudyUpdater(std::filesystem::path studyPath_p, const AntaresVersionProvider &antares_version_provider, std::shared_ptr< ProblemGenerationLog::ProblemGenerationLogger > logger)
constructor of class StudyUpdater
Definition StudyUpdater.cpp:12
int update(const std::vector< ActiveLink > &links_p, const std::map< std::string, double > &investments_p)
updates the linkdata files for multiple candidates from a solution Point
Definition StudyUpdater.cpp:47