No such thing as a small change | |
PerlMonks |
Re: Efficient Assignment of Many People To Many Locations?by SmugX (Beadle) |
on Feb 25, 2005 at 17:33 UTC ( [id://434585]=note: print w/replies, xml ) | Need Help?? |
Thanks to all the contributors so far. What I seem to be sensing it that my idea wasn't too bad (hooray!), and if I try with different starting conditions, and occasionally allow "unfavourable" moves (as described by itub), I might be close to the right track. (Although see my response to dragonchild above, where I ponder whether simple distance travelled might be a good enough scoring mechanism for me.)
In my simplistic mind, the genetic algorithm solution sounds like a more complex method of roughly the same approach. (Although I need to investigate this further, really.) I haven't really got my head around the suggested ILP approach, to be frank, but I can look into this further. For the record, I'm talking of hundreds of sales reps in hundreds of locations, so I don't think the brute force method won't work with the computing power I have available. Also for the record, I'm not required to find the optimum solution to a situation - merely a good one!
Thanks again, all, P.S. Incidentally, I'm by no means a regular on perlmonks - certainly not as much as I'd like to be - but I'm always so impressed by everyone's knowledge, helpfulness and courtesy. You're all great. Have a drink on me. P.P.S. I'm just kidding about the drink.
In Section
Seekers of Perl Wisdom
|
|