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

Public Member Functions | |
| OrderingHeuristic (const wstring &name, Decomposition &decomposition, const vector< pair< double, double > > &intervals, double quality=1) | |
| const wstring & | name () const |
| Return the name of the heuristic. | |
| bool | inRange () const |
| const vector< pair< double, double > > | intervals () const |
| double | quality () const |
| Return the quality of the heuristic. | |
| void | recordCall () |
| Record the fact that the heuristic has been called. | |
| ulonglong | invocations () const |
| Return the number of times this heuristic has been called. | |
| virtual wostream & | print (wostream &wos) const |
Protected Attributes | |
| Decomposition & | m_decomposition |
| The decomposition using this heuristic. | |
| vector< pair< double, double > > | m_intervals |
| double | m_quality |
| The heuristic's quality in the [0-1] range. | |
| ulonglong | m_invocations |
| The number of times this heuristic has been called. | |
| vector< ulonglong > | m_selectionSizes |
Friends | |
| CSP_API wostream & | operator<< (wostream &wos, const OrderingHeuristic &orderingHeuristic) |
|
||||||||||||||||||||
|
Constructor for variable and value ordering heuristics.
|
|
|
Return `true' if the percentage of instantiated variable is in one of the intervals specified in the heuristic's constructor, `false' otherwise. |
|
|
Return the search depth intervals for which the heuristic is active. |
|
|
Print information about the heuristic at the given stream.
Reimplemented in ConstraintOH, Domain, ValueOH, and VariableOH. |
|
|
The search depths at which the heuristic should be activated, as a list of percentage intervals. For example, if the interval 10-20 is specified in intervals, that means that if between 10 and 20% of the total variables have been instantiated and this heuristic is called, it will actually do something. |
|
|
Every time the heuristic selects `n' variables, values, or constraints out of the given list, it increments m_selectionSizes[n]. |
1.3.9.1