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

Public Types | |
| enum | Preference { Minimum, Maximum } |
Public Member Functions | |
| Failures (Decomposition &decomposition, const vector< pair< double, double > > &intervals, double quality=1, Preference preference=Minimum, bool analysis=false) | |
| 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) |
Note that this only works for binary constraints.
|
|
|
|
||||||||||||||||||||||||
|
Constructor.
|
|
||||||||||||
|
Compare two values.
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 number of failures.
Implements ValueOH. |
|
||||||||||||||||
|
Select the values with the smallest/largest number of failures.
Implements ValueOH. |
|
||||||||||||||||
|
Sort the domain of the variable and place the result in a new Domain object. Reimplemented from ValueOH. |
1.3.9.1