AI 24/25 Project Software
Documentation for the AI 24/25 course programming project software
|
#include "probfd/algorithms/fret.h"
Implemetation of the Find-Revise-Eliminate-Traps (FRET) framework [9] .
The FRET framework is a framework designed for Generalized Stochastic Shortest-Path Problems (GSSPs, [9]). In this scenario, traditional heuristic search algorithms do not converge against an optimal policy due to the existence of traps. FRET interleaves heuristic searches with a trap elimination procedure until no more traps are found. This guarantees that an optimal policy is returned.
The two common trap elimination strategies find traps in
State | - The state type of the underlying MDP. |
Action | - The action type of the underlying MDP. |
StateInfoT | - The state info type of the heuristic search algorithm. |
GreedyGraphGenerator | - The type of the generator used to construct the search graph in which traps are found and eliminated between heuristic searches. |
Public Member Functions | |
void | print_statistics (std::ostream &out) const override |
Prints algorithm statistics to the specified output stream. | |
virtual std::unique_ptr< PolicyType > | compute_policy (MDPType &mdp, EvaluatorType &heuristic, param_type< State > state, ProgressReport progress, double maxtime)=0 |
Computes a partial policy for the input state. | |
virtual Interval | solve (MDPType &mdp, EvaluatorType &heuristic, param_type< State > state, ProgressReport progress, double max_time)=0 |
Runs the MDP algorithm for the initial state state with a maximum time limit. | |
|
overridevirtual |
Prints algorithm statistics to the specified output stream.
Reimplemented from probfd::MDPAlgorithm< State, Action >.
|
pure virtualinherited |
Computes a partial policy for the input state.
|
pure virtualinherited |
Runs the MDP algorithm for the initial state state
with a maximum time limit.