Solver Scenario for Optimal Whole Number w/Office97

CDobyns

New Member
Joined
Sep 7, 2004
Messages
18
Every time I think I know what I'm doing with Excel Solver - I surprise myself (by what I apparently don't understand . . .).

I'm trying to solve for the maximum number of company store "certificates" I need to buy, up to say a maximum of $600, in order to buy the maximum number of movie tickets possible (also from the company store) for my employees - but to the closest number of whole movie tickets possible, and since for some reason, you can't "add" actual $$$ money to your purchase to "round up" a fractional amount remaining at the company store (nor can you get change back from a partial certificate purchase).

I already (now) know that 17 is the optimal number, to purchase 60 movie tickets, but assuming the below represents columns and rows, cell B3 would be the cell to change, and B5 would be the target cell, which would be set to <=$600 - again, with objective that both B3 and B4 would result in whole numbers.

Movie Ticket Price.......$8.50
Certificate Price..........$30.00
# of Certificates.........17
# of Movie Tickets......60
Total Certificate Cost..$510.00

All that said, I can't see to get the set-up correctly to get Solver to return 17 in B3. Any help?
 
That's (kind of) a cute perspective on the question - although this is as much a hypothetical challenge now, as it is practical (but I think you already knew that). And given that I'm using a portion of our recognition and rewards budget to purchase the Certificates = Movie Tickets, the fact that any of that $$$ should get wasted (when there isn't a whole lot to start with), would be as important to them, as it is to me.

I've got to believe that Solver can (could) have still come up with the solution to this. I suspect I (we) just haven't contemplated what the alternate "set-up" to the problem needs to be.
 
Upvote 0

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
After sleeping on this problem, you can set a lower limit for solver as a constraint to help find the match. The real problem being that there is really only one solution (in blocks of $510) if you want absolutely no remainder (similar to a lowest common factor or whatever it is called).
 
Upvote 0
Solver is an overkill for this. =LCM(300,85)/10 returns 510.
 
Upvote 0
Whether Solver is (or isn't) overkill for this problem (Hint: It IS overkill), I'm always happy (happ-ier) when I can solve my own problems. So, with a little bit of extra effort (and a little more sleep time), I think I identified the solution to make Solver deliver the correct solution.

What was needed was to expand the Target Cells to include both B3 and B4, and to add the following constraints: $B$4 = Integer and $B$4 = $B$5 / $B$1.

By linking the outcome of the number of tickets to the product of the Total Cost divided by the Cost of the Tickets and constraining B4 to an integer as well, Solver was able to resolve the problem with a single answer (which we already new to be correct). Maybe it was the "long way around", but knowing some of this will create the nexus for the next problem that has multiple variables and is solved through an iterative solution approach.
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,906
Members
452,366
Latest member
TePunaBloke

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