+ Reply to Thread
Results 1 to 7 of 7

Solver spreadsheet setup help needed

  1. #1
    Forum Contributor
    Join Date
    06-19-2014
    Location
    Toronto, Canada
    MS-Off Ver
    Office365
    Posts
    273

    Solver spreadsheet setup help needed

    Hello,

    I need to solve a question related to optimizing the allocation of meters/risers among modules. relationship among the three is:

    each riser has multiple meters attached to it, and one riser can hold max 128 meters, the number of meters each riser has will be given (not variable)

    each module can hold max 128 meters.


    goal is to minimize the number of modules needed while assigning all of the risers and the related meters to a module. and the number of meters in a riser can't be split.

    i.e.
    Riser# No.Of meters
    1 99
    2 111
    3 71
    4 18
    5 5
    6 128

    so in this case
    one solution would be
    module 1 will hold riser 6 (total number of meters 128)
    module 2 will hold riser 1, 4, 5 (total number of meters 122)
    module 3 will hold riser 2 (number of meters 111)
    module 4 will hold riser 3 (number of meters 71)
    this solution requires 4 modules.

    I'm not sure how to set this up properly using solver, attached is not working, can someone please help?
    Attached Files Attached Files

  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 spreadsheet setup help needed

    Perhaps a model like this?

    There are two different solvers. The first sheet uses the Excel solver and the second sheet uses the freebie OpenSolver developed by the University of Auckland NZ.

    This freebie can be downloaded from this link: https://opensolver.org/

    Alf
    Attached Files Attached Files

  3. #3
    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 spreadsheet setup help needed

    An alternative Excel solver setup with formula explained in image.

    alternative_setup.jpg



    Alf
    Attached Images Attached Images
    Last edited by Alf; 01-27-2023 at 08:34 AM.

  4. #4
    Forum Contributor
    Join Date
    06-19-2014
    Location
    Toronto, Canada
    MS-Off Ver
    Office365
    Posts
    273

    Re: Solver spreadsheet setup help needed

    Thank you so much for your help!

    I downloaded the OpenSolver but I can't get the menu to show in the ribbon. I'm able to see the addin code in VBE though. Do you know why?

    Attachment 815235
    Capture.PNG
    so much appreciated!
    Last edited by lynnsong986; 01-27-2023 at 10:20 AM.

  5. #5
    Forum Contributor
    Join Date
    06-19-2014
    Location
    Toronto, Canada
    MS-Off Ver
    Office365
    Posts
    273

    Re: Solver spreadsheet setup help needed

    oh nvm I saw it is under Data...thank you so much again!

  6. #6
    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 spreadsheet setup help needed

    Find the folder where you have installed the OpenSover to. Then click on the file "OpenSolver.xlam" then lick on button marked "Open" to install "OpenSolver" to excel. Close folder and activate your excel sheet and click on the "Data" tab.

    asolve_icon.jpg

    Depending on how you wish to run solver you can either click on the "OpenSolver" icon. In this case my uploaded file contains the solver model build in excel. OpenSolver can read excels solver models.

    If you wish to use OpenSolver in a macro you can still build you model in excel but a reference must be set to both solver and OpenSolver in VBA.

    In this example model building is done in excel but the run command is for "OpenSolver"

    Please Login or Register  to view this content.


    Alf
    Last edited by Alf; 01-27-2023 at 10:54 AM.

  7. #7
    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 spreadsheet setup help needed

    You are welcome

    I see you have sorted your problem out good!

    Alf

    Ps Thanks for the rep.

+ 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 setup for list cutting
    By Alf in forum Tips and Tutorials
    Replies: 7
    Last Post: 08-06-2020, 05:24 AM
  2. Replies: 8
    Last Post: 02-12-2020, 01:19 PM
  3. Simple Open Solver Setup Not Working
    By chicagoland8 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-02-2018, 12:44 AM
  4. VBA Code Needed so Page Setup Dialog box will not Display
    By snelson0713 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-28-2013, 06:04 PM
  5. spreadsheet setup help
    By lenoble22 in forum Excel General
    Replies: 1
    Last Post: 06-01-2012, 11:38 AM
  6. How to setup excel spreadsheet with SOLVER with data given as below
    By Jello1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-08-2012, 12:32 AM
  7. how to setup a spreadsheet with addresses
    By name, address and bills paid in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 04-14-2005, 02:06 PM

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