+ Reply to Thread
Results 1 to 3 of 3

Solver variable constraint to limit % variable to whole percent.

  1. #1
    Registered User
    Join Date
    12-18-2012
    Location
    Gladstone Manitoba Canada
    MS-Off Ver
    Excel 2019 and 2003
    Posts
    6

    Solver variable constraint to limit % variable to whole percent.

    How do I apply a constraint to limit a percent variable to solve to a whole percent, like 16% not 16.46%.
    I am using Excel 2019
    Thank you.
    Last edited by Jiggers; 08-01-2020 at 12:24 PM. Reason: Additional information

  2. #2
    Valued Forum Contributor
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    Office2010
    Posts
    674

    Re: Solver variable constraint to limit % variable to whole percent.

    the 16% is added manually or a part of a calculation?
    what is the calculation?

  3. #3
    Forum Contributor
    Join Date
    07-15-2018
    Location
    Udine - Italy
    MS-Off Ver
    Office 365
    Posts
    160

    Re: Solver variable constraint to limit % variable to whole percent.

    Quote Originally Posted by Jiggers View Post
    How do I apply a constraint to limit a percent variable to solve to a whole percent, like 16% not 16.46%.
    Without a clear example (see the yellow banner above), here is a general advice.

    You can define a variable of type int (integer) in the Solver mask, and then use in your calculations the value int/100.

    In order to help Solver finding a solution, the variable should be as much constrained as possible. For instance, set it to be greater than 5 and smaller than 20, depending on the problem/model you are facing.

    HTH,

    Francesco
    Last edited by Hydraulics; 08-01-2020 at 03:29 PM.
    Aim high or don't even try.
    --------------------------------
    If you find an answer helpful, click on the star icon at the bottom of the post.

+ 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: 3
    Last Post: 02-10-2020, 03:06 PM
  2. 255 Variable length limit?
    By ptmuldoon in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-15-2016, 11:02 PM
  3. [SOLVED] How to SUM columns using a variable limit
    By insomniac53 in forum Excel General
    Replies: 3
    Last Post: 05-17-2015, 02:20 PM
  4. [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
  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. compound principal and interest at a variable percent a day
    By Stevej in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-10-2008, 01:24 PM
  7. [SOLVED] 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