Top Banner
HOMOTOPY CONTINUATION METHOD IN AVOIDING THE PROBLEM OF DIVERGENCE OF TRADITIONAL NEWTON’S METHOD NOR EZWANI BINTI MAT NOR @ ZAKARIA UNIVERSITI TEKNOLOGI MALAYSIA
22

HOMOTOPY CONTINUATION METHOD IN AVOIDING THE …eprints.utm.my/id/eprint/28490/5/NorEzwaniMatNorMFS2011.pdf · Their views and tips are useful indeed. ... ABSTRAK Kaedah Newton adalah

Mar 06, 2019

Download

Documents

PhạmTuyền
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: HOMOTOPY CONTINUATION METHOD IN AVOIDING THE …eprints.utm.my/id/eprint/28490/5/NorEzwaniMatNorMFS2011.pdf · Their views and tips are useful indeed. ... ABSTRAK Kaedah Newton adalah

HOMOTOPY CONTINUATION METHOD IN AVOIDING THE PROBLEM

OF DIVERGENCE OF TRADITIONAL NEWTON’S METHOD

NOR EZWANI BINTI MAT NOR @ ZAKARIA

UNIVERSITI TEKNOLOGI MALAYSIA

Page 2: HOMOTOPY CONTINUATION METHOD IN AVOIDING THE …eprints.utm.my/id/eprint/28490/5/NorEzwaniMatNorMFS2011.pdf · Their views and tips are useful indeed. ... ABSTRAK Kaedah Newton adalah

HOMOTOPY CONTINUATION METHOD IN AVOIDING THE

PROBLEM OF DIVERGENCE OF TRADITIONAL NEWTON’S METHOD

NOR EZWANI BINTI MAT NOR @ ZAKARIA

A dissertation submitted in partial fulfillment

of the requirements for the award of

Degree of Master of Science (Mathematics)

Faculty of Science

Universiti Teknologi Malaysia

MAY 2011

Page 3: HOMOTOPY CONTINUATION METHOD IN AVOIDING THE …eprints.utm.my/id/eprint/28490/5/NorEzwaniMatNorMFS2011.pdf · Their views and tips are useful indeed. ... ABSTRAK Kaedah Newton adalah

iii

Dedicated to my beloved mother and father, Azizah bt. Mahmood and

Mat Nor @ Zakaria b. Mat Deris, to my beloved husband, Azmir b. Ayub, to my

beloved sons and daughter, Mirza, Harith, Irdina and all my friends.

Page 4: HOMOTOPY CONTINUATION METHOD IN AVOIDING THE …eprints.utm.my/id/eprint/28490/5/NorEzwaniMatNorMFS2011.pdf · Their views and tips are useful indeed. ... ABSTRAK Kaedah Newton adalah

iv

ACKNOWLEDGEMENT

This thesis has been compiled with contribution from many people whom I

wish to acknowledge for their dedication. I would like to extend my appreciation

to my honorable supervisor, Assc. Prof. Dr. Hjh. Rohanin Ahmad for her academic

guidance, suggestions, support and encouragement shown during the course of my

study. Her patience, tolerance, diligence and dedication shown to me, given me a

great encouragement and a good example to follow after.

I love to convey my most gratitude to my beloved family especially my

mother and father for their support. They have given me so assistance and prayer

support. Most gratitude to my beloved husband, sons and daughter for their

support, love and care shown to me along the process of the study, of which words

could not express and will forever be remembered in my heart.

Not to forget, a lot of appreciation to my employer, the director of Institut

Kemahiran MARA Johor Bahru that gives me fully support and understanding

during my study. Also to all my friends especially in Unit Matematik IKM Johor

Bahru, their contribution in this thesis direct and indirectly has helped greatly.

Their views and tips are useful indeed. Last but not least, the Almighty Allah for

giving me the strength to embark on this journey. Thank you all for making this

journey on agreeable one.

Page 5: HOMOTOPY CONTINUATION METHOD IN AVOIDING THE …eprints.utm.my/id/eprint/28490/5/NorEzwaniMatNorMFS2011.pdf · Their views and tips are useful indeed. ... ABSTRAK Kaedah Newton adalah

v

ABSTRAK

Kaedah Newton adalah satu kaedah yang terkenal bagi menyelesaikan

masalah pengoptimuman bagi fungsi tidak linear. Ini adalah kerana kecekapan

kaedah ini dalam kelajuan penumpuan. Namun, Kaedah Newton selalunya akan

menghasilkan pencapahan terutamanya apabila nilai awal jauh daripada

penyelesaian sebenar. Dalam situasi lain, pencapahan juga berlaku apabila terbitan

peringkat ke dua dalam rumus lelaran berangka Kaedah Newton bernilai sifar atau

menghampiri sifar. Kaedah Lanjutan Homotopi (Homotopy Continuation Method)

mempunyai kebolehan untuk mengatasi masalah ini. Tujuan kajian ini dibuat

adalah untuk mengkaji langkah yang diambil dalam Kaedah Lanjutan Homotopi

(Homotopy Continuation Method) bagi mengatasi masalah pencapahan dalam

Kaedah Newton. Kaedah Lanjutan Homotopi (Homotopy Continuation Method)

adalah sejenis kaedah pertubasi yang dapat menjamin jawapan dengan adanya jalan

yang tertentu jika kita memilih fungsi homotopi tambahan. Kaedah ini mengubah

situasi yang rumit menjadi sederhana yang bertujuan memudahkan penyelesaian

dan secara berperingkat mengubah masalah sederhana kepada masalah yang asal

dengan mengira nilai-nilai optimum bagi masalah yang diubah dan akhirnya

kaedah ini berakhir dengan penghasilan nilai extremum bagi masalah asal. Untuk

menguatkan lagi penemuan, kajian ini menyediakan penerangan mengenai kod

MATLAB bagi melaksanakan Kaedah Lanjutan Homotopi (Homotopy

Continuation Method) dan Kaedah Newton untuk menyelesaikan masalah

pengoptimuman. Kajian ini berjaya dalam mengatasi masalah pencapahan dalam

Kaedah Newton dan dapat menjamin dalam mendapatkan jawapan.

Page 6: HOMOTOPY CONTINUATION METHOD IN AVOIDING THE …eprints.utm.my/id/eprint/28490/5/NorEzwaniMatNorMFS2011.pdf · Their views and tips are useful indeed. ... ABSTRAK Kaedah Newton adalah

vi

ABSTRACT

The traditional Newton’s Method is known as a popular method for solving

optimization problem of non-linear functions. It is derived from the efficiency in

the convergence speed. However, Newton’s Method usually will yield divergence

especially when the initial value is far away from the exact solution. In another

situation, divergence also occur when the second derivative in the numerical

iteration formula of Newton’s Method is equal to zero or tends to zero. Homotopy

Continuation Method has the ability to overcome this problem. The purpose of this

research is to probe the step taken in Homotopy Continuation Method in avoiding

the problem of divergence in Traditional Newton’s Method. Homotopy

Continuation Method is a kind of perturbation method that can guarantee the

answer by a certain path if we choose the auxiliary homotopy function. This

method transforms a complicated situation into a simpler one that is easy to solve

and gradually deform the simpler problem into the original one by computing the

extremizers of the intervening problems and eventually ending with an extremum

of the original problem. To strengthen the findings, this thesis presents a

description of a MATLAB code that implements the Homotopy Continuation

Method and Newton’s Method for solving the optimization problem. This study

succeeded in avoiding the problem of divergence of traditional Newton Method and

can guarantee the answer.

Page 7: HOMOTOPY CONTINUATION METHOD IN AVOIDING THE …eprints.utm.my/id/eprint/28490/5/NorEzwaniMatNorMFS2011.pdf · Their views and tips are useful indeed. ... ABSTRAK Kaedah Newton adalah

vii

TABLE OF CONTENTS

CHAPTER TITLE PAGE

TITLE PAGE i

DECLARATION ii

DEDICATION iii

ACKNOWLEDGEMENT iv

ABSTRAK v

ABSTRACT vi

TABLE OF CONTENTS vii

LIST OF TABLES x

LIST OF FIGURES xi

LIST OF SYMBOLS AND ABREVIATIONS xii

LIST OF APPENDICES xiii

1 INTRODUCTION

1.1 Introduction 1

1.2 Background of the Problem 3

1.3 Statement of the Problem 4

1.4 Research Question 4

Page 8: HOMOTOPY CONTINUATION METHOD IN AVOIDING THE …eprints.utm.my/id/eprint/28490/5/NorEzwaniMatNorMFS2011.pdf · Their views and tips are useful indeed. ... ABSTRAK Kaedah Newton adalah

viii

1.5 Objectives of the Study 5

1.6 Scope of the Study 6

1.7 Significance of the Study 6

2 LITERATURE REVIEW

2.1 Introduction 8

2.2 Newton’s Method 9

2.3 Newton’s Method in Optimization Problem 12

2.4 Homotopy Continuation Method 14

2.5 Matlab Software 18

3 RESEARCH METHODOLOGY

3.1 Introduction 19

3.2 Research Design and Procedure 20

3.3 Instruments 22

3.3.1 Newton’s Method 22

3.3.2 Homotopy Continuation Method 25

3.3.2.1 Concept of Homotopy 26

Continuation Method

3.3.2.2 Advantages of Homotopy 31

Continuation Method in way

to avoid the problem of

divergence in Newton’s

Method

3.4 Variants of Homotopies 31

3.5 Procedure in finding Extremizer by Linear

Homotopy and Newton Homotopy 32

3.6 Summary and Conclusion 39

Page 9: HOMOTOPY CONTINUATION METHOD IN AVOIDING THE …eprints.utm.my/id/eprint/28490/5/NorEzwaniMatNorMFS2011.pdf · Their views and tips are useful indeed. ... ABSTRAK Kaedah Newton adalah

ix

4 EXPERIMENTATION

4.1 Introduction 40

4.2 Numerical Example 41

4.3 Summary and Conclusion 54

5 CONCLUSION AND RECOMMENDATION

5.1 Introduction 56

5.2 Conclusion 56

5.3 Recommendation 59

REFERENCES 60

APPENDIX A 62

APPENDIX B 63

APPENDIX C 64

APPENDIX D 65

Page 10: HOMOTOPY CONTINUATION METHOD IN AVOIDING THE …eprints.utm.my/id/eprint/28490/5/NorEzwaniMatNorMFS2011.pdf · Their views and tips are useful indeed. ... ABSTRAK Kaedah Newton adalah

x

LIST OF TABLES

TABLE NO TITLE PAGE

4.1 The result of traditional Newton’s and Linear

Homotopy Algorithm in Example 1 using MATLAB9 46

4.2 The result of Homotopy Continuation Method using

Linear Homotopy and Newton Homotopy (Example 2)

Using MATLAB9. 49

4.3 MATLAB iteration of Example 2 by Linear Homotopy 50

4.4 The initial solution produce by Linear Homotopy 51

4.5 MATLAB iteration of Example 2 by Newton Homotopy 51

4.6 The initial solution produce by Newton Homotopy 52

Page 11: HOMOTOPY CONTINUATION METHOD IN AVOIDING THE …eprints.utm.my/id/eprint/28490/5/NorEzwaniMatNorMFS2011.pdf · Their views and tips are useful indeed. ... ABSTRAK Kaedah Newton adalah

xi

LIST OF FIGURES

FIGURE NO TITLE PAGE

2.1 Geometrical illustration of Newton’s Method 10

3.1 The flow chart of the research 21

3.2 The flow chart of Newton’s Algorithm 25

3.3 The flow chart of Homotopy Continuation Algorithm 38

4.1 Graph Function of Example 1 47

4.2 Graph Function of Example 2 49

4.3 Trace of initial solution produce by Linear Homotopy

And Newton Homotopy. 50

Page 12: HOMOTOPY CONTINUATION METHOD IN AVOIDING THE …eprints.utm.my/id/eprint/28490/5/NorEzwaniMatNorMFS2011.pdf · Their views and tips are useful indeed. ... ABSTRAK Kaedah Newton adalah

xii

LIST OF SYMBOLS AND ABREVIATIONS

� Function

� Homotopy Function

∆ Difference

� Tends to

� Epsilon

�� Optimum point

� Real number

Page 13: HOMOTOPY CONTINUATION METHOD IN AVOIDING THE …eprints.utm.my/id/eprint/28490/5/NorEzwaniMatNorMFS2011.pdf · Their views and tips are useful indeed. ... ABSTRAK Kaedah Newton adalah

xiii

LIST OF APPENDICES

APPENDIX TITLE PAGE

A Newton’s Algorithm in MATLAB 9 for Example 1 62

B Linear Homotopy Algorithm in MATLAB 9 code

For Example 1 63

C Linear Homotopy Algorithm in MATLAB 9 code

For Example 2 64

D Newton Homotopy Algorithm in MATLAB 9 code

For Example 2 65

Page 14: HOMOTOPY CONTINUATION METHOD IN AVOIDING THE …eprints.utm.my/id/eprint/28490/5/NorEzwaniMatNorMFS2011.pdf · Their views and tips are useful indeed. ... ABSTRAK Kaedah Newton adalah

1

CHAPTER 1

INTRODUCTION

1.1 Introduction

In the real world, optimization can be used in business transactions,

engineering design and in our daily routine. In business, they use optimization to

maximize their profit and minimize the cost. In our daily routine, for example

when we plan our holiday, we want to minimize the cost but maximize the

enjoyment. Therefore, optimization study are both of scientific interest and

practical implications and subsequently the methodology will have many

applications (Yang, 2008).

Judd (1999) said, in economic, economists assume that firms minimize

costs and maximize profits, consumers maximize utility, payers maximize payoffs,

and social planners maximize social welfare. They also use optimization methods

Page 15: HOMOTOPY CONTINUATION METHOD IN AVOIDING THE …eprints.utm.my/id/eprint/28490/5/NorEzwaniMatNorMFS2011.pdf · Their views and tips are useful indeed. ... ABSTRAK Kaedah Newton adalah

2

in least squares, method of moments, and maximum likelihood estimation

procedures.

Generally, optimization consists of three steps. First, understanding the

system. Secondly, finding the measure of system effectiveness and finally finding

the degrees of freedom analysis and choosing a proper technique to solve the

problem. Whatever the real world problem is, it is possible to formulate the

optimization problem in a generic form.

In solving the optimization problem on nonlinear equations, some

uncontrollable situation as overflow and divergence might usually arise. This

situation occurred because of the bad structure of equations and the initial guess

that is far away from the solution.

Homotopy Continuation Method belong to the family of continuation

methods. This method was known as early as the 1930s. In 1960s in United

States, this method was used by kinematician for solving mechanism synthesis

problems. Homotopy Continuation Method gives a set of certain answers and some

simple iteration process to obtain our solutions more precisely. Like all other

continuation method, they represent a way to find solution to a problem by

constructing a new problem that is simpler than the original one, and then gradually

transform this simpler problem into the original one. The big advantage of this

method is it can guarantee the answer by a certain path if we choose the auxiliary

homotopy function. It does not matter if we choose the initial value far away from

the solution and if the second derivatives in our iteration is equal to or tends to

zero.

Page 16: HOMOTOPY CONTINUATION METHOD IN AVOIDING THE …eprints.utm.my/id/eprint/28490/5/NorEzwaniMatNorMFS2011.pdf · Their views and tips are useful indeed. ... ABSTRAK Kaedah Newton adalah

3

1.2 Background of the Problem

Newton’s Method have several weakness. Firstly, if the initial value is far

away from the solution, then the Newton’s Method is not guaranteed to converge to

the minimizer. Finding a good initial value �� for Newton’s method is a crucial

problem. Sometimes, this method leads to divergent oscillations that move away

from the answer, which it overshoots. Secondly, if the second derivatives in the

numerical iteration formula of Newton’s Method is equal to zero or tends to zero,

the solution has the possibility to diverge.

Homotopy Continuation Method can be used to generate a good starting

value. This method can guarantee to converge to the answer if we choose the

auxiliary homotopy function well. Homotopy Continuation Method does some

simple iteration process to obtain our solutions more precisely. The algorithm of

this method is clear and easy as well as its convergence speed is fast.

Wu (2005), presents some useful rules for the choice of the auxiliary

homotopy function to avoid the problem of divergence of traditional Newton’s

Method for finding the roots. In this study, we modify the methods introduce by

Wu (2005), and present some useful rules for choosing the auxiliary homotopy

function to avoid the problem of divergence of traditional Newton’s Method for

solving optimization problem.

Page 17: HOMOTOPY CONTINUATION METHOD IN AVOIDING THE …eprints.utm.my/id/eprint/28490/5/NorEzwaniMatNorMFS2011.pdf · Their views and tips are useful indeed. ... ABSTRAK Kaedah Newton adalah

4

1.3 Statement of the Problem

Newton’s Method usually will yield divergence especially when the initial

initial value is far away from the exact solution. The homotopy method can be

used to generate a good starting value. In other situation, divergence also occur

when the second derivatives of numerical iteration formula of Newton’s Method is

equal to zero or tends to zero. Homotopy Continuation Method has ability to

overcome this problem.

The purpose of this research is to probe the step taken in Homotopy

Continuation Method in avoiding the problem of divergence on Traditional

Newton’s Method.

1.4 Research Question

For this research, there are some questions need to be answered.

i. What is the reason behind the situation of divergence in Newton’s

Method?

ii. How does Homotopy Continuation Method generate a good starting

value to avoid the problem of divergence in Newton’s Method?

iii. What is the algorithm of Homotopy Continuation Method for finding

extremizer?

Page 18: HOMOTOPY CONTINUATION METHOD IN AVOIDING THE …eprints.utm.my/id/eprint/28490/5/NorEzwaniMatNorMFS2011.pdf · Their views and tips are useful indeed. ... ABSTRAK Kaedah Newton adalah

5

iv. What is the result analysis of the ability of Newton’s Method and

Homotopy Continuation Method in solving optimization problem?

v. What is the result analysis of the trace of initial solution produce by

Linear Homotopy and Newton Homotopy.

1.5 Objectives of the Study

Objectives of this study are:

i. To identify the reason behind the situation of divergence in Newton’s

Method.

ii. To study how Homotopy Continuation Method generate a good

starting value .

iii. To develop the algorithm of Homotopy Continuation Method for

finding extremizer.

iv. To analyze and compare the ability of Newton’s Method and Homotopy

Continuation Method in solving optimization problem.

v. To analyze and compare the trace of initial solution produce by Linear

Homotopy and Newton Homotopy.

Page 19: HOMOTOPY CONTINUATION METHOD IN AVOIDING THE …eprints.utm.my/id/eprint/28490/5/NorEzwaniMatNorMFS2011.pdf · Their views and tips are useful indeed. ... ABSTRAK Kaedah Newton adalah

6

1.6 Scope of the Study

The scope of this study is to apply Homotopy Continuation Method for

solving optimization problem. Nonlinear equations on univariate function will be

used. Some example will be presented.

We will only focus only in solving optimization problem on univariate

function of nonlinear equation for several reason. First, one dimensional problem

illustrate the basic techniques in very simple and easy to understand problem.

Second, one dimensional problem is important since many of multivariate method

reduce to solving a sequence of one-dimensional problems.

1.7 Significance of the Study

To explore as well as to excel the knowledge in the usage of Homotopy

Newton’s Method to overcome the problem in Newton’s Method. This research

presents some useful rule of Homotopy Continuation Method to avoid the problem

of divergence of traditional Newton’s Method. Using the homotopy function,

Newton’s Method will become more efficient. The new Homotopy Continuation

Method can be used in the industry instead of Newton’s Method.

This research is good enough to produce the research paper. Research

paper will also be sent and published in the national journal. The result of this

Page 20: HOMOTOPY CONTINUATION METHOD IN AVOIDING THE …eprints.utm.my/id/eprint/28490/5/NorEzwaniMatNorMFS2011.pdf · Their views and tips are useful indeed. ... ABSTRAK Kaedah Newton adalah

7

research can be used for further research in related areas. Furthermore, this

research will enhance contribution from Mathematicians in Malaysia especially in

Operational Research area. It is hoped that the work presented here will contribute

towards progress in the numerical techniques and other relative fields for scientists

or engineers.

Page 21: HOMOTOPY CONTINUATION METHOD IN AVOIDING THE …eprints.utm.my/id/eprint/28490/5/NorEzwaniMatNorMFS2011.pdf · Their views and tips are useful indeed. ... ABSTRAK Kaedah Newton adalah

60

REFERENCES

Eaves, B.C, Gould, F.J, Peitgen, H.O.,and Todd M.J. (1981). Homotopy Methods

and Global Convergence. New York and London : Plenum Press.

Garcia, C.B, and Zangwill, W.I. (1981). Pathways to Solutions, Fixed Points and

Equilibria. New Jersey : Prentice-Hall Book Company Inc, Englewood

Cliffs.

Judd, K.L. (1988). Numerical Methods in Economics. Cambridge, MA : MIT

Press.

Allgower, E.L., and Georg, K. (1990). Numerical Continuation Methods, An

Introduction. New York : Springer-Verlag.

Allaire, G. (2007). Numerical Analysis and Optimization. Cambridge, MA : MIT

Press.

Brandimarte, P. (2006). Numerical Methods In Finance and Economics. New

Jersey : John Wiley & Sons, Inc., Hokeben.

Deuflhard, P. (2004). Newton’s Methods for Nonlinear Problems. (2nd

ed.) Berlin

Heidelberg : Springer-Verlag.

Page 22: HOMOTOPY CONTINUATION METHOD IN AVOIDING THE …eprints.utm.my/id/eprint/28490/5/NorEzwaniMatNorMFS2011.pdf · Their views and tips are useful indeed. ... ABSTRAK Kaedah Newton adalah

61

Greig, D.M (1980). Optimisation. New York : Longman.

Kincaid, D., and Cheney, W. (1991). Numerical Analysis : Mathematics of

Scientific Computing. Pacific Grove, CA : Brooks/Cole Publishing

Company.

Chapman, S.J. (2006). Essentials of MATLAB Programming. United States of

America : Nelson, a division of Thomson Canada Limited.

Joshi, M.C., and Moudgalya, K.M. (2004). Optimization, Theory and Practice.

Harrow, U.K : Alpha Science International Ltd.

Yang, X.S. (2008). Computational Mathematics. World Scientific.

Wu, T.M. (2004). A study of convergence on the Newton-homotopy continuation

method. Applied Mathematics and Computation (in press).

Wu, T.M. (2004). Solving the nonlinear equations by the Newton-homotopy

continuation method with adjustable auxiliary homotopy function. Applied

Mathematics and Computation (in press).