00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef OR_TOOLS_ALGORITHMS_HUNGARIAN_H_
00031 #define OR_TOOLS_ALGORITHMS_HUNGARIAN_H_
00032
00033 #include "base/hash.h"
00034 #include <vector>
00035
00036 namespace operations_research {
00037
00038 void MinimizeLinearAssignment(const std::vector<std::vector<double> >& cost,
00039 hash_map<int, int>* direct_assignment,
00040 hash_map<int, int>* reverse_assignment);
00041
00042 void MaximizeLinearAssignment(const std::vector<std::vector<double> >& cost,
00043 hash_map<int, int>* direct_assignment,
00044 hash_map<int, int>* reverse_assignment);
00045
00046 }
00047
00048 #endif // OR_TOOLS_ALGORITHMS_HUNGARIAN_H_