+ Reply to Thread
Results 1 to 14 of 14

Excel Solver Product Scheduling

  1. #1
    Registered User
    Join Date
    08-23-2017
    Location
    Alabama, US
    MS-Off Ver
    2016
    Posts
    8

    Excel Solver Product Scheduling

    I am attempting to use Excel Solver to optimize the scheduling of products to reduce delays. The formulas I am using have IF and VLOOKUP functions. Based on the research I have done the solving method I should use is Evolutionary. From what I can tell once I run the solver the Lookup equations all reference the exact same cell, which is not how it is referenced before I run the solver. The only variable I am looking for the solver to modify is the order of the products.

    I have attached the spreadsheet any help would be greatly appreciated.
    Attached Files Attached Files
    Last edited by dgcussblazer; 08-23-2017 at 01:35 PM. Reason: Corrected File

  2. #2
    Valued Forum Contributor
    Join Date
    07-10-2017
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2013
    Posts
    430

    Re: Excel Solver Product Scheduling

    I changed the formula of "L1" to
    Please Login or Register  to view this content.
    And it seems to work totally fine. Not sure I'm understanding what you're saying about the Lookup equations.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-23-2017
    Location
    Alabama, US
    MS-Off Ver
    2016
    Posts
    8

    Re: Excel Solver Product Scheduling

    Sorry that Sum was already supposed to be there copied over this sheet and it wouldn't copy over the formula so had to recreate them all, guess I missed that one. What I am referring to is after you run the Solver the Vlookup will only reference whatever cell it Orders as 1 for every Vlookup formula throughout the sheet. You can see this by evaluating a few of the formulas with "Evaluate Formula" in the Formula tab. After I sort the order the Vlookup formulas reset and reference the correct cells, but once sorted it doesn't give the optimum ordering. I can sort manually by Time then Temp and get a Delay around

  4. #4
    Registered User
    Join Date
    08-23-2017
    Location
    Alabama, US
    MS-Off Ver
    2016
    Posts
    8

    Re: Excel Solver Product Scheduling

    Delay around 1600

  5. #5
    Registered User
    Join Date
    08-23-2017
    Location
    Alabama, US
    MS-Off Ver
    2016
    Posts
    8

    Re: Excel Solver Product Scheduling

    All Temp and Time Changes and Delays have 0 values after solver runs except one row. This is not possible. If you evaluate the formula and follow what data it pulls in it doesn't pull in the correct reference.

  6. #6
    Registered User
    Join Date
    08-23-2017
    Location
    Alabama, US
    MS-Off Ver
    2016
    Posts
    8

    Re: Excel Solver Product Scheduling

    Added corrected file. It was missing an iferror function.
    Attached Files Attached Files

  7. #7
    Valued Forum Contributor
    Join Date
    07-10-2017
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2013
    Posts
    430

    Re: Excel Solver Product Scheduling

    Ok I have absolutely no idea why those VLOOKUPs were not working, but I think I fixed the problem by changing your formula to something that uses INDEX and MATCH. Let me know if this is what your end goal is
    Attached Files Attached Files

  8. #8
    Valued Forum Contributor
    Join Date
    07-10-2017
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2013
    Posts
    430

    Re: Excel Solver Product Scheduling

    Oh never mind I didn't realize the other column was incorrect as well I'll have to have a look at that

  9. #9
    Valued Forum Contributor
    Join Date
    07-10-2017
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2013
    Posts
    430

    Re: Excel Solver Product Scheduling

    Updated version: Delay = 1595
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    08-23-2017
    Location
    Alabama, US
    MS-Off Ver
    2016
    Posts
    8

    Re: Excel Solver Product Scheduling

    Thank you so much!! I couldn't figure out how to do it other than vlookup.

    The solver runs now and gives an answer, but it isn't as optimal as I can get it sorting manually (it is close though). If you have any experience with the evolutionary settings, what setting should I change to get a better result before it stops?

  11. #11
    Registered User
    Join Date
    08-23-2017
    Location
    Alabama, US
    MS-Off Ver
    2016
    Posts
    8

    Re: Excel Solver Product Scheduling

    Yea I noticed the other column wasn't changed to INDEX and MATCH so I changed it and ran it. I got it down to 1595 through the solver as well but through manually sorting a few rows I was able to get it down to 1540. So trying to figure out how I can get the solver to arrive to the same conclusion. Trying to change the mutation rate to see if that helps.

  12. #12
    Valued Forum Contributor
    Join Date
    07-10-2017
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2013
    Posts
    430

    Re: Excel Solver Product Scheduling

    I'm not really sure sorry - I've only ever used the Linear settings for the solver. From what I understand though, increasing the mutation rate to something closer to 1 should get you to a better solution, but I'd do it slowly as it may drastically increase the time it takes.
    I tried running it with non-linear and it's already gone through 85,000 iterations (it's been running for ~5 minutes). I have no idea if it will actually reach a solution just figured it was worth a shot
    Edit: I paused it and the current best solution is 1485, so it definitely does give a good answer, it will just take an extremely long time to find the optimal one

  13. #13
    Registered User
    Join Date
    08-23-2017
    Location
    Alabama, US
    MS-Off Ver
    2016
    Posts
    8

    Re: Excel Solver Product Scheduling

    Thanks again, you have been a huge help. I changed the mutation rate and put a max run time on it and got it down to 1470. I will close this post as solved.

  14. #14
    Valued Forum Contributor
    Join Date
    07-10-2017
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2013
    Posts
    430

    Re: Excel Solver Product Scheduling

    Glad I could help!

+ 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. Excel solver - Trouble with linear programming using solver excel
    By spicyscreamer in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-04-2017, 08:01 AM
  2. Abstaining from using table in solver for workforce scheduling?
    By Sinda in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 03-03-2014, 06:46 PM
  3. Scheduling: Calendar style scheduling based on scheduling list
    By denkatprieto in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 12-19-2012, 11:10 AM
  4. Excel Solver Problem with Product Mix Ratios
    By MatteoGritti in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-18-2012, 11:04 AM
  5. Timetable Scheduling - Solver error
    By saikarthik in forum Excel General
    Replies: 0
    Last Post: 08-14-2012, 08:07 PM
  6. Replies: 1
    Last Post: 07-07-2012, 03:13 PM
  7. Replies: 0
    Last Post: 07-03-2012, 12:15 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