AI 24/25 Project Software
Documentation for the AI 24/25 course programming project software
Loading...
Searching...
No Matches
probfd::policy_pickers::StablePolicyPicker< State, Action, Derived > Class Template Reference

#include "probfd/policy_pickers/stable_policy_picker.h"

Inheritance diagram for probfd::policy_pickers::StablePolicyPicker< State, Action, Derived >:
[legend]

Description

template<typename State, typename Action, class Derived>
class probfd::policy_pickers::StablePolicyPicker< State, Action, Derived >

CRTP base class for stable policy picker implementations.

Public Member Functions

int pick_index (MDP< State, Action > &mdp, std::optional< Action > previous_greedy, const std::vector< Transition< Action > > &greedy_transitions, algorithms::StateProperties &properties) override
 Selects a greedy transition from multiple candidates by returning its index in the candidate list.
 
virtual void print_statistics (std::ostream &)
 Prints statistics to an output stream, e.g. the number of queries made to the interface.
 

Member Function Documentation

◆ pick_index()

template<typename State , typename Action , class Derived >
int probfd::policy_pickers::StablePolicyPicker< State, Action, Derived >::pick_index ( MDP< State, Action > & mdp,
std::optional< Action > incumbent_greedy,
const std::vector< Transition< Action > > & greedy_transitions,
algorithms::StateProperties & properties )
overridevirtual

Selects a greedy transition from multiple candidates by returning its index in the candidate list.

Parameters
mdp- The MDP in which the search is performed.
incumbent_greedy- The incumbent greedy action.
greedy_transitions- A list of candidate greedy transitions.
properties- The interface to the heuristic search algorithm. Can be used to query additional information about the involved states and actions.

Implements probfd::algorithms::PolicyPicker< State, Action >.

◆ print_statistics()

template<typename State , typename Action >
virtual void probfd::algorithms::PolicyPicker< State, Action >::print_statistics ( std::ostream & )
inlinevirtualinherited

Prints statistics to an output stream, e.g. the number of queries made to the interface.