Solved

How to use Jonker's LAP Linear Assigment Prolem code

Posted on 2006-11-04
6
1,346 Views
Last Modified: 2008-01-09
Hello,

I'd appreciate any help on how to use Jonker's LAP, something like an "user guide" or some samples.
The only info I have is inside the code itself:
/*
*  lap.cpp
   version 1.0 - 4 September 1996
   author: Roy Jonker @ MagicLogic Optimization Inc.
   e-mail: roy_jonker@magiclogic.com

   Code for Linear Assignment Problem, according to
   "A Shortest Augmenting Path Algorithm for Dense and Sparse Linear  
    Assignment Problems," Computing 38, 325-340, 1987
   by
   R. Jonker and A. Volgenant, University of Amsterdam.
*/

Unfortunatelly there is no information about LAP at those organizations' sites anymore.
I'd like to apply LAP in place of the simple DFS I used in my branch-and-bound CVRP solver.

Please note this is not homework. I have already done my assignments at my graduate course, when I used DFS and a LP version with the huge SYMPHONY package in similar problems. What I'm like now is a light solution by using public domain software.

Thanks in advance,
Jose
0
Comment
Question by:JoseParrot
  • 2
  • 2
6 Comments
 
LVL 27

Expert Comment

by:aburr
ID: 17873765
Have you tried looking at
"A Shortest Augmenting Path Algorithm for Dense and Sparse Linear  
    Assignment Problems," Computing 38, 325-340, 1987
?
0
 
LVL 18

Author Comment

by:JoseParrot
ID: 17885816
Of course. Not only read it but I've paid US$ 30 for this paper a few weeks ago. Although the algorithm is presented, there is no samples. I had used this code in C and the results were very far to the expected, obviously because I'm using it wrongly. As this LAP code is widely cited in many papers (I have read a number of them) this reinforces that I didn't understood the original paper. Probably it is a little but important detail I wasn't able to see...

I had the hope of one of the experts around knew this program and have used it.
Meanwhile I'm trying to understand it.

Jose
0
 
LVL 27

Expert Comment

by:aburr
ID: 17886978
"Meanwhile I'm trying to understand it."
and if you, do you will be ahead of me.
0
 
LVL 18

Author Comment

by:JoseParrot
ID: 18248302
Hi,

I have discovered that the C code I have  has a bug.
Then I have ported the Pascal code, from the cited paper, to C and compared it with the C code I had and notice some significant differences. The problem is that the C code was distributed by a graduation teacher as an additional resource for solving the TSP, and, was supposed to be correct. Oh, it make me spent a time!

So what I can do is to advice: if you find elsewhere codes named lapjv.c or lap.c or lapjv.pas around, probably they are wrong. The only correct solver for the Linear Assignment Problem, by R. Jonker and A. Volgenant, is the one described in such paper. Despite the age (the paper is 10 years old), it is very useful and fast. Really good algorithm and code.

As I didn't received answers, I'll ask for the deletion of the question.
Anyway, thanks, aburr, for your attention.

Jose
0
 
LVL 1

Accepted Solution

by:
DarthMod earned 0 total points
ID: 18317224
PAQd, 500 points refunded.

DarthMod
CS Moderator
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Octane 98 vs 95 petrol / gasoline : mileage,  pros & cons 10 82
Group Data Frequency Distribution 9 39
Perecntage 4 51
Graph Function 6 62
Introduction On a scale of 1 to 10, how would you rate our Product? Many of us have answered that question time and time again. But only a few of us have had the pleasure of receiving a stack of the filled out surveys and being asked to do somethi…
Complex Numbers are funny things.  Many people have a basic understanding of them, some a more advanced.  The confusion usually arises when that pesky i (or j for Electrical Engineers) appears and understanding the meaning of a square root of a nega…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now