31
How does Microsoft Excel solver deal with nonlinear problems – A simple example 劉劉劉

How does Microsoft Excel solver deal with nonlinear problems – A simple example 劉亮志

  • View
    218

  • Download
    1

Embed Size (px)

Citation preview

Page 1: How does Microsoft Excel solver deal with nonlinear problems – A simple example 劉亮志

How does Microsoft Excel solver deal with nonlinear problems – A simple example

劉亮志

Page 2: How does Microsoft Excel solver deal with nonlinear problems – A simple example 劉亮志

Recall our question

Page 3: How does Microsoft Excel solver deal with nonlinear problems – A simple example 劉亮志

• The equation for GARCH(1,1) is

where

Set ,

Then we get

1

21

21

2 nnLn V

LV 0

21

21

2 nnn

Page 4: How does Microsoft Excel solver deal with nonlinear problems – A simple example 劉亮志

• Later, we met an example about MLE method :

Consider the problem of estimating the variance

of variable X from m observations on X when

underlying distribution is normal with zero mean.

Assume that the observations are .

Denote the variance v . The likelihood of being

observed is defined as the probability density function

for X when . This is

Then the joint density function of this m observations is

(**)

muuu ,...,, 21

iu

iuX

)2

exp(2

1 2

v

u

vi

)]2

exp(2

1[

2

1 v

u

vi

m

i

Page 5: How does Microsoft Excel solver deal with nonlinear problems – A simple example 劉亮志

Using MLE, the best estimate of v is the value that maximizes

the expression (**).

Maximizing (**) is same as maximizing

Let

Then we want to maximize the expression

])ln([2

1 v

uv i

m

i

21

21 nnv

m

i nn

inn u

uu

121

21

221

21 ]

)()ln([

Page 6: How does Microsoft Excel solver deal with nonlinear problems – A simple example 劉亮志

• We wonder what’s the value of that maximizes

subject to the boundary conditions

,,

m

i nn

inn u

uu

121

21

221

21 ]

)()ln([

1

0

1

Page 7: How does Microsoft Excel solver deal with nonlinear problems – A simple example 劉亮志

How does Microsoft Excel solver deal with nonlinear programs?

(1) the long …long way to find the method out

(2) basic idea and a simple example

(3) reference

Page 8: How does Microsoft Excel solver deal with nonlinear problems – A simple example 劉亮志

Long way

Microsoft Office Online

http://office.microsoft.com/zh-tw/

• Excel adopts the generalized reduced gradient (GCG)

method to deal with nonlinear problems.

• GCG originates from the method of reduced gradient

of Wolf.

• More specifically, the question (MLE) we met is a nonlinear

programming problem with linear constraints.

Page 9: How does Microsoft Excel solver deal with nonlinear problems – A simple example 劉亮志

Basic idea of method of reduced gradient

Page 10: How does Microsoft Excel solver deal with nonlinear problems – A simple example 劉亮志
Page 11: How does Microsoft Excel solver deal with nonlinear problems – A simple example 劉亮志
Page 12: How does Microsoft Excel solver deal with nonlinear problems – A simple example 劉亮志
Page 13: How does Microsoft Excel solver deal with nonlinear problems – A simple example 劉亮志

Summary of Reduced Gradient Algorithm

Page 14: How does Microsoft Excel solver deal with nonlinear problems – A simple example 劉亮志
Page 15: How does Microsoft Excel solver deal with nonlinear problems – A simple example 劉亮志
Page 16: How does Microsoft Excel solver deal with nonlinear problems – A simple example 劉亮志

A simple example

Page 17: How does Microsoft Excel solver deal with nonlinear problems – A simple example 劉亮志
Page 18: How does Microsoft Excel solver deal with nonlinear problems – A simple example 劉亮志

Iterative 1

Page 19: How does Microsoft Excel solver deal with nonlinear problems – A simple example 劉亮志
Page 20: How does Microsoft Excel solver deal with nonlinear problems – A simple example 劉亮志
Page 21: How does Microsoft Excel solver deal with nonlinear problems – A simple example 劉亮志
Page 22: How does Microsoft Excel solver deal with nonlinear problems – A simple example 劉亮志

Iterative 2

Page 23: How does Microsoft Excel solver deal with nonlinear problems – A simple example 劉亮志
Page 24: How does Microsoft Excel solver deal with nonlinear problems – A simple example 劉亮志
Page 25: How does Microsoft Excel solver deal with nonlinear problems – A simple example 劉亮志
Page 26: How does Microsoft Excel solver deal with nonlinear problems – A simple example 劉亮志
Page 27: How does Microsoft Excel solver deal with nonlinear problems – A simple example 劉亮志

Iterative 3

Page 28: How does Microsoft Excel solver deal with nonlinear problems – A simple example 劉亮志
Page 29: How does Microsoft Excel solver deal with nonlinear problems – A simple example 劉亮志
Page 30: How does Microsoft Excel solver deal with nonlinear problems – A simple example 劉亮志

Reference

Page 31: How does Microsoft Excel solver deal with nonlinear problems – A simple example 劉亮志

• Mokhtar s. Bazraa, Hanif D. Sherali ,and C. M. Shetty. Nonlinear Programming: Theory and Algorithm second edition Section 10.6

• Wenyu Sun, and Ya-Xiang Yuan. Optimization Theory and Methods: Nonlinear Programming Section 11.3

• Hong-Tau Lee, Sheu-Hua Chen, He-Yau Kang.

A Study of Generalized Reduced Gradient Method

with Different Search Directions • Daniel Fylstra, Leon Lasdon, John Waston, Allen

Waren. Design and Use of the Microsoft Excel Solver.