AI 24/25 Project Software
Documentation for the AI 24/25 course programming project software
Loading...
Searching...
No Matches
probfd::heuristics::DeterminizationCostHeuristic Class Referenceabstract

#include "probfd/heuristics/determinization_cost.h"

Inheritance diagram for probfd::heuristics::DeterminizationCostHeuristic:
[legend]

Description

Uses a classical heuristic on the all-outcomes-determinization to estimate the expected costs to reach the goal.

Note
If the underlying classical heuristic is admissible/consistent, this heuristic is also admissible/heuristic.

Public Member Functions

 DeterminizationCostHeuristic (std::shared_ptr<::Evaluator > heuristic)
 Construct from a classical heuristic.
 
void print_statistics () const override
 Prints statistics, e.g. the number of queries made to the interface.
 
virtual value_t evaluate (param_type< State > state) const=0
 Evaluates the heuristic on a given state and returns the heuristic value.
 

Constructor & Destructor Documentation

◆ DeterminizationCostHeuristic()

probfd::heuristics::DeterminizationCostHeuristic::DeterminizationCostHeuristic ( std::shared_ptr<::Evaluator > heuristic)
explicit

Construct from a classical heuristic.

Member Function Documentation

◆ print_statistics()

void probfd::heuristics::DeterminizationCostHeuristic::print_statistics ( ) const
overridevirtual

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

Reimplemented from probfd::Evaluator< State >.

◆ evaluate()

virtual value_t probfd::Evaluator< typename >::evaluate ( param_type< State > state) const
pure virtualinherited

Evaluates the heuristic on a given state and returns the heuristic value.

Implemented in probfd::heuristics::ConstantEvaluator< State >.