Part 1 Overview, introduction, examples What is Operations Research? What is Optimization What is Sequential Decision Making? What is Dynamic Programming?

Slides:



Advertisements
Similar presentations
Introduction to Algorithms
Advertisements

Dynamic Programming 25-Mar-17.
Analysis of Algorithms
and 6.855J Cycle Canceling Algorithm. 2 A minimum cost flow problem , $4 20, $1 20, $2 25, $2 25, $5 20, $6 30, $
Tuesday, March 5 Duality – The art of obtaining bounds – weak and strong duality Handouts: Lecture Notes.
solved problems on optimization
Jeopardy Topic 1Topic Q 1Q 6Q 11Q 16Q 21 Q 2Q 7Q 12Q 17Q 22 Q 3Q 8Q 13Q 18Q 23 Q 4Q 9Q 14Q 19Q 24 Q 5Q 10Q 15Q 20Q 25.
Inequalities and their Graphs Objective: To write and graph simple inequalities with one variable.
Addition Facts
Formal Models of Computation Part III Computability & Complexity
13.1 Vis_2003 Data Visualization Lecture 13 Visualization of Very Large Datasets.
1 1 Slide Chapter 1 & Lecture Slide Body of Knowledge n Management science Is an approach to decision making based on the scientific method Is.
1 Column Generation. 2 Outline trim loss problem different formulations column generation the trim loss problem master problem and subproblem in column.
Real Zeros of Polynomial Functions Real Zeros of Polynomial Functions
Motion and Measurement Nic Gilbertson & Funda Gonulates Strengthening Tomorrows Education in Measurement (STEM) Project Michigan State University Math-in-Action.
Load Balancing Parallel Applications on Heterogeneous Platforms.
Twenty Questions Subject: Twenty Questions
The simplex algorithm The simplex algorithm is the classical method for solving linear programs. Its running time is not polynomial in the worst case.
1 Modeling and Simulation: Exploring Dynamic System Behaviour Chapter9 Optimization.
Introduction Situations in the real world often determine the types of values we would expect as answers to equations and inequalities. When an inequality.
Solving Absolute Value Equations Solving Absolute Value Equations
Good morning!. Reminder Subject Description This subject consists of the material presented in plus extensions material designed to provide deeper.
Welcome to Introduction to Operations Research
AE1APS Algorithmic Problem Solving John Drake
11 = This is the fact family. You say: 8+3=11 and 3+8=11
Limitation of Computation Power – P, NP, and NP-complete
Trees Chapter 11.
Minimum Vertex Cover in Rectangle Graphs
Reducibility Class of problems A can be reduced to the class of problems B Take any instance of problem A Show how you can construct an instance of problem.
ALGEBRA. PURPOSE Algebra is a building block that we can use to learn more advanced branches of mathematics such as statistics and calculus.
Deterministic Dynamic Programming.  Dynamic programming is a widely-used mathematical technique for solving problems that can be divided into stages.
1 Chapter 9 Dynamic Programming General Problem-Solving strategy Was born in the 1950s (Bellman) Based on successive decomposition Leads to functional.
Algebra Problems… Solutions Algebra Problems… Solutions © 2007 Herbert I. Gross Set 8 By Herbert I. Gross and Richard A. Medeiros next.
Complexity 16-1 Complexity Andrei Bulatov Non-Approximability.
TSP Travelling Salesperson Problem (TSP) Very famous problem Many practical applications Very easy to describe Very difficult to solve (Curse of.
Math443/543 Mathematical Modeling and Optimization
CSE115/ENGR160 Discrete Mathematics 03/03/11 Ming-Hsuan Yang UC Merced 1.
Analysis of Algorithms CS 477/677
Chapter 10 Dynamic Programming. 2 Agenda for This Week Dynamic Programming –Definition –Recursive Nature of Computations in DP –Forward and Backward Recursion.
Introduction to Management Science
By Saparila Worokinasih
Operations Research Models
Operations Research Assistant Professor Dr. Sana’a Wafa Al-Sayegh 2 nd Semester ITGD4207 University of Palestine.
Algebra-2 Section 1-3 And Section 1-4. Quiz Simplify 1. Simplify -4y – x + 10x + y 2. Is x = -2 a solution to following equation? 3. Solve.
MIT and James Orlin1 NP-completeness in 2005.
ENM 503 Lesson 1 – Methods and Models The why’s, how’s, and what’s of mathematical modeling A model is a representation in mathematical terms of some real.
CSC401: Analysis of Algorithms CSC401 – Analysis of Algorithms Chapter Dynamic Programming Objectives: Present the Dynamic Programming paradigm.
Thursday, May 9 Heuristic Search: methods for solving difficult optimization problems Handouts: Lecture Notes See the introduction to the paper.
IT Applications for Decision Making. Operations Research Initiated in England during the world war II Make scientifically based decisions regarding the.
Chapter 8 Maximum Flows: Additional Topics All-Pairs Minimum Value Cut Problem  Given an undirected network G, find minimum value cut for all.
Eastern Mediterranean University Department Of Industrial Engineering Deterministic Dynamic Programming presented by: Ziad El Masri Supervisor: Prof. Dr.
Managerial Economics Linear Programming Aalto University School of Science Department of Industrial Engineering and Management January 12 – 28, 2016 Dr.
IE 312 Review 1. The Process 2 Problem Model Conclusions Problem Formulation Analysis.
DEPARTMENT/SEMESTER ME VII Sem COURSE NAME Operation Research Manav Rachna College of Engg.
Copyright © 2014 Curt Hill Algorithms From the Mathematical Perspective.
Algebra-2 Section 1-3 And Section 1-4. Quiz Simplify using “step-by-step” (provide a reason or justification for each step). -4y – x + 10x + y.
Part3 Algorithms By example … Overview Shortest Path Knapsack.
1 Chapter 4 Geometry of Linear Programming  There are strong relationships between the geometrical and algebraic features of LP problems  Convenient.
Decision Support Systems
Managerial Economics Linear Programming
Day 1 Linear Equations in one variable
Courtsey & Copyright: DESIGN AND ANALYSIS OF ALGORITHMS Courtsey & Copyright:
1.3 Modeling with exponentially many constr.
Chapter 6. Large Scale Optimization
Chapter 3 Dynamic Programming.
Unit 4: Dynamic Programming
1.3 Modeling with exponentially many constr.
Chapter 6 Network Flow Models.
Dynamic Programming 動態規劃
Chapter 6. Large Scale Optimization
Presentation transcript:

Part 1 Overview, introduction, examples What is Operations Research? What is Optimization What is Sequential Decision Making? What is Dynamic Programming? Examples, please!

Perspective Universe Applied Maths OR Optimization Sequential Decision Making

What is Operations Research? A branch of applied mathematics dealing with the Science of Decision Making Also known as Management Science One of the streams at the Maths & Stats Department More information at Local chapter

What is optimization? Extensive literature (books, journals, encyclopedia) Education and training programs Jobs Commercial software (eg. Excel) Consulting services Conferences and workshops Meeting place: e-optimization.com

Convention Universal Convention for the description of optimisation problems opt Objective (dvs) dvs Subject to: Constraints (dvs) Opt: either min or max. Objective: an expression (function) quantifying how good/bad our decisions are. dvs: decision variables Constraints: Restrictions on the decision variables.

Help Desk opt Objective (dvs) dvs Subject to: Constraints (dvs) Tip Usually it is best to build the model in the following order: –dvs (Decision variables) –Objective –Opt –Constraints But, ….. do not be dogmatic!

Naïve Example English Version Given:The value of the perimeter of a rectangle Task: Determine the width and height of the rectangle that will make its area as large as possible Maths Version Which one do you like better?

Help Desk Formally Opt = max dvs: w,h Objective: w x h Constraint: 2(w + h) = p

Help Desk h w Perimeter = 2(w+h) Area = w x h

Beware of the distinction between Problem Formulation Describing what the problem is all about Problem Solving Constructing a solution to a given problem Most students under estimate the difficulties encountered at the formulation stage

Naïve Example English Version Given:The value of the perimeter of a rectangle Task: Determine the width and height of the rectangle that will make its area as large as possible Maths Version This is the (maths) model

Observations There are infinitely many feasible solutions: Example 2(w + h) = p = 6 w = 3 - h/2 We can let h take value in the range (0,3).

Observations Not difficult to show that the optimal solution is I am a square Prove this!

Strong Operations Research Flavour Warning Parental Guidance is required

Role of Models in Problem Solving Realisation Informal Description Formal Model SolutionWorking System Modelling Analysis Implementation Monitoring mathematical ^ Don’t panic!

In Real-life Realisation Informal Description Formal Model SolutionWorking System Modelling Analysis Implementation Monitoring

We shall focus on Realisation Informal Description Formal Model Solution Working System Modelling Analysis Implementation Monitoring Given

Beware of the distinction between Problem Formulation Describing what the problem is all about Problem Solving Constructing a solution to a given problem Most students under estimate the difficulties encountered at the formulation stage

Example (Knapsack Problem) English Version Given: A container and a collection of items having known values and volumes. Task: Determine what is the sub-collection of items of maximum total value that will fit into the container. Maths Version ?????

5 minutes English Version Given: A container and a collection of items having known values and volumes. Task: Determine what is the sub-collection of items of maximum value that will fit into the container. Maths Version Help!

What is a Sequential Decision Problem ? A problem (typically an optimization problem) representing a sequential decision making situation. Example: Knapsack problem. Note the distinction between the problem itself and the formulation given to it.

What is a Dynamic Programming? Short version A paradigm for the formulation, analysis and solution for sequential decision problems. Answer Long version Wait and see …

Difficult to teach Difficult to learn Usually done “by example” Important Facts about DP

DP Approach to Problem Solving Step 1: Transform your problem into a family of related problems Step 2: Derive a functional equation relating the solutions to these problems to each other Step 3: Solve the functional equation Step 4: Recover from the functional equation a solution to your initial problem

Trouble is, This is easier said than done The Art of DP hence

Most Famous Example (Shortest Path Problem) Given: a set of nodes (cities) and the lengths of the arcs connecting them Task: Find the shortest path from some given node to another given node

Step 1: Create a Family of Related Problems Suppose we are given say m cities and have to determine the shortest path from city s to city d. Let f(j) := shortest distance from city s to city j, j=1,2,3,…,m. Note: we now have m problems.

Step 2: Deriving a Functional Equation From the definition of f(j) it follows that f(j) = t(k,j) + f(k) for some immediate predecessor k of j. Hence, where t denotes the distance matrix and P(j) denotes the set of immediate predecessors of node j.

Example f(8) =

Step 3: Solve the FE Can be –Very easy –Easy –Difficult –Very difficult –Impossible

Example (naïve) D E AB C 1 2 f(A) = 0 (by definition?) f(B) = t(A,B) + f(A) = = 3 f(C) = t(B,C) + f(B) = = 4 f(D) = t(B,D) + f(B) = = 4 f(E) = min {t(C,E) + f(C),t(D,E) + f(D)} = min {1+4,2+4} = 5

Step 4: Recover a solution Once the functional equation is solved, it is usually simple to recover an optimal solution to the original problem. (Hint: go in …. reverse)

Example (naïve) D E AB C 1 2 Optimal solutions to the FE (going from A to E) D E AB C 1 2 Optimal solution to the original problem (going from E to A)

So what is all the fuss about DP? The examples we have seen so far are extremely simple (in fact naïve) There are major complications

A (very) Famous Example

Task: Move pieces from left to right Rules One piece at a time Large on small is not allowed Objective ??

Analysis Given n pieces Move n-1 pieces to the intermediate position Move the bottom one to the destination Move the n-1 pieces from the intermediate position to the destination

Formalism Let S(n,x,y) := Solution to a problem involving moving n pieces from position x to position y. Thus, S(1,x,y) := Move a piece from x to y. Theorem: S(n,x,y) = S(n-1,x,~(x,y)), S(1,x,y), S(n-1,~(x,y),y) Length [S(n,x,y)] = 2 n - 1

Start

0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

2 n - 1 = 2 4  1 = 16  1 = 15 15

2 n - 1 = 2 4  1 = 16  1 = 15 15

2 n - 1 = 2 4  1 = 16  1 = 15

2 n The Curse of Dimensionality Bellman [1957]

What’s next? A short visit to the tutOR site. Hands-on with the Knapsack Problem: –Conventional Formulation –DP functional equation