Excel Solver | Need help resolving a constrained optimization problem

blzxatly

New Member
Joined
Dec 7, 2021
Messages
1
Office Version
  1. 2021
Platform
  1. MacOS
Hi, I am quite new here so I am not exactly sure how everything works. I just wanted to know if anyone could help me with Solver?

-Given some information, I need to construct a spreadsheet and use Solver to resolve a constrained optimization problem (may be simple for some but it is my first time doing this sort of thing).
-I need to construct the final/correct version of this spreadsheet to prepare for my upcoming test (very soon!)
-Until now I have prepared a spreadsheet and added the constraints but my solver takes forever to solve.
-Also, the thing I need to maximize (wellbeing) never reaches the correct result (approx. 11760) which was given (but not mentioned in the images below). This is most likely due to some wrong or missing input or constraint. Other than that, I do not know what is wrong or how I can improve it from this point (the sheet may be a bit unorganized, so I guess that needs to be worked on too).
-However, I have not been able to get any result after I added integer constraints, which are required! It solves for hours and never reaches the result?

Here is the given information:

Screenshot 2021-12-06 at 13.42.35.png

Screenshot 2021-12-06 at 13.42.44.png


Here is the Spreadsheet that I constructed:

10722273workbook ES2.xlsx
ABCDEF
1
2CourseABC
3No study score302510
4Score per hour 3.13.42.1
5WorkPweek191829
6Aimed score606060
7 score606060
8
9Income per hour$11.20
10Hours15.71RentGroceryLeft
11Net income175.97028755050.970276
12SpendingLeisureExcersize
13Cost$10.00$4.00
14Time42totalleft
15total42.3647058.605570650.9702767.207E-08
16Sleep6left
17sleep tgt60Time
18Wellbeing551.77275leisure+EXCER44.715042
19Study65.573326
20Sleep42
21work15.71
22total168
23left0
24max168
Sheet1
Cell Formulas
RangeFormula
B7:D7B7=B5*B4
B11,B15:C15B11=B10*B9
E11E11=B11-C11-D11
D15D15=C15+B15
E15E15=E11-D15
C17C17=B16-B17
B18B18=B7^0.3*C7^0.4*D7^0.5*B16^0.5*B14^0.9*C14^0.4*B10^-0.4
F18F18=+(B14+C14)*7
F19F19=SUM(B5:D5)
F20F20=B16*7
F21F21=B10
F22F22=SUM(F18:F21)
F23F23=F24-F22
F24F24=7*24
Named Ranges
NameRefers ToCells
solver_adj=Sheet1!$B$5:$D$5,Sheet1!$B$10,Sheet1!$B$14:$C$14,Sheet1!$B$16F19, B7
solver_lhs1=Sheet1!$B$10F21, B18, B11
solver_lhs2=Sheet1!$B$14:$C$14F18, B18, B15
solver_lhs3=Sheet1!$B$16F20, C17, B18
solver_lhs4=Sheet1!$B$5:$D$5F19, B7
solver_lhs5=Sheet1!$B$7:$D$7B18
solver_lhs6=Sheet1!$B$7:$D$7B18


All the above hours should be integers (some are formatted as 0 d.p so you cannot view the decimals, but if you hover over it you can see that they are not integers).

Here are my inputs into Solver (according to the scenario above):

Screenshot 2021-12-08 at 11.07.47.png


Overall, my main problem is the time that solver is not able to resolve the constrained optimization problem (as I have left it running for more than an hour and still have not gotten any result)!
How can I solve this and how can I reach correct results?

Any help would be greatly appreciated.

Thank you!
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
I'm not super familiar with Solver, but I think your $E$15 = 0 and $F$23 = 0 constraints may be what's keeping it from finishing - you're getting rounding errors in those cells that will make them never *equal* zero. Try < 0.001 or similar.
 
Upvote 0

Forum statistics

Threads
1,214,970
Messages
6,122,514
Members
449,088
Latest member
RandomExceller01

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