| | Help by Product How-to Resources Support and Feedback Technical Resources Additional Resources Get Office 2007 | Warning: You are viewing this page with an unsupported Web browser. This Web site works best with Microsoft Internet Explorer 6.0 or later, Firefox 1.5, or Netscape Navigator 8.0 or later. Learn more about supported browsers.
Save adjustable cell values in Solver as a scenario
- Define a problem.
How?
- On the Tools menu, click Solver.
If the Solver command is not available on the Tools menu, you need to install the Solver add-in (add-in: A supplemental program that adds custom commands or custom features to Microsoft Office.) program.
How?
- On the Tools menu, click Add-Ins.
-
If the add-in (add-in: A supplemental program that adds custom commands or custom features to Microsoft Office.) you want to use is not listed in the Add-Ins available box, click Browse, and then locate the add-in.
- In the Add-Ins available box, select the check box next to the add-in you want to load, and then click OK.
- If necessary, follow the instructions in the setup program.
- In the Set Target Cell box, enter a cell reference (cell reference: The set of coordinates that a cell occupies on a worksheet. For example, the reference of the cell that appears at the intersection of column B and row 3 is B3.) or name (name: A word or string of characters that represents a cell, range of cells, formula, or constant value. Use easy-to-understand names, such as Products, to refer to hard to understand ranges, such as Sales!C20:C30.) for the target cell. The target cell must contain a formula (formula: A sequence of values, cell references, names, functions, or operators in a cell that together produce a new value. A formula always begins with an equal sign (=).).
- Do one of the following:
- To have the value of the target cell be as large as possible, click Max.
-
To have the value of the target cell be as small as possible, click Min.
-
To have the target cell be a certain value, click Value of, and then type the value in the box.
- In the By Changing Cells box, enter a name or reference for each adjustable cell, separating nonadjacent references with commas. The adjustable cells must be related directly or indirectly to the target cell. You can specify up to 200 adjustable cells.
If you want to have Solver automatically propose the adjustable cells based on the target cell, click Guess.
- In the Subject to the Constraints box, enter any constraints (constraints: The limitations placed on a Solver problem. You can apply constraints to adjustable cells, the target cell, or other cells that are directly or indirectly related to the target cell.) you want to apply.
How?
Add a constraint
- In the Solver Parameters dialog box, under Subject to the Constraints, click Add.
- In the Cell Reference box, enter the cell reference (cell reference: The set of coordinates that a cell occupies on a worksheet. For example, the reference of the cell that appears at the intersection of column B and row 3 is B3.) or name (name: A word or string of characters that represents a cell, range of cells, formula, or constant value. Use easy-to-understand names, such as Products, to refer to hard to understand ranges, such as Sales!C20:C30.) of the cell range for which you want to constrain the value.
- Click the relationship ( <=, =, >=, Int, or Bin ) that you want between the referenced cell and the constraint (constraints: The limitations placed on a Solver problem. You can apply constraints to adjustable cells, the target cell, or other cells that are directly or indirectly related to the target cell.). If you click Int, "integer" appears in the Constraint box. If you click Bin, "binary" appears in the Constraint box.
- In the Constraint box, type a number, a cell reference or name, or a formula (formula: A sequence of values, cell references, names, functions, or operators in a cell that together produce a new value. A formula always begins with an equal sign (=).).
- Do one of the following:
Notes
- You can apply the Int and Bin relationships only in constraints on adjustable cells.
-
When the Assume Linear Model check box on the Solver Options dialog box is selected, there is no limit on the number of constraints. For nonlinear problems, each adjustable cell can have up to 100 constraints, in addition to bounds and integer restrictions on the variables.
Change or delete a constraint
- In the Solver Parameters dialog box, under Subject to the Constraints, click the constraint (constraints: The limitations placed on a Solver problem. You can apply constraints to adjustable cells, the target cell, or other cells that are directly or indirectly related to the target cell.) that you want to change or delete.
- Click Change and then make your changes, or click Delete.
- Click Solve and do one of the following:
Tip
You can interrupt the solution process by pressing ESC. Microsoft Excel recalculates the worksheet with the last values found for the adjustable cells.
- In the Solver Results dialog box, click Save Scenario.
- In the Scenario Name box, type a name for the scenario (scenario: A named set of input values that you can substitute in a worksheet model.).
Tips
- To display different sets of adjustable cell values that you've saved, display each scenario.
- To create a scenario without saving the Solver solution or without displaying the results on the worksheet, save the scenario in the Solver Results dialog box, and then click Restore Original Values.
|