Convex Optimization CMU-10725

Similar documents
Convex Optimization CMU-10725

Simplex Algorithm in 1 Slide

Linear Programming and its Applications

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

Linear Programming. Readings: Read text section 11.6, and sections 1 and 2 of Tom Ferguson s notes (see course homepage).

Applications of Linear Programming

Linear Programming. Widget Factory Example. Linear Programming: Standard Form. Widget Factory Example: Continued.

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

Chapter 15 Introduction to Linear Programming

Linear Programming in Small Dimensions

The Simplex Algorithm for LP, and an Open Problem

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

Linear programming and duality theory

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

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

Programming, numerics and optimization

Mathematical and Algorithmic Foundations Linear Programming and Matchings

LECTURE 6: INTERIOR POINT METHOD. 1. Motivation 2. Basic concepts 3. Primal affine scaling algorithm 4. Dual affine scaling algorithm

4 LINEAR PROGRAMMING (LP) E. Amaldi Fondamenti di R.O. Politecnico di Milano 1

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

Lecture Notes 2: The Simplex Algorithm

Linear Programming Duality and Algorithms

Artificial Intelligence

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

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

Lecture 9: Linear Programming

Introduction to Linear Programming

Lecture 5: Properties of convex sets

CMPSCI611: The Simplex Algorithm Lecture 24

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

Linear Programming Motivation: The Diet Problem

AMATH 383 Lecture Notes Linear Programming

Linear Optimization. Andongwisye John. November 17, Linkoping University. Andongwisye John (Linkoping University) November 17, / 25

Lecture 2 - Introduction to Polytopes

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

Convex Optimization CMU-10725

Linear Programming: Introduction

Solving linear programming

DEGENERACY AND THE FUNDAMENTAL THEOREM

LECTURE NOTES Non-Linear Programming

/ Approximation Algorithms Lecturer: Michael Dinitz Topic: Linear Programming Date: 2/24/15 Scribe: Runze Tang

DETERMINISTIC OPERATIONS RESEARCH

16.410/413 Principles of Autonomy and Decision Making

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

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

Linear Programming. Linear Programming. Linear Programming. Example: Profit Maximization (1/4) Iris Hui-Ru Jiang Fall Linear programming

The Simplex Algorithm

Discrete Optimization. Lecture Notes 2

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

CS675: Convex and Combinatorial Optimization Spring 2018 The Simplex Algorithm. Instructor: Shaddin Dughmi

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

Mathematical Programming and Research Methods (Part II)

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

Integer Programming Theory

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

3. The Simplex algorithmn The Simplex algorithmn 3.1 Forms of linear programs

CS483 Analysis of Algorithms Lecture 09 Linear Programming 01

Math 5593 Linear Programming Lecture Notes

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

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

6 Randomized rounding of semidefinite programs

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

6.854 Advanced Algorithms. Scribes: Jay Kumar Sundararajan. Duality

Linear Programming Problems: Geometric Solutions

Notes for Lecture 18

Linear Programming and Clustering

Optimization of Design. Lecturer:Dung-An Wang Lecture 8

Introduction to Linear Programming. Algorithmic and Geometric Foundations of Optimization

OPERATIONS RESEARCH. Linear Programming Problem

Farming Example. Lecture 22. Solving a Linear Program. withthe Simplex Algorithm and with Excel s Solver

Applied Integer Programming

Lecture 6: Faces, Facets

4 Linear Programming (LP) E. Amaldi -- Foundations of Operations Research -- Politecnico di Milano 1

5.3 Cutting plane methods and Gomory fractional cuts

The simplex method and the diameter of a 0-1 polytope

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

NOTATION AND TERMINOLOGY

J Linear Programming Algorithms

Lecture 14: Linear Programming II

UNIT 2 LINEAR PROGRAMMING PROBLEMS

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

maximize c, x subject to Ax b,

AM 121: Intro to Optimization Models and Methods Fall 2017

3 No-Wait Job Shops with Variable Processing Times

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

11 Linear Programming

Linear Programming. them such that they

Linear Programming- Manufacturing with

be a polytope. has such a representation iff it contains the origin in its interior. For a generic, sort the inequalities so that

Some Advanced Topics in Linear Programming

Advanced Algorithms Linear Programming

CSE 460. Today we will look at" Classes of Optimization Problems" Linear Programming" The Simplex Algorithm"

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

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

Linear Programming. Meaning of Linear Programming. Basic Terminology

ORIE 6300 Mathematical Programming I September 2, Lecture 3

Design and Analysis of Algorithms (V)

MVE165/MMG631 Linear and integer optimization with applications Lecture 9 Discrete optimization: theory and algorithms

Lecture 2: August 31

Probabilistic Graphical Models

Transcription:

Convex Optimization CMU-10725 2. Linear Programs Barnabás Póczos & Ryan Tibshirani

Please ask questions! Administrivia Lecture = 40 minutes part 1-5 minutes break 35 minutes part 2 Slides: http://www.stat.cmu.edu/~ryantibs/convexopt/ Anonym feedback survey will be on black board next week. Please use it! Constructive feedback and suggestions are always welcome! Subscribe for scribing! My office hour is after the class. 2

Basic Definitions More and more complicated optimization problems Definition of LP 3

Simplest Optimization Problems Goal: Constant function 1-dim linear function 1-dim linear function with bound constraints 4

Linear Programs n-dim linear function with m linear constraints Inequality form: Cost function: Constraints: Bounds: 5

Linear Programs Inequality form using matrix notation: Cost function: Constraints: Bounds: Example: 6

Goal of this ( and next) lecture(s) To be able to solve Linear Programs Simplex Algorithm (Phase I and Phase II) (Later we will see other algorithms too) Understand why LP is useful Motivation Applications in Machine Learning Understand the difficulties Convergence? Polynomial or Exponential many operations? Will algorithms find the exact solutions, or only approximate ones? 7

Table of Contents Motivating Examples & Applications: Pattern classification Linear programs: standard form canonical form Solutions: Basic, Feasible, Optimal, Degenerate Simplex algorithm: Phase I Phase II 8

Linear Programs Motivation History Sketching LP 9

History Dantzig 1947 (Simplex method) (one of the top 10 algorithms of the twentieth century) Motivated by World War II: Job scheduling (Assign 70 men to 70 jobs) Blending problem (produce a blend (30% Lead, 30% Zinc, 40% Tin) out of 9 different alloys (different mixture, different costs) such that the cost is minimal) Network flow optimization (Max flow min cut) 10

The product mix problem A furniture company manufactures four models of desks Number of man hours and profit: Carpentry shop hrs Desk 1 Desk 2 Desk 3 Desk 4 Available hrs 4 9 7 10 6000 Finishing shop hrs 1 1 3 40 4000 Profit $12 $20 $18 $40 Why is it called Linear Programing??? 11

Motivation: Why Linear Programing? The simplest, nontrivial optimization problem Many complex system (objective and constraints) can be well approximated with linear equations Important applications There are efficient toolboxes that can solve LPs 12

Sketching Linear Programs Example: 13

Simplex Algorithm Example: Simplex algorithm: O-A-B-C O-D-C Interior point methods 14

Linear Program Observations, Difficulties: Feasible set might not exist, no solution (Inconsistency in the constraints) Infinite many global optimum (Optimum is on an edge) Optimum can be 1, 1 (Unbounded optimum) 15

Linear Program High dimensional case is similar: faces, facets instead of edges cost function = hyperplane 16

Applications Pattern Classification via Linear Programming 17

Application Pattern Classification via Linear Programming More info can be found on: cgm.cs.mcgill.ca/~beezer/cs644/main.html Goal: show how LP can be used for linear classification. Why LP? There are many efficient LP solver software packages 18

Pattern Classification via LP Formal goal: Problem 1: Determine whether H and M are linearly separable Problem 2: If H and M are linearly separable, then find a separating hyper plane Linearly separable sets: Linearly not separable sets: 19

Pattern Classification via LP Linearly separable sets: H Linearly not separable sets: M Observation: H and M are linearly separable 20

Pattern Classification via LP Lemma 1: H and M are linearly separable Proof 21

Pattern Classification via LP Lemma 1: H and M are linearly separable Proof 22

Pattern Classification via LP Proof continued 23

Pattern Classification via LP Proof continued Similarly, 24

Pattern Classification via LP Proof continued H M 25

Pattern Classification via LP We will see that the following linear problem solves Problem 1 & 2: [Mansgarian 1995] 26

Pattern Classification via LP Theorem 1 H and M are linearly separable iff the optimal value of LP is 0. Theorem 2 H and M are linearly separable y *, z *, a *, b * is an optimal solution of (LP) f(x)=a* T x+b * is a separating hyperplane 27

Pattern Classification via LP Proof of Theorems 1 and 2 The optimal value of (LP) is 0 28

Pattern Classification via LP Application: Breast Cancer Diagnosis Used at the University of Wisconsin Hospital [Mangasarian et al 1995] 1. Fluid sample from breast. 2. Placed on a glass and stained the highlight the nuclei of cells 3. Image is taken 4. 30D features: Area, Radius, perimeter, etc Goal: Classification between benign lumps and malignant lumps Results: 97.5% accuracy 29

Pattern Classification via LP Example 1: Linearly Separable Case 30

Pattern Classification via LP Example 2: Linearly nonseparable case 31

Linear Programs Standard from, Canonical form, Inequality form Transforming LPS Pivot transformation 32

Linear Programs Inequality form of LPs using matrix notation: Standard form of LPs: Theorem: Any LP can be rewritten to an equivalent standard LP 33

Transforming LPs Theorem: Any LP can be rewritten to an equivalent standard LP Getting rid of inequalities (except variable bounds) Getting rid of equalities 34

Transforming LPs Getting rid of negative variables Getting rid of bounded variables Max to Min Negative b i 35