Code covered by the BSD License  

Highlights from
Faster Jonker-Volgenant Assignment Algorithm

Be the first to rate this file! 12 Downloads (last 30 days) File Size: 4.87 KB File ID: #30838

Faster Jonker-Volgenant Assignment Algorithm

by Eric Trautmann

 

23 Mar 2011

This is a modification made to Yi Cao's original JV algorithm code.

| Watch this File

File Information
Description

This updated version performs the JV algorithm for a standard assignment problem for only valid entries in the cost matrix.

The modification removes rows and columns of the matrix where all values are inf, which is useful for applications where it is necessary to mask off certain assignments, such as in the k-best assignment algorithm (Murty algorithm).

The improvement in the runtime is dependent upon how many rows/cols are masked, but can be as 7-20x for many cases.

Yi Cao agreed to let me post this update, and the majority of the code is his.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
LAPJV - Jonker-Volgenant Algorithm for Linear Assignment Problem V2.5

MATLAB release MATLAB 7.11 (2010b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
08 Dec 2011 yanchuan sim

hi

i ran this code on a 7036x3597 matrix and there seem to be a bug in the section where you pad the output matrix to look like munkres.

for rowind=1:size(dMat,1)
    assignment_small(rowind,rowsol(rowind))=1;
end

the error i got was the code trying to access rowsol(3598), when rowsol only has 3597 rows. It worked fine when i transposed my input data (so that there are more columns than rows).

Thanks.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
assignment algorithm Eric Trautmann 24 Mar 2011 10:21:04
lapjv Eric Trautmann 24 Mar 2011 10:21:04
linear assigment Eric Trautmann 24 Mar 2011 10:21:04
operations research Eric Trautmann 24 Mar 2011 10:21:04
data association Eric Trautmann 24 Mar 2011 10:21:04

Contact us at files@mathworks.com