8 views

Uploaded by mohammed marey

- 08.04 - Runge-Kutta 2nd Order Method for ODE
- #05rims-e
- ChE312 Problem Set 1 Solutions W2016
- Numerical Method for engineers-chapter 23
- The Riccati equation method with variable expansion coefficients. I. Solving the Burgers equation
- Multiple Shooting Method
- Solving ODEs and PDEs in MATLAB
- Boundary Value Analysis
- Downey (2011) - Physical Modelling With Matlab
- finite element programming with MATLAB
- MATLAB Tutorial
- Kiguradze-Lomtatidze2010_Article_PeriodicSolutionsOfNonautonomo.pdf
- Introduction
- MATLAB TUTORIAL BASIC
- OpenKetManual.pdf
- ch02_6
- Petroleum Engg
- AP3114 Lecture WK10 Solving Differential Eqautions I
- Symmetry 414
- HMS112FormulaSheets_sem2

You are on page 1of 7

Shooting

method Continuous Method

Compare

matlab bvp4c, bvp5c

..

Example

F = zeros(4,1);

F(1) = y(3)^2;

F(2) = sqrt(y(4))-y(1);

F(3) = y(2)+y(1);

f(4) = y(1)-y(3);

Initial Con

y = [1 1 u(1) u(2)]; % and u(2) are unknowns.

Initial condition ODE Integrate

the system of nonlinear

equations

global XSTART XSTOP

r = zeros(length(u),1);

x = XSTART;

[xSol,ySol] = ode45(@dEqs,[x XSTOP],inCond(u));

[m,n] = size(ySol);

r(1) = ySol(m,1)-2;

r(2) = ySol(m,2)-3;

equations က r(1) and r(2)

solving the system of

nonlinear equations solving system of nonlinear

equations F(x)=0

Matlab fsolve

function fsolve

built-in trust region method ပ။ built-in

algorithm

options Gauss-newton or Levenberg-Marquardt

change

root finding

newton-raphson method newton-raphson

method

Advanced Engineering mathematics

Newton-rapson method matlab

% Newton-Raphson method of finding a root of simultaneous

% equations fi(x1,x2,...,xn) = 0, i = 1,2,...,n.

% USAGE: root = newtonRaphson2(func,x,tol)

% INPUT:

% func = handle of function that returns[f1,f2,...,fn].

% x = starting solution vector [x1,x2,...,xn].

% tol = error tolerance (default is 1.0e4*eps).

% OUTPUT:

% root = solution vector.

if nargin == 2; tol = 1.0e4*eps; end

if size(x,1) == 1; x = x'; end % x must be column vector

for i = 1:150

[jac,f0] = jacobian(func,x);

if sqrt(dot(f0,f0)/length(x)) < tol

root = x; return

end

dx = jac\(-f0);

%dx=-1e-3;

x = x + dx;

if sqrt(dot(dx,dx)/length(x)) < tol*max(abs(x),1.0)

root = x; return

end

end

error('Too many iterations')

% Returns the Jacobian matrix and f(x).

h = 1.0e-4;

n = length(x);

jac = zeros(n);

f0 = feval(func,x)

for i =1:n

temp = x(i);

x(i) = temp + h;

f1 = feval(func,x);

x(i) = temp;

jac(:,i) = (f1 - f0)/h;

end

method

.. Newton-raphson function

two

unknowns two equations function

function shoot4nl

% Shooting method for nonlinear 4th-order boundary

% value problem in Example.

global XSTART XSTOP % Make these params. global.

XSTART = 0; XSTOP = 1; % Range of integration.

u = [-1 1]; % Trial values of u(1)

% and u(2).

x = XSTART;

u = newtonRaphson2(@residual,u)

u=

-1.3777

11.4519

y3 and y4

Boundary Value Problem

y1=ySol(:,1);

y2=ySol(:,2);

plot(xSol,y1)

grid on

figure

plot(xSol,y2)

Fig(1) change of y1

ႈႈ

ႈႈ

fig(2).change of y2

fig(1) and fig(2)

Newton-raphson method matlab က fsolve

function

u

u=

-1.2250 11.0197

y3 and y4 initial ODE integrate

Fig(3).change of y1

Fig(4).change of y4

solving system of nonlinear equations

system of nonlinear equations

problem

method

matlab fsolve

strong

convergence

Myanmar Astronomy

presentation for Shanghai BVP

convergence

post

က continuous method convergence

core2duo prosessor, RAM 4Gb Run

solve အ run

run

method powell’s hybrid method

bluephoenix

’

‘

’

‘ ’

post

။

Mtssnrty

- 08.04 - Runge-Kutta 2nd Order Method for ODEUploaded byEnos Lolang
- #05rims-eUploaded byFachni Rosyadi
- ChE312 Problem Set 1 Solutions W2016Uploaded bythescienceguy
- Numerical Method for engineers-chapter 23Uploaded byMrbudakbaek
- The Riccati equation method with variable expansion coefficients. I. Solving the Burgers equationUploaded byMakos_Antoniou
- Multiple Shooting MethodUploaded bykan_2014
- Solving ODEs and PDEs in MATLABUploaded byzhangxinan
- Boundary Value AnalysisUploaded byapi-3809615
- Downey (2011) - Physical Modelling With MatlabUploaded byGeorges Kouroussis
- finite element programming with MATLABUploaded bybharathjoda
- MATLAB TutorialUploaded byxfreshtodef123
- Kiguradze-Lomtatidze2010_Article_PeriodicSolutionsOfNonautonomo.pdfUploaded byAntonio Torres Peña
- IntroductionUploaded byRaul
- MATLAB TUTORIAL BASICUploaded byhalimsha
- OpenKetManual.pdfUploaded bywikkialvarez
- ch02_6Uploaded bygeni
- Petroleum EnggUploaded byMohammed Ibu
- AP3114 Lecture WK10 Solving Differential Eqautions IUploaded byGuoXuanChan
- Symmetry 414Uploaded byWajahat Ali Khan
- HMS112FormulaSheets_sem2Uploaded byBoris Ivanov
- 2013 Electives 101 PrimerUploaded byMarie
- ODE HistoryUploaded bypaulpainleve
- An Application of Differential Equations in the Study of ElasticUploaded byRucky Arora
- Lecture 4: Introduction to Numerical Methods for ODEsUploaded byaroobadilawer
- diffyqsUploaded byfogdog21
- syllabus_351_sum2017Uploaded byranv
- Wave Propagation and Diffraction Mathematical Methods and ApplicationsUploaded byGiculPiticul
- Mathematical Modeling in Chemical EngineeringUploaded byHugoValença
- DYNAMIC ANALYSIS OF LAMINATED CROSS-PLY PANEL UNDER LOCALIZED MOMENT by Ali Be IglooUploaded byantony1993
- hw07.1.01.solutionsUploaded byranv

- l4 Matrix Algebra Unique Solution Spring 2011Uploaded byOsaidZahid
- Lesson 29.pdfUploaded byShubham Kothari
- WarmupUploaded byAna Martinez
- Report - Spectral MethodsUploaded byArunSuthar
- Engineering Maths Curr1Uploaded byMusa Mohammed
- Maths SyllabusUploaded byINder Dǝǝp
- Dual and Triple Porosity Models From Effective Medium TheoryUploaded bypahlawankemaleman
- Auger DesignUploaded byAndrew Townsend
- VariationUploaded bytemujin03
- New_Intensified_Distill@tion Systems for Qu@tern@ry Petlyuk ConfiguUploaded byChristian Raine
- Mathematics book list « Prakash Rajpurohit's BlogUploaded bydkdhiraj
- Dynamic Structural Analysis of BeamsUploaded byRodrigo Marin
- Mathematics of Investment and Credit, 6th Edition solution manualUploaded byAyaz Mustafa
- Secondary Path Effect Fxlms AlgorithmUploaded bykkaytug
- BooUploaded byBryan Sarmiento
- Method of Least SquaresUploaded byerikraymak
- A WEB-BASED DESIGN TOOL FOR SNAP-FIT FEATURESUploaded byErkan Helvacılar
- College Preparatory Integrated Mathematics Course I-CompleteNB.pdfUploaded byRovina Narayan
- brian nested radicals.pdfUploaded byFeyn Fan
- completingthesquareguidednotesUploaded byapi-278028472
- Differential EquationsUploaded byBilly Graham
- UHoensch Differential Equations and Applications Using Mathematica.pdfUploaded byJhoan Joaqui
- Proceedings of the IRE Volume 35 Issue 5 1947 [Doi 10.1109_jrproc.1947.232616] Ragazzini, J.R.; Randall, R.H.; Russell, F.a. -- Analysis of Problems in Dynamics by Electronic CircuitsUploaded byRajesh Verma
- 4037_w14_ms_12Uploaded bySherlock Wesley Conan
- Fortran Computer Program - McGuireUploaded byRomulo Mayhua
- numlinalgUploaded byLia Levy
- webliography template-1Uploaded byapi-266894175
- Matlab ODE SolversUploaded byBilal Saeed
- Numerical Solution of Systems of Nonlinear EquationsUploaded byreuleanx
- 3.10 Solutions 17r3l2vUploaded byAshok Pradhan