+ Reply to Thread
Results 1 to 2 of 2

Solver: Changing constraint throws error message, Bug or Misuse?

  1. #1
    Registered User
    Join Date
    04-30-2013
    Location
    London, United States
    MS-Off Ver
    Excel 2013
    Posts
    74

    Solver: Changing constraint throws error message, Bug or Misuse?

    Hi All,

    I am configuring the solver Add-in for a specific problem i would like to run it on.

    I am going to try to explain this on a high level, as, as far as I can tell, this seems to be a high-level issue. If digging into the details is required, i will be glad to provide more detail.

    Following:

    I have a constraint in the solver Add-in, which you can see in following screenshot, marked in yellow ($B$5 >= $B$3 + 1):

    Solver1.PNG


    I want to change this constraint to

    $B$5 >= $B$4 + 1

    I try doing this by:

    1) Selecting the constraint via mouse-click

    2) "Clickling" the "Change"-Button

    3) Manually changing the "3" to "4" (see following screenshot)

    Solver2.PNG


    However, I get following error message:

    Solver3.PNG

    Not that I think that it should be of any concern to the solver, but both $B$3 and $B$4 are dates, formatted in the exact same way as dates.

    Using the unmodified constraint throws no error message from the solver. However changing the constraint from

    $B$5 >= $B$3 + 1


    to

    $B$5 >= $B$4 + 1


    throws the error message detailed above in the screenshot.

    Have I found some kind of weird bug? Or is there something obvious, that I am missing, in order to get this to work?



    THANK YOU!

  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: Solver: Changing constraint throws error message, Bug or Misuse?

    It seems that certain values in the solver setup can't be "partly" changed. You must change all of i.e delete the "old" value and add the new one.

    In my example the range $D$19:$D$26 was defined as integer and trying to change the range to $D$19:$D$24 gives the same warning

    a_solv_err.jpg

    Could it be that the range is fixed in position (row, column) with the $ when one setup the model?

    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: 0
    Last Post: 09-22-2015, 06:09 PM
  2. Replies: 0
    Last Post: 03-31-2015, 12:55 PM
  3. Solver, # of categories used Constraint
    By exitonly in forum Excel General
    Replies: 8
    Last Post: 05-16-2013, 06:57 AM
  4. Can't start Solver. Error message says Solver.xlam already open.
    By DaveHills in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 1
    Last Post: 10-21-2012, 11:02 AM
  5. BUY-IN Constraint in Solver
    By WhamBam in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-07-2012, 02:30 AM
  6. [SOLVED] Add Constraint - "Solver:
    By tikchye_oldLearner57 in forum Excel General
    Replies: 2
    Last Post: 08-14-2006, 01:40 AM
  7. [SOLVED] solver constraint
    By jojo in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-18-2005, 10:06 AM

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