Antares Simulator
Power System Simulator
HebdoProblemToLpsTranslator.h
1 
2 /*
3  * Copyright 2007-2025, RTE (https://www.rte-france.com)
4  * See AUTHORS.txt
5  * SPDX-License-Identifier: MPL-2.0
6  * This file is part of Antares-Simulator,
7  * Adequacy and Performance assessment for interconnected energy networks.
8  *
9  * Antares_Simulator is free software: you can redistribute it and/or modify
10  * it under the terms of the Mozilla Public Licence 2.0 as published by
11  * the Mozilla Foundation, either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * Antares_Simulator is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * Mozilla Public Licence 2.0 for more details.
18  *
19  * You should have received a copy of the Mozilla Public Licence 2.0
20  * along with Antares_Simulator. If not, see <https://opensource.org/license/mpl-2-0/>.
21  */
22 
23 #pragma once
24 
25 #include "antares/solver/lps/LpsFromAntares.h"
26 #include "antares/solver/simulation/sim_structure_probleme_economique.h"
27 
28 namespace Antares::Solver
29 {
30 
38 class WeeklyProblemTranslationException final: public std::runtime_error
39 {
40 public:
41  explicit WeeklyProblemTranslationException(const std::string& string) noexcept;
42 };
43 
51 {
52 public:
65  [[nodiscard]] WeeklyDataFromAntares translate(const PROBLEME_ANTARES_A_RESOUDRE* problem,
66  std::string_view name) const;
67 
78  const PROBLEME_ANTARES_A_RESOUDRE* problem) const;
79 };
80 
81 } // namespace Antares::Solver
Class for translating a weekly problem to a linear programming problem.
Definition: HebdoProblemToLpsTranslator.h:51
WeeklyDataFromAntares translate(const PROBLEME_ANTARES_A_RESOUDRE *problem, std::string_view name) const
Translates a weekly problem to a linear programming problem.
Definition: HebdoProblemToLpsTranslator.cpp:57
ConstantDataFromAntares commonProblemData(const PROBLEME_ANTARES_A_RESOUDRE *problem) const
Retrieves common problem data, the part common to every weekly problems.
Definition: HebdoProblemToLpsTranslator.cpp:78
Exception class for errors during the translation of a weekly problem.
Definition: HebdoProblemToLpsTranslator.h:39
Definition: opt_structure_probleme_a_resoudre.h:35
The ConstantDataFromAntares class is used to store constant data across all weeks of Antares problems...
Definition: LpsFromAntares.h:54
The WeeklyDataFromAntares class is used to store weekly data for an Antares Problem.
Definition: LpsFromAntares.h:89