Antares Simulator
Power System Simulator
post_process_commands.h
1 /*
2 ** Copyright 2007-2025, RTE (https://www.rte-france.com)
3 ** See AUTHORS.txt
4 ** SPDX-License-Identifier: MPL-2.0
5 ** This file is part of Antares-Simulator,
6 ** Adequacy and Performance assessment for interconnected energy networks.
7 **
8 ** Antares_Simulator is free software: you can redistribute it and/or modify
9 ** it under the terms of the Mozilla Public Licence 2.0 as published by
10 ** the Mozilla Foundation, either version 2 of the License, or
11 ** (at your option) any later version.
12 **
13 ** Antares_Simulator is distributed in the hope that it will be useful,
14 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ** Mozilla Public Licence 2.0 for more details.
17 **
18 ** You should have received a copy of the Mozilla Public Licence 2.0
19 ** along with Antares_Simulator. If not, see <https://opensource.org/license/mpl-2-0/>.
20 */
21 #pragma once
22 
23 #include "antares/solver/simulation/base_post_process.h"
24 
25 namespace Antares::Solver::Simulation
26 {
28 {
29 public:
31  unsigned int numSpace,
32  AreaList& areas);
33  void execute(const optRuntimeData& opt_runtime_data) override;
34 
35 private:
36  unsigned int numSpace_ = 0;
37  const AreaList& area_list_;
38 };
39 
41 {
42 public:
44  AreaList& areas,
45  const Data::Parameters& params,
46  unsigned int numSpace,
47  IResultWriter& resultWriter);
48  void execute(const optRuntimeData& opt_runtime_data) override;
49 
50 private:
51  const AreaList& area_list_;
52  unsigned int numSpace_ = 0;
53  const Data::Parameters& params_;
54  IResultWriter& resultWriter_;
55 };
56 
58 {
59 public:
61  AreaList& areas,
62  unsigned int numSpace);
63  void execute(const optRuntimeData&) override;
64 
65 private:
66  const AreaList& area_list_;
67  unsigned int numSpace_ = 0;
68 };
69 
71 {
72 public:
73  DTGnettingAfterCSRcmd(PROBLEME_HEBDO* problemeHebdo, AreaList& areas, unsigned int numSpace);
74  void execute(const optRuntimeData&) override;
75 
76 private:
77  const AreaList& area_list_;
78  unsigned int numSpace_ = 0;
79 };
80 
82 {
83 public:
85  AreaList& areas,
86  const Date::Calendar& calendar);
87 
88  void execute(const optRuntimeData& opt_runtime_data) override;
89 
90 private:
91  const AreaList& area_list_;
92  const Date::Calendar& calendar_;
93 };
94 
96 {
97 public:
99 
100  void execute(const optRuntimeData& opt_runtime_data) override;
101 
102 private:
103  const AreaList& area_list_;
104 };
105 
107 {
108 public:
109  CurtailmentSharingPostProcessCmd(const AdqPatchParams& adqPatchParams,
110  PROBLEME_HEBDO* problemeHebdo,
111  AreaList& areas,
112  unsigned int numSpace,
113  const OptimizationOptions& solverOptions);
114 
115  void execute(const optRuntimeData& opt_runtime_data) override;
116 
117 private:
118  double calculateDensNewAndTotalLmrViolation();
119  std::vector<double> calculateENSoverAllAreasForEachHour() const;
120  std::set<int> identifyHoursForCurtailmentSharing(const std::vector<double>& sumENS) const;
121  std::set<int> getHoursRequiringCurtailmentSharing() const;
122 
124  const AreaList& area_list_;
125  const AdqPatchParams& adqPatchParams_;
126  unsigned int numSpace_ = 0;
127  const OptimizationOptions& solverOptions_;
128 };
129 
130 } // namespace Antares::Solver::Simulation
A list of areas.
Definition: area.h:365
General data for a study.
Definition: parameters.h:51
Definition: date.h:180
Definition: i_writer.h:32
Definition: post_process_commands.h:71
Definition: post_process_commands.h:41
Definition: post_process_commands.h:58
Definition: base_post_process.h:51
Definition: adq-patch-params.h:114
Definition: base_post_process.h:37
Definition: sim_structure_probleme_economique.h:403