AI 24/25 Project Software
Documentation for the AI 24/25 course programming project software
Loading...
Searching...
No Matches
vdiff_sorter.h
1#ifndef PROBFD_TRANSITION_SORTERS_VDIFF_SORTER_H
2#define PROBFD_TRANSITION_SORTERS_VDIFF_SORTER_H
3
4#include "probfd/algorithms/fdr_types.h"
5#include "probfd/algorithms/transition_sorter.h"
6
7#include "probfd/value_type.h"
8
9#include <vector>
10
11namespace probfd::transition_sorters {
12
13class VDiffSorter : public FDRTransitionSorter {
14 const value_t favor_large_gaps_;
15
16public:
17 explicit VDiffSorter(value_t favor_large_gaps);
18
19protected:
20 void sort(
21 const State& state,
22 const std::vector<OperatorID>& action_choices,
23 std::vector<Distribution<StateID>>& successors,
24 algorithms::StateProperties& properties) override;
25};
26
27} // namespace probfd::transition_sorters
28
29#endif // PROBFD_TRANSITION_SORTERS_VDIFF_SORTER_H
double value_t
Typedef for the state value type.
Definition aliases.h:7
algorithms::TransitionSorter< State, OperatorID > FDRTransitionSorter
Type alias for TransitionSorters for MDPs in FDR.
Definition fdr_types.h:35