+ Reply to Thread
Results 1 to 4 of 4

How to get solver to return only whole numbers?

  1. #1
    Registered User
    Join Date
    03-27-2008
    Posts
    5

    How to get solver to return only whole numbers?

    Hi everyone,

    I'm working on a problem where I have to find the greatest possible revenue by stocking shelves with single cans, 6-packs, and 12-packs. I have it all set up but the answer that solver gives me returns a decimal for number of 12-packs, which isn't possible. Is their a way to make it so solver only returns whole numbers in the answer? I attached the spreadsheet I'm working on if it'll be any help. Thank you
    Attached Files Attached Files

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Without looking at your example, add a constraint that the result must be an integer. Various constraints are standard features of Solver.

  3. #3
    Registered User
    Join Date
    03-27-2008
    Posts
    5
    awesome, that solved it, thank you very much.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Glad it worked, you're welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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