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"
10 public:
12 const std::filesystem::path& link_path,
13 std::shared_ptr<ProblemGenerationLog::ProblemGenerationLogger> logger);
14 int Update(const ActiveLink& link,
15 const std::map<std::string, double>& map) override;
16
17 private:
18 [[nodiscard]] int UpdateLinkDataParameters(
19 const ActiveLink& link_p,
20 const std::map<std::string, double>& investments_p) const;
21
22 public:
28 [[nodiscard]] std::filesystem::path getLinkdataFilepath(
29 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, int timepoint_p) const;
42};
Definition StudyUpdateLinkParameterStrategy.h:9
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:49
std::filesystem::path getLinkdataFilepath(const ActiveLink &link_p) const
returns the path to the linkdata file related to a link
Definition StudyUpdateLinkParameterStrategy.cpp:18
Definition StudyUpdateStrategy.h:11