The class problem stores the structure of a problem, namely, a vector with a position for each variable to consider, and for each variable, a list of initial weights for each possible label. More...
#include <relax.h>
Public Member Functions | |
problem (int) | |
Constructor. | |
void | add_label (int, double) |
add a label (and its weight) to the given variable | |
Friends | |
class | relax |
The class problem stores the structure of a problem, namely, a vector with a position for each variable to consider, and for each variable, a list of initial weights for each possible label.
Variables and labels are unnamed, and sequentially numbered. The caller application must keep track of the meaning of each variable and label position.
problem::problem | ( | int | ) |
Constructor.
void problem::add_label | ( | int | , | |
double | ||||
) |
add a label (and its weight) to the given variable
friend class relax [friend] |