December 2014 MATH 340 Name Page 2 of 10 pages

Similar documents
April 2003 Mathematics 340 Name Page 2 of 12 pages

Be sure this exam has 9 pages including the cover. The University of British Columbia

The University of British Columbia Final Examination - April, 2007 Mathematics 257/316

Math 152 Second Midterm March 20, 2012

December 2010 Mathematics 302 Name Page 2 of 11 pages

Special Instructions:

December 2010 Mathematics 302 Name Page 2 of 11 pages

THE UNIVERSITY OF BRITISH COLUMBIA Sample Questions for Midterm 1 - January 26, 2012 MATH 105 All Sections

Math 221 Midterm Fall 2017 Section 104 Dijana Kreso

The University of British Columbia Final Examination - April 20, 2009 Mathematics 152 All Sections. Closed book examination. No calculators.

Math 321 Final Exam 8:30am, Tuesday, April 20, 2010 Duration: 150 minutes

The University of British Columbia. Mathematics 300 Final Examination. Thursday, April 13, Instructor: Reichstein

The University of British Columbia Final Examination - December 11, 2013 Mathematics 104/184 Time: 2.5 hours. LAST Name.

The University of British Columbia. Mathematics 322 Final Examination - Monday, December 10, 2012, 3:30-6pm. Instructor: Reichstein

Math 152 First Midterm Feb 7, 2012

Review Solutions, Exam 2, Operations Research

The University of British Columbia Final Examination - December 16, Mathematics 317 Instructor: Katherine Stange

CPSC 121 Sample Midterm Examination October 2007

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

MATH 373 Section A1. Final Exam. Dr. J. Bowman 17 December :00 17:00

Lesson 27 Linear Programming; The Simplex Method

1 Review Session. 1.1 Lecture 2

A Review of Linear Programming

LP. Lecture 3. Chapter 3: degeneracy. degeneracy example cycling the lexicographic method other pivot rules the fundamental theorem of LP

The University of British Columbia

Math 16 - Practice Final

The University of British Columbia Final Examination - April 11, 2012 Mathematics 105, 2011W T2 All Sections. Special Instructions:

The University of British Columbia Final Examination - December 6, 2014 Mathematics 104/184 All Sections

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

Part 1. The Review of Linear Programming

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 University of British Columbia November 9th, 2017 Midterm for MATH 104, Section 101 : Solutions

This examination consists of 11 pages. Please check that you have a complete copy. Time: 2.5 hrs INSTRUCTIONS

Linear Programming: Chapter 5 Duality

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

The level curve has equation 2 = (1 + cos(4θ))/r. Solving for r gives the polar form:

The University of British Columbia Final Examination - December 5, 2012 Mathematics 104/184. Time: 2.5 hours. LAST Name.

The University of British Columbia Final Examination - December 17, 2015 Mathematics 200 All Sections

Optimization (168) Lecture 7-8-9

MATH 322, Midterm Exam Page 1 of 10 Student-No.: Midterm Exam Duration: 80 minutes This test has 6 questions on 10 pages, for a total of 70 points.

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

Question Points Score Total: 70

This examination consists of 10 pages. Please check that you have a complete copy. Time: 2.5 hrs INSTRUCTIONS

CHAPTER 2. The Simplex Method

Understanding the Simplex algorithm. Standard Optimization Problems.

Final Exam Math 317 April 18th, 2015

MAT016: Optimization

The use of shadow price is an example of sensitivity analysis. Duality theory can be applied to do other kind of sensitivity analysis:

IE 400: Principles of Engineering Management. Simplex Method Continued

Optimization 4. GAME THEORY

Math 102- Final examination University of British Columbia December 14, 2012, 3:30 pm to 6:00 pm

The University of British Columbia Final Examination - December 13, 2012 Mathematics 307/101

3 The Simplex Method. 3.1 Basic Solutions

The simplex algorithm

MATH 445/545 Test 1 Spring 2016

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

Math 215/255 Final Exam, December 2013

Mathematics 253/101,102,103,105 Page 1 of 17 Student-No.:

This exam is closed book with the exception of a single 8.5 x11 formula sheet. Calculators or other electronic aids are not allowed.

IE 5531: Engineering Optimization I

Lecture 2: The Simplex method

Example Problem. Linear Program (standard form) CSCI5654 (Linear Programming, Fall 2013) Lecture-7. Duality

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

3. THE SIMPLEX ALGORITHM

4.6 Linear Programming duality

The Dual Simplex Algorithm

Math 164-1: Optimization Instructor: Alpár R. Mészáros

Introduction to optimization

THE UNIVERSITY OF BRITISH COLUMBIA Midterm Examination 14 March 2001

Special cases of linear programming

AM 121: Intro to Optimization

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

Linear and Combinatorial Optimization

Relation of Pure Minimum Cost Flow Model to Linear Programming

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

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

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

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

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

Problem Out of Score Problem Out of Score Total 45

DEPARTMENT OF STATISTICS AND OPERATIONS RESEARCH OPERATIONS RESEARCH DETERMINISTIC QUALIFYING EXAMINATION. Part I: Short Questions

Summary of the simplex method

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

MATH 100, Section 110 Midterm 2 November 4, 2014 Page 1 of 7

Mathematics Midterm Exam 2. Midterm Exam 2 Practice Duration: 1 hour This test has 7 questions on 9 pages, for a total of 50 points.

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

Simplex method(s) for solving LPs in standard form

CO350 Linear Programming Chapter 8: Degeneracy and Finite Termination

Civil Engineering Systems Analysis Lecture XII. Instructor: Prof. Naveen Eluru Department of Civil Engineering and Applied Mechanics

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

Linear Programming Duality

Section (circle one) Coombs (215:201) / Herrera (215:202) / Rahmani (255:201)

Chap6 Duality Theory and Sensitivity Analysis

Optimization - Examples Sheet 1

Exam 3 Review Math 118 Sections 1 and 2

Lecture 10: Linear programming duality and sensitivity 0-0

CO350 Linear Programming Chapter 6: The Simplex Method

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

Simplex Algorithm Using Canonical Tableaus

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

Transcription:

December 2014 MATH 340 Name Page 2 of 10 pages Marks [8] 1. Find the value of Alice announces a pure strategy and Betty announces a pure strategy for the matrix game [ ] 1 4 A =. 5 2 Find the value of the mixed strategy games and the optimal mixed strategies for Alice and Betty. Continued on page 3

December 2014 MATH 340 Name Page 3 of 10 pages [10] 2. Consider the problem: maximize x 1 + 2x 2 subject to x 1 2x 2 4, x 1 2x 2 7, x 1 + x 2 1, and x 1, x 2 0. Write this as a linear program in standard form. Use the two-phase method, adding an auxilliary variable x 0 to EVERY slack variable equation in the dictionary, to solve this LP. Use the smallest subscript rule to break any ties for entering or leaving variables. [Hint: This should not take more than two or three pivots.] Continued on page 4

December 2014 MATH 340 Name Page 4 of 10 pages [10] 3. Consider the LP: maximize x 1 +18x 2 subject to x 1 +x 2 5, x 1 +9x 2 9, 3x 1 +x 2 9, and x 1, x 2 0. (a) Write down the dual linear program. (b) Use complementary slackness to check if x 1 = 3, x 2 = 0 is an optimal solution for this linear program. (c) Use complementary slackness to check if x 1 = 0, x 2 = 1 is an optimal solution for this linear program. Continued on page 5

December 2014 MATH 340 Name Page 5 of 10 pages [6] 4. Consider the linear program: maximize s + 10t + r subject to 2s + 5t + r 16, 3s + t 3r 12, 4s + 3t + 3r 20, and t, r 0, but where s can be negative, zero, or positive. Replace s by two variables, namely s = s 1 s 2, where we impose the condition s 1, s 2 0. (a) The three constraints of this LP can be written as [ big A ] s 1 s 2 t r w 1 w 2 w 3 = 16 12 20 where w 1, w 2, w 3 are slack variables. Write out the matrix big A. (b) Can both s 1 and s 2 be basic in some dictionary of the simplex method? Justify your answer using (part of) big A. Continued on page 6

December 2014 MATH 340 Name Page 6 of 10 pages [32] 5. (4 points for each part) Briefly justify your answers: (a) In the matrix game A = 1 2 1 2 1 1 5 4 1 someone claims that Alice s optimal mixed strategy is [1/2 1/2 0] and that Betty s is [1/2 1/2 0]. Make a quick calculation (without using the simplex method) to determine whether or not this is true; explain why your quick calculation works. (b) Consider a n n weighted bipartite matching problem (Assignment Problem), where n 6 and where x ij is 1 if person i does task j (entirely). Argue that x 16, x 36, x 34, x 14 cannot all be basic in any dictionary of the simplex method. (c) Give an example of a linear program whose first three pivots must be degenerate. How do you know that these first three pivots must be degenerate? Continued on page 7

December 2014 MATH 340 Name Page 7 of 10 pages (d) Give an example of a linear program such that the perturbation applied to it requires no more than two pivots, but if we change the order of the rows (or equivalently change the order of ɛ 1, ɛ 2,...) the simplex method can take three iterations. Justify your claim, either in words or pictures. (e) Consider a linear program that has various constraints including x 1 2x 2 4 and x 1 2x 2 7. Can both of the slack variables corresponding to these two constraints be nonbasic in some dictionary of the simplex method? Explain. (f) In this class we viewed an m n matrix, A, as a matrix game giving the payout to Alice with Alice playing m pure strategies represented by A s rows, and Betty playing n pure strategies columns represented by A s columns. What matrix would you get if Alice and Betty exchange roles? Explain. Continued on page 8

December 2014 MATH 340 Name Page 8 of 10 pages (g) Find the value of the mixed strategy games for the matrix game A = Justify your answer. [ 1 4 9 16 25 36 ] 49 49 36 25 16 9 4 1. (h) Consider the line y = a + bx which is the best max approximation regression line to the data points (0, 4), (1, 6), (2, 7), (3, 10), (5, 11), i.e., such that d = max( 4 a, 6 a b, 7 a 2b, 10 a 3b, 11 a 5b ) is minimized. Assume that you know that at optimality (i.e., when d is minimized), a, b, d are all positive. At the optimal a, b, d, at least how many of 4 a, 6 a b, 7 a 2b, 10 a 3b, 11 a 5b must equal d? What could you say if you had ten data points instead of five? Continued on page 9

December 2014 MATH 340 Name Page 9 of 10 pages Continued on page 10

December 2014 MATH 340 Name Page 10 of 10 pages The End

Be sure that this examination has 10 pages including this cover The University of British Columbia Midterm Examinations - December 2014 Mathematics 340 Closed book examination Time: 2 1 2 hours Name Student Number Signature Instructor s Name Section Number Special Instructions: Calculators, notes, or other aids may not be used. questions on the exam. This exam is two-sided! Answer Rules governing examinations 1. Each candidate should be prepared to produce his library/ams card upon request. 2. Read and observe the following rules: No candidate shall be permitted to enter the examination room after the expiration of one half hour, or to leave during the first half hour of the examination. Candidates are not permitted to ask questions of the invigilators, except in cases of supposed errors or ambiguities in examination questions. CAUTION - Candidates guilty of any of the following or similar practices shall be immediately dismissed from the examination and shall be liable to disciplinary action. (a) Making use of any books, papers or memoranda, other than those authorized by the examiners. (b) Speaking or communicating with other candidates. (c) Purposely exposing written papers to the view of other candidates. The plea of accident or forgetfulness shall not be received. 3. Smoking is not permitted during examinations. 1 8 2 10 3 10 4 6 5 32 Total 66

Math 340 Note Sheet for the Final Exam, Fall 2014 ValueAliceAnnouncesPure(A) = max i ValueBettyAliceAnnouncesPure(A) = min j MinEntry of i-th row of A = max i min a ij j MaxEntry of j-th column of A = min j DualityGap = (ValueBettyAnnouncesPure) (ValueAliceAnnouncesPure) The value of Alice announces a mixed strategy is Is given by LP max p stoch MinEntry( pt A) max v s.t. p T A [v v... v], p 1 + + p m = 1, p 1, p 2,..., p m 0. If all entries of A are positive this is equivalent to max v s.t. p T A [v v... v], max a ij i For example, A = [ 1 2 3 4 p 1 + + p m 1, v, p 1, p 2,..., p m 0. ], gives v p 1 + 3p 2, v 2p 1 + 4p 2, etc. If A is m n and n < m, then we know that there is an optimum strategy where at most n of p 1,..., p m are nonzero. If A is a 2 2 matrix, then either (1) the duality gap is zero, or (2) Alice and Betty have mixed strategies where the values are balanced, e.g., for Alice. For any stochastic p and q we have p T A = [v v] MinEntry( p T A) MaxEntry(A q) and if these are equal then this common value is the value of (the mixed strategy games of A). LP standard form: maximize c x, subject to A x b, x 0. Unbounded LP: A variable enters, but nothing leaves. 2-phase method: (1) introduce x 0 on right, (2) pivot x 0 into the basis for a feasible dictionary, and try to maximize w = x 0, (3) if w reaches 0, pivot x 0 out of dictionary and eliminate all x 0 ; e.g., x 4 = 7 + + x 0 x 9 = 8 + + x 0 x 0 enters, x 9 leaves 1

Degenerate pivots: say x 5 enters, and have x 3 = 0 + x 2 2x 5 + Then x 3 cannot tolerate any positive x 5 value, and leaves without changing the basic feasible solution (and z value). Degenerate pivots not necessarily bad, but cycling can only occur when all pivots in the cycle are degenerate. Perturbation method: Add ɛ 1 to first inequality, ɛ 2 to second inequality, etc., 1 >> ɛ 1 >> ɛ 2 >>. Never has a degenerate pivot (wrt the ɛ i s), since dictionary pivots represent invertible linear transformations (which can t have a row of zeros). In more detail, we have x B = A 1 B ( b + ɛ A N x N ) and since A B is the inverse of a matrix, it cannot have a row of all 0 s, and hence each entry of A 1 B ɛ is nonzero. The formulas for simplex method dictionaries (in standard form) is x B = A 1 B b A 1 B A N x N ζ = c T BA 1 B b + ( c T N c T BA 1 B A N) x N In the computation above, we compute c T B A 1 B A N by first computing c T B A 1 B, and then multiplying the result (a row vector) times A N ; it would be more expensive to first compute A 1 B A N. For the A 1 B of the i 1-th and i-th dictionaries we have A 1 B i = E i A 1 B i 1 where E i is an eta matrix, equal to the identity except in one column. This formula can be applied recursively to get A 1 B i+k = E i+k E i+k 1 E i A 1 B i 1 ; it turns out that due to the cost in FLOPS, the eta it is best to use k up to roughly between m and m (if there are m basic variables); there are also roundoff error issues that are not analyzed in Vanderbei. For any basis, B, A B must be invertible, and hence there can be no linear dependence between rows of A B (or between its columns). Let the b-th row in a matrix game be f(b). If f is a convex function (i.e., concave up), then Alice has an optimal strategy that is some combination of the smallest and largest values of b (i.e., the top and bottom rows). If f is concave down, then Alice has an optimal strategy this is some combination of two adjacent rows. (These combinations can be 100% of one row in certain cases.) The dual to (1) maximize c x subject to A x b and x 0 is (2) maximize b y subject to A T y c and y 0. If both these LP s are feasible, then for x, y feasible the following are equivalent: (1) x, y are optimal solutions; (2) c x = b y (Strong Duality Theorem); (3) x i z i = 0 for all i and y j w j = 0 for all j, where the z i s are the dual slack variables and the w j s are the primal slack variables (Complementary Slackness). Furthermore, for any x, y feasible we have c x b y (Weak Duality Theorem). 2