Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
9 views
Dynamic Programming
questuon solved on optimication techniques
Uploaded by
therajsenior
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Dynamic Programming For Later
Download
Save
Save Dynamic Programming For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
9 views
Dynamic Programming
questuon solved on optimication techniques
Uploaded by
therajsenior
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Dynamic Programming For Later
Carousel Previous
Carousel Next
Save
Save Dynamic Programming For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 16
Search
Fullscreen
10 Dynamic Programming ——$<$— Se rm Introduction In the ficld of mana aa “olving multistage decisi agement there occur optimization problems jqvolving mu! ee ecision processes. Such problems involving n dicision rariables x, -.. x, in their optimization models can be broken in a sequence of optimization problems each involving a single decision variable. Fundamentals of Dynamic Programming Technique mization problem involving n variables is Thus a multi stage opti such problems each involving a single txpressible as a sequence of n variable. Each one of them is called a stage. d with its state variables $j) 55j2 9 is associate 1)" stage acts as Each stage { represented simply by 5). The state variable 5; of (i= input for the ith stage and is of the ith stage by a ret esented symbolically as connected with the decision variable x; and State variable s; cursive type relation called the Sj transition function, rept 5, =t Gn Sn) jn which the problem is defined. @j-1> Si-v» optimization — (a) ‘ans is derived from the Way 27 The (i—1)th stage objective functionfi-s . timal value denoted Wat, the decision variable P ; gives the © Pf G_). ; é Under the principal of optimality as given by i Bellman (19: turn f(x, 5) is dependent 00 the previous optimal return | TGs 8 é ¢ 1)" stage by relatio® fies0.2 where o represents the relationship between the in the objective function of the main problem. 3 After expressing s;_, in (2) in terms Of Xe» Sy with: transition relation (1), the i‘* stage return function f; become of x; and s;, which on optimizing w.r.t. x; , gives x=; (5) Stage return is then a function of 5; only, given as fj (s). this way upto the last stage i=n, we get f* (s,,), which is value of the objective function of the problem. 10.2 Principle of Optimality z The principle of optimality as given by R. Bellman fy optimal policy has the Property that whatever the initial initial decisions are, the remaining decisions must o Policy with regard to the state resulting from the first Dynamic Programming Dynamic Programmin, Optimization Problem iny, breaking it in a sequence one decision. As solving the Case, we finally have get the Solution of the main Problem ul Definitions gZ is the technique of olving n (-J)th stage state variable s,_ variable x; and state Variables 5; through the to > taGeunyx oy amic Programming . : 103 The relation is used in changing sj. int (s, 1 (Sj policy : In a multi stage decision Process, jecsion al each stage. The sequence of all the 1) inx; and s;. there is a rule for making decisions form a policy. Optimal policy : Optimal policy is the sequence of values ofdicisi sariable under which the preassigned objective function is Bilis z cach stage- There is no single set procedure in dynamic programming which may te applicable in the solution of all types of problems. However the general geps, to be taken in most of the cases may be as follows : General Algorithm Step 1. As in any optimization problem, identify the decision variables and define the objective function which is to be optimized. Step 2. Decompose the problem in a sequence of stages each involving a single variable decision together with all its states. The states involved ala particular stage are also defined. Define the transformation function 5; = (@; , Sj) Conmecting s;_, with x; and 5; . Step 3. Define the relation ii @ 9) =f (ie i- -) connecting the i" stage return with the optimum return of the previous stage and the variable x; , representing the decision variable of the present (i) stage. Step 4. In the discrete type problem construct tables showing ‘clationship between stages of the present and the optimal states of the revious stage and mentioning the states of the present stage to be chosen ‘he optimality considerations (decisions). 3 Step 5. Determine the sequence of optimal decisions represe: ‘imal policy, There may be more such policies which give the same : ‘he objective function ultimately at the last final stage. “ward and Backward Recursion ,,_ Computation in a problem may be done either by fe ae we start from the initial stage to the final stage nn, *i0n by moving from the last to the first stage. "© efficient computationally and is therefore ©_ In forward recursion the transition Ce will ie sj) where as in back recursion it will be s; fe) Spay = EMG Se V i lesman Problem Model 1. Travelling Sa a Ex. 1. We illustrate both forward and backwa: ecu by solving the shortest route problem represented graphical 13 1 1 3 Fig. 1 (i) Solution by Forward Pass method Stage 1. Paths from 12, Liss distance is same. So shortest distance from 1+ 2, shortest distance from 1+3 = | shortest distance from 1 4 = Stage 2. Going from 1 to 5 There are three alternates, going from 1 | . shortest distance 1 to 5, via2 = 1 from 1 to 5 via 3 viad = least F 12 for path 1-+4-»5,(Note : No path exi stage 3. Going fr For path via 6, shortest =6+17=23 min {21, 23} So the shortest path is 1 (ii) By Backward Pass M Note : The formula is for forwar direction. If stage number! g fe nth stage (on ‘¢ above formula wi12+9 =@i) No. route 2 = Minimum | to 6 exists =a 719-69 [assis a6 Shortest Route 1+4+5-7Programming ‘SS ic eo 10.7 -, 2. Find the minimum Ex path for the foll m represented graphically, lowing travelli: ' y oO 17 74, , salesman pple’ fr Fig. 2 stage i=4 i=3 i=2 i=1 stage i=0 states y= {1} 53= {2,3} 52= {4, 5, 6} 5, = {7, 8} 59 ={9}- Sol. We follow the backward pass method and mark the stages from as 0, 1, 2, 3, 4 as indicated in the figure. Stage 0 No stage so beyond States so10.8 Stage 2 d(s1,s2) + fi () ae ee pt | 747 = 14 | +5 a7) | ob a Bisse spiv+17 = 3615.90 = 35 « i : Shortest route : Total distance = 47 mil 1+3, 34S Renae 1+3 +4. 49 YA Example 3. A salesman has the cost of the trowel Rs. and available below. Determine the minimum ‘d (5,52) +f} (1) |» |) a 7+9=16 6+12=18 9+8=17 | 6 | 6eom1s | 7412-10 8+9=17 94+12=21 8+9=17 10+12=22 8+8=I66 | 1-3 +7 11 »12 Model 2 Sing 16Py = fy =X2 Sy P2 = 2(S2 For P; to be maximum stage 2& (64-3) Using (2) pet For P, to be ee od {iey-2” =x, 2 (63 -x)} or} (83-3) (3 — 43 — 23) = i a As 53-340 80 43 = 353 =3 4, a_2a s 3 =%- 5a Zam 2 2a a using (4) %=Z=> 3 - (3) 22. 16 a le 5. Stage the peinciple of optimality it the solve the following problem. I Minimize zexntgtoeed subject to 4%) %2 %y%4 = 16, yy Sol, (Principle of optimality is 1 Define state variables ‘y»Sqital 5" %, Bene MMe 54 =aFor min of z9For mixima of 23,5 so X3 = x az, Furthers, —> = ae; for optimal policy if this stage 1 +3 = (53)3 j Xy = V5y minimum 53 =O or asia a 3 X3 = (s3)3 2523 (5) =x —=0 dry a (3)3 +ive, so Z3 is min by (9)BY 2 z A , using (2) I 3 = (23), using (14) “s =x, =2 we 6 cs “lS ee So XY =X) = = Xy = 2 Ex. 6. A company has decided to introduce a prod Phase 1. |Heavil reduced rate for a small period n pine Ane plus special offering A budget of Rs. 5 croses has been set for me and loses incurred in these phases. Ifm is the market share captured in phase il m could remain in phase 2, and fraction fz of m retained is phase 3. How should the, money be ; so that the final share be maximum, using the fo
You might also like
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
From Everand
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
Mark Manson
4/5 (6125)
Principles: Life and Work
From Everand
Principles: Life and Work
Ray Dalio
4/5 (627)
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
From Everand
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
Brené Brown
4/5 (1148)
Never Split the Difference: Negotiating As If Your Life Depended On It
From Everand
Never Split the Difference: Negotiating As If Your Life Depended On It
Chris Voss
4.5/5 (932)
The Glass Castle: A Memoir
From Everand
The Glass Castle: A Memoir
Jeannette Walls
4/5 (8214)
Grit: The Power of Passion and Perseverance
From Everand
Grit: The Power of Passion and Perseverance
Angela Duckworth
4/5 (631)
Sing, Unburied, Sing: A Novel
From Everand
Sing, Unburied, Sing: A Novel
Jesmyn Ward
4/5 (1253)
The Perks of Being a Wallflower
From Everand
The Perks of Being a Wallflower
Stephen Chbosky
4/5 (8365)
Shoe Dog: A Memoir by the Creator of Nike
From Everand
Shoe Dog: A Memoir by the Creator of Nike
Phil Knight
4.5/5 (860)
Her Body and Other Parties: Stories
From Everand
Her Body and Other Parties: Stories
Carmen Maria Machado
4/5 (877)
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
From Everand
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
Margot Lee Shetterly
4/5 (954)
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
From Everand
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
Ben Horowitz
4.5/5 (361)
Steve Jobs
From Everand
Steve Jobs
Walter Isaacson
4/5 (2922)
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
From Everand
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
Ashlee Vance
4.5/5 (484)
The Emperor of All Maladies: A Biography of Cancer
From Everand
The Emperor of All Maladies: A Biography of Cancer
Siddhartha Mukherjee
4.5/5 (277)
Brooklyn: A Novel
From Everand
Brooklyn: A Novel
Colm Toibin
3.5/5 (2061)
A Man Called Ove: A Novel
From Everand
A Man Called Ove: A Novel
Fredrik Backman
4.5/5 (4972)
Angela's Ashes: A Memoir
From Everand
Angela's Ashes: A Memoir
Frank McCourt
4.5/5 (444)
The Art of Racing in the Rain: A Novel
From Everand
The Art of Racing in the Rain: A Novel
Garth Stein
4/5 (4281)
The Yellow House: A Memoir (2019 National Book Award Winner)
From Everand
The Yellow House: A Memoir (2019 National Book Award Winner)
Sarah M. Broom
4/5 (100)
The Little Book of Hygge: Danish Secrets to Happy Living
From Everand
The Little Book of Hygge: Danish Secrets to Happy Living
Meik Wiking
3.5/5 (447)
The World Is Flat 3.0: A Brief History of the Twenty-first Century
From Everand
The World Is Flat 3.0: A Brief History of the Twenty-first Century
Thomas L. Friedman
3.5/5 (2283)
Bad Feminist: Essays
From Everand
Bad Feminist: Essays
Roxane Gay
4/5 (1068)
Yes Please
From Everand
Yes Please
Amy Poehler
4/5 (1987)
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
From Everand
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
Gilbert King
4.5/5 (278)
The Outsider: A Novel
From Everand
The Outsider: A Novel
Stephen King
4/5 (1993)
The Woman in Cabin 10
From Everand
The Woman in Cabin 10
Ruth Ware
3.5/5 (2619)
A Tree Grows in Brooklyn
From Everand
A Tree Grows in Brooklyn
Betty Smith
4.5/5 (1936)
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
From Everand
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
Viet Thanh Nguyen
4.5/5 (125)
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
From Everand
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
Dave Eggers
3.5/5 (692)
Team of Rivals: The Political Genius of Abraham Lincoln
From Everand
Team of Rivals: The Political Genius of Abraham Lincoln
Doris Kearns Goodwin
4.5/5 (1912)
Wolf Hall: A Novel
From Everand
Wolf Hall: A Novel
Hilary Mantel
4/5 (4074)
On Fire: The (Burning) Case for a Green New Deal
From Everand
On Fire: The (Burning) Case for a Green New Deal
Naomi Klein
4/5 (75)
Fear: Trump in the White House
From Everand
Fear: Trump in the White House
Bob Woodward
3.5/5 (830)
Rise of ISIS: A Threat We Can't Ignore
From Everand
Rise of ISIS: A Threat We Can't Ignore
Jay Sekulow
3.5/5 (143)
Manhattan Beach: A Novel
From Everand
Manhattan Beach: A Novel
Jennifer Egan
3.5/5 (901)
John Adams
From Everand
John Adams
David McCullough
4.5/5 (2530)
The Light Between Oceans: A Novel
From Everand
The Light Between Oceans: A Novel
M L Stedman
4.5/5 (790)
The Unwinding: An Inner History of the New America
From Everand
The Unwinding: An Inner History of the New America
George Packer
4/5 (45)
Little Women
From Everand
Little Women
Louisa May Alcott
4/5 (105)
The Constant Gardener: A Novel
From Everand
The Constant Gardener: A Novel
John le Carré
3.5/5 (109)
Related titles
Click to expand Related Titles
Carousel Previous
Carousel Next
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
From Everand
The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life
Principles: Life and Work
From Everand
Principles: Life and Work
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
From Everand
The Gifts of Imperfection: Let Go of Who You Think You're Supposed to Be and Embrace Who You Are
Never Split the Difference: Negotiating As If Your Life Depended On It
From Everand
Never Split the Difference: Negotiating As If Your Life Depended On It
The Glass Castle: A Memoir
From Everand
The Glass Castle: A Memoir
Grit: The Power of Passion and Perseverance
From Everand
Grit: The Power of Passion and Perseverance
Sing, Unburied, Sing: A Novel
From Everand
Sing, Unburied, Sing: A Novel
The Perks of Being a Wallflower
From Everand
The Perks of Being a Wallflower
Shoe Dog: A Memoir by the Creator of Nike
From Everand
Shoe Dog: A Memoir by the Creator of Nike
Her Body and Other Parties: Stories
From Everand
Her Body and Other Parties: Stories
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
From Everand
Hidden Figures: The American Dream and the Untold Story of the Black Women Mathematicians Who Helped Win the Space Race
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
From Everand
The Hard Thing About Hard Things: Building a Business When There Are No Easy Answers
Steve Jobs
From Everand
Steve Jobs
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
From Everand
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future
The Emperor of All Maladies: A Biography of Cancer
From Everand
The Emperor of All Maladies: A Biography of Cancer
Brooklyn: A Novel
From Everand
Brooklyn: A Novel
A Man Called Ove: A Novel
From Everand
A Man Called Ove: A Novel
Angela's Ashes: A Memoir
From Everand
Angela's Ashes: A Memoir
The Art of Racing in the Rain: A Novel
From Everand
The Art of Racing in the Rain: A Novel
The Yellow House: A Memoir (2019 National Book Award Winner)
From Everand
The Yellow House: A Memoir (2019 National Book Award Winner)
The Little Book of Hygge: Danish Secrets to Happy Living
From Everand
The Little Book of Hygge: Danish Secrets to Happy Living
The World Is Flat 3.0: A Brief History of the Twenty-first Century
From Everand
The World Is Flat 3.0: A Brief History of the Twenty-first Century
Bad Feminist: Essays
From Everand
Bad Feminist: Essays
Yes Please
From Everand
Yes Please
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
From Everand
Devil in the Grove: Thurgood Marshall, the Groveland Boys, and the Dawn of a New America
The Outsider: A Novel
From Everand
The Outsider: A Novel
The Woman in Cabin 10
From Everand
The Woman in Cabin 10
A Tree Grows in Brooklyn
From Everand
A Tree Grows in Brooklyn
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
From Everand
The Sympathizer: A Novel (Pulitzer Prize for Fiction)
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
From Everand
A Heartbreaking Work Of Staggering Genius: A Memoir Based on a True Story
Team of Rivals: The Political Genius of Abraham Lincoln
From Everand
Team of Rivals: The Political Genius of Abraham Lincoln
Wolf Hall: A Novel
From Everand
Wolf Hall: A Novel
On Fire: The (Burning) Case for a Green New Deal
From Everand
On Fire: The (Burning) Case for a Green New Deal
Fear: Trump in the White House
From Everand
Fear: Trump in the White House
Rise of ISIS: A Threat We Can't Ignore
From Everand
Rise of ISIS: A Threat We Can't Ignore
Manhattan Beach: A Novel
From Everand
Manhattan Beach: A Novel
John Adams
From Everand
John Adams
The Light Between Oceans: A Novel
From Everand
The Light Between Oceans: A Novel
The Unwinding: An Inner History of the New America
From Everand
The Unwinding: An Inner History of the New America
Little Women
From Everand
Little Women
The Constant Gardener: A Novel
From Everand
The Constant Gardener: A Novel