#include <RLAPSolverJV.hpp>
Public Member Functions | |
RLAPSolverJV (const Tensor< int > &mat) | |
void | solve (Tensor< unsigned > &assignments) override |
Implementation for solving the rectangular linear assignment problem (more info here). The solver variant used here is called Jonker-Volgenant algorithm.
This implementation is based on hrldcpr/pyLAPJV, which itself is based on a C implementation by Roy Jonker.
RLAPSolverJV::RLAPSolverJV | ( | const Tensor< int > & | mat | ) |
Constructor for RLAPSolverJV.
[in] | mat | 2D-Matrix of cars and rides with earned points |
|
overridevirtual |
Writes the solution of a given linear assignment problem to a given Tensor (n rows, 2 columns)
assignments | Tensor for the RLAP solution (must have the correct size) |
Implements RLAPSolver.