+ Reply to Thread
Results 1 to 5 of 5

Traveling sales person problem

  1. #1
    Registered User
    Join Date
    10-22-2016
    Location
    indianapolis
    MS-Off Ver
    MS office 2010
    Posts
    4

    Traveling sales person problem

    Hello everyone,

    I am currently working on a traveling salesperson problem. My problem has 1 node/depot and 13 delivery destinations. I have most of it completed but need to add a constraint in solver that after 6 deliveries the truck returns to the node/depot. attached is my .xls file. How do I set this up? My first thought is to simply add a Line in T11 and V11 with the constraint that T11=0 in solver but then solver will not run the alldifferent for the rest of the cities. I'm not looking for someone to do it for me just some help on setting up the constraints. I'm not sure how to set up a sub-tour for the problem. Hopefully I post this in the correct area. Thank you for your help.
    Attached Files Attached Files
    Last edited by spence7607; 10-23-2016 at 11:40 AM.

  2. #2
    Registered User
    Join Date
    10-22-2016
    Location
    indianapolis
    MS-Off Ver
    MS office 2010
    Posts
    4

    Re: Traveling sales person problem

    Bump No response

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Traveling sales person problem

    Do you enter those routes in T column manually?
    If you put 0 after 11 what will be next route (now is 6)?

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    10-22-2016
    Location
    indianapolis
    MS-Off Ver
    MS office 2010
    Posts
    4

    Re: Traveling sales person problem

    The numbers in the T column should be entered by solver (as my changing cells), representing each customer from the array, to minimize the travel distance. T11 was added by me to take into account the return to the DC before heading out to the next 6 deliveries. This is were I'm having difficulty. I need solver to calculate the shortest route but with T11 needing to be 0 (representing the DC) I can't figure out how to add the constraint that each customer be visited only once. Without the return to the depot at T11 I can run it as Evolutionary and use $T5$:$T17$=alldifferent, but by throwing that return to depot in it wont run since T11=0 isn't a valid constraint for the alldifferent function. Is there some other way to make the cells do the same function as the =alldifferent?

  5. #5
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Traveling sales person problem

    Interesting problem but I've not managed to solve it yet, on the other hand I'm not sure I can do so. As you say the problem is with the "Alldifferent" setting. I can't manage to set any constraints to those cell because excel complains.

    And if I test splitting the range in two parts setting each part as "Alldidderent" then I just get numbers 1 to 6 twice instead of 1 - 13.

    By the way I'm using the setup described in this youtube link:

    https://www.youtube.com/watch?v=-E3rSoClgMI

    Don't know if you are familiar with it.

    When you get a solution could you please post this in this thread as I would really like to see how this kind of problem could be solved.

    Alf

+ 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. Replies: 1
    Last Post: 07-31-2016, 03:37 AM
  2. Replies: 2
    Last Post: 09-11-2015, 07:13 AM
  3. Traveling salesman problem Algorithm
    By ayguo60 in forum Excel General
    Replies: 3
    Last Post: 07-02-2015, 01:43 PM
  4. [SOLVED] Calculate total sales adjustments for each sales person
    By Adama in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-02-2012, 06:26 PM
  5. Replies: 9
    Last Post: 09-01-2012, 07:25 AM
  6. Excel 2007 : Traveling salesman problem
    By Pink_123 in forum Excel General
    Replies: 0
    Last Post: 05-06-2011, 09:02 PM
  7. Traveling Salesman Problem
    By davegugg in forum Excel Charting & Pivots
    Replies: 11
    Last Post: 07-20-2010, 03:54 PM

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