Sub topic 9
Choosing a Solving Method
This chapter assumes you can build Excel formulas, use absolute and relative cell references, and understand revenue, costs, profit, cash flow, PMT, NPV, and IRR. It also assumes you have already identified the objective cell, variable cells, and business constraints in a model.
A solving method is the numerical approach that Solver uses to search for values. The right method depends on the structure of the formulas. Choosing the wrong method can produce a slow search, an invalid result, or no result at all.
The three Solver methods
Solver provides three main methods:
- Simplex LP solves linear programming models.
- GRG Nonlinear solves smooth nonlinear models.
- Evolutionary searches for solutions in difficult, discontinuous models.
A linear model has relationships that use constants, addition, subtraction, and multiplication by fixed coefficients. For example, profit might equal 20*x + 30*y. A nonlinear model includes powers, products between variable cells, logarithms, exponentials, or functions such as PMT and NPV.
| Method | Best fit | Common limitation |
|---|---|---|
| Simplex LP | Linear objective and constraints | Cannot correctly represent general nonlinear behavior |
| GRG Nonlinear | Smooth formulas that change gradually | Can stop at a local optimum |
| Evolutionary | Discontinuous, integer, or heavily conditional models | Can be slow and depends on search settings |
Simplex LP
Use Simplex LP when the model is linear and constraints are linear. A product-mix model is a common example. Each product contributes a fixed profit per unit and consumes a fixed amount of machine time.
Simplex LP is usually fast and reproducible. It can also handle constraints such as:
- Total production must not exceed available capacity.
- Each product must be nonnegative.
- Production must stay below a demand limit.
If the model contains IF, ROUND, lookup switches, or variable-by-variable multiplication, it may no longer be a valid linear program. Selecting Simplex LP in that case can give an incorrect interpretation of the model.
GRG Nonlinear
GRG means Generalized Reduced Gradient. It is designed for smooth nonlinear formulas. Use it when a small change in an input produces a gradual change in the output.
Examples include:
- Finding a loan amount subject to a payment limit.
- Finding a growth rate that reaches a target NPV.
- Allocating funding when returns include diminishing benefits.
GRG starts from the current values in the variable cells and moves toward a better result. Because it follows local slopes, the starting values matter. A result can be a local optimum, which is better than nearby alternatives but not the best solution across the entire feasible range.
Run GRG from several starting points when the model may have multiple peaks or valleys.
Evolutionary
Use Evolutionary when the model is discontinuous, contains logical switches, or requires integer decisions. It evaluates many candidate solutions and keeps combinations that improve the objective.
This method is useful for questions such as:
- Which projects should be selected, where each project is either 0 or 1?
- How should funds be allocated when fees change in steps?
- Which staffing plan works when whole people are required?
Evolutionary methods are slower and may return a solution that is feasible but not globally best. Set practical bounds, integer constraints, and a meaningful stopping limit.
A decision process
Validate the method and result
The method does not repair a poorly designed model. Before solving, check that variable cells are not formula cells, constraints match the business rules, and units are consistent.
After Solver finishes:
- Confirm every constraint is satisfied.
- Recalculate the objective independently.
- Test whether small changes in inputs produce sensible results.
- For GRG and Evolutionary, try different starting values or settings.
- Review the Solver report and record the method and assumptions.
> callout warning > A Solver message saying that a solution was found does not prove that the solution is economically sensible. A model can satisfy its mathematics while violating an unstated business rule. >
Exercise
A model has linear revenue, costs, and capacity constraints, but each product quantity must be a whole number. Which method should you test first, and what should you verify?
Show answer
Test Simplex LP if the integer requirements can be handled by Solver's integer constraints. Verify that the model remains linear, every quantity is nonnegative and integral, and all capacity limits are satisfied.