Easter Term OPTIMIZATION

Similar documents
D2: Optimization Examples Sheet

Math 414 Lecture 30. The greedy algorithm provides the initial transportation matrix.

Section Notes 5. Review of Linear Programming. Applied Math / Engineering Sciences 121. Week of October 15, 2017

Linear Programming. Course review MS-E2140. v. 1.1

Artificial Intelligence

Tribhuvan University Institute Of Science and Technology Tribhuvan University Institute of Science and Technology

Part 4. Decomposition Algorithms Dantzig-Wolf Decomposition Algorithm

CSC 8301 Design & Analysis of Algorithms: Linear Programming

Solutions for Operations Research Final Exam

Lecture 9: Linear Programming

Contents. I Basics 1. Copyright by SIAM. Unauthorized reproduction of this article is prohibited.

Outline. CS38 Introduction to Algorithms. Linear programming 5/21/2014. Linear programming. Lecture 15 May 20, 2014

MLR Institute of Technology

Linear Programming. Linear programming provides methods for allocating limited resources among competing activities in an optimal way.

Introduction to Mathematical Programming IE496. Final Review. Dr. Ted Ralphs

COT 6936: Topics in Algorithms! Giri Narasimhan. ECS 254A / EC 2443; Phone: x3748

Copyright 2007 Pearson Addison-Wesley. All rights reserved. A. Levitin Introduction to the Design & Analysis of Algorithms, 2 nd ed., Ch.

Discrete Optimization 2010 Lecture 5 Min-Cost Flows & Total Unimodularity

16.410/413 Principles of Autonomy and Decision Making

DM545 Linear and Integer Programming. Lecture 2. The Simplex Method. Marco Chiarandini

Name: THE SIMPLEX METHOD: STANDARD MAXIMIZATION PROBLEMS

4.1 The original problem and the optimal tableau

Notes for Lecture 20

Duality. Primal program P: Maximize n. Dual program D: Minimize m. j=1 c jx j subject to n. j=1. i=1 b iy i subject to m. i=1

Chapter II. Linear Programming

Some Advanced Topics in Linear Programming

Chapter 15 Introduction to Linear Programming

Lecture 4: Linear Programming

56:272 Integer Programming & Network Flows Final Examination -- December 14, 1998

VARIANTS OF THE SIMPLEX METHOD

6. Lecture notes on matroid intersection

Section Notes 4. Duality, Sensitivity, and the Dual Simplex Algorithm. Applied Math / Engineering Sciences 121. Week of October 8, 2018

Outline. Combinatorial Optimization 2. Finite Systems of Linear Inequalities. Finite Systems of Linear Inequalities. Theorem (Weyl s theorem :)

LECTURES 3 and 4: Flows and Matchings

Graphs and Network Flows IE411. Lecture 21. Dr. Ted Ralphs

Advanced Operations Research Techniques IE316. Quiz 1 Review. Dr. Ted Ralphs

CS 473: Algorithms. Ruta Mehta. Spring University of Illinois, Urbana-Champaign. Ruta (UIUC) CS473 1 Spring / 36

Advanced Operations Research Techniques IE316. Quiz 2 Review. Dr. Ted Ralphs

A Comparative study on Algorithms for Shortest-Route Problem and Some Extensions

Mathematical and Algorithmic Foundations Linear Programming and Matchings

Applied Lagrange Duality for Constrained Optimization

MATH 423 Linear Algebra II Lecture 17: Reduced row echelon form (continued). Determinant of a matrix.

BCN Decision and Risk Analysis. Syed M. Ahmed, Ph.D.

15-451/651: Design & Analysis of Algorithms October 11, 2018 Lecture #13: Linear Programming I last changed: October 9, 2018

4 Integer Linear Programming (ILP)

Simulation. Lecture O1 Optimization: Linear Programming. Saeed Bastani April 2016

ACO Comprehensive Exam October 12 and 13, Computability, Complexity and Algorithms

Ryerson Polytechnic University Department of Mathematics, Physics, and Computer Science Final Examinations, April, 2003

How to Solve a Standard Maximization Problem Using the Simplex Method and the Rowops Program

Graphs and Network Flows IE411. Lecture 20. Dr. Ted Ralphs

Problem set 2. Problem 1. Problem 2. Problem 3. CS261, Winter Instructor: Ashish Goel.

Lecture-12: Closed Sets

Optimization Methods in Management Science

Graphs and Network Flows IE411 Lecture 20

Linear Programming and Reductions

Outline: Finish uncapacitated simplex method Negative cost cycle algorithm The max-flow problem Max-flow min-cut theorem

George B. Dantzig Mukund N. Thapa. Linear Programming. 1: Introduction. With 87 Illustrations. Springer

Discrete Optimization. Lecture Notes 2

Integer Programming Theory

The Simplex Algorithm. Chapter 5. Decision Procedures. An Algorithmic Point of View. Revision 1.0

1. List the Intercepts of the Inequality and then sketch the graph using the Math 125 method of shading

1. Lecture notes on bipartite matching

CMPSCI611: The Simplex Algorithm Lecture 24

An example of LP problem: Political Elections

Linear Programming Problems

Read: H&L chapters 1-6

LECTURE 13: SOLUTION METHODS FOR CONSTRAINED OPTIMIZATION. 1. Primal approach 2. Penalty and barrier methods 3. Dual approach 4. Primal-dual approach

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

56:272 Integer Programming & Network Flows Final Exam -- December 16, 1997

Lecture 6: Faces, Facets

The Simplex Algorithm

Decision Aid Methodologies In Transportation Lecture 1: Polyhedra and Simplex method

Selected Topics in Column Generation

Algorithms for Integer Programming

MATHEMATICS II: COLLECTION OF EXERCISES AND PROBLEMS

LARGE SCALE LINEAR AND INTEGER OPTIMIZATION: A UNIFIED APPROACH

Math Introduction to Operations Research

15.082J and 6.855J. Lagrangian Relaxation 2 Algorithms Application to LPs

Lecture 2 - Introduction to Polytopes

In this chapter we introduce some of the basic concepts that will be useful for the study of integer programming problems.

Introduction to Operations Research

Lecture 11: Maximum flow and minimum cut

Linear Programming. Larry Blume. Cornell University & The Santa Fe Institute & IHS

Design and Analysis of Algorithms (V)

Material handling and Transportation in Logistics. Paolo Detti Dipartimento di Ingegneria dell Informazione e Scienze Matematiche Università di Siena

WEEK 4 REVIEW. Graphing Systems of Linear Inequalities (3.1)

Lecture notes on the simplex method September We will present an algorithm to solve linear programs of the form. maximize.

Lecture 5: Duality Theory

Graphs and Network Flows IE411. Lecture 13. Dr. Ted Ralphs

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

OPERATIONS RESEARCH. Linear Programming Problem

5. DUAL LP, SOLUTION INTERPRETATION, AND POST-OPTIMALITY

12 Introduction to LP-Duality

Math 213 Exam 2. Each question is followed by a space to write your answer. Please write your answer neatly in the space provided.

Finite Math - J-term Homework. Section Inverse of a Square Matrix

Linear programming and duality theory

Lecture 3. Corner Polyhedron, Intersection Cuts, Maximal Lattice-Free Convex Sets. Tepper School of Business Carnegie Mellon University, Pittsburgh

Math Week in Review #5

NETWORK OPTIMIZATION MODELS

New Directions in Linear Programming

Transcription:

DPK OPTIMIZATION Easter Term Example Sheet It is recommended that you attempt about the first half of this sheet for your first supervision and the remainder for your second supervision An additional example sheet is available for revision and further study 1 Minimize each of the following functions in the region specified (i) 3x in {x : x 0}; (ii) x x + 3 in {x : x 0}; (iii) x + x + 3 in {x : x 0} For each of the following functions specify the set Λ of λ values for which the function has a finite minimum in the region specified, and for each λ Λ find the minimum value and (all) optimal x (iv) λx subject to x 0; (v) λx subject to x R; (vi) λ 1 x + λ x subject to x R; (vii) λ 1 x + λ x subject to x 0; (viii) (λ 1 λ )x subject to 0 x M Use the Lagrangian Sufficiency Theorem to: (i) (ii) (iii) (iv) minimize x 1 + x subject to x 1 + 3x = b; maximize x 1 + x + x 3 subject to x 1 + x + x 3 1, x 1 0, x 0, x 3 0; minimize x 1 x + x 3 subject to x 1 + x + x 3 = 1; maximize tan 1 x 1 + x subject to x 1 + x b 1, ln x b, x 1 0, x 0, (here b 1, b are constants with b 1 e b 0) 3 Consider the following problems: (a) minimize c x subject to Ax = b; 1

(b) minimize c x subject to Ax b; (c) minimize c x subject to Ax = b, x 0; (d) minimize c x subject to Ax b, x 0 In each case (i) find the set Λ of values for the Lagrange multipliers λ for which the Lagrangian has a finite minimum (subject to the appropriate regional constraint, if any); (ii) for each value of λ Λ calculate the minimum of the Lagrangian and write down the dual problem; (iii) write down the necessary and sufficient conditions for optimality; (iv) verify that the dual of the dual is the primal problem 4 Suppose that a linear programming problem is written in the two equivalent forms minimize c x subject to Ax b, x 0, where A is an m n matrix, c, x R n ; and minimize c e x e subject to A e x e = b, x e 0, where, after the addition of slack variables and the extension of the matrix A and vector c in the appropriate way, A e is m (n + m), and c e, x e R n+m Use your answers to the previous question to write down the dual problem to both versions of the problem and show that the dual problems are equivalent to each other 5 Consider the (primal) linear programming problem P: maximize x 1 + x subject to x 1 + x 4 x 1 + x 4 x 1 x 1 x 1, x 0 (i) Solve P graphically in the x 1 -x plane (ii) Introduce slack variables x 3, x 4 x 5 and write the problem in equality form How many basic solutions of the constraints are there? Determine the values of x = (x 1,, x 5 ) and of the objective function at each of the basic solutions Which of the basic solutions are feasible? Are all the basic solutions non-degenerate?

(iii) Write down the dual problem in inequality form with variables λ 1, λ and λ 3 ; add slack variables λ 4 and λ 5 and determine the values of λ = (λ 1,, λ 5 ) and of the dual objective function at each of the basic solutions to the dual Which of these are feasible for the dual? (iv) Show that for each basic solution x to the problem P there is exactly one basic solution λ to the dual giving the same values of the primal and dual objective functions and satisfying complementary slackness (λ i x i+ = 0, i = 1,, 3 and x j λ j+3 = 0, j = 1, ) For how many of these matched pairs (x, λ) is x feasible for the primal problem and λ feasible for the dual? (v) Solve the problem P using the simplex algorithm starting with the initial basic feasible solution x 1 = x = 0 Try both choices of the variable to introduce into the basis on the first step Compare the objective rows of the various tableaux generated with appropriate basic solutions of the dual problem What do you observe? 6 Use the simplex algorithm to solve maximize 3x 1 + x + 3x 3 subject to x 1 + x + x 3 x 1 + x + 3x 3 5 x 1 + x + x 3 6 x 1, x, x 3 0, Each row of the final tableau is the sum of scalar multiples of the rows of the initial tableau Explain how to determine the scalar multipliers directly from the final tableau Let P(ɛ) be the linear programming problem when the right-hand side b = (, 5, 6) is replaced by the perturbed vector b (ɛ) = ( + ɛ 1, 5 + ɛ, 6 + ɛ 3 ) Give a formula, in terms of ɛ = (ɛ 1, ɛ, ɛ 3 ), for the optimal value for P(ɛ) when the ɛ i are small For what ranges of values for ɛ 1, ɛ, ɛ 3 does your formula hold? 7 Apply the simplex algorithm to maximize x 1 + 3x subject to x 1 x 4 x 1 + x 3 x 1, x 0 3

Explain what happens with the help of a diagram 8 Use the two-phase algorithm to solve: maximize x 1 x subject to x 1 x 1 5x 1 + 3x 3 x 1, x 0 [Hint: You should get x 1 = 9 16, x = 1 16 Note that it is possible to choose the first pivot column so that Phase I lasts only one step, but this requires a different choice of pivot column than the one specified by the usual rule-of-thumb] 9 Use the two-phase algorithm to solve: minimize 13x 1 + 5x 1x 3 subject to x 1 + x + x 3 5 3x 1 + 3x + x 3 7 x 1 + 5x + 4x 3 = 10 x 1, x, x 3 0 10 Consider the problem minimize x 1 + 3x + 5x 3 + x 4 + 3x 5 subject to x 1 + x + x 3 + x 4 + 3x 5 4 x 1 x + 3x 3 + x 4 + x 5 3 x 1, x, x 3, x 4, x 5 0 Write down the dual problem, and solve this graphically Hence deduce the optimal solution to the primal problem 11 Consider the three equations in six unknowns given by Ax = b where A = 1 1 1 0 0 1 3 0 1 0, b = 5 1 0 0 1 6 Choose B = {1, 3, 6} and write Ax = b in the form A B x B + A N x N = b where x B = (x 1, x 3, x 6 ), x N = (x, x 4, x 5 ) and the matrices A B and A N are constructed appropriately 4

Now write c x = c B x B + c N x N and hence write c x in terms of the matrices A B, A N and the variables x N (ie, eliminate x B ) Compute A 1 B and hence calculate the basic solution having B as basis For c = (3, 1, 3, 0, 0, 0) write c x in terms of the non-basic variables Prove directly from the formula for c x that the basic solution that you have computed is optimal for the problem maximize c x subject to Ax = b, x 0 Compare your answer to your answer to Question 6 and confirm that the final tableau had rows corresponding to the equation x B + A 1 B A N x N = A 1 B b Why is it not fair to say that the simplex algorithm is just a complicated way to invert a matrix? 1 Consider the problem in Question 5 and add the constraint x 1 + 3x 6 Apply the simplex algorithm putting x into the basis at the first stage Show that the solution at x 1 = 0, x = is degenerate Try each of the possibilities for the variable leaving the basis Explain, with a diagram, what happens 13 In the previous example the additional constraint was redundant (it did not change the feasible set) Can degeneracy occur without redundant equations? 14 Show that introducing slack variables in a linear programming problem does not change the extreme points of the feasible set by proving that x is an extreme point of the set {x : Ax b, x 0} if and only if ( ) x z is an extreme point of the set ) } : Ax + z = b, x 0, z 0 {( x z 15 Give sufficient conditions for strategies p and q to be optimal for a two-person zero-sum game with payoff matrix A and value v Two players fight a duel: they face each other n 1 paces apart and each has a single bullet in his gun At a signal each may fire If either is hit or if both fire the game ends; otherwise, both advance one pace and may again fire The probability of either hitting his opponent if he fires after the ith pace forward (i = 0, 1,, n 1) is (i + 1) /n If a player survives after his opponent has been hit his payoff is +1 and his opponent s payoff is 1 The payoff is 0 if neither or both are hit The guns are silent so that neither knows whether or not his opponent has fired Show that, if n = 4, the strategy shoot after taking one step is optimal for both, but that if n = 5 a mixed strategy is optimal [Hint: ( 0, 5 11, 5 11, 0, 1 11) ] 5

16 By considering the payoff matrix 0 3 0 0 0 3 A = 3 0 0 4 0 3 4 0 show that optimal strategies for a two-person zero-sum game are not necessarily unique Find all the optimal strategies 17 The n n matrix of a two-person zero-sum game is such that the row and column sums all equal s Show that the game has value s/n [Hint: Guess a solution and show that it is optimal] 18 Find optimal strategies for both players and the value of the game which has payoff matrix A = ( ) 1 4 3 [You may like to try to compare the effort required to solve this by (a) seeking strategies and a value which satisfy the optimality conditions; (b) direct solution of Player I s original minimax problem; and (c) using the simplex method on one of the player s problems after transforming it as suggested in lectures] 19 Find a maximal flow and a minimal cut for the network below with a source at node 1 and a sink at node n 5 1 1 n 5 4 3 1 5 0 Devise rules for a version of the Ford Fulkerson algorithm which works with undirected arcs As a consequence of a drought, an emergency water supply must be pumped from Oxbridge to Camford along the network of pipes shown in the figure The numbers against 6

Oxbridge 4 15 13 5 6 14 8 10 9 1 7 3 1 11 Camford the pipes show their maximal capacities, and each pipe may be used in either direction Find the maximal flow and prove that it is maximal 1 How would you augment a directed network to incorporate restrictions on node capacity (the total flow permitted through a node) in maximal-flow problems? The road network between two towns A and B is represented in the diagram below Each road is marked with an arrow giving the direction of the flow, and a number which represents its capacity Each of the nodes of the graph represents a village The total flow into a village cannot exceed its capacity (the number in the circle at the node) Obtain the maximal flow from A to B The Minister of Transport intends to build a by-pass around one of the villages, whose effect would be to completely remove the capacity constraint for that village Which village should receive the by-pass if the intention is to increase the maximal flow from A to B by as much as possible? What would the new maximal flow be? 7 1 10 13 5 1 10 15 5 A 11 15 30 5 B 5 5 10 8 10 8 0 10 15 10 16 By finding a suitable potential on the nodes of the network (ie, a set of suitable node numbers), show that the flow illustrated below is a minimal-cost circulation [Each arc is 7

labelled with the flow, x ij, and with a triple of numbers giving the constants (c ij, c+ ij, d ij) for that arc] x ij (c ij, c+ ij, d ij) (, 4, ) 4 1 (1, 4, 0) (1, 4, 3) (1, (, 4, 3) 3 3 4 5, ) (, 5, ) (0, 1, 4) 1 5 1 5 (0,, 6) 3 Consider the problem of assigning lecturers L 1,, L n to courses C 1,, C n so as to minimize student dissatisfaction The dissatisfaction felt by students if lecturer L i gives course C j is d ij, and each lecturer must give exactly one course Show how to formulate this problem as a problem of minimizing the cost of a circulation in a network (Can you be sure that your network problem has an optimal flow of the appropriate kind?) For the example of 3 lecturers and 3 courses with dissatisfaction matrix 6 3 1 8 1 5 3 11 7 find an optimal flow through the appropriate network (by guessing) and compute node numbers for each node so that the optimality conditions are satisfied 4 Sources 1,, 3 stock candy floss in amounts of 0, 4 18 tons respectively The demand for candy floss at destinations 1,, 3 are 39, 34, 7 tons respectively The matrix of transport costs per ton is 7 4 9 8 1 5 3 11 7 with the (ij) entry corresponding to the route i j Find the optimal transportation scheme and the minimal cost by applying the transportation algorithm starting from (a) an assignment given by the NW method, and (b) an assignment given by the greedy algorithm Comments on this example sheet may be sent to: dpkennedy@statslabcamacuk 8 6 January 010