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

#include "probfd/heuristics/lp_heuristic.h"

Description

template<typename Derived>
class probfd::heuristics::LPHeuristic< Derived >

Base class for heuristics based on linear programming.

This class uses CRTP and requires the methods:

void update_constraints(const State& state) const;
void reset_constraints(const State& state) const;

Public Member Functions

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

Member Function Documentation

◆ 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 >.

◆ print_statistics()

virtual void probfd::Evaluator< typename >::print_statistics ( ) const
inlinevirtualinherited

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

Reimplemented in probfd::heuristics::DeadEndPruningHeuristic, and probfd::heuristics::DeterminizationCostHeuristic.