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

Public Member Functions | |
| Predefined (Decomposition &decomposition, const vector< vector< id_t > > &ids, const vector< pair< double, double > > &intervals, double quality=1) | |
| virtual void | init (const vlist_type &uninstantiatedVariables) |
| virtual void | done () |
| Clean up the work done by `init()'. | |
| virtual void | select (Domain &selectable, Domain &selected, Variable &variable) |
| virtual long double | score (Variable &variable, const Value &value) |
| size_t | extraCalls () const |
| Predefined (Decomposition &decomposition, const vector< vector< id_t > > &ids, const vector< pair< double, double > > &intervals, double quality=1) | |
| virtual void | init (const vlist_type &uninstantiatedVariables) |
| virtual void | done () |
| Clean up the work done by `init()'. | |
| virtual void | select (vlist_type &selectable, vlist_type &selected) |
|
||||||||||||||||||||
|
Constructor.
|
|
||||||||||||||||||||
|
Constructor.
|
|
|
Return the number of times the heuristic has been called after all the predefined values have been used.
|
|
|
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 from ValueOH. |
|
|
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 from ValueOH. |
|
||||||||||||
|
Return the score of a value. The score is a number based on which the value's position is determined in Decomposition::selectValue(). Useless for this heuristic, so this always returns 0.
Implements ValueOH. |
|
||||||||||||
|
Select from the given variable list the variable that is next in line in the heuristic's predefined list. This method looks at the variables in `selectable' and expects to find _all_ of them in its predefined assignment. It will return only _one_ variable in `selected', the one that is at the front of its list for the current depth.
Implements VariableOH. |
|
||||||||||||||||
|
Select from the given domain the predefined value for the given variable.
Implements ValueOH. |
1.3.9.1