Simplex Algorithm in 1 Slide

Similar documents
Lecture 4: Convexity

Lecture 2: August 29, 2018

2. Convex sets. x 1. x 2. affine set: contains the line through any two distinct points in the set

Convex Sets (cont.) Convex Functions

Lecture 2: August 31

CS599: Convex and Combinatorial Optimization Fall 2013 Lecture 4: Convex Sets. Instructor: Shaddin Dughmi

CS675: Convex and Combinatorial Optimization Spring 2018 Convex Sets. Instructor: Shaddin Dughmi

Lecture 2: August 29, 2018

2. Convex sets. affine and convex sets. some important examples. operations that preserve convexity. generalized inequalities

Lecture 5: Properties of convex sets

Convexity: an introduction

Convex Optimization. Convex Sets. ENSAE: Optimisation 1/24

Math 5593 Linear Programming Lecture Notes

Convexity I: Sets and Functions

Introduction to Modern Control Systems

COM Optimization for Communications Summary: Convex Sets and Convex Functions

Convex Optimization - Chapter 1-2. Xiangru Lian August 28, 2015

Mathematical Programming and Research Methods (Part II)

Tutorial on Convex Optimization for Engineers

Convex Optimization. 2. Convex Sets. Prof. Ying Cui. Department of Electrical Engineering Shanghai Jiao Tong University. SJTU Ying Cui 1 / 33

Affine function. suppose f : R n R m is affine (f(x) =Ax + b with A R m n, b R m ) the image of a convex set under f is convex

Convex sets and convex functions

Shiqian Ma, MAT-258A: Numerical Optimization 1. Chapter 2. Convex Optimization

Convex Optimization CMU-10725

Convex sets and convex functions

Lecture: Convex Sets

Lecture 2 - Introduction to Polytopes

Lecture 2 Convex Sets

COMP331/557. Chapter 2: The Geometry of Linear Programming. (Bertsimas & Tsitsiklis, Chapter 2)

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

This lecture: Convex optimization Convex sets Convex functions Convex optimization problems Why convex optimization? Why so early in the course?

EE/ACM Applications of Convex Optimization in Signal Processing and Communications Lecture 6

Lecture 3: Convex sets

Linear programming and duality theory

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

Convex Sets. CSCI5254: Convex Optimization & Its Applications. subspaces, affine sets, and convex sets. operations that preserve convexity

Convex Sets. Pontus Giselsson

Convex Optimization M2

Introduction to Convex Optimization. Prof. Daniel P. Palomar

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

Convex Optimization CMU-10725

60 2 Convex sets. {x a T x b} {x ã T x b}

Lecture 5: Duality Theory

FACES OF CONVEX SETS

Lec13p1, ORF363/COS323

Numerical Optimization

Combinatorial Geometry & Topology arising in Game Theory and Optimization

CS675: Convex and Combinatorial Optimization Fall 2014 Convex Functions. Instructor: Shaddin Dughmi

However, this is not always true! For example, this fails if both A and B are closed and unbounded (find an example).

Math 414 Lecture 2 Everyone have a laptop?

CS675: Convex and Combinatorial Optimization Spring 2018 Consequences of the Ellipsoid Algorithm. Instructor: Shaddin Dughmi

Convex Geometry arising in Optimization

Division of the Humanities and Social Sciences. Convex Analysis and Economic Theory Winter Separation theorems

Convex Optimization CMU-10725

EC 521 MATHEMATICAL METHODS FOR ECONOMICS. Lecture 2: Convex Sets

Conic Duality. yyye

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

Convexity Theory and Gradient Methods

Lecture 2 September 3

Applied Integer Programming

Linear Programming in Small Dimensions

On Unbounded Tolerable Solution Sets

Read: H&L chapters 1-6

Convex Optimization Lecture 2

Mathematical and Algorithmic Foundations Linear Programming and Matchings

MA4254: Discrete Optimization. Defeng Sun. Department of Mathematics National University of Singapore Office: S Telephone:

Lecture 2. Topology of Sets in R n. August 27, 2008

LECTURE 7 LECTURE OUTLINE. Review of hyperplane separation Nonvertical hyperplanes Convex conjugate functions Conjugacy theorem Examples

Nonlinear Programming

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

maximize c, x subject to Ax b,

Chapter 4 Concepts from Geometry

Linear and Integer Programming :Algorithms in the Real World. Related Optimization Problems. How important is optimization?

Modeling and Analysis of Hybrid Systems

Modeling and Analysis of Hybrid Systems

of Convex Analysis Fundamentals Jean-Baptiste Hiriart-Urruty Claude Lemarechal Springer With 66 Figures

LP Geometry: outline. A general LP. minimize x c T x s.t. a T i. x b i, i 2 M 1 a T i x = b i, i 2 M 3 x j 0, j 2 N 1. where

LECTURE 10 LECTURE OUTLINE

INTRODUCTION TO LINEAR AND NONLINEAR PROGRAMMING

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

CME307/MS&E311 Optimization Theory Summary

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

R n a T i x = b i} is a Hyperplane.

2. Convex sets. affine and convex sets. some important examples. operations that preserve convexity. generalized inequalities

Lecture Notes 2: The Simplex Algorithm

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

Chapter 15 Introduction to Linear Programming

Lecture 7: Support Vector Machine

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

Lecture 4: Linear Programming

POLYHEDRAL GEOMETRY. Convex functions and sets. Mathematical Programming Niels Lauritzen Recall that a subset C R n is convex if

Lecture 6: Faces, Facets

Interpretation of Dual Model for Piecewise Linear. Programming Problem Robert Hlavatý

CS599: Convex and Combinatorial Optimization Fall 2013 Lecture 1: Introduction to Optimization. Instructor: Shaddin Dughmi

The Simplex Algorithm

CS 372: Computational Geometry Lecture 10 Linear Programming in Fixed Dimension

David G. Luenberger Yinyu Ye. Linear and Nonlinear. Programming. Fourth Edition. ö Springer

J Linear Programming Algorithms

Some Advanced Topics in Linear Programming

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

Transcription:

Administrivia 1

Canonical form: Simplex Algorithm in 1 Slide If we do pivot in A r,s >0, where c s <0 New cost value: New b vector: 2

The full Simplex Algorithm So far we have assumed that a basic feasible solution in canonical form is available to start the algorithm 3

The Simplex Algorithm Phase I Example Goal: We want to find a feasible solution Phase I: (i) Forget the cost function c T x. (ii) Introduce X 6,X 7 0. [One variable for each row] (iii) Solve 4

The Simplex Algorithm Phase I Theorem: (*2) has feasible optimal solution such that X 6 =X 7 =0 iff (*1) has feasible solution Remarks: (*2) is easy to convert to a feasible canonical solution (We will see) We can find its optimal solution (X 6 =X 7 =0) with the Phase II algorithm This is a feasible solution of (*1) 5

Tableaux Basic variable Objective (-w) X 1 X 2 X 3 X 4 X 5 X 6 X 7 RHS 1 0 0 0 0 0 1 1 0 0 4 2 13 3 1 1 0 17 0 1 1 5 1 1 0 1 7 It s easy to convert this to a feasible canonical form: Basic variable Objective (-w) X 1 X 2 X 3 X 4 X 5 X 6 X 7 RHS -w 1-5 -3-18 -4-2 0 0-24 X 6 0 4 2 13 3 1 1 0 17 X 7 0 1 1 5 1 1 0 1 7 6

Tableaux Now, we can run the Phase 2 algorithm on this table to get a feasible solution of (*1): B. var Obj. (-w) X 1 X 2 X 3 X 4 X 5 X 6 X 7 RHS -w 1-5 -3-18 -4-2 0 0-24 X 6 0 4 2 13 3 1 1 0 17 X 7 0 1 1 5 1 1 0 1 7 7

Tableaux Now, we can run the Phase 2 algorithm on this table to get a feasible solution of (*1): B. var Obj. (-w) X 1 X 2 X 3 X 4 X 5 X 6 X -w 1-5 -3-18 -4-2 0 0-24 X 6 0 4 2 13 3 1 1 0 17 X 7 0 1 1 5 1 1 0 1 7 7 RHS B. var Obj (-w) X 1 X 2 X 3 X 4 X 5 X 6 X 7 RHS -w 1-5+18/13*4-3+18/13*2 0-4+18/13*3-2+18/13 18/13 0-24+18/13*7 X 3 0 4/13 2/13 1 3/13 1/13 1/13 0 17/13 X 7 0 1-5/13*4 1-5/13*2 0 1-5/13*3 1-5/13-5/13 1 7-5/13*7 8

Tableaux B. var Obj (-w) X 1 X 2 X 3 X 4 X 5 X 6 X 7 RHS -w 1-5+18/13*4-3+18/13*2 0-4+18/13*3-2+18/13 18/13 0-24+18/13*7 X 3 0 4/13 2/13 1 3/13 1/13 1/13 0 17/13 X 7 0 1-5/13*4 1-5/13*2 0 1-5/13*3 1-5/13-5/13 1 7-5/13*7 Let us simplify this Table a little: B. var Obj (-w) X 1 X 2 X 3 X 4 X 5 X 6 X 7 RHS -w 1-7/13-3/13 0 2/13-8/13 18/13 0-6/13 X 3 0 4/13 2/13 1 3/13 1/13 1/13 0 17/13 X 7 0 1-7/13 3/13 0-2/13 8/13-5/13 1 6/13 9

Tableaux B. var Obj (-w) X 1 X 2 X 3 X 4 X 5 X 6 X 7 RHS -w 1 0 0 0 0 0 1 1 0 X 3 0 3/8 1/8 1 1/4 0-1/8 0 5/4 X 5 0-7/8 3/8 0-1/4 1-5/8 1/8 3/4 All the relative costs are nonnegative ) optimal feasible solution. Phase I is finished. 10

Tableaux B. var Obj (-w) X 1 X 2 X 3 X 4 X 5 X 6 X 7 RHS -w 1 0 0 0 0 0 1 1 0 X 3 0 3/8 1/8 1 1/4 0-1/8 0 5/4 X 5 0-7/8 3/8 0-1/4 1-5/8 1/8 3/4 B. var Obj (-z) X 1 X 2 X 3 X 4 X 5 X 6 X 7 RHS -z 1 2 1 2 1 4 0 0 0 X 3 0 3/8 1/8 1 1/4 0-1/8 0 5/4 X 5 0-7/8 3/8 0-1/4 1-5/8 1/8 3/4 11

Tableaux B. var Obj (-z) X 1 X 2 X 3 X 4 X 5 X 6 X 7 RHS -z 1 2 1 2 1 4 0 0 0 X 3 0 3/8 1/8 1 1/4 0-1/8 0 5/4 X 5 0-7/8 3/8 0-1/4 1-5/8 1/8 3/4 Make it to canonical form and continue with Phase II Do not make pivots in the column of X 6 and X 7 12

Simplex Algorithm with Matlab f = [-5-4 -6]'; A = [ 1-1 1 3 2 4 3 2 0 ]; b = [20 42 30]'; lb = zeros(3,1); options = optimset('largescale','off','simplex','on'); [x,fval,exitflag,output,lambda] = linprog(f,a,b,[],[],lb,[],[],options); 13

Relevant Books Luenberger, David G. Linear and Nonlinear Programming. 2nd ed. Reading, MA: Addison Wesley, 1984. ISBN: 0201157942. Bertsimas, Dimitris, and John Tsitsiklis. Introduction to Linear Optimization. Athena Scientific Press, 1997. ISBN: 1886529191. Dantzig, Thapa: Linear Programming 14

Summary Linear programs: standard form, canonical form Solutions: Basic, Feasible, Optimal, Degenerate Simplex algorithm: Phase I Phase II Applications: Pattern classification 15

Convex Optimization CMU-10725 4. Convexity Part I Barnabás Póczos & Ryan Tibshirani

Goal of this lecture Review of Convex sets & Convex functions Definition Examples Basic properties Books to Read: Boyd and Vandenberghe: Convex Optimization, Chapters 2 & 3 Rockafellar: Convex Analysis 17

Line and Line Segments Definition [Line]: Definition [Line segment]: 18

Affine Sets Definition [Affine set]: Definition [Affine hull of set C]: Theorem [Affine hull]: The Aff[C] is the smallest affine set that contains C 19

Affine Sets Example Example [Solutions of linear equations]: The solution set of a system of linear equations is an affine set Solution set: Proof: 20

Boundaries Definition [x on boundary of C ( C) ]: Definition [x in interior of C]: Definition [relative interior (rel int C)]: 21

Boundaries Definition [closure of C (cl C) ]: Definition [relative boundary of C (rel C) ]: 22

Open and Closed Sets Definition [C closed]: Definition [C open]: Definition [C compact]: 23

Convex sets Convex Non convex Definition [Convex set]: Definition [Strictly convex set]: Example [Convex, but not strictly convex]: 24

Examples of Convex Sets empty set: singleton set: complete space: lines: line segments: hyperplanes: halfspaces: 25

Examples of Convex Sets Euclidian balls: L p balls, p 1 L p balls 0<p<1 26

Examples of Convex Sets Polyhedron: the solution set of a finite number of linear equalities and inequalities Matrix notation: Polytope: bounded polyhedron Intersection of halfspaces & hyperplanes 27

Convex hull Definition [Convex hull]: 28

Convex hull Convex hull properties: 29

Simplex: Examples of Convex Sets 30

Convex Combination Infinite many sums Integrals (Expected value) 31

Cones Definition [Cone]: Definition [Convex Cone]: Definition [Conic hull]: 32

Example: PSD matrices Definition [Positive semi definite matrix]: Theorem [eigenvalues]: A symmetric matrix A is positive definite iff all its eigenvalues are positive Partial ordering of square matrices: For arbitrary square matrices M, N we write M N if M N 0; i.e., M N is positive semi-definite. 33

Example: PSD matrices Theorem [Cone of PSD matrices]: The set of symmetric, PSD matrices form a convex cone: Proof: 34

Convex set representation with convex hull Theorem: [Representation of a closed convex set with a convex hull] 35

Dual representation Theorem: [Representation of a closed convex set with half spaces] 36

Convexity-preserving set operations Translation Scaling Intersection 37

Convexity-preserving set operations Affine function E.g. projection, dropping coordinates Set sum Direct sum 38

Convex Optimization CMU-10725 5. Convexity Part II Barnabás Póczos & Ryan Tibshirani

Conevex Hull Definition 1 Note: If C is a finite set, then this is closed polyhedron. If C contains infinite many points, then this can be open, closed, or none of them Theorem [Definition 2, Primal representation] A closed convex set is the intersection of all the closed half spaces containing S 40

Convex set representation with convex hull Theorem: [Representation of a closed convex set with a convex hull] Convex hull = convex combination of possibly infinite many points in the set.

Dual representation Theorem: [Representation of a closed convex set with half spaces] A closed convex set is the intersection of all the closed half spaces containing S

Convexity-preserving set operations Perspective projection (pinhole camera) 43

Convexity-preserving set operations Linear-fractional function (perspective function with affine function) Theorem: [Image of Linear fractional function] 44

Convexity-preserving set operations Application: [Conditional probabilities] 45

Convexity-preserving set operations Union doesn t preserve convexity 46

Separating hyperplane thm Theorem: [Separating hyperplane theorem] 47

Separating hyperplane thm Definition: [Strong separation] Definition: [Proper separation], Definition: [Strict separation] It "strictly separates" them if neither one touches the hyperplane. 48

Separating hyperplane thm Theorem: [Strong separation theorem] Counterexample: Why do we need at least one bounded set? 49

Separating hyperplane thm II Theorem: [Strong separation theorem II] 50

Supporting hyperplane thm Theorem: [Supporting hyperplane theorem] For any point x 0 on the boundary of convex C Theorem: [Partial converse of the supporting hyperplane theorem] 51

Use definition directly Proving a set convex Represent as convex hull Represent as the intersection of halfspaces Supporting hyperplane partial converse: C closed, nonempty interior, has supporting hyperplane at all boundary points C convex Build C up from simpler sets using convexity-preserving operations 52

Convex functions 53

Definition [convex function]: Convex functions Definition [strictly convex function]: 54

Definition [concave function]: Concave functions -f is convex 55

Geometric interpretation Convex functions 56

Strongly convexity Definition:[m-strongly convex function (m>0) An equivalent condition: Without gradient: With Hessian: A strongly convex function is also strictly convex, but not vice-versa. 57

Examples 58

Examples: Convex functions Convex Concave 59

Extended reals We can extend f from dom f to R n without changing its convexity Theorem: 60

Epigraph Definition [epigraph]: Theorem [convexity of the epigraph]: 61

Convex Function Properties 0 th order characterization This is useful, because we only need to check the convexity of 1D functions. Graph courtesy of Prof. Robert Freund 62

Convex Function Properties 1st order characterization The 1 st oder Taylor approximation is a global underestimator of f. Corollary: 63

Convex Function Properties 2nd order characterization Lemma 64

Jensen s inequality Theorem 65

Proving a function convex Use definition directly Prove that epigraph is convex via set methods 0 th, 1 st, 2 nd order convexity properties Construct f from simpler convex fns using convexity-preserving ops 66

Convexity-preserving fn ops Nonnegative weighted sum Pointwise max/sup Extension of pointwise max/sup 67

Convexity-preserving fn ops Affine map Composition Perspective map 68

Convex sets Representation: Summary convex hull, intersect hyperplanes supporting, separating hyperplanes operations that preserve convexity Convex functions epigraph 0 orders, 1st order, 2nd order conditions operations that preserve convexity 69