Sounds like the Transportation problem, which is soluble using either the
transportation algorithm or (less efficiently) Linear Programming.
Try using Solver.
regards
Charles
__________________________________________________
The Excel Calculation Site
http://www.decisionmodels.com
"excel_lover" <(E-Mail Removed)> wrote in message
news:1F0557F7-E84F-4412-A8DD-(E-Mail Removed)...
> Hi,
> Im trying to automate a task and to optimise some road routes.
> I have a matrix, the matrix is a ready reckoner to help calculate milage
> between a source and its destination; the top row of the matrix has the
> destination and the left column has all the source sites.
> Each destination has an annual input capacity and each source has an
> annual
> production quantity aswell, these are kept in another two tables.
> I need to have excel work out the most efficient routes taking into
> consideration the source production and the destination site capacities.
> Ive been trying to find a suitable algorithm and have looked at
> Floyd-Warshall, Dijkstra's & Johnson's but none seem right.
> Please can anyone give direction on this or possibly help with the code.
> Thanks for your help.