
Chapter 8
Nonlinear Programming
In Chapter 1, we introduced the optimization capability of Solver with a simple
revenue-maximization problem that illustrated the Generalized Reduced Gradient
(GRG) algorithm, which is Excel’s nonlinear solver. Then, in Chapters 2 – 7, we
focused on linear programming models, solving them with Excel’s linear solver. In
this chapter, we return to the nonlinear solver and examine the types of optimization
problems it can handle.
Taken literally, the term nonlinear programming refers to the formulation and sol-
ution of constrained optimization problems that are anything but linear. However, that
isn’t a wholly accurate assessment of the GRG algorithm’s capability. Two features are
important in this regard. First, in terms of finding solutions, linear programming
models are actually a subset of nonlinear programming models. That is, the GRG
algorithm can be used to solve linear as well as nonlinear programs. However, for
linear programming, we use the linear solver because it is numerically more depend-
able than the GRG algorithm and provides a more extensive sensitivity analysis. The
GRG algorithm provides an abbreviated sensitivity analysis, and it may also have
difficulty locating a feasible solution when one exists. Still, there is nothing wrong,
in principle, with using the GRG algorithm to solve a linear problem.
The second feature to keep in mind is that the GRG algorithm has limitations as a
nonlinear solver. In particular, it is mainly suited to problems in which the constraints
and objective function contain smooth functions. Informally, the definition of a
smooth function would be a function without gaps or kinks. A gap means that the
function is not continuous: if we were to place a pencil on a sketch of the function,
we would not be able to trace the function’s entire graph without lifting up the
pencil at some point. A gap occurs, for example, in a price schedule with a price
break, such as the first function shown on the graph in Figure 8.1. A kink in the func-
tion refers to a sharp corner, where the function comes to a point as it changes direc-
tion. A kink occurs, for example, in the relationship of output to demand, such as the
second function in Figure 8.1. The presence of a nonsmooth function tends to create
problems for the nonlinear solver. That said, the nonlinear solver can successfully be
applied to a large variety of optimization problems, and this chapter illustrates the
major categories.
Optimization Modeling with Spreadsheets, Second Edition. Kenneth R. Baker
# 2011 John Wiley & Sons, Inc. Published 2011 by John Wiley & Sons, Inc.
297