+ Reply to Thread
Results 1 to 2 of 2

Excel Solver: Result should be in range (e.g. 0..5)

  1. #1
    Registered User
    Join Date
    09-30-2016
    Location
    Munich, Germany
    MS-Off Ver
    2013
    Posts
    17

    Excel Solver: Result should be in range (e.g. 0..5)

    Hello all,

    is there a way in the Excel Solver to get a result within a certain range? I have some a combination of several Multiply & Divides (plus afterwards an ABS) and I need to get into a resulting area from 0..5.

    Setting up the solver and constraining it for the variables works. However what I am missing is a way to communicate the desired result-window to the tool. Any idea?

    An idea that I tried was with an additional IF-statement, if result > 5 then the cell would be 1, otherwise it would be 0. But that caused the solver to not find anything.

    Cheers

    Moadll

  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: Excel Solver: Result should be in range (e.g. 0..5)

    Have you tried to set a constraint to the object cell as well as the "Min", "Max" or equal to? That could work if there is a value that fulfills all constraints in the range 0 to 5. So the target cell should be set to => 0 and =< 5.

    Solver is not happy with discontinuous functions like "IF". The "Evolutionary" solver engine can work with it so if you have not tested it have a go at it. Instead of using the "ABS" function you could try specify result to be integer.


    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. Solver doesn't return a result
    By cavalieregiuseppe in forum Excel General
    Replies: 1
    Last Post: 08-10-2018, 01:44 AM
  2. Solver - Best method/options possible to get desired result
    By Tombo746 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-20-2017, 06:27 PM
  3. Solver not finding optimium Result
    By EricGoldman in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-26-2016, 12:00 PM
  4. Solver Installed, but not generating a result
    By EricGoldman in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-02-2016, 01:44 PM
  5. [SOLVED] Independent Variable in Solver affect the result
    By ruecel in forum Excel General
    Replies: 2
    Last Post: 08-27-2015, 11:05 PM
  6. Disable Solver Result Dialog Box & Display Result in Cell
    By yauchildchew in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-04-2010, 01:46 PM
  7. Error running Macro/Solver result
    By JDMxB in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-23-2005, 06:10 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