+ Reply to Thread
Results 1 to 4 of 4

Making a distance calculator with time optimization

  1. #1
    Registered User
    Join Date
    05-05-2016
    Location
    Trondheim
    MS-Off Ver
    2013
    Posts
    2

    Question Making a distance calculator with time optimization

    I am trying to make a distance calculator with time opimization. Every point is marked with coordinates. The goal of this document is to make an attack planner for a strategy game.

    This is what I got so far:

    c86f8fa1ee4e8d9513b025ecae2d76d1.png

    The first sheet displays information for my villages (points with coordinates)
    The second sheet displays information for the enemy targets (also points with coordinates)
    The third sheet (which is shown) is showing distance between a taget village (B1) and all of my villages.

    Is there a way to use the hungarian algorithm or excel solver to find the best routes (min time between first and last hit) for my villages to hit x targets (yellow table to the right on the picture)?


    The guy who tried help me set this up is not around anymore, and I am not able to finish it by myself. I have never used VBA or solver, so please be very specific when explanining Thank you so much in advance!

    EDIT: If anyone would like to make the whole attack planner for me, I would be happy to pay for it! Take concact with email removed to discuss price and product, since this is a free forum. (I guess this is ok with the forum rules since making the planner for me is not what I am originally asking. If it is violating the forum rules, please remove this edit)
    Last edited by FDibbins; 05-06-2016 at 02:49 AM.

  2. #2
    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: Making a distance calculator with time optimization

    Your problem reminds me a bit about ”the travelling salesman” problem were a salesman should visit a number of cities in such an order that his total travel was the shortest possible.
    Then of course the salesman of my days did not travel in nukes delivering death and destruction.
    O tempora o mores!
    As you have Excel 2013 you have the ”Evolutionary” solver engine and this youtube link shows a setup for the ”travelling salesman

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


    As the excel solver models are not that powerful (by design) the number of villages you may nuke are limited but probably sufficient for a small scale war.
    Alf

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Making a distance calculator with time optimization

    MasterSplinter welcome to the forum

    1. I have removed your email, it is never a good idea to post that kind of info on a public forum.
    2. While the majority of the forum is indeed free, we do also have a Commercial Services forum where, for a fee, you can get attention from our top level gurus
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    05-05-2016
    Location
    Trondheim
    MS-Off Ver
    2013
    Posts
    2

    Re: Making a distance calculator with time optimization

    Thank you for the replies! I will check out your link Alf! As for the email, I have an email-account that I only use for the game so I am not too concerned about spam. I got contacted by a guy who wanted to give it a shot, but thank you for informing me about your Commercial Services anyways!

+ 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. UK Postcode Distance Calculator
    By Pete_UK in forum Excel Tips
    Replies: 15
    Last Post: 10-18-2022, 05:01 AM
  2. Distance calculator between indian cities.
    By satputenandkumar0 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-11-2014, 04:27 AM
  3. Excel Distance Calculator
    By woftis in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-15-2013, 09:32 AM
  4. UK Postcode Distance Calculator
    By darrenjohnson in forum Excel General
    Replies: 10
    Last Post: 12-08-2011, 04:35 AM
  5. Distance Calculator
    By Subwind in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-09-2011, 01:04 AM
  6. distance calculator and resource assignment
    By alinmihalcea in forum Excel General
    Replies: 1
    Last Post: 03-25-2010, 06:37 AM
  7. Distance rate calculator
    By truman40 in forum Excel General
    Replies: 7
    Last Post: 11-23-2009, 04:49 PM
  8. Excel Zip Code Map & Distance Calculator
    By Merlin54k in forum Excel General
    Replies: 1
    Last Post: 05-11-2007, 05:27 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