#include <RLAPSolverHungarian.hpp>
Implementation for solving the rectangular linear assignment problem (more info here). The solver variant used here is called Hungarian Algorithm.
RLAPSolverHungarian::RLAPSolverHungarian |
( |
const Tensor< int > & |
mat, |
|
|
const int |
maxCost |
|
) |
| |
void RLAPSolverHungarian::solve |
( |
Tensor< unsigned > & |
assignments | ) |
|
|
overridevirtual |
Writes the solution of a given linear assignment problem to a given Tensor (n rows, 2 columns)
- Note
- Since the required inputs for RLAP solvers differ, they are not specified here
- Parameters
-
assignments | Tensor for the RLAP solution (must have the correct size) |
Implements RLAPSolver.
The documentation for this class was generated from the following files: