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

Public Types | |
| typedef long double | Real |
| typedef long double | Real |
| enum | Preference { Minimum, Maximum } |
| enum | Preference { Minimum, Maximum } |
Public Member Functions | |
| SolutionProbability (Decomposition &decomposition, const vector< pair< double, double > > &intervals, double quality=1, Preference preference=Maximum, 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) |
| SolutionProbability (Decomposition &decomposition, const vector< pair< double, double > > &intervals, double quality=1, Preference preference=Minimum, bool dynamic=false) | |
| virtual void | select (vlist_type &selectable, vlist_type &selected) |
Friends | |
| bool | SolutionProbabilityLT::operator() (const Value *value0, const Value *value1) |
| bool | SolutionProbabilityGT::operator() (const Value *value0, const Value *value1) |
| bool | SolutionProbabilityEQ::operator() (const Value *value0, const Value *value1) |
|
|
|
|
|
|
|
||||||||||||||||||||||||
|
Constructor.
|
|
||||||||||||||||||||||||
|
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 solution probability.
Implements ValueOH. |
|
||||||||||||
|
Select the variables with the best solution probability, according to the current preference.
Implements VariableOH. |
|
||||||||||||||||
|
Select the values with the best probability of finding a solution, given the current preference (min/max).
Implements ValueOH. |
|
||||||||||||||||
|
Sort the domain of the variable and place the result in a new Domain object. Reimplemented from ValueOH. |
1.3.9.1