AI 24/25 Project Software
Documentation for the AI 24/25 course programming project software
|
#include "probfd/mdp.h"
Composes a state space and a cost function to an MDP.
Public Member Functions | |
StateID | get_state_id (param_type< State > state) final |
Get the state ID for a given state. | |
State | get_state (StateID state_id) final |
Get the state mapped to a given state ID. | |
void | generate_applicable_actions (param_type< State > state, std::vector< Action > &result) final |
Generates the applicable actions of the state. | |
void | generate_action_transitions (param_type< State > state, param_type< Action > action, Distribution< StateID > &result) final |
Generates the successor distribution for a given state and action. | |
void | generate_all_transitions (param_type< State > state, std::vector< Action > &aops, std::vector< Distribution< StateID > > &successors) final |
Generates all applicable actions and their corresponding successor distributions for a given state. | |
virtual void | generate_all_transitions (param_type< State > state, std::vector< TransitionType > &transitions) final |
Generates all applicable actions and their corresponding successor distributions for a given state. | |
TerminationInfo | get_termination_info (param_type< State > state) final |
Returns the cost to terminate in a given state and checks whether a state is a goal. | |
value_t | get_action_cost (param_type< Action > action) final |
Gets the action cost of a state-action. | |
|
inlinefinalvirtual |
Get the state ID for a given state.
Implements probfd::StateSpace< State, Action >.
|
inlinefinalvirtual |
Get the state mapped to a given state ID.
Implements probfd::StateSpace< State, Action >.
|
inlinefinalvirtual |
Generates the applicable actions of the state.
Implements probfd::StateSpace< State, Action >.
|
inlinefinalvirtual |
Generates the successor distribution for a given state and action.
Implements probfd::StateSpace< State, Action >.
|
inlinefinalvirtual |
Generates all applicable actions and their corresponding successor distributions for a given state.
Implements probfd::StateSpace< State, Action >.
|
inlinefinalvirtual |
Generates all applicable actions and their corresponding successor distributions for a given state.
Implements probfd::StateSpace< State, Action >.
|
inlinefinalvirtual |
Returns the cost to terminate in a given state and checks whether a state is a goal.
Implements probfd::CostFunction< State, Action >.
|
inlinefinalvirtual |
Gets the action cost of a state-action.
Implements probfd::CostFunction< State, Action >.