![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm wondering if anyone's written an algorithm before, not necessarily in Databasic, but anything for that matter, which can find the closest match, or rather the closest utilisation of a series of delivery distances. I want to write a routine which takes a list of typical delivery times in minutes from base (for argument's sake, over 100 deliveries), such as 120 minutes, 55 minutes, 40 minutes, 100 minutes etc. and tries to find the best utilisation, fitting in as close as possible to the maximum time available during the working day. The deliveries would always be made from the base, in other words, there is no going from A to B to C. It would always be A to B and then back to A. Then A to C and then back to A. If I could loop through all the deliveries that need to be made, all of which will have an approximate number of minutes attached to them, and distribute them accordingly. While it's very easy to just keep on looping until I've reached no more than the maximum time for a day's work, that would not provide the most efficient utilisation, because someone might only fill 70% of a day's work, because the next order would take them over 100%. I thought it might be an interesting subject anyway and possibly a diversion from the strange posts that appear to be on the group! |
#3
| |||
| |||
|
|
I'm wondering if anyone's written an algorithm before which can find the closest match, or rather the closest utilisation of a series of delivery distances. |
#4
| |||
| |||
|
|
I'm wondering if anyone's written an algorithm before, not necessarily in Databasic, but anything for that matter, which can find the closest match, or rather the closest utilisation of a series of delivery distances. I want to write a routine which takes a list of typical delivery times in minutes from base (for argument's sake, over 100 deliveries), such as 120 minutes, 55 minutes, 40 minutes, 100 minutes etc. and tries to find the best utilisation, fitting in as close as possible to the maximum time available during the working day. The deliveries would always be made from the base, in other words, there is no going from A to B to C. It would always be A to B and then back to A. Then A to C and then back to A. ================================================== ============= |
#5
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |