|
Public Member Functions |
| relax (int, double, double) |
| Constructor.
|
void | reset (const problem &) |
| Prepare for a new problem (i.e. free tables and alloc for the new problem).
|
void | add_constraint (int, int, const list< list< pair< int, int > > > &, double) |
| add a new constraint to the problem
|
void | solve () |
| solve consistent labelling problem
|
list< int > | best_label (int) const |
| get best label(s) --hopefully only one-- for given variable
|
Private Member Functions |
double | NormalizeSupport (double) const |
| private methods
|
bool | there_are_changes () const |
Private Attributes |
vector< vector< label > > | vars |
| table with variable-labels in the CLP.
|
int | CURRENT |
| which of both weight sets are we using and which are we computing
|
int | NEXT |
int | MaxIter |
| Maximum number of iterations in case of not converging.
|
double | ScaleFactor |
| Scale factor for label supports.
|
double | Epsilon |
| epsilon value to decide whether or not an iteration has caused relevant weight changes
|