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

Public Types | |
| enum | Preference { Minimum, Maximum } |
Public Member Functions | |
| MinDomain (Decomposition &decomposition, const vector< pair< double, double > > &intervals, double quality=1, Preference preference=Maximum, bool analysis=false) | |
| virtual void | dynamicInit (Variable &variable, Domain &selectable) |
| virtual void | dynamicDone (Variable &variable) |
| virtual void | select (Domain &selectable, Domain &selected, Variable &variable) |
| virtual bool | better (const Value &value0, const Value &value1) |
| virtual bool | equal (const Value &value0, const Value &value1) |
| virtual void | sort (Domain &original, Domain &sorted, Variable &variable) |
| virtual long double | score (Variable &variable, const Value &value) |
|
|
|
|
||||||||||||||||||||||||
|
Constructor.
|
|
||||||||||||
|
Compare two values.
Reimplemented from ValueOH. |
|
|
Any dynamic clean up of the data structures required by the value selection should be performed here.
Reimplemented from ValueOH. |
|
||||||||||||
|
Any dynamic initializations required by the value selection should be performed here.
Reimplemented from ValueOH. |
|
||||||||||||
|
Compare two values for equality.
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(). The better the value, the greater the score should be. Here the score is computed based on the post-propagation minimum domain size.
Implements ValueOH. |
|
||||||||||||||||
|
Select from the given domain the value that has the minimum/maximum post-propagation minimum domain size.
Implements ValueOH. |
|
||||||||||||||||
|
Sort the domain of the variable and place the result in a new Domain object. Reimplemented from ValueOH. |
1.3.9.1