#include <VariableOH.h>
Inheritance diagram for VariableOH:

Public Member Functions | |
| VariableOH (const wstring &name, Decomposition &decomposition, const vector< pair< double, double > > &intervals, double quality=1) | |
| virtual void | init (const vlist_type &) |
| virtual void | done () |
| Clean up the work done by `init()'. | |
| virtual void | select (vlist_type &selectable, vlist_type &selected)=0 |
| virtual wostream & | print (wostream &wos) const |
Protected Member Functions | |
| void | selectByQuality (vlist_type &selectable, vlist_type &selected, StrictWeakVariableOrdering &better, StrictWeakVariableOrdering &equal) |
Friends | |
| CSP_API wostream & | operator<< (wostream &wos, const VariableOH &variableOH) |
|
||||||||||||||||||||
|
Constructor for various variable ordering heuristics.
|
|
|
If any static computations or initializations are needed, they should be done here. Doing the static computations in the constructor would limit the heuristic to working only on the complete `Problem'. Doing it here allows the heuristic to be reused.
Reimplemented in Predefined, Impact, and Predefined. |
|
|
Print information about the heuristic at the given stream.
Reimplemented from OrderingHeuristic. Reimplemented in Domain. |
|
||||||||||||
|
Each variable ordering heuristic object should implement this method which is supposed to get a list of variables and return another list of "preferred" variables among those in the original list. This method should NEVER return an empty list. The selected variables are removed from the original list. If the library's `g_predictable' flag is turned on, this function should expect the original list to be sorted by ID and should preserve that upon return. The list of selected variables should also be returned sorted if `g_predictable' is on.
Implemented in Branching, Degree, Domain, DomainDegreeRatio, DomainWeightedDegreeRatio, DomainWipeouts, Impact, Lexical, Predefined, Random, SolutionProbability, and WeightedDegree. |
|
||||||||||||||||||||
|
Select the best variables according to the current preference and quality setting.
|
1.3.9.1