Numerical Optimization

Similar documents
Linear Algebra Review: Linear Independence. IE418 Integer Programming. Linear Algebra Review: Subspaces. Linear Algebra Review: Affine Independence

MATHEMATICAL PROGRAMMING I

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

Convex Sets with Applications to Economics

3. Vector spaces 3.1 Linear dependence and independence 3.2 Basis and dimension. 5. Extreme points and basic feasible solutions

3 Development of the Simplex Method Constructing Basic Solution Optimality Conditions The Simplex Method...

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

Optimization WS 13/14:, by Y. Goldstein/K. Reinert, 9. Dezember 2013, 16: Linear programming. Optimization Problems

Appendix PRELIMINARIES 1. THEOREMS OF ALTERNATIVES FOR SYSTEMS OF LINEAR CONSTRAINTS

Convex Sets. Prof. Dan A. Simovici UMB

Chapter 1: Linear Programming

F 1 F 2 Daily Requirement Cost N N N

Numerical Optimization

3. Linear Programming and Polyhedral Combinatorics

8. Geometric problems

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

Chapter 1. Preliminaries

Integer programming: an introduction. Alessandro Astolfi

Lectures 6, 7 and part of 8

Linear Programming. Operations Research. Anthony Papavasiliou 1 / 21

Summer School: Semidefinite Optimization

9.1 Linear Programs in canonical form

1 Review of last lecture and introduction

8. Geometric problems

IE 5531: Engineering Optimization I

Linear and Integer Optimization (V3C1/F4C1)

MAT-INF4110/MAT-INF9110 Mathematical optimization

Part 1. The Review of Linear Programming Introduction

Chapter 2: Preliminaries and elements of convex analysis

9. Geometric problems

Convex Geometry. Carsten Schütt

Chapter 2 Convex Analysis

THE EXISTENCE AND USEFULNESS OF EQUALITY CUTS IN THE MULTI-DEMAND MULTIDIMENSIONAL KNAPSACK PROBLEM LEVI DELISSA. B.S., Kansas State University, 2014

Linear Programming. Chapter Introduction

Introduction to Linear and Combinatorial Optimization (ADM I)

3. Linear Programming and Polyhedral Combinatorics

Shiqian Ma, MAT-258A: Numerical Optimization 1. Chapter 4. Subgradient

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

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

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

A Parametric Simplex Algorithm for Linear Vector Optimization Problems

1. Consider the following polyhedron of an LP problem: 2x 1 x 2 + 5x 3 = 1 (1) 3x 2 + x 4 5 (2) 7x 1 4x 3 + x 4 4 (3) x 1, x 2, x 4 0

Assignment 1: From the Definition of Convexity to Helley Theorem

Introduction to Convex Analysis Microeconomics II - Tutoring Class

1 Overview. 2 Extreme Points. AM 221: Advanced Optimization Spring 2016

GENERALIZED CONVEXITY AND OPTIMALITY CONDITIONS IN SCALAR AND VECTOR OPTIMIZATION

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

Optimization methods NOPT048

Chapter 3 Introduction to Linear Programming PART 1. Assoc. Prof. Dr. Arslan M. Örnek

The general programming problem is the nonlinear programming problem where a given function is maximized subject to a set of inequality constraints.

Optimization methods NOPT048

arxiv:math/ v1 [math.co] 3 Sep 2000

Linear programs, convex polyhedra, extreme points

LECTURE 3 LECTURE OUTLINE

Mathematics 530. Practice Problems. n + 1 }

Linear and Integer Programming - ideas

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

Linear Programming. Larry Blume Cornell University, IHS Vienna and SFI. Summer 2016

LP Relaxations of Mixed Integer Programs

1 Convexity explains SVMs

Chapter 5 Linear Programming (LP)

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

HW1 solutions. 1. α Ef(x) β, where Ef(x) is the expected value of f(x), i.e., Ef(x) = n. i=1 p if(a i ). (The function f : R R is given.

Math 5593 Linear Programming Week 1

Convex Optimization and Modeling

CHAPTER 2: CONVEX SETS AND CONCAVE FUNCTIONS. W. Erwin Diewert January 31, 2008.

Duality in Linear Programming

CSCI : Optimization and Control of Networks. Review on Convex Optimization

Farkas Lemma. Rudi Pendavingh. Optimization in R n, lecture 2. Eindhoven Technical University. Rudi Pendavingh (TUE) Farkas Lemma ORN2 1 / 15

Discrete Geometry. Problem 1. Austin Mohr. April 26, 2012

Introduction to Integer Programming

Advanced Linear Programming: The Exercises

A Brief Review on Convex Optimization

Thursday, May 24, Linear Programming

Introduction to Linear Programming (LP) Mathematical Programming (MP) Concept

Lecture 6 Simplex method for linear programming

Subgradient. Acknowledgement: this slides is based on Prof. Lieven Vandenberghes lecture notes. definition. subgradient calculus

Boundary Behavior of Excess Demand Functions without the Strong Monotonicity Assumption

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

CONSTRAINT QUALIFICATIONS, LAGRANGIAN DUALITY & SADDLE POINT OPTIMALITY CONDITIONS

Lecture Note 18: Duality

Linear Programming. (Com S 477/577 Notes) Yan-Bin Jia. Nov 28, 2017

Chapter 2. Convex Sets: basic results

A Review of Linear Programming

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

Lecture 5. Theorems of Alternatives and Self-Dual Embedding

3.7 Strong valid inequalities for structured ILP problems

Solutions to Review Questions, Exam 1

Introduction to Integer Linear Programming

Extreme Abridgment of Boyd and Vandenberghe s Convex Optimization

Optimization, Part 2 (november to december): mandatory for QEM-IMAEF, and for MMEF or MAEF who have chosen it as an optional course.

Chapter 2: Unconstrained Extrema

2.31 Definition By an open cover of a set E in a metric space X we mean a collection {G α } of open subsets of X such that E α G α.

Numerical Optimization

Normal Fans of Polyhedral Convex Sets

IE 521 Convex Optimization

Linear Programming. Murti V. Salapaka Electrical Engineering Department University Of Minnesota, Twin Cities

Linear Programming. Leo Liberti. February 20, Abstract

A notion of Total Dual Integrality for Convex, Semidefinite and Extended Formulations

Week 8. 1 LP is easy: the Ellipsoid Method

Transcription:

Linear Programming Computer Science and Automation Indian Institute of Science Bangalore 560 012, India. NPTEL Course on

min x s.t. Transportation Problem ij c ijx ij 3 j=1 x ij a i, i = 1, 2 2 i=1 x ij b j, j = 1, 2, 3 x ij 0 i, j a i : Capacity of the plant Fi b j : Demand of the outlet Rj c ij : Cost of shipping one unit of product from Fi to Rj x ij : Number of units of the product shipped from Fi to Rj (variables) The objective is to minimize ij c ijx ij 3 j=1 x ij a i, i = 1, 2 (constraints) 2 i=1 x ij b j, j = 1, 2, 3 (constraints) x ij 0 i, j (constraints)

The Diet Problem: Find the most economical diet that satisfies minimum nutritional requirements. Number of food items: n Number of nutritional ingredient: m Each person must consume at least b j units of nutrient j per day Unit cost of food item i: c i Each unit of food item i contains a ji units of the nutrient j Number of units of food item i consumed: x i Constraint corresponding to the nutrient j: Cost: a j1 x 1 + a j2 x 2 +... + a jn x n b j, x i 0 i c 1 x 1 + c 2 x 2 +... + c n x n

Problem: min s.t. c 1 x 1 + c 2 x 2 +... + c n x n a j1 x 1 + a j2 x 2 +... + a jn x n b j j x i 0 i Given: c = (c 1,..., c n ) T, A = (a 1... a n ), b = (b 1,..., b m ) T. Linear Programming Problem (LP): min s.t. c T x Ax b x 0 where A R m n, c R n and b R m. Assumption: m n, rank(a) = m Linear Constraints can be of the form Ax = b or Ax b

Constraint (Feasible) Set: Inequality constraint of the type {x : a T x b} or {x : a T x b} denotes a half space Equality constraint, {x : a T x = b}, represents an affine space Non-negativity constraint, x 0 Constraint set of an LP is a convex set Polyhedral Set X = {x : Ax b, x 0} Polytope: A bounded polyhedral set

Consider the constraint set in R 2 : {(x 1, x 2 ) : x 1 + x 2 2, x 1 1, x 1 0, x 2 0}

Consider the constraint set in R 2 : {(x 1, x 2 ) : x 1 1, x 2 x 1 }

Feasible set can be a singleton set Feasible Set = {(x 1, x 2 ) : x 1 + x 2 = 2, x 1 + x 2 = 1} = {A}

Feasible set can be empty! Feasible Set = {(x 1, x 2 ) : x 1 + x 2 2, x 1 + x 2 1} = φ

Definition Let X be a convex set. A point x X is said to be an extreme point (corner point or vertex) of X if x cannot be represented as a strict convex combination of two distinct points in X. Extreme Points: A, B, C and D. E is not an extreme point.

Extreme Point: A

Constraint Set: X = {(x 1, x 2 ) : x 1 + x 2 2, x 1 1, x 1 0, x 2 0} 4 constraints in R 2 Two constraints are binding (active) at every extreme point Fewer than two constraints are binding at other points

Consider the constraint set: X = {x : Ax b, x 0} where A R m n and rank(a) = m. m + n hyperplanes associated with m + n halfspaces m + n halfspaces define X An extreme point lies on n linearly independent defining hyperplanes of X If X is nonempty, the set of extreme points of X is not empty and has a finite number of points. An edge of X is formed by intersection of n 1 linearly independent hyperplanes Two extreme points of X are said to be adjacent if the line segment joining them is an edge of X

For example, B and C are adjacent points Adjacent extreme points have n 1 common binding linearly independent hyperplanes

Remarks: Consider the constraint set: X = {x : Ax = b, x 0} where A R m n and rank(a) = m. Let x X be an extreme point of X m equality constraints are active at x Therefore, n m additional hyperplanes (from the non-negativity constraints) are active at x

Geometric Solution of a LP: min c T x s.t. Ax b x 0 where A R m n, c R n and b R m.

Example: min 2x 1 x 2 s.t. x 1 + x 2 5 x 1 + 2x 2 6 x 1, x 2 0

Example: min 2x 1 x 2 s.t. x 1 + x 2 5 x 1 + 2x 2 6 x 1, x 2 0

Example: min 2x 1 x 2 s.t. x 1 + x 2 5 x 1 + 2x 2 6 x 1, x 2 0

Example: min 2x 1 x 2 s.t. x 1 + x 2 5 x 1 + 2x 2 6 x 1, x 2 0

Example: min s.t. c T x x X

Example: min s.t. c T x x X

Example: min s.t. c T x x X

Example: min s.t. c T x x X

Consider a linear programming problem LP: min c T x s.t. a T i x (, =, ) b i, i = 1,..., m x 0 Let X = {x : a T i x (, =, ) b i, i = 1,..., m, x 0}. Remarks: X is a closed convex set The set of optimal solutions is a convex set. The linear program may have no solution or a unique solution or infinitely many solutions. If x is an optimal solution to LP, then x must be a boundary point of X. If z = c T x, then {x : c T x = z} is a supporting hyperplane to X. If X is compact and if there is an optimal solution to LP, then at least one extreme point of X is an optimal solution to the linear programming problem.

LP in Standard Form: min s.t. c T x Ax = b x 0 where A R m n and rank(a) = m. Assumption: Feasible set is non-empty

Any linear program can be converted to the Standard Form. (a) max c T x = min c T x (b) Constraint of the type a T x b, x 0 can be written as a T x + y = b x 0 y 0

(c) Constraint of the type a T x b, x 0 can be written as a T x z = b x 0 z 0 (d) Free variables (x i R) can be defined as x i = x i + xi, x i + 0, xi 0

Example: min x 1 2x 2 3x 3 s.t. x 1 + 2x 2 + x 3 14 x 1 + 2x 2 + 4x 3 12 x 1 x 2 + x 3 = 2 x 1, x 2 unrestricted Write the constraints as equality x 3 3constraints x 1 + 2x 2 + x 3 + x 4 = 14, x 4 0 x 1 + 2x 2 + 4x 3 x 5 = 12, x 5 0 Define new variables x + 1, x 1, x+ 2, x 2 and x 3 such that x 1 = x + 1 x 1, where x+ 1 0, x 1 0 x 2 = x + 2 x 2, where x+ 2 0, x 2 0 x 3 = 3 x 3 so that x 3 0

Therefore, the program min x 1 2x 2 3x 3 s.t. x 1 + 2x 2 + x 3 14 x 1 + 2x 2 + 4x 3 12 x 1 x 2 + x 3 = 2 x 1, x 2 unrestricted x 3 3 can be converted to the standard form: min x + 1 x 1 2(x+ 2 x 2 ) + 3(3 + x 3) s.t. x + 1 x 1 + 2(x+ 2 x 2 ) x 3 + x 4 = 17 x + 1 x 1 + 2(x+ 2 x 2 ) 4x 3 x 5 = 24 x + 1 x 1 x+ 2 + x 2 x 3 = 5 x + 1, x 1, x+ 2, x 2, x 3, x 4, x 5 0

Consider the linear program in standard form (SLP): min s.t. c T x Ax = b x 0 where A R m n, rank(a) = rank(a b) = m. Let B R m m be formed using m linearly independent columns of A. Therefore, the system of equations, Ax = b can be written as, ( ) xb (B N) = b. Letting x N = 0, we get x N Bx B = b x B = B 1 b. (x B : Basic Variables) (x B 0) T : Basic solution w.r.t. the basis matrix B

Basic Feasible Solution If x B 0, then (x B w.r.t. the basis matrix B. 0) T is called a basic feasible solution of Ax = b x 0 Theorem Let X = {x : Ax = b, x 0}. x is an extreme point of X if and only if x is a basic feasible solution of Ax = b x 0.

Proof. (a) Let x be a basic feasible solution of Ax = b, x 0. Therefore, x = (x 1,..., x }{{ m, 0,..., 0). Let B = (a }}{{} 1 a 2... a m ) 0 n m where a 1,..., a m are linearly independent. So, x 1 a 1 +... + x m a m = b. Suppose x is not an extreme point of X. Let y, z X, y z and x = αy + (1 α)z, 0 < α < 1. Since y, z 0, we have y m+1 =... = y n = 0 z m+1 =... = z n = 0 } and y 1a 1 +... + y m a m = b z 1 a 1 +... + z m a m = b Since a 1,..., a m are linearly independent, x = y = z, a contradiction. So, x is an extreme point of X.

Proof.(continued) (b) Let x be an extreme point of X. x X Ax = b, x 0. There exist n linearly independent constraints active at x. m active constraints associated with Ax = b. n m active constraints associated with n m non-negativity constraints x is the unique solution of Ax = b, x N = 0. Ax = b Bx B + Nx N = b x B = B 1 b 0 Therefore, x = (x B x N ) T is a basic feasible solution. ( ) n Number of basic solutions m Enough to search the finite set of vertices of X to get an optimal solution

Theorem Let X be non-empty and compact constraint set of a linear program. Then, an optimal solution to the linear program exists and it is attained at a vertex of X. Proof. Objective function, c T x, of the linear program is continuous and the constraint set is compact. Therefore, by Weierstrass Theorem, optimal solution exists. The set of vertices, {x 1,..., x k }, of X is finite. Therefore, X is the convex hull of x 1,..., x k. Hence, for every x X, x = k i=1 α ix i where α i 0, k i=1 α i = 1. Let z = min 1 i k c T x i. Therefore, for any x X, z = c T x = k i=1 α ic T x i z k i=1 α i = z. So, the minimum value of c T x is attained at a vertex of X.

Consider the constraints: x 1 + x 2 2 x 1 1 x 1, x 2 0

The given constraints x 1 + x 2 2 x 1 1 x 1, x 2 0 can be written in the form, Ax = b, x 0: Let A = x 1 +x 2 + x 3 = 2 x 1 +x 4 = 1 x 1, x 2, x 3, x 4 0 ( ) ( 1 1 1 0 2 = (a 1 0 0 1 1 a 2 a 3 a 4 ) and b = 1 ).

( ) 1 1 1 0 A = = (a 1 0 0 1 1 a 2 a 3 a 4 ) and b = ( ) 1 1 (1) B = (a 1 a 2 ) = 1 0 ( 2 1 ). x B = (x 1 x 2 ) T = B 1 b = (1 1) T and x N = (x 3 x 4 ) T = (0 0) T. x = (x B x N ) T corresponds to the vertex C.

( ) 1 1 1 0 A = = (a 1 0 0 1 1 a 2 a 3 a 4 ) and b = ( ) 1 1 (2) B = (a 1 a 3 ) = 1 0 ( 2 1 ). x B = (x 1 x 3 ) T = B 1 b = (1 1) T and x N = (x 2 x 4 ) T = (0 0) T. x = (x B x N ) T corresponds to the vertex B.

( ) ( 1 1 1 0 2 A = = (a 1 0 0 1 1 a 2 a 3 a 4 ) and b = 1 ( ) 1 0 (3) B = (a 1 a 4 ) = 1 1 ). x B = (x 1 x 4 ) T = B 1 b = (2 1) T and x N = (x 2 x 3 ) T = (0 0) T. x = (x B x N ) T is not a basic feasible point

( ) 1 1 1 0 A = = (a 1 0 0 1 1 a 2 a 3 a 4 ) and b = ( ) 1 0 (4) B = (a 2 a 4 ) = 0 1 ( 2 1 ). x B = (x 2 x 4 ) T = B 1 b = (2 1) T and x N = (x 1 x 3 ) T = (0 0) T. x = (x B x N ) T corresponds to the vertex D.

( ) 1 1 1 0 A = = (a 1 0 0 1 1 a 2 a 3 a 4 ) and b = ( ) 1 0 (5) B = (a 3 a 4 ) = 0 1 ( 2 1 ). x B = (x 3 x 4 ) T = B 1 b = (2 1) T and x N = (x 1 x 2 ) T = (0 0) T. x = (x B x N ) T corresponds to the vertex A.

Example: min 3x 1 x 2 s.t. x 1 + x 2 2 x 1 1 x 1, x 2 0