Planning and Optimization

Similar documents
Linear Programming Duality

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

CSCI5654 (Linear Programming, Fall 2013) Lecture-8. Lecture 8 Slide# 1

Lectures 6, 7 and part of 8

4.6 Linear Programming duality

Lecture Note 18: Duality

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

Chapter 2: Linear Programming Basics. (Bertsimas & Tsitsiklis, Chapter 1)

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

BBM402-Lecture 20: LP Duality

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

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

4. Duality and Sensitivity

Linear Programming. Operations Research. Anthony Papavasiliou 1 / 21

Algorithmic Game Theory and Applications. Lecture 7: The LP Duality Theorem

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

II. Analysis of Linear Programming Solutions

March 13, Duality 3

IE 5531: Engineering Optimization I

LINEAR PROGRAMMING II

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)

Chapter 1 Linear Programming. Paragraph 5 Duality

Optimisation and Operations Research

ECE 307- Techniques for Engineering Decisions

Convex Optimization and Support Vector Machine

4. Duality Duality 4.1 Duality of LPs and the duality theorem. min c T x x R n, c R n. s.t. ai Tx = b i i M a i R n

Introduction to linear programming using LEGO.

LP Duality: outline. Duality theory for Linear Programming. alternatives. optimization I Idea: polyhedra

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

Duality Theory, Optimality Conditions

Sensitivity Analysis and Duality

Lecture #21. c T x Ax b. maximize subject to

9.1 Linear Programs in canonical form

In the original knapsack problem, the value of the contents of the knapsack is maximized subject to a single capacity constraint, for example weight.

COMP3121/9101/3821/9801 Lecture Notes. Linear Programming

F 1 F 2 Daily Requirement Cost N N N

Topic: Primal-Dual Algorithms Date: We finished our discussion of randomized rounding and began talking about LP Duality.

1 The linear algebra of linear programs (March 15 and 22, 2015)

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

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

LINEAR PROGRAMMING. Relation to the Text (cont.) Relation to Material in Text. Relation to the Text. Relation to the Text (cont.

Today: Linear Programming (con t.)

Part 1. The Review of Linear Programming

2001 Dennis L. Bricker Dept. of Industrial Engineering The University of Iowa. Reducing dimensionality of DP page 1

Generality of Languages

Dual fitting approximation for Set Cover, and Primal Dual approximation for Set Cover

LINEAR PROGRAMMING. A Concise Introduction Thomas S. Ferguson

Linear integer programming and its application

Linear Programming: Chapter 5 Duality

Lecture 8: Column Generation

Chap6 Duality Theory and Sensitivity Analysis

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

Dual bounds: can t get any better than...

to work with) can be solved by solving their LP relaxations with the Simplex method I Cutting plane algorithms, e.g., Gomory s fractional cutting

1 T 1 = where 1 is the all-ones vector. For the upper bound, let v 1 be the eigenvector corresponding. u:(u,v) E v 1(u)

Operations Research. Duality in linear programming.

Duality. Peter Bro Mitersen (University of Aarhus) Optimization, Lecture 9 February 28, / 49

Sensitivity Analysis and Duality in LP

UNIT-4 Chapter6 Linear Programming

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

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

Solution Cases: 1. Unique Optimal Solution Reddy Mikks Example Diet Problem

IP Cut Homework from J and B Chapter 9: 14, 15, 16, 23, 24, You wish to solve the IP below with a cutting plane technique.

Discrete (and Continuous) Optimization WI4 131

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

Operations Research Lecture 6: Integer Programming

Integer Programming (IP)

Fundamentals of Operations Research. Prof. G. Srinivasan. Indian Institute of Technology Madras. Lecture No. # 15

Zero-Sum Games Public Strategies Minimax Theorem and Nash Equilibria Appendix. Zero-Sum Games. Algorithmic Game Theory.

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

Review Solutions, Exam 2, Operations Research

How to Take the Dual of a Linear Program

and to estimate the quality of feasible solutions I A new way to derive dual bounds:

4. The Dual Simplex Method

Lecture 1 Introduction to optimization

Review Problems Solutions MATH 3300A (01) Optimization Fall Graphically, the optimal solution is found to be x 1 = 36/7, x 2 = 66/7, z = 69/7.

Optimization for Communications and Networks. Poompat Saengudomlert. Session 4 Duality and Lagrange Multipliers

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

Integer Programming Part II

Algorithmic Game Theory and Applications. Lecture 5: Introduction to Linear Programming

Teaching Duality in Linear Programming - the Multiplier Approach

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

CO759: Algorithmic Game Theory Spring 2015

Optimization Models and Applications

Technische Universität München, Zentrum Mathematik Lehrstuhl für Angewandte Geometrie und Diskrete Mathematik. Combinatorial Optimization (MA 4502)

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

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

Lecture 1 Introduction

C&O 355 Mathematical Programming Fall 2010 Lecture 2. N. Harvey

Chapter 5 Linear Programming (LP)

Another max flow application: baseball

Lecture 10: Linear programming duality and sensitivity 0-0

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

Duality of LPs and Applications

Linear Programming, Lecture 4

Lecture 8: Column Generation

The Dual Simplex Algorithm

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

MATH2070 Optimisation

Integer Programming, Constraint Programming, and their Combination

Transcription:

Planning and Optimization C23. Linear & Integer Programming Malte Helmert and Gabriele Röger Universität Basel December 1, 2016

Examples

Linear Program: Example Maximization Problem Example maximize 2x 3y + z subject to x + 2y + z 10 x z 0 x 0, y 0, z 0 unique optimal solution: x = 5, y = 0, z = 5 (objective value 15)

Example: Diet Problem n different types of food F 1,..., F n m different nutrients N 1,..., N m The minimum daily requirement of nutrient N j is r j. The amount of nutrient N j in one unit of food F i is a ij. One unit of food F i costs c i. How to supply the required nutrients at minimum cost?

Example: Diet Problem Use LP variable x i for the number of units of food F i purchased per day. The cost per day is n i=1 c ix i. The amount of nutrient N j in this diet is n i=1 a ijx i. The minimum daily requirement for each nutrient N j must be met: n i=1 a ijx i r j for 1 j m We can t buy negative amounts of food: x i 0 for 1 i n We want to minimize the cost of food.

Diet Problem: Linear Program Example (Linear Program for Diet Problem) minimize n i=1 c ix i subject to n a ij x i r j i=1 x i 0 for 1 j m for 1 i n

Linear Programs

Linear Programs and Integer Programs Linear Program A linear program (LP) consists of: a finite set of real-valued variables V a finite set of linear inequalities (constraints) over V an objective function, which is a linear combination of V which should be minimized or maximized. Integer program (IP): ditto, but with some integer-valued variables

Standard Maximum Problem Normal form for maximization problems: Definition (Standard Maximum Problem) Find values for x 1,..., x n, to maximize subject to the constraints c 1 x 1 + c 2 x 2 + + c n x n a 11 x 1 + a 12 x 2 + + a 1n x n b 1 a 21 x 1 + a 22 x 2 + + a 2n x n b 2. a m1 x 1 + a m2 x 2 + + a mn x n b m and x 1 0, x 2 0,..., x n 0.

Standard Maximum Problem: Matrix and Vectors A standard maximum problem is often given by an m-vector b = b 1,..., b m T, an n-vector c = c 1,..., c n T, and an m n matrix a 11 a 12 x 2... a 1n a 21 a 22 x 2... a 2n A =...... a m1 a m2... a mn Then the problem is to find a vector x = x 1,..., x n T to maximize c T x subject to Ax b and x 0.

Standard Minimum Problem Normal form for minimization problems: Definition (Standard Minimum Problem) Find values for y 1,..., y m, to minimize subject to the constraints b 1 y 1 + b 2 y 2 + + b m y m y 1 a 11 + y 2 a 21 + + y m a m1 c 1 y 1 a 12 + y 2 a 22 + + y m a m2 c 2. y 1 a 1n + y 2 a 2n + + y m a mn c n and y 1 0, y 2 0,..., y m 0.

Standard Minimum Problem: Matrix and Vectors A standard minimum problem is defined by the same matrix A and vectors b, c as a maximum problem. The problem is to find a vector y = y 1,..., y m T to minimize y T b subject to y T A c and y 0.

Terminology A vector x for a maximum problem or y for a minimum problem is feasible if it satisfies the constraints. A linear program is feasible if there is such a feasible vector. Otherwise it is infeasible. A feasible maximum (resp. minimum) problem is unbounded if the objective function can assume arbitrarily large positive (resp. negative) values at feasible vectors. Otherwise it it bounded. The objective value of a bounded feasible maximum (resp. minimum) problem is the maximum (resp. minimum) value of the objective function with a feasible vector.

Standard Problems are a Normal Form All linear programs can be converted into a standard maximum problem: To transform a minimum problem into a maximum problem, multiply the objective function by 1. Transform constraints a i1 x 1 + + a in x n b i to ( a i1 )x 1 + + ( a in )x n b i. Solve equality constraints a i1 x 1 + + a in x n = b i for some x j with a ij 0 and substitute this solution wherever x j appears. If a variable x can be negative, introduce variables x 0 and x 0 and replace x everywhere with x x.

Solving Linear Programs and Integer Programs Complexity: LP solving is a polynomial-time problem. Finding solutions for IPs is NP-complete. Common idea: Approximate IP solution with corresponding LP (LP relaxation).

LP Relaxation Theorem (LP Relaxation) The LP relaxation of an integer program is the problem that arises by removing the requirement that variables are integer-valued. For a maximization (resp. minimization) problem, the objective value of the LP relaxation is an upper (resp. lower) bound on the value of the IP. Proof idea. Every feasible vector for the IP is also feasible for the LP.

Duality

Some LP Theory: Duality Some LP theory: Every LP has an alternative view (its dual). roughly: variables and constraints swap roles dual of maximization LP is minimization LP and vice versa dual of dual: original LP

Dual Problem Definition (Dual Problem) The dual of the standard maximum problem maximize c T x subject to Ax b and x 0 is the minimum problem minimize y T b subject to y T A c T and y 0

Dual for Diet Problem Example (Dual of Linear Program for Diet Problem) maximize m j=1 y jr j subject to m a ij y j c i j=1 y j 0 for 1 i n for 1 j m

Duality Theorem Theorem (Duality Theorem) If a standard linear program is bounded feasible, then so is its dual, and their objective values are equal. (Proof omitted.) The dual provides a different perspective on a problem.

Dual for Diet Problem: Interpretation Example (Dual of Linear Program for Diet Problem) maximize m j=1 y jr j subject to m a ij y j c i j=1 y j 0 for 1 i n for 1 j m Find nutrient prices that maximize total worth of daily nutrients. The value of nutrients in food F i may not exceed the cost of F i.

Summary

Summary Linear (and integer) programs consist of an objective function that should be maximized or minimized subject to a set of given linear constraints. Finding solutions for integer programs is NP-complete. LP solving is a polynomial time problem. The dual of a maximization LP is a minimization LP and vice versa. The dual of a bounded feasible LP has the same objective value.

Further Reading The slides in this chapter are based on the following excellent tutorial on LP solving: Thomas S. Ferguson. Linear Programming A Concise Introduction. UCLA, unpublished document available online.