RideDistributor  0.0.1
 All Classes Namespaces Files Functions Variables Typedefs Macros Pages
Classes | Public Member Functions | List of all members
RLAPSolverHungarian Class Reference

#include <RLAPSolverHungarian.hpp>

Inheritance diagram for RLAPSolverHungarian:
RLAPSolver

Public Member Functions

 RLAPSolverHungarian (const Tensor< int > &mat, const int maxCost)
 
void solve (Tensor< unsigned > &assignments) override
 

Detailed Description

Implementation for solving the rectangular linear assignment problem (more info here). The solver variant used here is called Hungarian Algorithm.

Constructor & Destructor Documentation

RLAPSolverHungarian::RLAPSolverHungarian ( const Tensor< int > &  mat,
const int  maxCost 
)

Member Function Documentation

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
assignmentsTensor for the RLAP solution (must have the correct size)

Implements RLAPSolver.


The documentation for this class was generated from the following files: