Logo
programming4us
programming4us
programming4us
programming4us
Home
programming4us
XP
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Windows Phone
 
programming4us
Windows 7

Microsoft Excel 2010 : Finding Optimal Solutions by Using Solver

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
10/22/2012 3:57:49 PM
Goal Seek is a great tool for finding out how much you need to change a single input value to generate a desired result from a formula, but it’s of no help if you want to find the best mix of several input values. For example, marketing vice president Craig Dewar might want to advertise in four national magazines to drive customers to Consolidated Messenger’s Web site, but he might not know the best mix of ads to reach the greatest number of readers. He asked the publishers for ad pricing and readership numbers, which he recorded in a spreadsheet, along with the minimum number of ads per publication (three) and the minimum number of times he wants the ad to be seen (10,000,000). Because one of the magazines has a high percentage of corporate executive readers, Craig does want to take out at least four ads in that publication, despite its relatively low readership. The goal of the ad campaign is for the ads to be seen as many times as possible without costing the company more than the $3,000,000 budget.


Finding Optimal Solutions by Using Solver

Tip

It helps to spell out every aspect of your problem so that you can identify the cells you want Solver to use in its calculations.

If you performed a complete installation when you installed Excel on your computer, you see the Solver button on the Data tab in the Analysis group. If not, you need to install the Solver Add-In. To do so, click the File tab, and then click Options. In the Excel Options dialog box, click Add-Ins to display the Add-Ins page. At the bottom of the dialog box, in the Manage list, click Excel Add-Ins, and then click Go to display the Add-Ins dialog box. Select the Solver Add-in check box and click OK to install Solver.

Tip

You might be prompted for the Microsoft Office system installation CD. If so, put the CD in your CD drive, and click OK.

After the installation is complete, Solver appears on the Data tab, in the Analysis group. Clicking Solver displays the Solver Parameters dialog box.

Tip

The first step of setting up your Solver problem is to identify the cell that contains the summary formula you want to establish as your objective. To identify that cell, click in the Set Objective box, click the target cell in the worksheet, and then select the option representing whether you want to minimize the cell’s value, maximize the cell’s value, or make the cell take on a specific value. Next, you click in the By Changing Variable Cells box and select the cells Solver should vary to change the value in the objective cell. Finally, you can create constraints that will set the limits for the values Solver can use. To do so, click Add to open the Add Constraint dialog box.

Tip

You add constraints to the Solver problem by selecting the cells to which you want to apply the constraint, selecting the comparison operation (such as less than or equal to, greater than or equal to, or must be an integer), and clicking in the Constraint box to select the cell with the value of the constraint. You could also type a value in the Constraint box, but referring to a cell makes it possible for you to change the constraint later without opening Solver.

Tip

After you run Solver, you can use the commands in the Solver Results dialog box to save the results as changes to your worksheet or create a scenario based on the changed data.

In this exercise, you’ll use Solver to determine the best mix of ads given the following constraints:

  • You want to maximize the number of people who see the ads.

  • You must buy at least 8 ads in 3 magazines and at least 10 in the fourth.

  • You can’t buy part of an ad (that is, all numbers must be integers).

  • You can buy no more than 20 ads in any one magazine.

  • You must reach at least 10,000,000 people.

  • Your ad budget is $3,000,000.

Set Up


  1. If the Solver button doesn’t appear in the Analysis group on the Data tab, follow the instructions from earlier in this section to install it.

  2. In the Analysis group on the Data tab, click Solver.

    Set Up

    The Solver Parameters dialog box opens.

  3. Click in the Set Objective box, and then click cell G9.

    $G$9 appears in the Set Objective field.

  4. Click Max.

  5. Click in the By Changing Variable Cells field, and select cells E5:E8.

    $E$5:$E$8 appears in the By Changing Variable Cells field.

    Set Up
  6. Click Add.

    The Add Constraint dialog box opens.

  7. Select cells E5:E8.

    $E$5:$E$8 appears in the Cell Reference field.

  8. In the operator list, click int. Then click Add.

    Excel adds the constraint to the Solver problem, and the Add Constraint dialog box clears to accept the next constraint.

    Note

    In Excel 2010, the Ignore Integer Constraints option is turned on by default. To turn the option off, in the Solver Parameters dialog box, click Options. On the All Methods page of the dialog box, uncheck the Ignore Integer Constraints box and click OK.

  9. Click cell F9.

    =$F$9 appears in the Cell Reference field.

  10. Click in the Constraint field, and then click cell G11.

    =$G$11 appears in the Constraint field.

    Set Up
  11. Click Add.

    Excel adds the constraint to the Solver problem, and the Add Constraint dialog box clears to accept the next constraint.

  12. Click cell G9.

    $G$9 appears in the Cell Reference field.

  13. In the operator list, click >=.

  14. Click in the Constraint field, and then click cell G12.

    =$G$12 appears in the Constraint field.

  15. Click Add.

    Excel adds the constraint to the Solver problem, and the Add Constraint dialog box clears to accept the next constraint.

  16. Select cells E5:E7.

    $E$5:$E$7 appears in the Cell Reference field.

  17. In the operator list, click >=.

  18. Click in the Constraint field, and then click cell G13.

    =$G$13 appears in the Constraint field.

    Set Up
  19. Click Add.

    Excel adds the constraint to the Solver problem, and the Add Constraint dialog box clears to accept the next constraint.

  20. Click cell E8.

    $E$8 appears in the Cell Reference field.

  21. In the operator list, click >=.

  22. Click in the Constraint field, and then click cell G14.

    =$G$14 appears in the Constraint field.

  23. Click Add.

    Excel adds the constraint to the Solver problem, and the Add Constraint dialog box clears to accept the next constraint.

  24. Select cells E5:E8.

    $E$5:$E$8 appears in the Cell Reference field.

  25. Verify that the <= operator appears in the operator field, click in the Constraint field, and then click cell G15.

    =$G$15 appears in the Constraint field.

  26. Click OK.

    Excel adds the constraint to the Solver problem and closes the Add Constraint dialog box, and the Solver Parameters dialog box opens again.

  27. Click Solve.

    The Solver Results dialog box opens, indicating that Solver found a solution. The result is displayed in the body of the worksheet.

    Set Up
  28. Click Cancel.

    The Solver Results dialog box closes.

Clean Up

Save the AdBuy workbook, and then close it.

Other -----------------
- Microsoft Excel 2010 : Varying Your Data to Get a Desired Result by Using Goal Seek
- Microsoft Word 2010 : Working with Outlines - Working with Master Documents
- Microsoft Word 2010 : Working with Outlines - Creating a Standard Outline
- Using Microsoft OneNote 2010 with Other Programs : OneNote Integration with Internet Explorer
- Using Microsoft OneNote 2010 with Other Programs : A Quick Note About Interface Differences, OneNote Integration with Windows
- Conquering Malicious Software : Conquering Spyware with Windows Defender
- Parental Controls and Family Safety : Using Parental Controls from Windows Live
- Parental Controls and Family Safety : Using the Built-In Parental Controls
- Using Shared Resources : Mapping Drive Letters to Shared Folders, Using Shared Media
- Using Shared Resources : Transferring Files between Computers, Using a Shared Printer
 
 
Top 10
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
 
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server