Points: The first problem is worth 10 points, the others are worth 15. Maximize z = x y subject to 3x y 19 x + 7y 10 x + y = 100.

Similar documents
Math 354 Summer 2004 Solutions to review problems for Midterm #1

maxz = 3x 1 +4x 2 2x 1 +x 2 6 2x 1 +3x 2 9 x 1,x 2

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

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

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

min3x 1 + 4x 2 + 5x 3 2x 1 + 2x 2 + x 3 6 x 1 + 2x 2 + 3x 3 5 x 1, x 2, x 3 0.

Sensitivity Analysis

The Simplex Algorithm

Review Solutions, Exam 2, Operations Research

Section Notes 9. Midterm 2 Review. Applied Math / Engineering Sciences 121. Week of December 3, 2018

Math Models of OR: Sensitivity Analysis

Worked Examples for Chapter 5

Section Notes 8. Integer Programming II. Applied Math 121. Week of April 5, expand your knowledge of big M s and logical constraints.

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

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

A 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

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: Chapter 5 Duality

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

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

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

Part 1. The Review of Linear Programming

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

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

Summary of the simplex method

SOLVING INTEGER LINEAR PROGRAMS. 1. Solving the LP relaxation. 2. How to deal with fractional solutions?

Linear Programming Duality

Lesson 27 Linear Programming; The Simplex Method

IE418 Integer Programming

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

Summary of the simplex method

56:270 Final Exam - May

Farkas Lemma, Dual Simplex and Sensitivity Analysis

The Dual Simplex Algorithm

Math 16 - Practice Final

Chap6 Duality Theory and Sensitivity Analysis

Special cases of linear programming

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

Linear programming. Saad Mneimneh. maximize x 1 + x 2 subject to 4x 1 x 2 8 2x 1 + x x 1 2x 2 2

Lecture 9 Tuesday, 4/20/10. Linear Programming

15-780: LinearProgramming

Optimization 4. GAME THEORY

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

Understanding the Simplex algorithm. Standard Optimization Problems.

x 4 = 40 +2x 5 +6x x 6 x 1 = 10 2x x 6 x 3 = 20 +x 5 x x 6 z = 540 3x 5 x 2 3x 6 x 4 x 5 x 6 x x

Chapter 3, Operations Research (OR)

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

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

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

1 Review Session. 1.1 Lecture 2

Sensitivity Analysis and Duality in LP

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

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

December 2014 MATH 340 Name Page 2 of 10 pages

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

MATH 210 EXAM 3 FORM A November 24, 2014

Example. 1 Rows 1,..., m of the simplex tableau remain lexicographically positive

Systems Analysis in Construction

Chapter 1 Linear Programming. Paragraph 5 Duality

Math 5593 Linear Programming Problem Set 4

F 1 F 2 Daily Requirement Cost N N N

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

Written Exam Linear and Integer Programming (DM545)

Slide 1 Math 1520, Lecture 10

(includes both Phases I & II)

4.3 Minimizing & Mixed Constraints

CS Algorithms and Complexity

An upper bound for the number of different solutions generated by the primal simplex method with any selection rule of entering variables

Linear Programming Redux

5 The Primal-Dual Simplex Algorithm

Optimisation and Operations Research

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

M340(921) Solutions Practice Problems (c) 2013, Philip D Loewen

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

OPERATIONS RESEARCH. Michał Kulej. Business Information Systems

3 The Simplex Method. 3.1 Basic Solutions

- Well-characterized problems, min-max relations, approximate certificates. - LP problems in the standard form, primal and dual linear programs

"SYMMETRIC" PRIMAL-DUAL PAIR

CS 6820 Fall 2014 Lectures, October 3-20, 2014

SELECT TWO PROBLEMS (OF A POSSIBLE FOUR) FROM PART ONE, AND FOUR PROBLEMS (OF A POSSIBLE FIVE) FROM PART TWO. PART ONE: TOTAL GRAND

MATH2070 Optimisation

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

The dual simplex method with bounds

Math Models of OR: Handling Upper Bounds in Simplex

(includes both Phases I & II)

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

4.4 The Simplex Method and the Standard Minimization Problem

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)

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

4. Duality and Sensitivity

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

1 Simplex and Matrices

MATH 445/545 Test 1 Spring 2016

2018 년전기입시기출문제 2017/8/21~22

An introductory example

Math Models of OR: Some Definitions

A primal-simplex based Tardos algorithm

Linear Programming, Lecture 4

Today: Linear Programming (con t.)

Transcription:

Math 5 Summer Points: The first problem is worth points, the others are worth 5. Midterm # Solutions Find the dual of the following linear programming problem. Maximize z = x y x y 9 x + y x + y = x, y Answer: First I would convert the problem to standard form: Then the dual problem is Maximize z = x y x y 9 x y x + y x y x, y Minimize z = 9w w + w w w + w + w w w w + w w w, w, w, w

Math 5 Summer Use the Dual Simplex Method to restore feasibility to the following tableau: x y u u u y 5 x 6 5 5 5 u 5 5 5 5 5 5 Midterm # Solutions Answer: The departing variable is u, the entering variable is u, and after pivoting we get x y u u u y 9 5 6 6 x 5 u 5 9 5

Math 5 Summer Consider the following linear programming problem. Midterm # Solutions Maximize z = x + 6x + x x + x + x x + x 5 x + x 6 x, x, x Applying the Simplex Method to this problem yields the following final tableau 6 c B x x x u u u u 6 x 9 x 6 Suppose now that the problem is changed to Maximize z = x +6x +x. Find an optimal solution to this new problem. (No points will be given for starting from scratch!) Answer: First we need to update the tableau as usual to get x x x u u u u x 9 x 6 After one iteration of the Simplex Method (with entering variable x and departing variable x ), we get the final tableau shown below. 5 6 5 x x x u u u u x 5 x 6 69

Math 5 Summer Consider the following integer programming problem Midterm # Solutions Maximize z = x + y x + 5y 8 x + y x, y,, integral Solve this problem using the Cutting Plane Method. (No points will be given for any other methods!) To help you out, here is the final tableau for the corresponding non-integer linear programming problem (that is, if we ignore the word integral ): x y u u x 5 8 8 y 8 8 9 9 6 Answer: We could add cutting planes to deal with either of the two constraints, and at this point we can t tell which one would be better to add, so I will choose the first constraint, x + 8 u 5 8 u =. (It turns out that adding a cutting plane to deal with the second constraint is a little less work.) Since x, u, and u must all be non-negative, we can round down their coefficients to get a smaller left-hand side: x u. Now we can round down the right-hand side because x u must be an integer: Finally, we add a new slack variable: and place this constraint into our tableau: x u. x u + u =, x y u u u x 5 8 8 y 8 8 u 6 9 9

Math 5 Summer But before applying the Dual Simplex Method we have to clean up x s column: Midterm # Solutions x y u u u x 5 8 8 y 8 8 u 8 8 9 9 Now we can apply the Dual Simplex Method. The departing variable will be u. The ratio for u is and the ratio for u is 8/, so u will be the entering variable. After pivoting we have the following tableau x y u u u x 5 58 y u 8 6 8 Unfortunately, x still isn t an integer! So, we have to add another cutting plane for the first constraint, x + u 5 u = 58, which becomes x u + u = after rounding everything down and adding a new slack variable. Thus our tableau is now x y u u u u x 5 58 y u 8 6 u 8 And after cleaning up the x column we get 6 x y u u u u x 5 58 y u 8 6 u 8 6 8 Now we need to apply the Dual Simplex Method. The departing variable is u and the ratios for u and u are the same, so technically it doesn t matter which one we take as our entering variable. Except that it actually matters quite a bit, because if we take u as our entering variable we get

Math 5 Summer the following tableau: x y u u u u x y u u 8 6 8 Since this tableau represents the integral solution x =, y =, z = 8, we are done. In case we take u as our entering variable, we get the following tableau: x y u u u u x 9 8 y 8 u u 8 8 Midterm # Solutions And thus we have to keep adding cutting planes. (Also, if we had just made the first cutting plane take care of the second constraint, we would have been done almost immediately.)

Math 5 Summer Midterm # Solutions 5 Solve the following integer programming problem using the Branch and Bound Method. (No points will be given for any other method!) Maximize z = x + y x y y x, y,, integral To help you out, here is the final tableau for the corresponding non-integer linear programming problem (that is, if we ignore the word integral ): x y u u x y Answer: Since our heuristic for choosing which variable to be our branch variable says to take the one that is furthest from it s floor, we choose y. Then our two branches are y and y. To eliminate the y branch we just need to notice that one of our constraints says y, so there are no feasible solutions with y. That leaves us with the y node. So we add a new slack variable to get and add this constraint to our tableau, giving Of course we have to clean up the y column: y + u =, x y u u u x y u x y u u u x y u And then we must apply the Dual Simplex Method with u as our departing variable and u as our entering variable to get x y u u u x 5 y u

Math 5 Summer Midterm # Solutions This tableau represents the (integral!) solution x = 5 and y =, with an objective value of. Since the other branch had no feasible solutions, this is an optimal solution.

Math 5 Summer Midterm # Solutions 6 Consider the following scenario. Model it as an integer programming problem. Be sure to state explicitly what each of your decision variables x, x,... represent. Do not attempt to solve the problem. The Rutgers football program is attempting to create their 6 schedule. They are allowed to play up to four non-conference games, which must be chosen from the list below. Also, they can not play the same opponent twice. Opponent Chance of Winning Revenue (in thousands of $) Army 6% $ Buffalo 65% $ Kent State 6% $ New Hampshire % $8 Notre Dame % $, Michigan State 5% $5 Missouri % $5 Ohio State 5% $85 Navy 5% $5 Villanova 55% $ The Scarlet Knights, despite winning the first intercollegiate football game ever played (against Princeton in 869 by the score of 6-, only shortly after Princeton beat Rutgers - in baseball), have played in only one bowl game, the Garden State Bowl in 98. To give you an idea of how bad they have been doing, Southern Methodist University has been to four bowl games since 98. To give Rutgers a shot to break their bowl-drought, they need a schedule for which they can expect at least two victories against their non-conference opponents. (By a principle called Linearity of Expectation, the number of games they can expect to win is the sum of the probabilities of winning each game individually, so for example, if they scheduled Army, Notre Dame, Missouri, and Ohio State, they could expect to win only.6 +. +. +.5 =.5 games.) Beyond this, they would like to maximize revenue. Answer: First we have to decide on variables. There are possible games, so our variables will be x, x,...,x, where { if Rutgers plays game i, x i = otherwise. (Variables like this are often called indicator variables. ) Now we must translate the constraints into mathematical terms. We were told that Rutgers can play at most four non-conference games, so this means that x + x + x + x + x 5 + x 6 + x + x 8 + x 9 + x. We were also told that Rutgers must be able to expect at least two victories from their nonconference schedule. By Linearity of Expectation, they can expect.6x +.65x +.6x +.x +.x 5 +.5x 6 +.x +.5x 8 +.5x 9 +.55x victories, so this must be at least.

Math 5 Summer Midterm # Solutions Finally, we were told to maximize revenue. The revenue from their schedule will be x + x + x + 8x + x 5 + 5x 6 + 5x + 85x 8 + 5x 9 + x. Below I have this in the usual table layout Maximize z = x + x + x + 8x + x 5 + 5x 6 + 5x + 85x 8 + 5x 9 + x x + x + x + x + x 5 + x 6 + x + x 8 + x 9 + x.6x +.65x +.6x +.x +.x 5 +.5x 6 +.x +.5x 8 +.5x 9 +.55x x i for i =,,..., x i for i =,,...,

Math 5 Summer Consider the following primal problem Midterm # Solutions Maximize z = x + x + 5x x + x + x x + x + x 6 x x, x, x and its dual Minimize z = w + 6w w w + w w + w w w + w 5 w, w, w Without using the Simplex Method on either problem, find optimal solutions to the two problems from the following list. Explain your reasoning. 5 6 8 Answer: The Theorem we need to use says that if x is a feasible solution to the primal problem and w is a feasible solution to the dual problem and the objective values of both solutions (in their respective problems) are the same, then they are both optimal solutions. We can start this by ruling out the two solutions with negative entries: 8 and

Math 5 Summer For the rest, we can make a chart as follows Midterm # Solutions possible optimal solution objective value in primal problem objective value in dual problem infeasible infeasible infeasible infeasible infeasible 5 infeasible 6 Note that as soon as we find the two s we can stop, since the Weak Duality Theorem (or is it a corollary to the Weak Duality Theorem?) now tells us that is an optimal solution to the primal problem and is an optimal solution to the dual problem. Another note: I should have been clearer, but you were not supposed to use the fact that you knew that each problem had an optimal solution in that list. That is, you weren t supposed to just check feasibility and objective values for each problem independently. 6