[Solved] Excel

Fay

New member
What would the objective be to minimize the cost, and also what would be the equation for the constraints? Create a model for and solve using Solver.
 
Last edited:
What would the objective be to minimize the cost, and also what would be the equation for the constraints?
Hello Fay,
Thanks for sharing your experience with us. I understand you want to find the objectives, and equation of the constraints to minimize cost using Solver in Excel.
Please, read our article Excel Solver to Minimize Cost with Examples to gain a general idea of how Solver works. Here, we have shown how the Solver adjusts variables in decision variable cells to satisfy constraint cell limits and find the minimum cost in the objective cell.

Now, I will explain with an example you have provided me via conversation. Let's discuss your given problem here briefly:
"Create a recycled waste processing model and solve using Solver.

A regional authority runs twelve recycling centres (A to L) accepting a variety of materials, many of which can be separated at the centres and transported to specialist sites for further processing. Items which don’t fit into any specific category are deposited in skips labelled “General Waste”. General Waste is transported from recycling centres to regional hubs ( P, Q, and R), where there are facilities to enable a preliminary separation of material, before transportation to a specialist facility (labelled S) for final processing.
"
I have processed the data you have provided to create the model and it turned out like this:
1701927744837.png
Now, let's set our objectives and constraints in Excel:
We need the coefficients to be the transportation costs per tone in B15: D15 as given given below. The yellow marked region (B16: D16) will be left blank for now. Let's enter a formula in B17 that represents our minimum cost:
=SUMPRODUCT(B15: D15, B16: D16)
1701930918238.png
As expected, the function returns 0.
Now, let's set up our constraints based on the given sorting costs per ton and hub capacity. (See the below picture)
1701928438425.png
Let's get to our final calculations before accessing Solver. In B14, use the below SUMPRODUCT function and copy the formula cell upto B27 using Auto Filter tool.
=SUMPRODUCT(B19: D19,$B$16:$D$16)
1701928762079.png
Similarly, enter the below formula in C24 and drag the AutoFilter tool down to C27:
=F19
1701928994320.png
As a result, we have completed our data processing for the Solver add-in. Click the Solver button and fill out the options carefully: (see the provided article for these steps if necessary)
1701929413251.png
There it is! The output shows you need to transport 357.67, 409.6 & 288.45 tonnes of waste materials each time to get the minimum cost of £1326.29.
1701929749570.png
Tips: If you want to find the maximum cost using Solver in Excel, go to this forum link:
Ticket Pricing

I am attaching the final workbook here. Cheers!
 

Attachments

  • 1701927911823.png
    1701927911823.png
    31.6 KB · Views: 17
  • 1701930308333.png
    1701930308333.png
    32.8 KB · Views: 18
  • Fay_Solver.xlsx
    Fay_Solver.xlsx
    11 KB · Views: 17

Online statistics

Members online
0
Guests online
3
Total visitors
3

Forum statistics

Threads
361
Messages
1,578
Members
671
Latest member
mamun.razib
Back
Top