SMT-RAT
24.02
Toolbox for Strategic and Parallel Satisfiability-Modulo-Theories Solving
|
This class manages features that are used to valuate variables on objects. More...
#include <feature_based.h>
Public Types | |
using | Extractor = std::function< double(Objects, carl::Variable)> |
using | Valuation = std::vector< double > |
Public Member Functions | |
void | addFeature (Extractor &&e, std::size_t level, double weight) |
Valuation | valuateVariable (const Objects &o, carl::Variable v) const |
std::vector< carl::Variable > | sortVariables (const Objects &o, std::vector< carl::Variable > vars) const |
Data Fields | |
std::vector< std::tuple< Extractor, std::size_t, double > > | mFeatures |
This class manages features that are used to valuate variables on objects.
Each feature consists of a valuation function, a level and a weight. All feature valuations of a certain level are combined linearly using the respective weights. Valuations are then compared lexicographically.
Definition at line 26 of file feature_based.h.
using smtrat::mcsat::variableordering::detail::FeatureCollector< Objects >::Extractor = std::function<double(Objects, carl::Variable)> |
Definition at line 27 of file feature_based.h.
using smtrat::mcsat::variableordering::detail::FeatureCollector< Objects >::Valuation = std::vector<double> |
Definition at line 28 of file feature_based.h.
|
inline |
|
inline |
Definition at line 46 of file feature_based.h.
|
inline |
std::vector<std::tuple<Extractor, std::size_t, double> > smtrat::mcsat::variableordering::detail::FeatureCollector< Objects >::mFeatures |
Definition at line 29 of file feature_based.h.