AI 24/25 Project Software
Documentation for the AI 24/25 course programming project software
Loading...
Searching...
No Matches
probfd::Policy< typename, typename > Class Template Referenceabstract

#include "probfd/policy.h"

Inheritance diagram for probfd::Policy< typename, typename >:
[legend]

Description

template<typename, typename>
class probfd::Policy< typename, typename >

Represents a deterministic, stationary, partial policy.

Represents a deterministic, stationary, partial policy, i.e., a partial mapping \( S \rightharpoonup A \) from states \( S \) to actions \( A \). Additionally, provides bounding intervals for the Q* value of the policy actions.

Template Parameters
State- The state type of the underlying state space.
Action- The action type of the underlying state space.

Public Member Functions

virtual std::optional< PolicyDecision< Action > > get_decision (const State &state) const =0
 Retrives the action and optimal state value interval specified by the policy for a given state.
 
std::vector< PolicyDecision< Action > > get_decisions (const State &state) const override
 Retrives the actions and their optimal state value intervals specified by the policy for a given state.
 

Member Function Documentation

◆ get_decision()

template<typename , typename >
virtual std::optional< PolicyDecision< Action > > probfd::Policy< typename, typename >::get_decision ( const State & state) const
pure virtual

Retrives the action and optimal state value interval specified by the policy for a given state.

◆ get_decisions()

template<typename , typename >
std::vector< PolicyDecision< Action > > probfd::Policy< typename, typename >::get_decisions ( const State & state) const
inlineoverridevirtual

Retrives the actions and their optimal state value intervals specified by the policy for a given state.

Implements probfd::MultiPolicy< State, Action >.