Antares Simulator
Power System Simulator
storage-for-remix-no-levels.h
1 #pragma once
2 
3 #include <string>
4 
5 #include "storage-for-remix-interface.h"
6 
7 namespace Antares::Solver::Simulation
8 {
9 constexpr double TOLERANCE = 1.e-6;
10 
12 {
13 public:
14  StorageForRemixNoLevels(std::vector<double>& generation,
15  std::vector<double>& unsupE,
16  const std::vector<double> Pmax,
17  const std::vector<double> Pmin,
18  const std::string& name = "");
19 
20  double maxExchange(unsigned hourOfMaxGen, unsigned hourOfMinGen) const override;
21  void update() override;
22  const std::vector<double>& initWithdrawal() const override;
23  std::vector<double>& withdrawal() override;
24 
25 protected:
26  void checkInput(size_t size) override;
27 
28  std::vector<double>& withdrawal_;
29  const std::vector<double> initWithdrawal_;
30  std::vector<double>& unsupE_;
31  const std::vector<double> pmax_;
32  const std::vector<double> pmin_;
33  const std::string error_msg_start_hydro_remix = "Remix hydro input : ";
34 };
35 
36 } // namespace Antares::Solver::Simulation
Definition: storage-for-remix-interface.h:31
Definition: storage-for-remix-no-levels.h:12