bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
dp_algo_base.h
Go to the documentation of this file.
1#ifndef DP_ALGO_BASE_H
2#define DP_ALGO_BASE_H
3
6
7#include <string>
8#include <tuple>
9#include <type_traits>
10#include <vector>
11
12namespace bitrl
13{
15{
16
20template <typename EnvType> class DPSolverBase : public RLSolverBase<EnvType>
21{
22 public:
27
28 // state type should be integral
29 static_assert(std::is_integral<typename EnvType::state_type>::value);
30 static_assert(std::is_integral<typename EnvType::action_type>::value);
31
35 virtual ~DPSolverBase() = default;
36
37 protected:
42 DPSolverBase() = default;
43};
44
45} // namespace rl::algos::dp
46} // namespace bitrl
47
48#endif // DP_ALGO_BASE_H
EnvType env_type
Definition rl_algorithm_base.h:21
RLSolverBase()=default
Constructor.
DPSolverBase()=default
DPAlgoBase.
RLSolverBase< EnvType >::env_type env_type
The environment type the solver is using.
Definition dp_algo_base.h:26
virtual ~DPSolverBase()=default
Destructor.
Definition dp_algo_base.h:15
Various utilities used when working with RL problems.
Definition bitrl_log.h:25