Antares Simulator
Power System Simulator
data.h
1 // Copyright 2007-2025, RTE (https://www.rte-france.com)
2 // See AUTHORS.txt
3 // SPDX-License-Identifier: MPL-2.0
4 // This file is part of Antares-Simulator,
5 // Adequacy and Performance assessment for interconnected energy networks.
6 //
7 // Antares_Simulator is free software: you can redistribute it and/or modify
8 // it under the terms of the Mozilla Public Licence 2.0 as published by
9 // the Mozilla Foundation, either version 2 of the License, or
10 // (at your option) any later version.
11 //
12 // Antares_Simulator is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // Mozilla Public Licence 2.0 for more details.
16 //
17 // You should have received a copy of the Mozilla Public Licence 2.0
18 // along with Antares_Simulator. If not, see <https://opensource.org/license/mpl-2-0/>.
19 #pragma once
20 
21 #include <vector>
22 
23 #include <antares/modeler-optimisation-container/scenarioGroupRepo.h>
24 #include <antares/optimisation/linear-problem-data-impl/linearProblemData.h>
25 #include <antares/study/system-model/library.h>
26 #include <antares/study/system-model/system.h>
27 
28 namespace Antares::Modeler
29 {
30 
31 enum class ResolutionMode : unsigned
32 {
33  BENDERS_DECOMPOSITION = 0,
34  SEQUENTIAL_SUBPROBLEMS = 1
35 };
36 
37 struct Data
38 {
39  std::vector<ModelerStudy::SystemModel::Library> libraries;
40  std::unique_ptr<ModelerStudy::SystemModel::System> system;
41  std::unique_ptr<Optimisation::LinearProblemApi::ILinearProblemData> dataSeries;
42  Optimisation::ScenarioGroupRepository scenarioGroupRepository;
43  ResolutionMode resolutionMode = ResolutionMode::SEQUENTIAL_SUBPROBLEMS;
44 };
45 
46 } // namespace Antares::Modeler
Definition: scenarioGroupRepo.h:12
Definition: data.h:38