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

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

IE 400: Principles of Engineering Management. Simplex Method Continued

AM 121: Intro to Optimization

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

MATH 445/545 Test 1 Spring 2016

1 Review Session. 1.1 Lecture 2

Summary of the simplex method

Review Solutions, Exam 2, Operations Research

Summary of the simplex method

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

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

Part 1. The Review of Linear Programming

The Simplex Algorithm and Goal Programming

Chapter 4 The Simplex Algorithm Part I

OPERATIONS RESEARCH. Michał Kulej. Business Information Systems

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

Exam 3 Review Math 118 Sections 1 and 2

Chapter 4 The Simplex Algorithm Part II

The Simplex Algorithm

min 4x 1 5x 2 + 3x 3 s.t. x 1 + 2x 2 + x 3 = 10 x 1 x 2 6 x 1 + 3x 2 + x 3 14

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

F 1 F 2 Daily Requirement Cost N N N

The Dual Simplex Algorithm

4.6 Linear Programming duality

Understanding the Simplex algorithm. Standard Optimization Problems.

Sensitivity Analysis

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

Sensitivity Analysis and Duality

(P ) Minimize 4x 1 + 6x 2 + 5x 3 s.t. 2x 1 3x 3 3 3x 2 2x 3 6

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

SAMPLE QUESTIONS. b = (30, 20, 40, 10, 50) T, c = (650, 1000, 1350, 1600, 1900) T.

LINEAR PROGRAMMING 2. In many business and policy making situations the following type of problem is encountered:

Chap6 Duality Theory and Sensitivity Analysis

Lecture 5. x 1,x 2,x 3 0 (1)

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

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

Ann-Brith Strömberg. Lecture 4 Linear and Integer Optimization with Applications 1/10

MAT016: Optimization

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

Special cases of linear programming

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

AM 121: Intro to Optimization Models and Methods

Note 3: LP Duality. If the primal problem (P) in the canonical form is min Z = n (1) then the dual problem (D) in the canonical form is max W = m (2)

(b) For the change in c 1, use the row corresponding to x 1. The new Row 0 is therefore: 5 + 6

Linear Programming: Simplex Method CHAPTER The Simplex Tableau; Pivoting

Linear Programming: Chapter 5 Duality

Simplex Method for LP (II)

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

56:270 Final Exam - May

Farkas Lemma, Dual Simplex and Sensitivity Analysis

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

CO350 Linear Programming Chapter 8: Degeneracy and Finite Termination

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

Optimisation. 3/10/2010 Tibor Illés Optimisation

Notes: Deterministic Models in Operations Research

MATH2070 Optimisation

Introduction to linear programming using LEGO.

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

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

6.2: The Simplex Method: Maximization (with problem constraints of the form )

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

Dual Basic Solutions. Observation 5.7. Consider LP in standard form with A 2 R m n,rank(a) =m, and dual LP:

Today s class. Constrained optimization Linear programming. Prof. Jinbo Bi CSE, UConn. Numerical Methods, Fall 2011 Lecture 12

Sensitivity Analysis and Duality in LP

The Simplex Algorithm

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

Linear Programming. Xi Chen. Department of Management Science and Engineering International Business School Beijing Foreign Studies University

A Review of Linear Programming

Linear Programming and the Simplex method

Midterm Review. Yinyu Ye Department of Management Science and Engineering Stanford University Stanford, CA 94305, U.S.A.

Optimization Methods in Management Science

Systems Analysis in Construction

Linear Programming, Lecture 4

UNIT-4 Chapter6 Linear Programming

IE 5531: Engineering Optimization I

UNIVERSITY of LIMERICK

II. Analysis of Linear Programming Solutions

Linear Programming. Dr. Xiaosong DING

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

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

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

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

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

Solutions to Review Questions, Exam 1

OPERATIONS RESEARCH. Linear Programming Problem

MATH 210 EXAM 3 FORM A November 24, 2014

56:171 Operations Research Fall 1998

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

The Big M Method. Modify the LP

OPRE 6201 : 3. Special Cases

February 17, Simplex Method Continued

Linear Programming. H. R. Alvarez A., Ph. D. 1

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

c) Place the Coefficients from all Equations into a Simplex Tableau, labeled above with variables indicating their respective columns

Optimization Methods in Management Science

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

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

December 2014 MATH 340 Name Page 2 of 10 pages

Brief summary of linear programming and duality: Consider the linear program in standard form. (P ) min z = cx. x 0. (D) max yb. z = c B x B + c N x N

Duality Theory, Optimality Conditions

Transcription:

AM 121 Introduction to Optimization: Models and Methods Example Questions for Midterm 1 Prof. Yiling Chen Fall 2018 Here are some practice questions to help to prepare for the midterm. The midterm will not contain as many questions. 1. (Standard forms) (a) Convert the following problem into standard inequality form. (Hint, the standard form is a maximization.) min 2x 1 4x 2 s.t. 5x 1 3x 2 1 2x 1 7 4.5x 1 + 2x 2 = 20 x 1, x 2 0 (b) Convert the following problem into standard equality form. Be sure to note any slack, excess or artificial variables that you introduce. Introduce as few additional variables as possible. min 3x 1 x 2 + 5x 3 s.t. x 1 2x 2 4 2x 1 + x 3 2 7x 1 2x 2 + 5x 3 = 5 2. (Simplex method) Solve the following linear program using the simplex method. Do this by hand (since you will have to on the actual midterm). Choose as an entering variable the one with the lowest reduced cost. max 2x 1 x 2 + x 3 s.t. 3x 1 + x 2 + 2x 3 70 x 1 x 2 + 2x 3 10 1

3. (Conceptual) (a) Consider the following tableau for a maximization problem. Give the weakest conditions on the unknowns a 1, a 2, a 3, b and c (perhaps negative) that make the following statements true by inspection of the tableau: (i) The current basic solution is optimal. (ii) The current basic solution is optimal and there are alternative optimal solutions. (iii) The LP is unbounded. (iv) The current basic solution is infeasible. (v) The current basic solution is feasible but the objective value can be improved by bringing x 1 into the basis and removing x 4. z +cx 1 +2x 2 = 10 x 1 +a 1 x 2 +x 3 = 4 a 2 x 1 4x 2 +x 4 = 1 a 3 x 1 +3x 2 +x 5 = b (b) Fill in the blanks: (i) We should expect there to be less rows than columns in an linear program in standard equality form because (ii) The convexity of the polyhedron that corresponds to the feasible solution space for a linear program is a crucial property in being able to solve linear programs efficiently because 4. (Graphical sensitivity) Consider the LP max 4x 1 + x 2 s.t. 3x 1 + x 2 6 5x 1 + 3x 2 15 x 1, x 2 0 The optimal solution is z = 8, x 1 = 2, x 2 = 0. Use the graphical approach to answer the following questions: (a) Determine the range of values of c 1 remains optimal. (coefficient of x 1 ) for which the current basis 2

(b) Determine the range of values of c 2 remains optimal. (coefficient of x 2 ) for which the current basis (c) Determine the range of values of b 1 (RHS of first constraint) for which the current basis remains optimal. (d) Determine the range of values of b 2 (RHS of second constraint) for which the current basis remains optimal. 5. (Quick fire) Just answer true or false. No need to explain. 1. True or False: For an LP to be unbounded, the LP s feasible region must be unbounded. 2. True or False: A tableau is dual feasible when the reduced costs are all nonnegative. 3. True or False: The dual simplex method (when used on the primal tableau) first chooses a variable to enter. 4. True or False: The dual simplex method is useful because it can typically recover in only a few pivots an optimal solution to an LP that has been slightly modified by introducing a new constraint. 5. True or False: The optimal dual value that corresponds to a binding primal constraint in an optimal primal solution necessarily has no slack (is non-zero). 6. True or False: Bland s theorem ensures that no variable will enter a tableau more than once when the smallest subscript rule is used for pivoting. 6. (Modeling) You have decided to enter the candy business. You are considering producing two types of candies: Slugger Candy and Easy Out Candy, both of which consist solely of sugar, nuts and chocolate. At present, you have in stock 100 oz of sugar, 20 oz of nuts, and 30 oz of chocolate. The mixture used to make Easy Out Candy must contain at least 20% nuts. The mixture used to make Slugger Candy must contain at least 10% nuts and 10% chocolate. Each ounce of Easy Out can be sold for 25 and each ounce of Slugger for 20. Formulate a mathematical model for an LP that will enable you to maximize your revenue from candy sales. Describe the elements of your model. 7. (Duality) Consider an LP with two decision variables x 1, x 2 0 and an objective function max 2x 2 (a) Define two inequality ( ) constraints, each involving both x 1 and x 2, such that the LP is unbounded. (b) Define the dual of the problem you formulate in (a) and plot the feasibile region to show that it is infeasible. (c) Use one of the duality theorems to explain why primal unbounded implies dual infeasible. 3

8. (Duality) (a) Use the duality definition for the standard inequality form to find the dual of the following: max 4x 1 + x 2 + 3x 3 s.t. 2x 1 + x 2 + x 3 1 x 1 + x 2 + 2x 3 2 (b) Transform the resulting program into a maximization problem and again find the dual. (c) What do you notice? 9. (Sensitivity with AMPL) [The AMPL file will be posted with the solution.] Zales Jewelers uses rubies and sapphires to produce two types of rings. A Type 1 ring requires 2 rubies, 4 sapphires, and 1 hour of labor. A Type 2 ring requires 4 rubies, 2 sapphires, and 2 hours of labor. Each Type 1 ring sells for $400; type 2 sells for $500. At present, Zales has 100 rubies, 120 sapphires, and 70 hours of labor. Extra rubies can be purchased at a cost of $140 per ruby. Market demand requires that the company produce at least 15 Type 1 rings and at least 16 Type 2. Let x 1 = number of Type 1 rings produced, x 2 = number of Type 2 rings produced, and r denote the number of rubies purchased. To maximize revenue, Zales solves the following LP: max 400x 1 + 500x 2 140r s.t. 2x 1 + 4x 2 r 100 (1) 4x 1 + 2x 2 120 (2) x 1 + 2x 2 70 (3) x 1 15 (4) x 2 16 (5) x 1, x 2, r 0 An LP has been formulated in AMPL and this is the solution, with corresponding objective value: x 1 = 22; x 2 = 16; r = 8; z = 15, 680. The following sensitivity information is generated: : _varname _var.rc _var.down _var.current _var.up := 1 x1 0 280 400 1e+20 4

2 x2 0-1e+20 500 620 3 r 0-200 -140-100 ; : _conname _con.dual _con.down _con.current _con.up := 1 constraint1 140-1e+20 100 108 2 constraint2 30 104 120 184 3 constraint3 0 54 70 1e+20 4 constraint4 0-1e+20 15 22 5 constraint5-120 13.3333 16 26.6667 ; Answer the following questions: (a) Suppose that instead of $140, each extra ruby costs $190. Would Zales still purchase rubies? What would be the new optimal solution to the problem? (b) Suppose that Zales were only required to produce at least 14 Type 2 rings. would Zales revenue be? What (c) What is the most that Zales would be willing to pay for another hour of labor? (d) What is the most that Zales would be willing to pay for another sapphire? (e) Zales is considering producing Type 3 rings. Each Type 3 ring can be sold for $550 and requires 4 rubies, 2 sapphires and 1 hour of labor. Should Zales produce any Type 3 rings? (Hint: you will need to do a small amount of hand calculation here) 10. (Degeneracy) (a) Describe the condition that makes a feasible tableau degenerate. (b) Consider the following tableau for a maximization problem. Write down the current basis, current basic solution and current objective value. z + 1 2 x 1 2x 2 + 3 2 x 4 = 3 + 1 2 x 1 +x 3 + 1 2 x 4 = 1 x 1 +x 2 x 4 +x 5 = 0 (c) Perform two pivots. After each pivot write down the new basis, the new basic solution, and the new objective value. When choosing an entering variable, select the one with the smallest reduced cost. What do you notice? (d) What is the general problem that can be caused by degeneracy in the simplex method and what is a solution? 5

11. (Pivoting) Consider the following tableau for a maximization problem: z 2x 2 +2x 3 3x 5 = 5 +2x 2 x 3 x 5 +x 6 = 4 +x 2 x 3 +x 4 +x 5 = 2 +x 1 2x 2 2x 3 3x 5 = 6 (a) List all pairs (x r, x k ) such that x k could be the entering variable and x r could be the leaving variable. (b) List all pairs if the most negative reduced cost rule for choosing the entering variable is used. (c) List all pairs if the smallest subscript rule is used for choosing the entering and leaving variables. 12. (Sensitivity) Consider the following LP and its optimal tableau (where x 4 and x 5 are the slack variables for the two inequalities): max 3x 1 + x 2 x 3 s.t. 2x 1 + x 2 + x 3 8 4x 1 + x 2 x 3 10 z +x 3 + 1 2 x 4 + 1 2 x 5 = 9 +x 1 x 3 1 2 x 4 + 1 2 x 5 = 1 +x 2 +3x 3 +2x 4 x 5 = 6 Recall the following algebra relating an original problem in standard equality form and the tableau for basis B: b = A 1 B b y T = c T BA 1 B c j = c T BA 1 B A j c j = y T A j c j, j B Here, the optimal basis is B = {1, 2} and ( ) 2 1 A B = 4 1 ( 1 1 B = 2 2 2 1 A 1 ) Using the optimal tableau or these equations, answer the following questions: 6

(a) What is the optimal solution to the dual of this LP? (b) Find the range of values of b 2 (the RHS on the second constraint) for which the current basis remains optimal. If b 2 = 12 what is the new optimal solution? (c) Find the range of values of c 3 (the objective function coefficient on the third variable) for which the current solution remains optimal. (d) Find the range of values of c 1 (the objective function coefficient on the first variable) for which the current basis remains optimal. (Note: it is more important you understand how to solve this problem than to actually solve it here. It s good algebra practice, so we won t stop you, but don t expect us to give this much algebra on the midterm itself.) 13. (Dual simplex) In solving the following LP we obtain the optimal tableau max 6x 1 + x 2 s.t. x 1 + x 2 5 2x 1 + x 2 6 x 1, x 2 0 z +2x 2 +3x 4 = 18 + 1 2 x 2 +x 3 1 2 x 4 = 2 +x 1 + 1 2 x 2 + 1 2 x 4 = 3 where x 3 and x 4 are the slack variables introduced for the two inequalities. (a) Find the optimal solution if we add the constraint 3x 1 + x 2 10 to the original LP. (b) Find the optimal solution if we add the constraint x 1 x 2 6 to the original LP. (c) Find the optimal solution if we add the constraint 8x 1 + x 2 12 to the original LP. 7