AM 121: Intro to Optimization Models and Methods

Similar documents
AM 121: Intro to Optimization

AM 121: Intro to Optimization Models and Methods Fall 2018

Prelude to the Simplex Algorithm. The Algebraic Approach The search for extreme point solutions.

MATH2070 Optimisation

OPERATIONS RESEARCH. Linear Programming Problem

Standard Form An LP is in standard form when: All variables are non-negativenegative All constraints are equalities Putting an LP formulation into sta

Simplex Algorithm Using Canonical Tableaus

Linear Programming, Lecture 4

Simplex Method for LP (II)

Metode Kuantitatif Bisnis. Week 4 Linear Programming Simplex Method - Minimize

Systems Analysis in Construction

The Simplex Method. Lecture 5 Standard and Canonical Forms and Setting up the Tableau. Lecture 5 Slide 1. FOMGT 353 Introduction to Management Science

Lecture 11 Linear programming : The Revised Simplex Method

MATH 445/545 Test 1 Spring 2016

Review Solutions, Exam 2, Operations Research

AM 121: Intro to Optimization! Models and Methods! Fall 2018!

Introduction to the Simplex Algorithm Active Learning Module 3

Slack Variable. Max Z= 3x 1 + 4x 2 + 5X 3. Subject to: X 1 + X 2 + X x 1 + 4x 2 + X X 1 + X 2 + 4X 3 10 X 1 0, X 2 0, X 3 0

Integer Programming. The focus of this chapter is on solution techniques for integer programming models.

4. Duality and Sensitivity

21. Solve the LP given in Exercise 19 using the big-m method discussed in Exercise 20.

F 1 F 2 Daily Requirement Cost N N N

1 Review Session. 1.1 Lecture 2

Yinyu Ye, MS&E, Stanford MS&E310 Lecture Note #06. The Simplex Method

Introduction to Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras

3. Duality: What is duality? Why does it matter? Sensitivity through duality.

Dr. Maddah ENMG 500 Engineering Management I 10/21/07

Linear Programming and the Simplex method

Chap6 Duality Theory and Sensitivity Analysis

Part 1. The Review of Linear Programming

THE UNIVERSITY OF HONG KONG DEPARTMENT OF MATHEMATICS. Operations Research I

MAT016: Optimization

TIM 206 Lecture 3: The Simplex Method

MATH 445/545 Homework 2: Due March 3rd, 2016

ORF 307: Lecture 2. Linear Programming: Chapter 2 Simplex Methods

AM 121 Introduction to Optimization: Models and Methods Example Questions for Midterm 1

AM 121: Intro to Optimization! Models and Methods! Fall 2018!

The Simplex Method. Standard form (max) z c T x = 0 such that Ax = b.

Linear Programming: Chapter 5 Duality

CSC Design and Analysis of Algorithms. LP Shader Electronics Example

Linear programs Optimization Geoff Gordon Ryan Tibshirani

Summary of the simplex method

Farkas Lemma, Dual Simplex and Sensitivity Analysis

Distributed Real-Time Control Systems. Lecture Distributed Control Linear Programming

Summary of the simplex method

Matrices and systems of linear equations

CSCI 1951-G Optimization Methods in Finance Part 01: Linear Programming

Lecture 2: The Simplex method

Algorithms and Theory of Computation. Lecture 13: Linear Programming (2)

IE 400: Principles of Engineering Management. Simplex Method Continued

9.1 Linear Programs in canonical form

In Chapters 3 and 4 we introduced linear programming

4.6 Linear Programming duality

Section Notes 9. IP: Cutting Planes. Applied Math 121. Week of April 12, 2010

Linear Algebra V = T = ( 4 3 ).

Answer the following questions: Q1: Choose the correct answer ( 20 Points ):

MVE165/MMG631 Linear and integer optimization with applications Lecture 5 Linear programming duality and sensitivity analysis

1111: Linear Algebra I

CS100: DISCRETE STRUCTURES. Lecture 3 Matrices Ch 3 Pages:

The dual simplex method with bounds

MATRICES. a m,1 a m,n A =

February 17, Simplex Method Continued

1 Simplex and Matrices

UNIT-4 Chapter6 Linear Programming

Lecture 10: Linear programming. duality. and. The dual of the LP in standard form. maximize w = b T y (D) subject to A T y c, minimize z = c T x (P)

15-780: LinearProgramming

1. Algebraic and geometric treatments Consider an LP problem in the standard form. x 0. Solutions to the system of linear equations

Lecture 11: Post-Optimal Analysis. September 23, 2009

MATH 4211/6211 Optimization Linear Programming

Dr. S. Bourazza Math-473 Jazan University Department of Mathematics

2. Linear Programming Problem

Introduction to Mathematical Programming IE406. Lecture 10. Dr. Ted Ralphs

Introduction. Very efficient solution procedure: simplex method.

Special cases of linear programming

Motivating examples Introduction to algorithms Simplex algorithm. On a particular example General algorithm. Duality An application to game theory

Understanding the Simplex algorithm. Standard Optimization Problems.

Developing an Algorithm for LP Preamble to Section 3 (Simplex Method)

Chapter 4 The Simplex Algorithm Part II

The Graphical Method & Algebraic Technique for Solving LP s. Métodos Cuantitativos M. En C. Eduardo Bustos Farías 1

Chapter 3, Operations Research (OR)

56:171 Operations Research Midterm Exam - October 26, 1989 Instructor: D.L. Bricker

Math Models of OR: Some Definitions

x 1 + x 2 2 x 1 x 2 1 x 2 2 min 3x 1 + 2x 2

The Primal-Dual Algorithm P&S Chapter 5 Last Revised October 30, 2006

OPRE 6201 : 3. Special Cases

The Simplex Method. Formulate Constrained Maximization or Minimization Problem. Convert to Standard Form. Convert to Canonical Form

END3033 Operations Research I Sensitivity Analysis & Duality. to accompany Operations Research: Applications and Algorithms Fatih Cavdur

Elementary Row Operations on Matrices

Chapter 1 Linear Programming. Paragraph 5 Duality

Optimization (168) Lecture 7-8-9

Michælmas 2012 Operations Research III/IV 1

AM 121: Intro to Optimization Models and Methods Fall 2018

Linear programming. Starch Proteins Vitamins Cost ($/kg) G G Nutrient content and cost per kg of food.

Finite Mathematics Chapter 2. where a, b, c, d, h, and k are real numbers and neither a and b nor c and d are both zero.

MS-E2140. Lecture 1. (course book chapters )

Linear Programming Duality P&S Chapter 3 Last Revised Nov 1, 2004

The Theory of the Simplex Method. Chapter 5: Hillier and Lieberman Chapter 5: Decision Tools for Agribusiness Dr. Hurley s AGB 328 Course

Ω R n is called the constraint set or feasible set. x 1

1 Overview. 2 Extreme Points. AM 221: Advanced Optimization Spring 2016

CSC373: Algorithm Design, Analysis and Complexity Fall 2017 DENIS PANKRATOV NOVEMBER 1, 2017

Transcription:

AM 121: Intro to Optimization Models and Methods Fall 2017 Lecture 2: Intro to LP, Linear algebra review. Yiling Chen SEAS Lecture 2: Lesson Plan What is an LP? Graphical and algebraic correspondence Problems in canonical form LP in matrix form. Matrix review. Jensen & Bard: 2.1-2.3, 2.5, 3.1 (can ignore the two definitions for now), 3.2 Available in Cabot Science Library. 2 1

Linear Programming Maximizing (or minimizing) a linear function subject to a finite number of linear constraints n objective function j=1 constraints non-negativity Decision variables: x j Parameters: c j, a ij 3 Standard Inequality Form 4 2

Standard Equality Form 5 A Little History The field of linear programming started in 1947 when George Dantzig designed the simplex method for solving U.S. Air Force planning problems Dantzig was deciding how to use the limited resources of the Air Force planning == programming program was a military term that referred to plans or proposed schedules for training, logistical supply, or deployment of combat units. this naming sometimes called Dantzig s great mistake 6 3

Terminology for Solutions of LP A feasible solution A solution that satisfies all constraints An infeasible solution A solution that violates at least one constraint Feasible region The region of all feasible solutions An optimal solution A feasible solution that has the most favorable value of the objective function 7 Example: Marketing Campaign Ad on news page get 7m high-income women, 2m high-income men. $50,000 Ad on sports page get 2m high-income women and 12m high-income men. $100,000 Goal: 28m women, 24m men; min cost. How many of each ad to buy? (Can buy fractions!) 8 4

Graphical version of problem (solution is x 1 =3.6, x 2 =1.4, value 320) Solution is at an extreme point of feasible region! 9 Example: Multiple Opt. Solutions Note: still extremal optimal solutions 10 5

Example: Unbounded Objective 11 Example: Infeasible Problem..\..\Desktop\17.bmp 12 6

Solving LPs Transform to the canonical form (note: this is NOT the standard equality form ) Work with basic feasible solutions Iterate: solution improvement From one BFS to the next 13 Canonical Form 1. Maximization 2. RHS coefficients are non-negative 3. All constraints are equalities 4. Decision variables all non-negative 5. One decision variable is isolated in each constraint: a +1 coefficient. does not appear in any other constraint zero coefficient in objective Why might this be useful?? 14 7

Basic Feasible Solution Canonical form has an associated basic feasible solution in which the isolated variables (basic vars) are non-zero and the rest (non-basic vars) are zero. Here, set x 1 = 6, x 2 =4, x 3 =0, x 4 =0. Optimal in this example as well. (Why?) 15 Basic Feasible Solution Canonical form has an associated basic feasible solution in which the isolated variables (basic vars) are non-zero and the rest (non-basic vars) are zero. Here, set x 1 = 6, x 2 =4, x 3 =0, x 4 =0. Optimal in this example as well. (Why?) 16 8

Basic Feasible Solution Canonical form has an associated basic feasible solution in which the isolated variables (basic vars) are non-zero and the rest (non-basic vars) are zero. Here, set x 1 = 6, x 2 =4, x 3 =0, x 4 =0. Optimal in this example as well. (Why?) 17 Solution Improvement Current BFS: x 1 = 6, x 2 =4, x 3 =0, x 4 =0. 18 9

Solution Improvement Current BFS: x 1 = 6, x 2 =4, x 3 =0, x 4 =0. Let s increase x 4. Need to decrease x 1 and x 2 (keep x 3 =0) to keep feasible. 19 Solution Improvement Current BFS: x 1 = 6, x 2 =4, x 3 =0, x 4 =0. Let s increase x 4. Need to decrease x 1 and x 2 (keep x 3 =0) to keep feasible. Second constraint becomes binding. Obtain new solution: x 1 =3, x 2 =0, x 3 =0, x 4 =1. Value 21. 20 10

Solution Improvement Current BFS: x 1 = 6, x 2 =4, x 3 =0, x 4 =0. Let s increase x 4. Need to decrease x 1 and x 2 (keep x 3 =0) to keep feasible. Second constraint becomes binding. Obtain new solution: x 1 =3, x 2 =0, x 3 =0, x 4 =1. Value 21. Corresponds to a new canonical form. Isolated vars: x 1 and x 4. pivot on x 4 in the second constraint pick something to enter, something forced to leave 21 New Canonical Form After linear transformations: New BFS is x 1 =3, x 2 =0, x 3 =0, x 4 =1, and optimal. 22 11

Geometric Interpretation of Solution Improvement x 1 =3x 3 3x 4 +6 0 x 2 =8x 3 4x 4 +4 0 x 4 x 1 =6, x 2 =4, x 3 =0, x 4 =0 x 1 =3, x 2 =0, x 3 =0, x 4 =1 x 3 23 Can any LP be made canonical? (1) maximization, (2) positive RHS, (3) equality constraints, (4) non-negative vars, (5) isolated vars. +1 coeff, only in one constraint, not in obj. 24 12

Reduction to canonical form (I) min z = max z If a RHS value is negative then multiply constraint by -1 If x 1 <= 0 then replace x 1 := -x 2, with x 2 0 If x 3 is free (neither x 3 <= 0 or x 3 0) then 25 Reduction to canonical form (I) min z = max z If a RHS value is negative then constraint by -1 If x 1 <= 0 then replace x 1 := -x 2, with x 2 0 If x 3 is free (neither x 3 <= 0 or x 3 0) then 26 13

Reduction to canonical form (I) min z = max z If a RHS value is negative then multiply constraint by -1 If x 1 <= 0 then replace x 1 := -x 2, with x 2 0 If x 3 is free (neither x 3 <= 0 or x 3 0) then 27 Reduction to canonical form (I) min z = max z If a RHS value is negative then multiply constraint by -1 If x 1 <= 0 then replace x 1 := -x 2, with x 2 0 If x 3 is free (neither x 3 <= 0 or x 3 0) then replace x 3 := u v, with u 0 and v 0. 28 14

Reduction to canonical form (I) min z = max z If a RHS value is negative then multiply constraint by -1 If x 1 <= 0 then replace x 1 := -x 2, with x 2 0 If x 3 is free (neither x 3 <= 0 or x 3 0) then replace x 3 := u v, with u 0 and v 0. 29 Reduction to canonical form (II) Inequality constraints 30 15

Reduction to canonical form (II) Inequality constraints x 4 0, x 5 0 slack variable surplus variable 31 Reduction to canonical form (III) Need isolated variables A constraint with slack var already good! Other constraints, e.g. with surplus vars not good: doesn t work Introduce a new artificial variable (we ll insist that x 6 =0 in any solution) 32 16

Reduction to canonical form (III) Need isolated variables A constraint with slack var already good! Other constraints, e.g. with surplus vars not good: doesn t work Introduce a new artificial variable (we ll insist that x 6 =0 in any solution) 33 Reduction to canonical form (III) Need isolated variables A constraint with slack var already good! Other constraints, e.g. with surplus vars not good: doesn t work Introduce a new artificial variable (we ll insist that x 6 =0 in any solution) 34 17

Standard Inequality Form 35 Review: Matrices (1/4) Matrix: rectangular array of numbers [a ij ] dimension: m by n (m rows, n columns) k by 1: column vector; 1 by k: row vector B = αa = Aα, scalar α: αa ij = b ij 36 18

Review: Matrices (1/4) Matrix: rectangular array of numbers [a ij ] dimension: m by n (m rows, n columns) k by 1: column vector; 1 by k: row vector B = αa = Aα, scalar α: αa ij = b ij (m x p) (p x n) (m x n) 37 Review: Matrices (2/4) A T transpose: a T ij = a ji inner product (1 x n) (n x 1) 38 19

Review: Matrices (2/4) A T transpose: a T ij = a ji inner product (1 x n) (n x 1) Partitions 39 Review: Matrices (3/4) Square matrix: m by m Identity matrix: square matrix w/ diagonal elements all 1 and all non-diagonal are 0. I 2, I 3, m by m square A, inverse: A -1 = B è BA = AB = I m 40 20

Review: Matrices (4/4) Given Ax = b (with square matrix A) Can write: A -1 (Ax)=A -1 b Equivalently: x = A -1 b Can find a unique solution to a square linear system if A is invertible. 41 Next Time Applications, Examples, Exercises. 42 21