AI 24/25 Project Software
Documentation for the AI 24/25 course programming project software
|
#include "probfd/cost_function.h"
The interface specifying action and state termination costs, aswell as the goal states of a state space.
This interface communicates the action and termination costs and the goal states of a state space to the MDP algorithms. Users must implement the public methods get_termination_info(const State& state)
and get_action_cost(const Action& action)
.
Public Member Functions | |
virtual TerminationInfo | get_termination_info (param_type< State > state)=0 |
Returns the cost to terminate in a given state and checks whether a state is a goal. | |
virtual value_t | get_action_cost (param_type< Action > action)=0 |
Gets the cost of an action. | |
|
pure virtual |
Returns the cost to terminate in a given state and checks whether a state is a goal.
Implemented in probfd::CompositeMDP< State, Action >, and probfd::SimpleMDP< State, Action >.
|
pure virtual |
Gets the cost of an action.
Implemented in probfd::CompositeMDP< State, Action >.