Scheduler
matrixLearning.h
Go to the documentation of this file.
1 
10 #ifndef MATRIXLEARNING_H
11 #define MATRIXLEARNING_H
12 
13 #include <vector>
14 
15 #include <mdp/action_impl.h>
16 #include <mdp/state.h>
17 #include "learningStrategy.h"
18 
19 namespace Mdp
20 {
21 struct Context;
22 
24 {
25 public:
26  static constexpr const char *configKey = "matrixLearning";
27 public:
28  MatrixLearning(std::shared_ptr<Context> context);
29  void initializeModel();
30  void updateModel();
31 private:
32  void updateMatrix();
33 
34  state_t previousState;
35  action_t previousAction;
36  std::vector<std::vector<std::vector<int>>> occurences;
37  int nbOfUpdates{0};
38 };
39 
40 
41 }
42 
43 
44 
45 
46 
47 
48 
49 #endif
MatrixLearning(std::shared_ptr< Context > context)
static constexpr const char * configKey
size_t action_t
Definition: action_impl.h:18
Definition: action.h:18
size_t state_t
Definition: state.h:19
std::shared_ptr< Context > context