Scheduler
twoPhases.h
Go to the documentation of this file.
1 
10 #ifndef TWOPHASES_H
11 #define TWOPHASES_H
12 
13 #include "learningStrategy.h"
14 
15 
16 namespace Mdp
17 {
18 struct Context;
19 
20 
22 {
23 public:
24  static constexpr const char *configKey = "twoPhases";
25 public:
26  TwoPhases(std::shared_ptr<Context> context);
27  ~TwoPhases();
28  void initializeModel();
29  void updateModel();
30 protected:
31  int count{0};
32  const int learningIterations{100};
35 };
36 
37 }
38 
39 #endif
TwoPhases(std::shared_ptr< Context > context)
Definition: twoPhases.cpp:21
LearningStrategy * learning
Definition: twoPhases.h:33
LearningStrategy * acting
Definition: twoPhases.h:34
const int learningIterations
Definition: twoPhases.h:32
void updateModel()
Definition: twoPhases.cpp:42
Definition: action.h:18
static constexpr const char * configKey
Definition: twoPhases.h:24
void initializeModel()
Definition: twoPhases.cpp:33
std::shared_ptr< Context > context