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

Public Member Functions | |
| ConstraintOH (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 (clist_type &selectable, clist_type &selected)=0 |
| virtual wostream & | print (wostream &wos) const |
Friends | |
| CSP_API wostream & | operator<< (wostream &wos, const ConstraintOH &constraintOH) |
|
||||||||||||||||||||
|
Constructor for various constraint 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.
|
|
|
Print information about the heuristic at the given stream.
Reimplemented from OrderingHeuristic. |
|
||||||||||||
|
Each constraint ordering heuristic object should implement this method which is supposed to get a list of constraints and return another list of "preferred" constraints among those in the original list. This method should NEVER return an empty list. The selected constraints 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 constraints should also be returned sorted if `g_predictable' is on.
|
1.3.9.1