+ Reply to Thread
Results 1 to 6 of 6

ABS() in Excel (Simplex) Solver (Dartboard problem)

  1. #1
    Registered User
    Join Date
    03-11-2010
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2007
    Posts
    4

    ABS() in Excel (Simplex) Solver (Dartboard problem)

    Hi

    I am trying to solve a linear programming problem. Essentially, it is trying to model the optimum layout for a dartboard by maximising the difference between the numbers (so 20 being next to 1 and 5, would give a difference of 19+15 = 34, and so on for all 20 numbers).

    My decision variables, are numbers 1..20 (let's say that are in B1..B20) and to calculate the difference I say '=ABS(B1-b2)' - and so on for all the other numbers. I do ABS as you do not know what order the decision variables will be presented.

    Of course, the ABS function in non-linear, so the problem cannot be solved using Simplex, but I'd really like to do that to ensure that I get the optimal solution.

    I have looked around and there are some posts that say how ABS can be represented in Excel Solver but, to be honest, I just don't get it.

    Can anybody help? I have attached my spreadsheet, in case anybody finds this useul.

    Note: This is not homework. I have a genuine interest as I want to develop some research from a few papers that I have been reading recently.

    Thx

    G
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,376

    Re: ABS() in Excel (Simplex) Solver (Dartboard problem)

    Are you constrained to use the ABS() function, or would a different function be okay? For something like this, rather than the ABS() function, I tend to use difference squared (x2-x1)^2. Like the ABS() function, it doesn't matter which order x1 and x2 are given, the result is still positive. The maximum in the sum of these differences squared would normally be in the same place as the sum of the ABS(difference), so the final result should be the same. The sum(difference^2) function does not have the discontinuities that are present in the ABS() function, so it tends to work better with Solver's algorithms.

    If that is allowed, that's my suggestion.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    03-11-2010
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: ABS() in Excel (Simplex) Solver (Dartboard problem)

    Thanks for this. squaring the difference is fine BUT it is still non-linear so suffers the same problem as ABS. That is the simplex algorithm will not work. But thanks for the suggestion.

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

    Re: ABS() in Excel (Simplex) Solver (Dartboard problem)

    Seems like a hard problem for Solver -- 20!/20/2 is a huge number.

    This gives an average distance of 10:

    12
    10
    11
    7
    18
    9
    14
    3
    16
    4
    20
    1
    13
    5
    15
    6
    17
    2
    19
    8

    I'm not sure it's possible to do better.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: ABS() in Excel (Simplex) Solver (Dartboard problem)

    Here is an interesting article on the Optimal Dartboard designed by a math professor. Opposite numbers add up to 20 or 22 and the numbers alternate between even an odd around the board.
    http://www.theguardian.com/science/a...-hits-bullseye

    Here is another article on the same dartboard layout:
    http://www.winmau.com/news/1703/Opti..._Sunday_Times/
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

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

    Re: ABS() in Excel (Simplex) Solver (Dartboard problem)

    I don't think you can do better than just 1, 20, 2, 19, ..., 10, 11

    Or 1, 11, 2, 12, ..., 10, 20
    Last edited by shg; 04-21-2015 at 10:24 PM.

+ 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. minimum spanning tree in excel solver simplex method
    By Mireille916 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-17-2015, 12:50 PM
  2. [SOLVED] Excel Solver Problem - I've never used it
    By mrr2 in forum Excel General
    Replies: 13
    Last Post: 04-08-2013, 03:44 PM
  3. [SOLVED] Simplex Method- excel problem
    By azimuiz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-30-2013, 04:00 AM
  4. Interesting Solver problem (Solver encounters an error)
    By MrShorty in forum Excel General
    Replies: 3
    Last Post: 12-22-2005, 06:55 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