Antares Simulator
Power System Simulator
max-mrg-utils.h
1 #pragma once
2 
3 #include <antares/series/series.h>
4 
5 #include "../state.h"
6 
7 namespace Antares::Solver::Variable::Economy
8 {
9 
11 {
12  double* spillage = nullptr;
13  double* dens = nullptr;
14  double* hydroGeneration = nullptr;
15  Antares::Data::TimeSeries* maxHourlyGenPower = nullptr;
16  double* dtgMargin = nullptr;
17  unsigned int hourInYear = 0;
18  unsigned int year = 0;
19  Date::Calendar* calendar = nullptr;
20  std::string areaName;
21 };
22 
23 void computeMaxMRG(double* maxMrgOut, const MaxMRGinput& in);
24 
26 {
27 public:
28  MaxMrgDataFactory(const State& state, unsigned int numSpace);
29  virtual MaxMRGinput data() = 0;
30 
31 protected:
32  // in data
33  const State& state_;
34  const unsigned int numSpace_ = 0;
35  RESULTATS_HORAIRES& weeklyResults_;
36  // data to be built
37  MaxMRGinput maxMRGinput_;
38 };
39 
41 {
42  using MaxMrgDataFactory::MaxMrgDataFactory;
43 
44 public:
45  virtual MaxMRGinput data() override;
46 };
47 
49 {
50  using MaxMrgDataFactory::MaxMrgDataFactory;
51 
52 public:
53  virtual MaxMRGinput data() override;
54 };
55 
56 } // namespace Antares::Solver::Variable::Economy
This class is used to represent the generic time series.
Definition: series.h:65
Definition: date.h:180
Definition: state.h:71
Definition: sim_structure_probleme_economique.h:354