Sub topic 2
How the search works: iteration, tolerance, and approximate answers
This chapter assumes you can write cell formulas, use absolute references, and build a simple cash flow model. You should also know the difference between an input cell (a typed value) and a formula cell (a calculation).
How the search works
Goal Seek does not solve the model with algebra. It runs an iterative search. On each pass, it changes the input cell, recalculates the model, and compares the set cell with the target. Each pass is one iteration. The search stops when the gap between the set cell and the target falls within a tolerance, which is the allowed error.
Because the search stops at a tolerance, the answer is approximate. A break-even result of 749.9996 units is valid. Round it for reporting, but check that the set cell is close to zero.
When Goal Seek fails or misleads
- Multiple solutions: A profit curve can cross zero at two volumes. Goal Seek returns whichever root it reaches first, which depends on the starting value.
- No solution: If the target is outside the range the model can produce, Goal Seek stops and reports that it may not have found a solution.
- Flat or stepped formulas:
IF,ROUND, and lookups can make the set cell stop changing, so the search stalls. - Hardcoded links: If the set cell does not depend on the input cell, changing the input has no effect.
- Overwritten inputs: Goal Seek replaces the input value. Record the original before you run it.
Setting up Solver: objective, variables, and constraints
Solver needs three parts:
- An objective cell, which you maximize, minimize, or set to a value.
- Variable cells, which Solver may change.
- Constraints, which limit the variables.
Objective: B8 (Max)
Variable cells: B2:B3 (units of product X and Y)
Constraints:
B2:B3 >= 0
B6 <= B7 (machine hours used <= machine hours available)
Method: Simplex LPWriting constraints and bounds that reflect the business
Write each constraint as a rule the business already follows: non-negative volumes, capacity limits, demand caps, minimum cash balances, and whole units where products cannot be split. A constraint that is too loose produces a plan the business cannot carry out. A constraint that is too tight produces a "no feasible solution" message.
> callout note
Use Simplex LP only when the objective and constraints are linear. Use GRG Nonlinear for smooth nonlinear models. Use Evolutionary for models with IF logic, but expect slower runs and no proof of optimality.
Exercise
Exercise
Goal Seek returns 749.9996 units for a break-even model. Should you accept this?
Show answer
Yes. The value is within the default tolerance of 750 units. Report it as 750 units and confirm that operating profit is close to zero.