+ Reply to Thread
Results 1 to 2 of 2

Solver : variable is or 0 or >100

  1. #1
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,418

    Solver : variable is or 0 or >100

    How is the syntax in Solver, when a variable (for example X1) is zero or if not, then at least 100.
    I know you have to add another binary variable (X2) with X1 > 100*X2 but how do you force X2 to be 1 if X1>0 ?
    Any value between 0.01 and 99.99 isn't allowed.
    Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Solver : variable is or 0 or >100

    How about putting a formula in another cell, and adding a constraint to make that cell TRUE
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    I haven't set up a scenario to test it but it wouldn't make sense to do that if it doesn't fit your problem. Consider posting a sample file for testing.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. [SOLVED] Solver variable constraint to limit % variable to whole percent.
    By Jiggers in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-01-2020, 01:17 PM
  2. [SOLVED] Solver - SolverAdd using variable in variable constrains doesn't work
    By drrazor in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-06-2014, 03:19 PM
  3. Using Excel as variable solver
    By tristyn in forum Excel General
    Replies: 35
    Last Post: 02-05-2012, 01:54 AM
  4. Simultaneous Variable Solver Help Needed
    By firemedictj in forum Excel General
    Replies: 4
    Last Post: 06-22-2011, 03:40 PM
  5. How can I set >= and <= constraints for 1 variable in SOLVER?
    By RAISETOWIN in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-16-2009, 12:17 AM
  6. Multi-variable Solver Issue
    By chawk01 in forum Excel General
    Replies: 1
    Last Post: 09-18-2006, 03:56 PM
  7. Using a variable in solver
    By Stephen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-10-2006, 11:15 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