10.4 Nonlinear Programming

Linear, integer, and goal programming all assume that a problem’s objective function and constraints are linear. That means that they contain no nonlinear terms such as X13, 1/X2, log X3, or 5X1X2. Yet in many mathematical programming problems, the objective function and/or one or more of the constraints are nonlinear.

Unlike with linear programming methods, computational procedures for solving many nonlinear programming (NLP) problems do not always yield an optimal solution. In many NLP problems, a particular solution may be better than any other point nearby, but it may not be the overall best point. This is called a local optimum, and the overall best solution is called the global optimum. Thus, for a particular problem, a solution technique may indicate that an optimum solution has been found, but it is only a local optimum, so there may be a global optimum that is better. The mathematics involved in solving these problems is beyond the scope of this text. We will rely on Solver in Excel to solve the nonlinear problems presented in this section.

In this section, we examine three categories of NLP problems and illustrate how Excel can be used to search for the solutions to these problems. In Solved Problem 10–3, we will see how NLP in Excel can help find the best parameter to use in an exponential smoothing forecasting model.

Nonlinear Objective Function and Linear Constraints

The Great Western Appliance Company sells two models of toaster ovens, the Microtoaster (X1) and the Self-Clean Toaster Oven (X2). The firm earns a profit of $28 for each Microtoaster, regardless of the number sold. Profits for the Self-Clean model, however, increase as more units are sold because of fixed overhead. Profit on this model may be expressed as 21X2+0.25X22.

Hence, the firm’s objective function is nonlinear:

Maximize profit=28X1+21X2+0.25X2 2

Great Western’s profit is subject to two linear constraints on production capacity and sales time available:

X1+X21,000(units of production capacity)0.5X1+0.4X2500(hours of sales time available)X1,X20

When an objective function contains squared decision variables (such as 0.25X2 2) and the problem’s constraints are linear, it is called a quadratic programming problem. A number of useful problems in the field of portfolio selection fall into this category. Quadratic programs can be solved by a modified form of the simplex method. Such work is outside the scope of this book but can be found in sources listed in the Bibliography.

The solution to the Great Western Appliance nonlinear programming problem is shown in Program 10.9. This was found using Solver in Excel 2016, and there are two important features of this spreadsheet that are different from the previous linear and integer programming examples. First, the solving method used for this in Solver is GRG Nonlinear instead of Simplex LP. The second change involves the objective function and the changing cells. For the sake of consistency, values for both X2 (cell C4) and X2 2 (cell D7) are shown in Program 10.9. However, cell D7 is simply cell C4 squared. Thus, when cell C4 changes, D7 will automatically change, and the Changing cells specified in Solver are B4:C4, while D7 is not included.

A screenshot of Excel illustrates the solver solution for Great Western Appliance.

Program 10.9 Excel 2016 Solver Solution for Great Western Appliance NLP Problem

Solver Parameter Inputs and Selections Key Formulas
Set Objective: E8
Two tables of formulas are shown. An image shows formulae in the columns “B”, “C”, and “D” of the seventh row.
By Changing cells: B4:C4
To: Max
Subject to the Constraints:
E11:E12 <= G11:G12
Solving Method: GRG Nonlinear
☑ Make Variables Non-Negative

Both Nonlinear Objective Function and Nonlinear Constraints

The annual profit at a medium-sized (200–400 beds) Hospicare Corporation–owned hospital depends on the number of medical patients admitted (X1) and the number of surgical patients admitted (X2). The nonlinear objective function for Hospicare is

Maximize profit=$13X1+$6X1X2+$5X2+$1/X2

The corporation identifies three constraints, two of which are also nonlinear, that affect operations. They are

2X12+4X290(nursing capacity, in thousands of labordays)X1+X2375(x-ray capacity, in thousands)8X12X261(marketing budget limit, in thousands of dollars)

Excel’s Solver is capable of formulating such a problem. The optimal solution is provided in Program 10.10.

Screenshot of an Excel sheet displays solution for Hospicare Corp problem.

Program 10.10 Excel 2016 Solution for Hospicare NLP Problem

Solver Parameter Inputs and Selections Key Formulas
Set Objective: H8

A formula under column H of a table in the eighth row reads: equal to SUMPRODUCT open parens dollar sign B dollar sign 7 colon dollar sign G dollar sign 7 comma B8 colon G8 close parens.

Copy H8 to H11:H13

The formula in the cells B7, C7, D7, E7, F7, and G7 are “equal to B4, equal to B4 exponent to 2, equal to B4 asterisks C4, equal to C4, equal to C4 exponent to 3, and equal to 1 over C4,” respectively.

By Changing cells: B4:C4
To: Max
Subject to the Constraints:
H11:H13 <= J11:J13
Solving Method: GRG Nonlinear
☑ Make Variables Non-Negative

Linear Objective Function with Nonlinear Constraints

Thermlock Corporation produces rubber washers and gaskets like the type used to seal joints on the International Space Station. To do so, it combines two ingredients: rubber (X1) and oil (X2). The cost of the industrial-quality rubber used is $5 per pound, and the cost of the high-viscosity oil is $7 per pound. Two of the three constraints Thermlock faces are nonlinear. The firm’s objective function and constraints are

Minimize costs=$5X1+$7X2subject to3X1+0.25X12+4X2+0.3X22125(hardness contraint)13X1+X1380(tensile strength constraint)0.7X1+X217(elasticity constraint)

To solve this nonlinear programming problem, we turn again to Excel. The output is provided in Program 10.11.

Screenshot of an Excel sheet displays solution for Thermlock gaskets problem.

Program 10.11 Excel 2016 Solution to the Thermlock NLP Problem

Solver Parameter Inputs and Selections Key Formulas
Set Objective: D5
Solver parameters formulas are displayed.
The formula in the cells B8, C8, D8, E8, and F8 are “equal to B4, equal to B4 exponent to 2, equal to B4 exponent to 3, equal to C4, and equal to C4 exponent to 2,” respectively.

Copy G10 to G11:G12

An image shows formulae in the columns “B”, “C”, “D”,”E”, and “F” of the eighth row.
By Changing cells: B4:C4
To: Min
Subject to the Constraints:
G10:G12 >= I10:I12
Solving Method: GRG Nonlinear
☑ Make Variables Non-Negative
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset