Solver speed up help

leigh740

New Member
Joined
Jun 26, 2023
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi

I am trying to use Solver to put together orders to make a load percentage of 85%. I have the below;
DateCustomerOrder NoPercentage
25/06/2023​
Customer A12
26/06/2023​
Customer A26
26/06/2023​
Customer A335
27/06/2023​
Customer A418
27/06/2023​
Customer A55
27/06/2023​
Customer A64
27/06/2023​
Customer A78
27/06/2023​
Customer A815
27/06/2023​
Customer A919
27/06/2023​
Customer A106
27/06/2023​
Customer A116
27/06/2023​
Customer A1211
27/06/2023​
Customer A1323
27/06/2023​
Customer A1431
27/06/2023​
Customer A156
27/06/2023​
Customer A1638
27/06/2023​
Customer A1736
27/06/2023​
Customer A1832
27/06/2023​
Customer A1919
27/06/2023​
Customer A205
27/06/2023​
Customer A2136
27/06/2023​
Customer A2214
27/06/2023​
Customer A2358

The sheet also has a sumproduct based on the percentage column (d2:d30) then j2:j30. Solver tries to make the sumproduct equal 85 by changing the characters in j2:j30 as binary characters. Initially solver used to take about a minute but now takes into the tens of minutes. Is there any advice on how to speed up the solver please?

Thanks in advance
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Looking at your problem I assume you wish maximize the number of loads that adds up to 85%. The total weight of the 23 orders are 433. This number divided by 85 is 5.094. So you could then distribute the total load in 6 boxes. The range F27:I27 set the constraint for the percentage of the 4 first boxes i.e. equal to 85, the range J27:K27 sets the percentage constraints for box 5 and 6 i.e. equal to or less than 85. This in order to give solver certain degree of freedom as we know that theoretically that solver may fill 5 boxes to max with a small balance in the 6th.

This problem seems to complex for the Excel solver but there is a freebie developed by the University of Auckland NZ called OpenSolver that integrates nicely with Excel.
OpenSolver for Excel – The Open Source Optimization Solver for Excel

The image Solver_model shows the result Open Solver found after 0.46 seconds. The solver_stup shows the solver setting (build by using the Excel solver) but run by OpenSolver..
 

Attachments

  • solver_model.jpg
    solver_model.jpg
    242.7 KB · Views: 7
  • solver_setup.jpg
    solver_setup.jpg
    81.5 KB · Views: 7
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top