26 #ifndef __UTILS_HUNGARIAN_METHOD_HUNGARIAN_H_ 27 #define __UTILS_HUNGARIAN_METHOD_HUNGARIAN_H_ 29 #define HUNGARIAN_NOT_ASSIGNED 0 30 #define HUNGARIAN_ASSIGNED 1 32 #define HUNGARIAN_MODE_MINIMIZE_COST 0 33 #define HUNGARIAN_MODE_MAXIMIZE_UTIL 1 46 } hungarian_problem_t;
55 int init(
int** cost_matrix,
56 int rows,
int cols,
int mode);
64 int get_column_assignment(
const int & col );
65 int get_row_assignment(
const int & row );
66 int* get_assignment(
int & size);
68 int** array_to_matrix(
int* m,
int rows,
int cols);
70 void print_assignment();
71 void print_cost_matrix();
75 hungarian_problem_t *
p;
78 void print_matrix(
int** C,
int rows,
int cols );
Fawkes library namespace.
hungarian_problem_t * p
our problem instance member.
Hungarian method assignment solver.