SlideShare a Scribd company logo
1 of 15
Download to read offline
Chapter 7.
Iterative Solutions of Systems
         of Equations
         of Equations

       EFLUM – ENAC ‐ EPFL
Contents
1.
1 Introduction
2. First example: Scalar Equation
3.
3 Iterative solutions of a system of equations: 
          i    l i     f             f      i
   Jacobi iteration method
4. Iterative methods for finite difference 
   equations: Back to problem 6.3
5. The Successive Over Relaxation (SOR)
Introduction: The fixed point iteration
                            p




Previous Method (used on previous class)
Uses Gaussian Elimination (or “” in MatLab)
Introduction: The fixed point iteration
                                        p

The main concept:                            xk +1 = g ( xk )
 Example:
                                                                            xk
3x = 6                        2x + x = 6                           xk +1 = − + 3
 X0 = 4
      4
                                                                            2
                3.5

                 3
  Value of xn




                2.5
         f




                 2

                1.5

 X0 = 1
      1

                0.5

 X0 = 00
      0
                      1   2   3   4         5          6   7   8    9   10
                                      Iteration step
Introduction: The fixed point iteration
                           p
                                     xk
The proof of convergence:   xk +1 = − + 3
                                     2



                                           1       2
                                                 =
                                       1 + (1 2 ) 3
Introduction: The fixed point iteration
                                  p

First Iteration method:
                                                 xk
3x = 6        2x + x = 6                xk +1 = − + 3
                                                 2
                                   Always Converges

Generalized iteration method:
G     li d it ti        th d
                                                3 −α          6
3x = 6      (3 − α ) x + α x = 6    xk +1 = −          xk +
                                                 α            α
                                   Converges?
Introduction: The fixed point iteration
                                                                   p
Generalized iteration method:
                                                                                                                  3 −α            6
3x = 6                                               (3 − α ) x + α x = 6                        xk +1 = −                 xk +
                                                                                                                   α              α
       Converges?
         No                                                 Yes
                                    mber




                                            1
                         teration num




                                                       X: 1.5
                                                       Y:
                                                       Y 1

                                           0.8


                                           0.6
         magnitu of the it




                                           0.4
               ude




                                           0.2
                                                                      X: 3
                                                                      Y: 0
                                            0
                                                 1         2      3          4       5       6       7        8        9    10
                                                                         value of the splitting parameter α
Introduction: The fixed point iteration
                                 p
Generalized iteration method:
                                                                             3 −α                   6
                                                             xk +1 = −                      xk +
How fast does it Converges?
                                                                                    α               α


                                            8
                                                                                                         α   = 1.42
                  The smaller                                                                            α   = 1.5
                                            6                                                            α   = 2.0
                  this value is                                                                          α   = 2.5
                                                                                                         α   = 3.0
                The fastest is              4
                                                                                                         α   =40
                                                                                                               4.0
                              value of xn




             the convergence                                                                             α   = 5.0
                                            2


                                            0


                                            -2


                                            -4
                                                 0   1   2     3   4     5          6   7   8   9   10
                                                                   Iteration Step
Iterative solution of a system of equations
                              y         q
                  Jacobi interaction approach
Consider the problem



                                       D: Diagonal elements of A

                                           L: Lower elements of A
                                          +U: Upper elements of A
                                        L+U:             Matrix B




                 and      Q <1
Iterative solution of a system of equations
                         y         q
  Some notes about the vector norm
             The vector norm calculation




  Some notes about the matrix norm
  S      t    b t th     ti

            The matrix norm calculation
Iterative solution of a system of equations
                         y         q
Back to problem 6.3 ( ° case – last class)
               p           (1°
                           (1                   )



Back to Laplace Equation (Last class example)
M_diag=sparse(1:21,1:21,-4,21,21);
L_diag1=sparse(2:21,1:20,1,21,21);
L_diag2=sparse(8:21,1:14,1,21,21);
L_diag1(8,7)=0; L_diag1(15,14)=0;
A=M_diag+L_diag1+L_diag2+L_diag1'+L_diag2';
A M di +L di 1+L di 2+L di 1'+L di 2'
b=zeros(21,1); b(7)=-100; b(14)=-100; b(21)=-100;


                                                    convcrit 1e9;
                                                    convcrit=1e9;
  iteration matrix is Q=-Dinv*LnU                   h_old=ones(21,1);
                                                    kount=0;
 L=L_diag1+L_diag2                                  while convcrit>1e-3 % loop ends when fractional
 U=L‘;
     ;                                                kount=kount+1; % change in h < 10-3
 LnU=L+U;                                             h=Q*h_old+Dinv*b;
                                                      convcrit=max(abs(h-h_old)./h);
 Dinv=inv(M_diag) %D-1
                                                      h_old=h;
                                                    end
Iterative solution of a system of equations
                         y         q
                       convcrit=1e9;
                       h_old=ones(21,1);
                       kount=0;
                       while convcrit>1e-3 % loop ends when fractional
                         kount=kount+1; % change in h < 10-3
                         h=Q*h_old+Dinv*b;
                         convcrit=max(abs(h-h_old)./h);
                         h_old=h;
                       end
Successive over relaxation method
         Before                                Now

Jacobi iteration approach


                                      ρ(Q) = abs(max(eig(Q)))
                                                (   ( g(Q)))
                            Successive Order Relaxation Method
                                            (SOR)
                     S(ω): Iteration matrix.
                     ρ(Q): Magnitude of the largest eigenvalue of the
                           Jacobi iteration matrix.
                     ωopt: Iteration parameter, chosen to accelerate
                           convergence
Iterative solution of a system of equations
                               y         q
                                   wopt=2/(1+sqrt(1-(normest(Q))^2));
                                   y=inv(D*(1/wopt)+L);
                                   S=-y*(U+(1-(1/wopt))*D);
convcrit=1e9;
       it 1 9                             it 1 9
                                   convcrit=1e9;
h_old=ones(21,1);                  h_old=ones(21,1);
kount=0;                           kount=0;
while convcrit > 1e-3              while convcrit > 1e-3
  kount=kount+1;                    kount=kount+1;
  h=Q*h_old+Dinv*b;                 h=S*h_old+y*b;
  convcrit=max(abs(h-h_old)./h);    convcrit=max(abs(h-h_old)./h);
  h_old=h;                          h_old=h;
end                                end




               Slow                               Fast ☺

More Related Content

What's hot

presentation on Euler and Modified Euler method ,and Fitting of curve
presentation on Euler and Modified Euler method ,and Fitting of curve presentation on Euler and Modified Euler method ,and Fitting of curve
presentation on Euler and Modified Euler method ,and Fitting of curve Mukuldev Khunte
 
Direct Methods to Solve Linear Equations Systems
Direct Methods to Solve Linear Equations SystemsDirect Methods to Solve Linear Equations Systems
Direct Methods to Solve Linear Equations SystemsLizeth Paola Barrero
 
state space representation,State Space Model Controllability and Observabilit...
state space representation,State Space Model Controllability and Observabilit...state space representation,State Space Model Controllability and Observabilit...
state space representation,State Space Model Controllability and Observabilit...Waqas Afzal
 
Numerical Solution of Ordinary Differential Equations
Numerical Solution of Ordinary Differential EquationsNumerical Solution of Ordinary Differential Equations
Numerical Solution of Ordinary Differential EquationsMeenakshisundaram N
 
Linear Systems Gauss Seidel
Linear Systems   Gauss SeidelLinear Systems   Gauss Seidel
Linear Systems Gauss SeidelEric Davishahl
 
Gauss jordan method.pptx
Gauss jordan method.pptxGauss jordan method.pptx
Gauss jordan method.pptxRehmanRasheed3
 
Euler and improved euler method
Euler and improved euler methodEuler and improved euler method
Euler and improved euler methodSohaib Butt
 
Lu decomposition
Lu decompositionLu decomposition
Lu decompositiongilandio
 
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical MethodsGauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical MethodsJanki Shah
 
GATE Engineering Maths : System of Linear Equations
GATE Engineering Maths : System of Linear EquationsGATE Engineering Maths : System of Linear Equations
GATE Engineering Maths : System of Linear EquationsParthDave57
 
Applications of numerical methods
Applications of numerical methodsApplications of numerical methods
Applications of numerical methodsTarun Gehlot
 
Higher Order Differential Equation
Higher Order Differential EquationHigher Order Differential Equation
Higher Order Differential EquationShrey Patel
 
Gauss-Jordan Theory
Gauss-Jordan TheoryGauss-Jordan Theory
Gauss-Jordan TheoryHernanFula
 
Numerical Methods: curve fitting and interpolation
Numerical Methods: curve fitting and interpolationNumerical Methods: curve fitting and interpolation
Numerical Methods: curve fitting and interpolationNikolai Priezjev
 

What's hot (20)

presentation on Euler and Modified Euler method ,and Fitting of curve
presentation on Euler and Modified Euler method ,and Fitting of curve presentation on Euler and Modified Euler method ,and Fitting of curve
presentation on Euler and Modified Euler method ,and Fitting of curve
 
Direct Methods to Solve Linear Equations Systems
Direct Methods to Solve Linear Equations SystemsDirect Methods to Solve Linear Equations Systems
Direct Methods to Solve Linear Equations Systems
 
state space representation,State Space Model Controllability and Observabilit...
state space representation,State Space Model Controllability and Observabilit...state space representation,State Space Model Controllability and Observabilit...
state space representation,State Space Model Controllability and Observabilit...
 
Gauss jordan
Gauss jordanGauss jordan
Gauss jordan
 
Numerical Solution of Ordinary Differential Equations
Numerical Solution of Ordinary Differential EquationsNumerical Solution of Ordinary Differential Equations
Numerical Solution of Ordinary Differential Equations
 
Linear Systems Gauss Seidel
Linear Systems   Gauss SeidelLinear Systems   Gauss Seidel
Linear Systems Gauss Seidel
 
Gauss jordan method.pptx
Gauss jordan method.pptxGauss jordan method.pptx
Gauss jordan method.pptx
 
Euler and improved euler method
Euler and improved euler methodEuler and improved euler method
Euler and improved euler method
 
Lu decomposition
Lu decompositionLu decomposition
Lu decomposition
 
Interpolation
InterpolationInterpolation
Interpolation
 
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical MethodsGauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
 
GATE Engineering Maths : System of Linear Equations
GATE Engineering Maths : System of Linear EquationsGATE Engineering Maths : System of Linear Equations
GATE Engineering Maths : System of Linear Equations
 
Euler and runge kutta method
Euler and runge kutta methodEuler and runge kutta method
Euler and runge kutta method
 
Applications of numerical methods
Applications of numerical methodsApplications of numerical methods
Applications of numerical methods
 
Higher Order Differential Equation
Higher Order Differential EquationHigher Order Differential Equation
Higher Order Differential Equation
 
Gauss-Jordan Theory
Gauss-Jordan TheoryGauss-Jordan Theory
Gauss-Jordan Theory
 
Numerical Methods: curve fitting and interpolation
Numerical Methods: curve fitting and interpolationNumerical Methods: curve fitting and interpolation
Numerical Methods: curve fitting and interpolation
 
Secant method
Secant method Secant method
Secant method
 
Gauss elimination
Gauss eliminationGauss elimination
Gauss elimination
 
GAUSS ELIMINATION METHOD
 GAUSS ELIMINATION METHOD GAUSS ELIMINATION METHOD
GAUSS ELIMINATION METHOD
 

Viewers also liked

Gauss jordan and Guass elimination method
Gauss jordan and Guass elimination methodGauss jordan and Guass elimination method
Gauss jordan and Guass elimination methodMeet Nayak
 
Newton Raphson method for load flow analysis
Newton Raphson method for load flow analysisNewton Raphson method for load flow analysis
Newton Raphson method for load flow analysisdivyanshuprakashrock
 
A common fixed point theorem for two random operators using random mann itera...
A common fixed point theorem for two random operators using random mann itera...A common fixed point theorem for two random operators using random mann itera...
A common fixed point theorem for two random operators using random mann itera...Alexander Decker
 
system of algebraic equation by Iteration method
system of algebraic equation by Iteration methodsystem of algebraic equation by Iteration method
system of algebraic equation by Iteration methodAkhtar Kamal
 
Agile Metrics
Agile MetricsAgile Metrics
Agile Metricsnick945
 
On finite differences, interpolation methods and power series expansions in i...
On finite differences, interpolation methods and power series expansions in i...On finite differences, interpolation methods and power series expansions in i...
On finite differences, interpolation methods and power series expansions in i...PlusOrMinusZero
 
Perturbation methods last
Perturbation methods lastPerturbation methods last
Perturbation methods lastSabir Ahmed
 
Calculus II - 13
Calculus II - 13Calculus II - 13
Calculus II - 13David Mao
 
Successive iteration method for reconstruction of missing data
Successive iteration method for reconstruction of missing dataSuccessive iteration method for reconstruction of missing data
Successive iteration method for reconstruction of missing dataIAEME Publication
 
Numerical analysis using Scilab: Solving nonlinear equations
Numerical analysis using Scilab: Solving nonlinear equationsNumerical analysis using Scilab: Solving nonlinear equations
Numerical analysis using Scilab: Solving nonlinear equationsScilab
 
Newton method based iterative learning control for nonlinear systems
Newton method based iterative learning control for nonlinear systemsNewton method based iterative learning control for nonlinear systems
Newton method based iterative learning control for nonlinear systemsTian Lin
 
Brief introduction to perturbation theory
Brief introduction to perturbation theoryBrief introduction to perturbation theory
Brief introduction to perturbation theoryAnamika Banerjee
 
Iterative methods
Iterative methodsIterative methods
Iterative methodsKt Silva
 
Chapter 2 pertubation
Chapter 2 pertubationChapter 2 pertubation
Chapter 2 pertubationNBER
 
Interactives Methods
Interactives MethodsInteractives Methods
Interactives MethodsUIS
 

Viewers also liked (20)

Numerical method
Numerical methodNumerical method
Numerical method
 
Fixedpoint
FixedpointFixedpoint
Fixedpoint
 
Gauss jordan and Guass elimination method
Gauss jordan and Guass elimination methodGauss jordan and Guass elimination method
Gauss jordan and Guass elimination method
 
Newton Raphson method for load flow analysis
Newton Raphson method for load flow analysisNewton Raphson method for load flow analysis
Newton Raphson method for load flow analysis
 
A common fixed point theorem for two random operators using random mann itera...
A common fixed point theorem for two random operators using random mann itera...A common fixed point theorem for two random operators using random mann itera...
A common fixed point theorem for two random operators using random mann itera...
 
system of algebraic equation by Iteration method
system of algebraic equation by Iteration methodsystem of algebraic equation by Iteration method
system of algebraic equation by Iteration method
 
Agile Metrics
Agile MetricsAgile Metrics
Agile Metrics
 
On finite differences, interpolation methods and power series expansions in i...
On finite differences, interpolation methods and power series expansions in i...On finite differences, interpolation methods and power series expansions in i...
On finite differences, interpolation methods and power series expansions in i...
 
Newton rapson codigos
Newton rapson codigosNewton rapson codigos
Newton rapson codigos
 
02 newton-raphson
02 newton-raphson02 newton-raphson
02 newton-raphson
 
Perturbation methods last
Perturbation methods lastPerturbation methods last
Perturbation methods last
 
Calculus II - 13
Calculus II - 13Calculus II - 13
Calculus II - 13
 
Successive iteration method for reconstruction of missing data
Successive iteration method for reconstruction of missing dataSuccessive iteration method for reconstruction of missing data
Successive iteration method for reconstruction of missing data
 
Numerical analysis using Scilab: Solving nonlinear equations
Numerical analysis using Scilab: Solving nonlinear equationsNumerical analysis using Scilab: Solving nonlinear equations
Numerical analysis using Scilab: Solving nonlinear equations
 
Ch02 7
Ch02 7Ch02 7
Ch02 7
 
Newton method based iterative learning control for nonlinear systems
Newton method based iterative learning control for nonlinear systemsNewton method based iterative learning control for nonlinear systems
Newton method based iterative learning control for nonlinear systems
 
Brief introduction to perturbation theory
Brief introduction to perturbation theoryBrief introduction to perturbation theory
Brief introduction to perturbation theory
 
Iterative methods
Iterative methodsIterative methods
Iterative methods
 
Chapter 2 pertubation
Chapter 2 pertubationChapter 2 pertubation
Chapter 2 pertubation
 
Interactives Methods
Interactives MethodsInteractives Methods
Interactives Methods
 

Similar to METHOD OF JACOBI

Rational Exponents
Rational ExponentsRational Exponents
Rational ExponentsPhil Saraspe
 
Emat 213 midterm 2 winter 2006
Emat 213 midterm 2 winter 2006Emat 213 midterm 2 winter 2006
Emat 213 midterm 2 winter 2006akabaka12
 
Integrated Math 2 Section 3-2
Integrated Math 2 Section 3-2Integrated Math 2 Section 3-2
Integrated Math 2 Section 3-2Jimbo Lamb
 
Nov. 17 Rational Inequalities
Nov. 17 Rational InequalitiesNov. 17 Rational Inequalities
Nov. 17 Rational InequalitiesRyanWatt
 
Module 5 Inequalities
Module 5  InequalitiesModule 5  Inequalities
Module 5 Inequalitiesnorainisaser
 
MODULE 5- Inequalities
MODULE 5- InequalitiesMODULE 5- Inequalities
MODULE 5- Inequalitiesguestcc333c
 
Varian, microeconomic analysis, solution book
Varian, microeconomic analysis, solution bookVarian, microeconomic analysis, solution book
Varian, microeconomic analysis, solution bookJosé Antonio PAYANO YALE
 
2 senarai rumus add maths k1 trial spm sbp 2010
2 senarai rumus add maths k1 trial spm sbp 20102 senarai rumus add maths k1 trial spm sbp 2010
2 senarai rumus add maths k1 trial spm sbp 2010zabidah awang
 
2 senarai rumus add maths k2 trial spm sbp 2010
2 senarai rumus add maths k2 trial spm sbp 20102 senarai rumus add maths k2 trial spm sbp 2010
2 senarai rumus add maths k2 trial spm sbp 2010zabidah awang
 
Nov. 17 Rational Inequalities
Nov. 17 Rational InequalitiesNov. 17 Rational Inequalities
Nov. 17 Rational InequalitiesRyanWatt
 
Classzone Chapter 4
Classzone Chapter 4Classzone Chapter 4
Classzone Chapter 4DallinS
 
fauvel_igarss.pdf
fauvel_igarss.pdffauvel_igarss.pdf
fauvel_igarss.pdfgrssieee
 

Similar to METHOD OF JACOBI (20)

Em06 iav
Em06 iavEm06 iav
Em06 iav
 
Add maths 2
Add maths 2Add maths 2
Add maths 2
 
Add Maths 2
Add Maths 2Add Maths 2
Add Maths 2
 
Q2
Q2Q2
Q2
 
Rational Exponents
Rational ExponentsRational Exponents
Rational Exponents
 
Emat 213 midterm 2 winter 2006
Emat 213 midterm 2 winter 2006Emat 213 midterm 2 winter 2006
Emat 213 midterm 2 winter 2006
 
Day 01
Day 01Day 01
Day 01
 
Integrated Math 2 Section 3-2
Integrated Math 2 Section 3-2Integrated Math 2 Section 3-2
Integrated Math 2 Section 3-2
 
Linear law
Linear lawLinear law
Linear law
 
Nov. 17 Rational Inequalities
Nov. 17 Rational InequalitiesNov. 17 Rational Inequalities
Nov. 17 Rational Inequalities
 
Module 5 Inequalities
Module 5  InequalitiesModule 5  Inequalities
Module 5 Inequalities
 
MODULE 5- Inequalities
MODULE 5- InequalitiesMODULE 5- Inequalities
MODULE 5- Inequalities
 
Problems 2
Problems 2Problems 2
Problems 2
 
Chapter 1 straight line
Chapter 1 straight lineChapter 1 straight line
Chapter 1 straight line
 
Varian, microeconomic analysis, solution book
Varian, microeconomic analysis, solution bookVarian, microeconomic analysis, solution book
Varian, microeconomic analysis, solution book
 
2 senarai rumus add maths k1 trial spm sbp 2010
2 senarai rumus add maths k1 trial spm sbp 20102 senarai rumus add maths k1 trial spm sbp 2010
2 senarai rumus add maths k1 trial spm sbp 2010
 
2 senarai rumus add maths k2 trial spm sbp 2010
2 senarai rumus add maths k2 trial spm sbp 20102 senarai rumus add maths k2 trial spm sbp 2010
2 senarai rumus add maths k2 trial spm sbp 2010
 
Nov. 17 Rational Inequalities
Nov. 17 Rational InequalitiesNov. 17 Rational Inequalities
Nov. 17 Rational Inequalities
 
Classzone Chapter 4
Classzone Chapter 4Classzone Chapter 4
Classzone Chapter 4
 
fauvel_igarss.pdf
fauvel_igarss.pdffauvel_igarss.pdf
fauvel_igarss.pdf
 

More from jorgeduardooo

Cholesky method and Thomas
Cholesky method and ThomasCholesky method and Thomas
Cholesky method and Thomasjorgeduardooo
 
Basic concepts. Systems of equations
Basic concepts. Systems of equationsBasic concepts. Systems of equations
Basic concepts. Systems of equationsjorgeduardooo
 
Busqueda de una raiz-Metodos numericos
Busqueda de una raiz-Metodos numericosBusqueda de una raiz-Metodos numericos
Busqueda de una raiz-Metodos numericosjorgeduardooo
 

More from jorgeduardooo (7)

Cholesky method and Thomas
Cholesky method and ThomasCholesky method and Thomas
Cholesky method and Thomas
 
Lu decomposition
Lu decompositionLu decomposition
Lu decomposition
 
Basic concepts. Systems of equations
Basic concepts. Systems of equationsBasic concepts. Systems of equations
Basic concepts. Systems of equations
 
NUMERICAL METHODS
NUMERICAL METHODSNUMERICAL METHODS
NUMERICAL METHODS
 
NUMERICAL METHODS
NUMERICAL METHODSNUMERICAL METHODS
NUMERICAL METHODS
 
METHOD
METHOD METHOD
METHOD
 
Busqueda de una raiz-Metodos numericos
Busqueda de una raiz-Metodos numericosBusqueda de una raiz-Metodos numericos
Busqueda de una raiz-Metodos numericos
 

Recently uploaded

Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxUmeshTimilsina1
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 

Recently uploaded (20)

Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 

METHOD OF JACOBI

  • 1. Chapter 7. Iterative Solutions of Systems of Equations of Equations EFLUM – ENAC ‐ EPFL
  • 2. Contents 1. 1 Introduction 2. First example: Scalar Equation 3. 3 Iterative solutions of a system of equations:  i l i f f i Jacobi iteration method 4. Iterative methods for finite difference  equations: Back to problem 6.3 5. The Successive Over Relaxation (SOR)
  • 3. Introduction: The fixed point iteration p Previous Method (used on previous class) Uses Gaussian Elimination (or “” in MatLab)
  • 4. Introduction: The fixed point iteration p The main concept: xk +1 = g ( xk ) Example: xk 3x = 6 2x + x = 6 xk +1 = − + 3 X0 = 4 4 2 3.5 3 Value of xn 2.5 f 2 1.5 X0 = 1 1 0.5 X0 = 00 0 1 2 3 4 5 6 7 8 9 10 Iteration step
  • 5. Introduction: The fixed point iteration p xk The proof of convergence: xk +1 = − + 3 2 1 2 = 1 + (1 2 ) 3
  • 6. Introduction: The fixed point iteration p First Iteration method: xk 3x = 6 2x + x = 6 xk +1 = − + 3 2 Always Converges Generalized iteration method: G li d it ti th d 3 −α 6 3x = 6 (3 − α ) x + α x = 6 xk +1 = − xk + α α Converges?
  • 7. Introduction: The fixed point iteration p Generalized iteration method: 3 −α 6 3x = 6 (3 − α ) x + α x = 6 xk +1 = − xk + α α Converges? No Yes mber 1 teration num X: 1.5 Y: Y 1 0.8 0.6 magnitu of the it 0.4 ude 0.2 X: 3 Y: 0 0 1 2 3 4 5 6 7 8 9 10 value of the splitting parameter α
  • 8. Introduction: The fixed point iteration p Generalized iteration method: 3 −α 6 xk +1 = − xk + How fast does it Converges? α α 8 α = 1.42 The smaller α = 1.5 6 α = 2.0 this value is α = 2.5 α = 3.0 The fastest is 4 α =40 4.0 value of xn the convergence α = 5.0 2 0 -2 -4 0 1 2 3 4 5 6 7 8 9 10 Iteration Step
  • 9. Iterative solution of a system of equations y q Jacobi interaction approach Consider the problem D: Diagonal elements of A L: Lower elements of A +U: Upper elements of A L+U: Matrix B and Q <1
  • 10. Iterative solution of a system of equations y q Some notes about the vector norm The vector norm calculation Some notes about the matrix norm S t b t th ti The matrix norm calculation
  • 11. Iterative solution of a system of equations y q
  • 12. Back to problem 6.3 ( ° case – last class) p (1° (1 ) Back to Laplace Equation (Last class example) M_diag=sparse(1:21,1:21,-4,21,21); L_diag1=sparse(2:21,1:20,1,21,21); L_diag2=sparse(8:21,1:14,1,21,21); L_diag1(8,7)=0; L_diag1(15,14)=0; A=M_diag+L_diag1+L_diag2+L_diag1'+L_diag2'; A M di +L di 1+L di 2+L di 1'+L di 2' b=zeros(21,1); b(7)=-100; b(14)=-100; b(21)=-100; convcrit 1e9; convcrit=1e9; iteration matrix is Q=-Dinv*LnU h_old=ones(21,1); kount=0; L=L_diag1+L_diag2 while convcrit>1e-3 % loop ends when fractional U=L‘; ; kount=kount+1; % change in h < 10-3 LnU=L+U; h=Q*h_old+Dinv*b; convcrit=max(abs(h-h_old)./h); Dinv=inv(M_diag) %D-1 h_old=h; end
  • 13. Iterative solution of a system of equations y q convcrit=1e9; h_old=ones(21,1); kount=0; while convcrit>1e-3 % loop ends when fractional kount=kount+1; % change in h < 10-3 h=Q*h_old+Dinv*b; convcrit=max(abs(h-h_old)./h); h_old=h; end
  • 14. Successive over relaxation method Before Now Jacobi iteration approach ρ(Q) = abs(max(eig(Q))) ( ( g(Q))) Successive Order Relaxation Method (SOR) S(ω): Iteration matrix. ρ(Q): Magnitude of the largest eigenvalue of the Jacobi iteration matrix. ωopt: Iteration parameter, chosen to accelerate convergence
  • 15. Iterative solution of a system of equations y q wopt=2/(1+sqrt(1-(normest(Q))^2)); y=inv(D*(1/wopt)+L); S=-y*(U+(1-(1/wopt))*D); convcrit=1e9; it 1 9 it 1 9 convcrit=1e9; h_old=ones(21,1); h_old=ones(21,1); kount=0; kount=0; while convcrit > 1e-3 while convcrit > 1e-3 kount=kount+1; kount=kount+1; h=Q*h_old+Dinv*b; h=S*h_old+y*b; convcrit=max(abs(h-h_old)./h); convcrit=max(abs(h-h_old)./h); h_old=h; h_old=h; end end Slow Fast ☺