Antares Xpansion
Investment simulations for Antares studies
Loading...
Searching...
No Matches
StudyUpdateLinkParameterStrategy.h
1//
2// Created by marechaljas on 16/06/22.
3//
4
5#pragma once
6
7#include "antares-xpansion/lpnamer/model/ActiveLinks.h"
8#include "antares-xpansion/study-updater/StudyUpdateStrategy.h"
9
11{
12public:
14 const std::filesystem::path& link_path,
15 std::shared_ptr<ProblemGenerationLog::ProblemGenerationLogger> logger);
16 int Update(const ActiveLink& link, const std::map<std::string, double>& map) override;
17
18private:
19 [[nodiscard]] int UpdateLinkDataParameters(
20 const ActiveLink& link_p,
21 const std::map<std::string, double>& investments_p) const;
22
23public:
29 [[nodiscard]] std::filesystem::path getLinkdataFilepath(const ActiveLink& link_p) const;
39 [[nodiscard]] std::pair<double, double> computeNewCapacities(
40 const std::map<std::string, double>& investments_p,
41 const ActiveLink& link_p,
42 int timepoint_p) const;
43};
Definition StudyUpdateLinkParameterStrategy.h:11
std::pair< double, double > computeNewCapacities(const std::map< std::string, double > &investments_p, const ActiveLink &link_p, int timepoint_p) const
computes the new capacities of related to a link
Definition StudyUpdateLinkParameterStrategy.cpp:56
std::filesystem::path getLinkdataFilepath(const ActiveLink &link_p) const
returns the path to the linkdata file related to a link
Definition StudyUpdateLinkParameterStrategy.cpp:22
Definition StudyUpdateStrategy.h:12