+ Reply to Thread
Results 1 to 3 of 3

Shortest Path Optimization

  1. #1
    Registered User
    Join Date
    09-15-2017
    Location
    United States
    MS-Off Ver
    2016
    Posts
    6

    Shortest Path Optimization

    Hi,

    I have a routing sequence for a set of machines on an assembly line. Each route has to go through the entire line (i.e. if you only run the first and second machine, you still account for the distance from the second to the end of the line).

    I have six different machines (720 possible combinations of machines) with fixed distances between each location on the line. The distance between the first and second machine is 100', the distance between second and third is 75', third and fourth is 75', fourth and fifth is 25', and fifth and sixth is 25'.

    I have 4 different products that have to run down the line, and each of them have a fixed routing.

    My problem is, how do I set up a vba code or solver that will allow me to run through all possible combinations of the line setup and determine the optimal setup for this line? Any machine can be placed at any location, as long as it optimizes the result! What are your thoughts?

    The four product routes are :
    A - B - C - D - F
    A - C - B - D – E - F
    A - F - E - D - C - B - A - F
    A - C - E - B - D – F

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Shortest Path Optimization

    Welcome to the board.

    Homework?

    Presumably there is a desired location for finished goods to end up along that path (maybe closest to the shipping department). But since they all start with A and end with F, it seems likely that those are the bookend machines, and you only need to optimize the four middle ones (24 permutations).

    Also, you would need to consider the quantities of each route, no? It it were {1000, 1, 1, 1}, you'd just optimize for the first route.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Shortest Path Optimization

    I put "excel shortest path" into my favorite internet search engine and got several hits. This was the first one: http://www.excel-easy.com/examples/s...h-problem.html I would suggest you start by studying this and other examples of the shortest path problems. Then work on adapting those examples to your specific scenario here. If you have trouble with a specific part of the algorithm, let us know and we'll see what we can do to help.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Need help to solve floyd warshall shortest path with vba
    By jimnguyen94 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-28-2018, 05:20 PM
  2. Shortest Path Between Cells (VBA)
    By basschmidt in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-18-2018, 06:07 PM
  3. Shortest Path between Locations (without repeating)
    By ciaran3 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-05-2017, 10:43 AM
  4. VBA that calculates the shortest path
    By den_1985 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-05-2016, 05:58 AM
  5. Shortest path problem with excel solver
    By halatehini in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-11-2016, 12:51 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1