aGrUM  0.14.2
ILearningStrategy.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2005 by Christophe GONZALES and Pierre-Henri WUILLEMIN *
3  * {prenom.nom}_at_lip6.fr *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19  ***************************************************************************/
28 // =========================================================================
29 #ifndef GUM_SDYNA_LEARNING_STRATEGY_H
30 #define GUM_SDYNA_LEARNING_STRATEGY_H
31 // =========================================================================
32 #include <string>
33 // =========================================================================
34 #include <agrum/core/types.h>
35 // =========================================================================
36 #include <agrum/FMDP/fmdp.h>
39 // =========================================================================
41 // =========================================================================
42 
43 namespace gum {
44 
53  // ###################################################################
55  // ###################################################################
57  public:
58  // ==========================================================================
60  // ==========================================================================
61  virtual ~ILearningStrategy() {}
62 
64 
65  // ###################################################################
67  // ###################################################################
69  public:
70  // ==========================================================================
72  // ==========================================================================
73  virtual void initialize(FMDP< double >* fmdp) = 0;
74 
76 
77 
78  // ###################################################################
80  // ###################################################################
82  public:
83  // ==========================================================================
91  // ==========================================================================
92  virtual bool addObservation(Idx actionId, const Observation* obs) = 0;
93 
94 
95  // ==========================================================================
99  // ==========================================================================
100  virtual void updateFMDP() = 0;
101 
103 
104 
105  // ###################################################################
107  // ###################################################################
109  public:
110  // ==========================================================================
115  // ==========================================================================
116  virtual Size size() = 0;
117 
118  // ==========================================================================
123  // ==========================================================================
124  virtual const IVisitableGraphLearner*
125  varLearner(Idx actionId, const DiscreteVariable* var) const = 0;
126 
127  virtual double rMax() const = 0;
128  virtual double modaMax() const = 0;
129 
131  };
132 } // namespace gum
133 #endif // GUM_SDYNA_LEARNING_STRATEGY_H
virtual const IVisitableGraphLearner * varLearner(Idx actionId, const DiscreteVariable *var) const =0
Required for RMax.
Provides basic types used in aGrUM.
Headers of the Learning Strategy interface.
Base class for discrete random variable.
virtual ~ILearningStrategy()
Destructor (virtual and empty since it&#39;s an interface)
virtual void updateFMDP()=0
Starts an update of datastructure in the associated FMDP.
<agrum/FMDP/SDyna/IVisitableGraphLearner.h>
Base class for discrete random variable.
gum is the global namespace for all aGrUM entities
Definition: agrum.h:25
virtual void initialize(FMDP< double > *fmdp)=0
Initializes the learner.
Class for implementation of factored markov decision process.
<agrum/FMDP/SDyna/ILearningStrategy.h>
virtual bool addObservation(Idx actionId, const Observation *obs)=0
Gives to the learner a new transition.
Headers of the Observation class.
virtual double modaMax() const =0
learnerSize
virtual double rMax() const =0
learnerSize
virtual Size size()=0
learnerSize
Size Idx
Type for indexes.
Definition: types.h:50
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Definition: types.h:45