Title: Using Solver for Non-Linear Programming (NLP)
1Using Solver for Non-Linear Programming (NLP)
2NLP with Solver
- Requires Microsoft Excel
- Requires Premium Solver, which is located on your
student disk. - Requires a spreadsheet model that needs to be
optimized. - Well use our EOQ model as an example.
3The Model
(Note the nonlinear objective!)
D Annual demand C Box purchase costs S
Order costs I Inventory carrying costs Q
Quantity ordered
4The Model
Make sure cell formulas are correct.
D Annual demand C Box purchase costs S
Order costs I Inventory carrying costs Q
Quantity ordered
5Set solver parameters
Green cells are the unknowns
The blue cell contains the objective function
Red cells contain the constraints
6Set solver parameters
Green cells are the unknowns. Delete the formula.
The blue cell contains the objective function
Red cells contain the constraints, but the only
constraint is non-negativity, which is handled in
the Solver dialogue
7NLP with Solver
- Select Tools..Add-ins and make sure the Solver
Add-in is checked. (Click on thecheck box if
it isnt.) - Click OK
- If the Solver Add-In is not showing at all, plan
on working in the lab Zone 1.
8NLP with Solver
- Select the Tools..Solver menu item
- If the Standard Solver window appears, click the
Premium button
9NLP with Solver
- In the Premium Solver window, set the solution
method to Standard GRG Non-linear
10NLP with Solver
I. Click the options button
II. When the Solver Options window appears, you
can include a non-negativity constraint by
checking Assume Non-Negative
III. Click OK.
11NLP with Solver
Objective function
Select Max or Min
Unknown
12NLP with Solver
13NLP with Solver
- Try Waner 13.2 example 1 pg 783
- Focus on using Premium Solver NLP to get the same
answer.
14Create spreadsheet
152. Enter objective function formula
163. Set up Solver
- Set cell points to objective function cell
- By changing variable points to unknown cell
- Constraints have used value to left of
comparison and Available value to right.
174. Check for Solver gotchas
- Using Premium solver
- If needed, Min selected
- Standard GRG Nonlinear selected
184. Check for Solver gotchas
- Under options, assume non-negative selected
194. Check for Solver gotchas
- In spreadsheet, you have tried multiple starting
points
20NLP with Solver
- Answer is 100, as shown in your text.