+ Reply to Thread
Results 1 to 4 of 4

Macro Sover Loop Help

  1. #1
    Registered User
    Join Date
    11-03-2013
    Location
    Manchester,England
    MS-Off Ver
    Excel 2013
    Posts
    2

    Macro Sover Loop Help

    I am very new to Macro!

    I have a simple solver program that wants to go through columns rather than rows. I had a play about to try and model this but it says there is a global error
    How do I go about this?

    Please Login or Register  to view this content.
    Please help!
    Thank you
    Last edited by arlu1201; 05-01-2014 at 10:46 AM. Reason: Use code tags.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,650

    Re: Macro Sover Loop Help

    Hi,

    Isn't a problem caused by trying to add i within quotation marks?

    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    11-03-2013
    Location
    Manchester,England
    MS-Off Ver
    Excel 2013
    Posts
    2

    Re: Macro Sover Loop Help

    Thank you!
    This has solved my problem!
    Also, my solver command in this macro isn't finding the best solution, is there a reason for this?

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

    Re: Macro Sover Loop Help

    Short but useless answer, I'm sure there is a reason it is not finding the best solution. It will probably be next to impossible to talk more specifically without seeing the actual model you are using.

    One common reason that I see is users who don't really understand how Solver finds solutions. By default, Solver uses Newton-Raphson type algorithms. These kind of algorithms start where you tell them to start, and go downhill until they get to the bottom of a valley. However, these kind of algorithms have no way of knowing if the valley they found is the lowest possible valley. In order to find the lowest possible valley using NR type algorithms, you have to know where to start the search so you are somewhere on the slope that leads into the lowest possible valley.

    Or you could try the Evolutionary algorithm (available in Solver after Excel 2010). I don't fully understand how EA algorithms work, but they sometimes do better in cases where there are multiple valleys because these algorithms can use multiple "seed" values.
    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. using VBA to paste values obtained with sover.
    By Juddel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-29-2013, 08:39 AM
  2. Novice with VBA and macro writing needing help to loop a macro unti no data
    By jrongone in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-25-2013, 12:19 PM
  3. [SOLVED] Copy dynamically changing column and Paste using VBA Loop (Loop within Loop)
    By nixon72 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-12-2013, 12:46 PM
  4. Macro to delete rows with a Zero value. Macro seems to be in continual loop
    By jnorri in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-07-2012, 03:20 PM
  5. Macro Loop Broken. Detects Max but doesn't continue loop
    By herchenbach in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2011, 12:17 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