SlideShare a Scribd company logo
D Nagesh Kumar, IISc Optimization Methods: M5L21
Dynamic Programming
Recursive Equations
D Nagesh Kumar, IISc Optimization Methods: M5L22
Introduction and Objectives
Introduction
Recursive equations are used to solve a problem in sequence
These equations are fundamental to the dynamic programming
Objectives
To formulate recursive equations for a multistage decision
process
In a backward manner and
In a forward manner
D Nagesh Kumar, IISc Optimization Methods: M5L23
Recursive Equations
Recursive equations are used to structure a multistage decision
problem as a sequential process
Each recursive equation represents a stage at which a decision
is required
A series of equations are successively solved, each equation
depending on the output values of the previous equations
A multistage problem is solved by breaking into a number of
single stage problems through recursion
Approached can be done in a backward manner or in a forward
manner
D Nagesh Kumar, IISc Optimization Methods: M5L24
Backward Recursion
A problem is solved by writing equations first for the final stage and
then proceeding backwards to the first stage
Consider a serial multistage problem
Let the objective function for this problem is
Stage 1 Stage t Stage T
St
NBt
Xt
S1 S2
NB1 NBT
X1 XT
ST ST+1St+1
( )
( ) ( ) ( ) ( ) ( ) 1...(,,...,...,,
,
111222111
1 1
TTTTTTttt
T
t
T
t
tttt
SXhSXhSXhSXhSXh
SXhNBf
++++++=
==
−−−
= =
∑ ∑
D Nagesh Kumar, IISc Optimization Methods: M5L25
Backward Recursion …contd.
The relation between the stage variables and decision variables are
St+1 = g(Xt, St), t = 1,2,…, T.
Consider the final stage as the first sub-problem. The input variable to
this stage is ST.
Principle of optimality: XT should be selected such that is
optimum for the input ST
The objective function for this stage is
Next, group the last two stages together as the second sub-problem.
The objective function is
( )TTT SXh ,
∗
Tf
( )[ ]TTT
X
TT SXhoptSf
T
,)( =∗
( ) ( )[ ]TTTTTT
XX
TT SXhSXhoptSf
TT
,,)( 111
,
11
1
+= −−−−
∗
−
−
D Nagesh Kumar, IISc Optimization Methods: M5L26
Backward Recursion …contd.
By using the stage transformation equation, can be rewritten
as
Thus, a multivariate problem is divided into two single variable
problems as shown
In general, the i+1th sub-problem can be expressed as
Converting this to a single variable problem
)( 11 −
∗
− TT Sf
( ) ( )( )[ ]11111111 ,,)(
1
−−−
∗
−−−−
∗
− +=
−
TTTTTTT
X
TT SXgfSXhoptSf
T
( ) ( ) ( )[ ]TTTTTTiTiTiT
XXX
iTiT SXhSXhSXhoptSf
TTiT
,,...,)( 111
,,..., 1
+++= −−−−−−−
∗
−
−−
( ) ( )( )[ ]iTiTiTiTiTiTiT
X
iTiT SXgfSXhoptSf
iT
−−−
∗
−−−−−−
∗
− +=
−
,,)( )1(
D Nagesh Kumar, IISc Optimization Methods: M5L27
Backward Recursion …contd.
denotes the optimal value of the objective function for
the last i stages
Principle of optimality for backward recursion can be stated as,
No matter in what state of stage one may be, in order
for a policy to be optimal, one must proceed from that
state and stage in an optimal manner sing the stage
transformation equation
∗
−− )1(iTf
D Nagesh Kumar, IISc Optimization Methods: M5L28
Forward Recursion
The problem is solved by starting from the stage 1 and proceeding
towards the last stage
Consider a serial multistage problem
Let the objective function for this problem is
Stage 1 Stage t Stage T
St
NBt
Xt
S1 S2
NB1 NBT
X1 XT
ST ST+1St+1
( )
( ) ( ) ( ) ( ) ( ) 1...(,,...,...,,
,
111222111
1 1
TTTTTTttt
T
t
T
t
tttt
SXhSXhSXhSXhSXh
SXhNBf
++++++=
==
−−−
= =
∑ ∑
D Nagesh Kumar, IISc Optimization Methods: M5L29
Forward Recursion …contd.
The relation between the stage variables and decision variables are
where St is the input available to the stages 1 to t
Consider the stage 1 as the first sub-problem. The input variable to
this stage is S1
Principle of optimality: X1 should be selected such that is
optimum for the input S1
The objective function for this stage is
( ) TtSXgS ttt ,....,2,1, 11 =′= ++
( )111 ,SXh
∗
1f
( )[ ]11111 ,)(
1
SXhoptSf
X
=∗
D Nagesh Kumar, IISc Optimization Methods: M5L210
Backward Recursion …contd.
Group the first and second stages together as the second sub-
problem. The objective function is
By using the stage transformation equation, can be rewritten
as
In general, the ith sub-problem can be expressed as
( ) ( )[ ]111222
,
22 ,,)(
12
SXhSXhoptSf
XX
+=∗
)( 22 Sf ∗
( ) ( )( )[ ]222122222 ,,)(
2
SXgfSXhoptSf
X
′+= ∗∗
( ) ( ) ( )[ ]111222
,...,,
,,...,)(
21
SXhSXhSXhoptSf iii
XXX
ii
i
+++=∗
D Nagesh Kumar, IISc Optimization Methods: M5L211
Backward Recursion …contd.
Converting this to a single variable problem
denotes the optimal value of the objective function for the
last i stages
Principle of optimality for forward recursion can be stated as,
No matter in what state of stage one may be, in order
for a policy to be optimal, one had to get to that state
and stage in an optimal manner
( ) ( )( )[ ]iiiiiii
X
ii SXgfSXhoptSf
i
,,)( )1(
′+= ∗
−
∗
∗
if
D Nagesh Kumar, IISc Optimization Methods: M5L212
Thank You

More Related Content

What's hot

Introduction to FEA and applications
Introduction to FEA and applicationsIntroduction to FEA and applications
Introduction to FEA and applicationsPadmanabhan Krishnan
 
Basics of finite element method 19.04.2018
Basics of finite element method 19.04.2018Basics of finite element method 19.04.2018
Basics of finite element method 19.04.2018Dr. Mohd Zameeruddin
 
36336583 control-systems-lecture-notes
36336583 control-systems-lecture-notes36336583 control-systems-lecture-notes
36336583 control-systems-lecture-notesMustafaNasser15
 
01. steps involved, merits, demerits & limitations of fem
01. steps involved, merits, demerits & limitations of fem01. steps involved, merits, demerits & limitations of fem
01. steps involved, merits, demerits & limitations of femSura Venkata Mahesh
 
Direct solution of sparse network equations by optimally ordered triangular f...
Direct solution of sparse network equations by optimally ordered triangular f...Direct solution of sparse network equations by optimally ordered triangular f...
Direct solution of sparse network equations by optimally ordered triangular f...Dimas Ruliandi
 
Job sequencing with deadlines(with example)
Job sequencing with deadlines(with example)Job sequencing with deadlines(with example)
Job sequencing with deadlines(with example)Vrinda Sheela
 
Application of Boundary Conditions to Obtain Better FEA Results
Application of Boundary Conditions to Obtain Better FEA ResultsApplication of Boundary Conditions to Obtain Better FEA Results
Application of Boundary Conditions to Obtain Better FEA ResultsKee H. Lee, P.Eng.
 
Finite Element Analysis in Metal Forming processes
Finite Element Analysis in Metal Forming processesFinite Element Analysis in Metal Forming processes
Finite Element Analysis in Metal Forming processesabhishek_hukkerikar
 
daa-unit-3-greedy method
daa-unit-3-greedy methoddaa-unit-3-greedy method
daa-unit-3-greedy methodhodcsencet
 
5.2 divede and conquer 03
5.2 divede and conquer 035.2 divede and conquer 03
5.2 divede and conquer 03Krish_ver2
 
5.2 divide and conquer
5.2 divide and conquer5.2 divide and conquer
5.2 divide and conquerKrish_ver2
 
Insertion sort bubble sort selection sort
Insertion sort bubble sort  selection sortInsertion sort bubble sort  selection sort
Insertion sort bubble sort selection sortUmmar Hayat
 
Algorithm Using Divide And Conquer
Algorithm Using Divide And ConquerAlgorithm Using Divide And Conquer
Algorithm Using Divide And ConquerUrviBhalani2
 
The tensor flight dynamics tutor
The tensor flight dynamics tutorThe tensor flight dynamics tutor
The tensor flight dynamics tutorPeter Zipfel
 

What's hot (16)

Introduction to FEA and applications
Introduction to FEA and applicationsIntroduction to FEA and applications
Introduction to FEA and applications
 
Basics of finite element method 19.04.2018
Basics of finite element method 19.04.2018Basics of finite element method 19.04.2018
Basics of finite element method 19.04.2018
 
36336583 control-systems-lecture-notes
36336583 control-systems-lecture-notes36336583 control-systems-lecture-notes
36336583 control-systems-lecture-notes
 
01. steps involved, merits, demerits & limitations of fem
01. steps involved, merits, demerits & limitations of fem01. steps involved, merits, demerits & limitations of fem
01. steps involved, merits, demerits & limitations of fem
 
Direct solution of sparse network equations by optimally ordered triangular f...
Direct solution of sparse network equations by optimally ordered triangular f...Direct solution of sparse network equations by optimally ordered triangular f...
Direct solution of sparse network equations by optimally ordered triangular f...
 
Job sequencing with deadlines(with example)
Job sequencing with deadlines(with example)Job sequencing with deadlines(with example)
Job sequencing with deadlines(with example)
 
Application of Boundary Conditions to Obtain Better FEA Results
Application of Boundary Conditions to Obtain Better FEA ResultsApplication of Boundary Conditions to Obtain Better FEA Results
Application of Boundary Conditions to Obtain Better FEA Results
 
Divide and Conquer
Divide and ConquerDivide and Conquer
Divide and Conquer
 
Finite Element Analysis in Metal Forming processes
Finite Element Analysis in Metal Forming processesFinite Element Analysis in Metal Forming processes
Finite Element Analysis in Metal Forming processes
 
daa-unit-3-greedy method
daa-unit-3-greedy methoddaa-unit-3-greedy method
daa-unit-3-greedy method
 
5.2 divede and conquer 03
5.2 divede and conquer 035.2 divede and conquer 03
5.2 divede and conquer 03
 
5.2 divide and conquer
5.2 divide and conquer5.2 divide and conquer
5.2 divide and conquer
 
One dimensional problems
One dimensional problemsOne dimensional problems
One dimensional problems
 
Insertion sort bubble sort selection sort
Insertion sort bubble sort  selection sortInsertion sort bubble sort  selection sort
Insertion sort bubble sort selection sort
 
Algorithm Using Divide And Conquer
Algorithm Using Divide And ConquerAlgorithm Using Divide And Conquer
Algorithm Using Divide And Conquer
 
The tensor flight dynamics tutor
The tensor flight dynamics tutorThe tensor flight dynamics tutor
The tensor flight dynamics tutor
 

Similar to Numerical analysis m5 l2slides

Numerical analysis m5 l3slides
Numerical analysis  m5 l3slidesNumerical analysis  m5 l3slides
Numerical analysis m5 l3slidesSHAMJITH KM
 
Numerical analysis dual, primal, revised simplex
Numerical analysis  dual, primal, revised simplexNumerical analysis  dual, primal, revised simplex
Numerical analysis dual, primal, revised simplexSHAMJITH KM
 
Numerical analysis simplex method 2
Numerical analysis  simplex method 2Numerical analysis  simplex method 2
Numerical analysis simplex method 2SHAMJITH KM
 
Numerical analysis simplex method 1
Numerical analysis  simplex method 1Numerical analysis  simplex method 1
Numerical analysis simplex method 1SHAMJITH KM
 
Numerical Solutions of Stiff Initial Value Problems Using Modified Extended B...
Numerical Solutions of Stiff Initial Value Problems Using Modified Extended B...Numerical Solutions of Stiff Initial Value Problems Using Modified Extended B...
Numerical Solutions of Stiff Initial Value Problems Using Modified Extended B...IOSR Journals
 
Matrix Multiplication(An example of concurrent programming)
Matrix Multiplication(An example of concurrent programming)Matrix Multiplication(An example of concurrent programming)
Matrix Multiplication(An example of concurrent programming)Pramit Kumar
 
01 - DAA - PPT.pptx
01 - DAA - PPT.pptx01 - DAA - PPT.pptx
01 - DAA - PPT.pptxKokilaK25
 
5.5 back tracking 02
5.5 back tracking 025.5 back tracking 02
5.5 back tracking 02Krish_ver2
 
Design and Implementation of Parallel and Randomized Approximation Algorithms
Design and Implementation of Parallel and Randomized Approximation AlgorithmsDesign and Implementation of Parallel and Randomized Approximation Algorithms
Design and Implementation of Parallel and Randomized Approximation AlgorithmsAjay Bidyarthy
 
optimization methods by using matlab.pptx
optimization methods by using matlab.pptxoptimization methods by using matlab.pptx
optimization methods by using matlab.pptxabbas miry
 
Numerical analysis m1 l2slides
Numerical analysis  m1 l2slidesNumerical analysis  m1 l2slides
Numerical analysis m1 l2slidesSHAMJITH KM
 
Ch.02 modeling in frequency domain
Ch.02 modeling in frequency domainCh.02 modeling in frequency domain
Ch.02 modeling in frequency domainNguyen_Tan_Tien
 
9 - DynamicProgramming-plus latihan.ppt
9 - DynamicProgramming-plus latihan.ppt9 - DynamicProgramming-plus latihan.ppt
9 - DynamicProgramming-plus latihan.pptKerbauBakar
 

Similar to Numerical analysis m5 l2slides (20)

Numerical analysis m5 l3slides
Numerical analysis  m5 l3slidesNumerical analysis  m5 l3slides
Numerical analysis m5 l3slides
 
Numerical analysis dual, primal, revised simplex
Numerical analysis  dual, primal, revised simplexNumerical analysis  dual, primal, revised simplex
Numerical analysis dual, primal, revised simplex
 
Numerical analysis simplex method 2
Numerical analysis  simplex method 2Numerical analysis  simplex method 2
Numerical analysis simplex method 2
 
Numerical analysis simplex method 1
Numerical analysis  simplex method 1Numerical analysis  simplex method 1
Numerical analysis simplex method 1
 
Dynamic Matrix control
Dynamic Matrix controlDynamic Matrix control
Dynamic Matrix control
 
lecture.ppt
lecture.pptlecture.ppt
lecture.ppt
 
Numerical Solutions of Stiff Initial Value Problems Using Modified Extended B...
Numerical Solutions of Stiff Initial Value Problems Using Modified Extended B...Numerical Solutions of Stiff Initial Value Problems Using Modified Extended B...
Numerical Solutions of Stiff Initial Value Problems Using Modified Extended B...
 
Matrix Multiplication(An example of concurrent programming)
Matrix Multiplication(An example of concurrent programming)Matrix Multiplication(An example of concurrent programming)
Matrix Multiplication(An example of concurrent programming)
 
algo_vc_lecture8.ppt
algo_vc_lecture8.pptalgo_vc_lecture8.ppt
algo_vc_lecture8.ppt
 
01 - DAA - PPT.pptx
01 - DAA - PPT.pptx01 - DAA - PPT.pptx
01 - DAA - PPT.pptx
 
Daa chapter 2
Daa chapter 2Daa chapter 2
Daa chapter 2
 
5.5 back tracking 02
5.5 back tracking 025.5 back tracking 02
5.5 back tracking 02
 
Design and Implementation of Parallel and Randomized Approximation Algorithms
Design and Implementation of Parallel and Randomized Approximation AlgorithmsDesign and Implementation of Parallel and Randomized Approximation Algorithms
Design and Implementation of Parallel and Randomized Approximation Algorithms
 
ML ALL in one (1).pdf
ML ALL in one (1).pdfML ALL in one (1).pdf
ML ALL in one (1).pdf
 
optimization methods by using matlab.pptx
optimization methods by using matlab.pptxoptimization methods by using matlab.pptx
optimization methods by using matlab.pptx
 
Cis435 week02
Cis435 week02Cis435 week02
Cis435 week02
 
Numerical analysis m1 l2slides
Numerical analysis  m1 l2slidesNumerical analysis  m1 l2slides
Numerical analysis m1 l2slides
 
Ch.02 modeling in frequency domain
Ch.02 modeling in frequency domainCh.02 modeling in frequency domain
Ch.02 modeling in frequency domain
 
Simplex algorithm
Simplex algorithmSimplex algorithm
Simplex algorithm
 
9 - DynamicProgramming-plus latihan.ppt
9 - DynamicProgramming-plus latihan.ppt9 - DynamicProgramming-plus latihan.ppt
9 - DynamicProgramming-plus latihan.ppt
 

More from SHAMJITH KM

Salah of the Prophet (ﷺ).pdf
Salah of the Prophet (ﷺ).pdfSalah of the Prophet (ﷺ).pdf
Salah of the Prophet (ﷺ).pdfSHAMJITH KM
 
Construction Materials and Engineering - Module IV - Lecture Notes
Construction Materials and Engineering - Module IV - Lecture NotesConstruction Materials and Engineering - Module IV - Lecture Notes
Construction Materials and Engineering - Module IV - Lecture NotesSHAMJITH KM
 
Construction Materials and Engineering - Module III - Lecture Notes
Construction Materials and Engineering - Module III - Lecture NotesConstruction Materials and Engineering - Module III - Lecture Notes
Construction Materials and Engineering - Module III - Lecture NotesSHAMJITH KM
 
Construction Materials and Engineering - Module II - Lecture Notes
Construction Materials and Engineering - Module II - Lecture NotesConstruction Materials and Engineering - Module II - Lecture Notes
Construction Materials and Engineering - Module II - Lecture NotesSHAMJITH KM
 
Construction Materials and Engineering - Module I - Lecture Notes
Construction Materials and Engineering - Module I - Lecture NotesConstruction Materials and Engineering - Module I - Lecture Notes
Construction Materials and Engineering - Module I - Lecture NotesSHAMJITH KM
 
Computing fundamentals lab record - Polytechnics
Computing fundamentals lab record - PolytechnicsComputing fundamentals lab record - Polytechnics
Computing fundamentals lab record - PolytechnicsSHAMJITH KM
 
Concrete lab manual - Polytechnics
Concrete lab manual - PolytechnicsConcrete lab manual - Polytechnics
Concrete lab manual - PolytechnicsSHAMJITH KM
 
Concrete Technology Study Notes
Concrete Technology Study NotesConcrete Technology Study Notes
Concrete Technology Study NotesSHAMJITH KM
 
നബി(സ)യുടെ നമസ്കാരം - രൂപവും പ്രാര്ത്ഥനകളും
നബി(സ)യുടെ നമസ്കാരം -  രൂപവും പ്രാര്ത്ഥനകളുംനബി(സ)യുടെ നമസ്കാരം -  രൂപവും പ്രാര്ത്ഥനകളും
നബി(സ)യുടെ നമസ്കാരം - രൂപവും പ്രാര്ത്ഥനകളുംSHAMJITH KM
 
Design of simple beam using staad pro - doc file
Design of simple beam using staad pro - doc fileDesign of simple beam using staad pro - doc file
Design of simple beam using staad pro - doc fileSHAMJITH KM
 
Design of simple beam using staad pro
Design of simple beam using staad proDesign of simple beam using staad pro
Design of simple beam using staad proSHAMJITH KM
 
Python programs - PPT file (Polytechnics)
Python programs - PPT file (Polytechnics)Python programs - PPT file (Polytechnics)
Python programs - PPT file (Polytechnics)SHAMJITH KM
 
Python programs - first semester computer lab manual (polytechnics)
Python programs - first semester computer lab manual (polytechnics)Python programs - first semester computer lab manual (polytechnics)
Python programs - first semester computer lab manual (polytechnics)SHAMJITH KM
 
Python programming Workshop SITTTR - Kalamassery
Python programming Workshop SITTTR - KalamasseryPython programming Workshop SITTTR - Kalamassery
Python programming Workshop SITTTR - KalamasserySHAMJITH KM
 
Analysis of simple beam using STAAD Pro (Exp No 1)
Analysis of simple beam using STAAD Pro (Exp No 1)Analysis of simple beam using STAAD Pro (Exp No 1)
Analysis of simple beam using STAAD Pro (Exp No 1)SHAMJITH KM
 
Theory of structures I - STUDENT NOTE BOOK (Polytechnics Revision 2015)
Theory of structures I - STUDENT NOTE BOOK (Polytechnics Revision 2015)Theory of structures I - STUDENT NOTE BOOK (Polytechnics Revision 2015)
Theory of structures I - STUDENT NOTE BOOK (Polytechnics Revision 2015)SHAMJITH KM
 
Theory of structures II - STUDENT NOTE BOOK (Polytechnics Revision 2015)
Theory of structures II - STUDENT NOTE BOOK (Polytechnics Revision 2015)Theory of structures II - STUDENT NOTE BOOK (Polytechnics Revision 2015)
Theory of structures II - STUDENT NOTE BOOK (Polytechnics Revision 2015)SHAMJITH KM
 
CAD Lab model viva questions
CAD Lab model viva questions CAD Lab model viva questions
CAD Lab model viva questions SHAMJITH KM
 
Brain Computer Interface (BCI) - seminar PPT
Brain Computer Interface (BCI) -  seminar PPTBrain Computer Interface (BCI) -  seminar PPT
Brain Computer Interface (BCI) - seminar PPTSHAMJITH KM
 
Surveying - Module iii-levelling only note
Surveying - Module  iii-levelling only noteSurveying - Module  iii-levelling only note
Surveying - Module iii-levelling only noteSHAMJITH KM
 

More from SHAMJITH KM (20)

Salah of the Prophet (ﷺ).pdf
Salah of the Prophet (ﷺ).pdfSalah of the Prophet (ﷺ).pdf
Salah of the Prophet (ﷺ).pdf
 
Construction Materials and Engineering - Module IV - Lecture Notes
Construction Materials and Engineering - Module IV - Lecture NotesConstruction Materials and Engineering - Module IV - Lecture Notes
Construction Materials and Engineering - Module IV - Lecture Notes
 
Construction Materials and Engineering - Module III - Lecture Notes
Construction Materials and Engineering - Module III - Lecture NotesConstruction Materials and Engineering - Module III - Lecture Notes
Construction Materials and Engineering - Module III - Lecture Notes
 
Construction Materials and Engineering - Module II - Lecture Notes
Construction Materials and Engineering - Module II - Lecture NotesConstruction Materials and Engineering - Module II - Lecture Notes
Construction Materials and Engineering - Module II - Lecture Notes
 
Construction Materials and Engineering - Module I - Lecture Notes
Construction Materials and Engineering - Module I - Lecture NotesConstruction Materials and Engineering - Module I - Lecture Notes
Construction Materials and Engineering - Module I - Lecture Notes
 
Computing fundamentals lab record - Polytechnics
Computing fundamentals lab record - PolytechnicsComputing fundamentals lab record - Polytechnics
Computing fundamentals lab record - Polytechnics
 
Concrete lab manual - Polytechnics
Concrete lab manual - PolytechnicsConcrete lab manual - Polytechnics
Concrete lab manual - Polytechnics
 
Concrete Technology Study Notes
Concrete Technology Study NotesConcrete Technology Study Notes
Concrete Technology Study Notes
 
നബി(സ)യുടെ നമസ്കാരം - രൂപവും പ്രാര്ത്ഥനകളും
നബി(സ)യുടെ നമസ്കാരം -  രൂപവും പ്രാര്ത്ഥനകളുംനബി(സ)യുടെ നമസ്കാരം -  രൂപവും പ്രാര്ത്ഥനകളും
നബി(സ)യുടെ നമസ്കാരം - രൂപവും പ്രാര്ത്ഥനകളും
 
Design of simple beam using staad pro - doc file
Design of simple beam using staad pro - doc fileDesign of simple beam using staad pro - doc file
Design of simple beam using staad pro - doc file
 
Design of simple beam using staad pro
Design of simple beam using staad proDesign of simple beam using staad pro
Design of simple beam using staad pro
 
Python programs - PPT file (Polytechnics)
Python programs - PPT file (Polytechnics)Python programs - PPT file (Polytechnics)
Python programs - PPT file (Polytechnics)
 
Python programs - first semester computer lab manual (polytechnics)
Python programs - first semester computer lab manual (polytechnics)Python programs - first semester computer lab manual (polytechnics)
Python programs - first semester computer lab manual (polytechnics)
 
Python programming Workshop SITTTR - Kalamassery
Python programming Workshop SITTTR - KalamasseryPython programming Workshop SITTTR - Kalamassery
Python programming Workshop SITTTR - Kalamassery
 
Analysis of simple beam using STAAD Pro (Exp No 1)
Analysis of simple beam using STAAD Pro (Exp No 1)Analysis of simple beam using STAAD Pro (Exp No 1)
Analysis of simple beam using STAAD Pro (Exp No 1)
 
Theory of structures I - STUDENT NOTE BOOK (Polytechnics Revision 2015)
Theory of structures I - STUDENT NOTE BOOK (Polytechnics Revision 2015)Theory of structures I - STUDENT NOTE BOOK (Polytechnics Revision 2015)
Theory of structures I - STUDENT NOTE BOOK (Polytechnics Revision 2015)
 
Theory of structures II - STUDENT NOTE BOOK (Polytechnics Revision 2015)
Theory of structures II - STUDENT NOTE BOOK (Polytechnics Revision 2015)Theory of structures II - STUDENT NOTE BOOK (Polytechnics Revision 2015)
Theory of structures II - STUDENT NOTE BOOK (Polytechnics Revision 2015)
 
CAD Lab model viva questions
CAD Lab model viva questions CAD Lab model viva questions
CAD Lab model viva questions
 
Brain Computer Interface (BCI) - seminar PPT
Brain Computer Interface (BCI) -  seminar PPTBrain Computer Interface (BCI) -  seminar PPT
Brain Computer Interface (BCI) - seminar PPT
 
Surveying - Module iii-levelling only note
Surveying - Module  iii-levelling only noteSurveying - Module  iii-levelling only note
Surveying - Module iii-levelling only note
 

Numerical analysis m5 l2slides

  • 1. D Nagesh Kumar, IISc Optimization Methods: M5L21 Dynamic Programming Recursive Equations
  • 2. D Nagesh Kumar, IISc Optimization Methods: M5L22 Introduction and Objectives Introduction Recursive equations are used to solve a problem in sequence These equations are fundamental to the dynamic programming Objectives To formulate recursive equations for a multistage decision process In a backward manner and In a forward manner
  • 3. D Nagesh Kumar, IISc Optimization Methods: M5L23 Recursive Equations Recursive equations are used to structure a multistage decision problem as a sequential process Each recursive equation represents a stage at which a decision is required A series of equations are successively solved, each equation depending on the output values of the previous equations A multistage problem is solved by breaking into a number of single stage problems through recursion Approached can be done in a backward manner or in a forward manner
  • 4. D Nagesh Kumar, IISc Optimization Methods: M5L24 Backward Recursion A problem is solved by writing equations first for the final stage and then proceeding backwards to the first stage Consider a serial multistage problem Let the objective function for this problem is Stage 1 Stage t Stage T St NBt Xt S1 S2 NB1 NBT X1 XT ST ST+1St+1 ( ) ( ) ( ) ( ) ( ) ( ) 1...(,,...,...,, , 111222111 1 1 TTTTTTttt T t T t tttt SXhSXhSXhSXhSXh SXhNBf ++++++= == −−− = = ∑ ∑
  • 5. D Nagesh Kumar, IISc Optimization Methods: M5L25 Backward Recursion …contd. The relation between the stage variables and decision variables are St+1 = g(Xt, St), t = 1,2,…, T. Consider the final stage as the first sub-problem. The input variable to this stage is ST. Principle of optimality: XT should be selected such that is optimum for the input ST The objective function for this stage is Next, group the last two stages together as the second sub-problem. The objective function is ( )TTT SXh , ∗ Tf ( )[ ]TTT X TT SXhoptSf T ,)( =∗ ( ) ( )[ ]TTTTTT XX TT SXhSXhoptSf TT ,,)( 111 , 11 1 += −−−− ∗ − −
  • 6. D Nagesh Kumar, IISc Optimization Methods: M5L26 Backward Recursion …contd. By using the stage transformation equation, can be rewritten as Thus, a multivariate problem is divided into two single variable problems as shown In general, the i+1th sub-problem can be expressed as Converting this to a single variable problem )( 11 − ∗ − TT Sf ( ) ( )( )[ ]11111111 ,,)( 1 −−− ∗ −−−− ∗ − += − TTTTTTT X TT SXgfSXhoptSf T ( ) ( ) ( )[ ]TTTTTTiTiTiT XXX iTiT SXhSXhSXhoptSf TTiT ,,...,)( 111 ,,..., 1 +++= −−−−−−− ∗ − −− ( ) ( )( )[ ]iTiTiTiTiTiTiT X iTiT SXgfSXhoptSf iT −−− ∗ −−−−−− ∗ − += − ,,)( )1(
  • 7. D Nagesh Kumar, IISc Optimization Methods: M5L27 Backward Recursion …contd. denotes the optimal value of the objective function for the last i stages Principle of optimality for backward recursion can be stated as, No matter in what state of stage one may be, in order for a policy to be optimal, one must proceed from that state and stage in an optimal manner sing the stage transformation equation ∗ −− )1(iTf
  • 8. D Nagesh Kumar, IISc Optimization Methods: M5L28 Forward Recursion The problem is solved by starting from the stage 1 and proceeding towards the last stage Consider a serial multistage problem Let the objective function for this problem is Stage 1 Stage t Stage T St NBt Xt S1 S2 NB1 NBT X1 XT ST ST+1St+1 ( ) ( ) ( ) ( ) ( ) ( ) 1...(,,...,...,, , 111222111 1 1 TTTTTTttt T t T t tttt SXhSXhSXhSXhSXh SXhNBf ++++++= == −−− = = ∑ ∑
  • 9. D Nagesh Kumar, IISc Optimization Methods: M5L29 Forward Recursion …contd. The relation between the stage variables and decision variables are where St is the input available to the stages 1 to t Consider the stage 1 as the first sub-problem. The input variable to this stage is S1 Principle of optimality: X1 should be selected such that is optimum for the input S1 The objective function for this stage is ( ) TtSXgS ttt ,....,2,1, 11 =′= ++ ( )111 ,SXh ∗ 1f ( )[ ]11111 ,)( 1 SXhoptSf X =∗
  • 10. D Nagesh Kumar, IISc Optimization Methods: M5L210 Backward Recursion …contd. Group the first and second stages together as the second sub- problem. The objective function is By using the stage transformation equation, can be rewritten as In general, the ith sub-problem can be expressed as ( ) ( )[ ]111222 , 22 ,,)( 12 SXhSXhoptSf XX +=∗ )( 22 Sf ∗ ( ) ( )( )[ ]222122222 ,,)( 2 SXgfSXhoptSf X ′+= ∗∗ ( ) ( ) ( )[ ]111222 ,...,, ,,...,)( 21 SXhSXhSXhoptSf iii XXX ii i +++=∗
  • 11. D Nagesh Kumar, IISc Optimization Methods: M5L211 Backward Recursion …contd. Converting this to a single variable problem denotes the optimal value of the objective function for the last i stages Principle of optimality for forward recursion can be stated as, No matter in what state of stage one may be, in order for a policy to be optimal, one had to get to that state and stage in an optimal manner ( ) ( )( )[ ]iiiiiii X ii SXgfSXhoptSf i ,,)( )1( ′+= ∗ − ∗ ∗ if
  • 12. D Nagesh Kumar, IISc Optimization Methods: M5L212 Thank You