Outline. Linear Programming (LP): Principles and Concepts. Need for Optimization to Get the Best Solution. Linear Programming

Similar documents
Finite Math Linear Programming 1 May / 7

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

NOTATION AND TERMINOLOGY

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

16.410/413 Principles of Autonomy and Decision Making

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

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

16.410/413 Principles of Autonomy and Decision Making

Lesson 17. Geometry and Algebra of Corner Points

OPERATIONS RESEARCH. Linear Programming Problem

Artificial Intelligence

Chap5 The Theory of the Simplex Method

Linear programming and duality theory

Fundamentals of Integer Programming

Math 5593 Linear Programming Lecture Notes

Some Advanced Topics in Linear Programming

Real life Problem. Review

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

Mathematical and Algorithmic Foundations Linear Programming and Matchings

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

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

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

Discrete Optimization. Lecture Notes 2

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

NATCOR Convex Optimization Linear Programming 1

Linear Programming Motivation: The Diet Problem

Chapter 15 Introduction to Linear Programming

Programming, numerics and optimization

An example of LP problem: Political Elections

What is linear programming (LP)? NATCOR Convex Optimization Linear Programming 1. Solving LP problems: The standard simplex method

MATHEMATICS II: COLLECTION OF EXERCISES AND PROBLEMS

Lecture 9: Linear Programming

1 GIAPETTO S WOODCARVING PROBLEM

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

II. Linear Programming

Algebra Reviews & LP Graphic Solutions

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

Math Models of OR: The Simplex Algorithm: Practical Considerations

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

Linear Programming and its Applications

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

February 10, 2005

Graphing Linear Inequalities in Two Variables.

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

Solutions for Operations Research Final Exam

UNIT 2 LINEAR PROGRAMMING PROBLEMS

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

Mathematics. Linear Programming

3 INTEGER LINEAR PROGRAMMING

The Affine Scaling Method

Linear Programming Terminology

Linear Programming. Meaning of Linear Programming. Basic Terminology

5 The Theory of the Simplex Method

VARIANTS OF THE SIMPLEX METHOD

Introduction to Operations Research

IE 5531: Engineering Optimization I

LP Graphic Solution & Solver for LP

Civil Engineering Systems Analysis Lecture XIV. Instructor: Prof. Naveen Eluru Department of Civil Engineering and Applied Mechanics

Linear programming II João Carlos Lourenço

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

Part 4. Decomposition Algorithms Dantzig-Wolf Decomposition Algorithm

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

Linear Programming in Small Dimensions

The Simplex Algorithm

Linear Programming 1

Linear Programming. Presentation for use with the textbook, Algorithm Design and Applications, by M. T. Goodrich and R. Tamassia, Wiley, 2015

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

Applications of Linear Programming

11 Linear Programming

LINEAR PROGRAMMING (LP), GRAPHICAL PRESENTATION GASPAR ASAMPANA

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

Graphs that have the feasible bases of a given linear

Angles of Polygons. b. Draw other polygons and find the sums of the measures of their interior angles. Record your results in the table below.

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

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

AMATH 383 Lecture Notes Linear Programming

Chapter 4 Concepts from Geometry

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

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

Unit.9 Integer Programming

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

Chapter II. Linear Programming

Convex Optimization CMU-10725

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

Marginal and Sensitivity Analyses

MATH3016: OPTIMIZATION

Heuristic Optimization Today: Linear Programming. Tobias Friedrich Chair for Algorithm Engineering Hasso Plattner Institute, Potsdam

TRANSPORTATION AND ASSIGNMENT PROBLEMS

LINEAR PROGRAMMING. Chapter Overview

CSC 8301 Design & Analysis of Algorithms: Linear Programming

Notes for Lecture 18

Intro to Linear Programming. The problem that we desire to address in this course is loosely stated below.

Linear Programming with Bounds

COLUMN GENERATION IN LINEAR PROGRAMMING

1. Lecture notes on bipartite matching

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

Optimization Methods. Final Examination. 1. There are 5 problems each w i t h 20 p o i n ts for a maximum of 100 points.

6.854 Advanced Algorithms. Scribes: Jay Kumar Sundararajan. Duality

MULTIMEDIA UNIVERSITY FACULTY OF ENGINEERING PEM2046 ENGINEERING MATHEMATICS IV TUTORIAL

DETERMINISTIC OPERATIONS RESEARCH

Transcription:

Outline Linear Programming (LP): Principles and oncepts Motivation enoît hachuat <benoit@mcmaster.ca> Key Geometric Interpretation McMaster University Department of hemical Engineering 3 LP Standard Form he 4G03: Optimization in hemical Engineering For additional details, see Rardin (998), hapter 5.-5. enoît hachuat (McMaster University) LP: Principles and oncepts 4G03 / 9 enoît hachuat (McMaster University) LP: Principles and oncepts 4G03 / 9 Linear Programming Need for Optimization to Get the est Solution plant warehouse customer demand Multiple hoice Question: Why Study Linear Programming? The prof cannot formulate nonlinear models Linear programming is the most frequently used optimization method 3 Linear programming was developed in the 940 s 4 Formulation and solution knowledge will also help when addressing nonlinear models 5 Excellent software is available P P max. 60,000 0 5 4 W W 3 4 5 3 50,000 units 00,000 units 50,000 units The cost of manufacturing is the same The objective is thus to minimize the tranportation cost (using values in the figure) What is the est Plant? enoît hachuat (McMaster University) LP: Principles and oncepts 4G03 3 / 9 enoît hachuat (McMaster University) LP: Principles and oncepts 4G03 4 / 9

Learning Goals Attitudes An optimal solution is much better than an answer Numbers without understanding are useless Learning Goals hallenge Understand both the geometric interpretation (excellent understanding) and the matrix calculations (for the quantitative results) At the same time! Skills Translate a complex problem into a mathematical formulation Solve an optimization problem! ommunicate optimization results in engineering terms Knowledge When/how formulate LP models Analyze the LP solution sensitivity and diagnose weird events 0.5 3 4.5 6 0 @ a, a,m a,m+ a,n................ a m, a m,m a m,m+ a m,n It Is Worth the Effort! 0 A @. x n A = 0 @ b. b m A enoît hachuat (McMaster University) LP: Principles and oncepts 4G03 5 / 9 enoît hachuat (McMaster University) LP: Principles and oncepts 4G03 6 / 9 Linear Programs Definition An optimization model is a linear program (or LP) if it has: continuous variables; a single linear objective function; and 3 ony linear equality or inequality constraints min z = c T x x s.t. A h x = b h A g x b g x min x x max Standard notation for LP: x j = jth decision variable c j = objective function coefficient of x j a i,j = constraint coefficient of x j in the ith main constraint b i = right-hand side (RHS) constant term of main constraint i m = number of main constraints n = number of decision variables Interior, oundary and Extreme Points lassification of the Points in an LP Feasible Region A feasible solution to a linear program is said to be: a boundary point if at least one inequality constraint (that can be strict for some other feasible solutions) is satisfied as equality at the given point an interior point if no such inequalities are active an extreme point (or a corner point or a vertex) if every line segment in the feasible region containing it also has that point as an endpoint Important Remarks About Extreme Points: Extreme point are special boundary points so-named because they stick out (due to convexity of the feasible region of an LP) Every extreme point is determined by a set of constraints that are active only at that solution enoît hachuat (McMaster University) LP: Principles and oncepts 4G03 7 / 9 enoît hachuat (McMaster University) LP: Principles and oncepts 4G03 8 / 9

lassifying Feasible Points lass Exercise: lassify the labeled solutions as interior, boundary, and/or extreme points of the following LP feasible region: Extreme Points lass Exercise: List all sets of 3 constraints determining points x (0), x (), x () and x (3) x 3 x (3) A x () x () x (0) H G I J D K E L F x (0) : x () : x () : x (3) : enoît hachuat (McMaster University) LP: Principles and oncepts 4G03 9 / 9 enoît hachuat (McMaster University) LP: Principles and oncepts 4G03 0 / 9 Adjacent Extreme Points and Edges Adjacent Extreme Points Two extreme points of an LP feasible region are adjacent if they are determined by active constraint sets differing in only one element. Edge An edge of an LP feasible region is a -dimensional set of feasible points along a line determined by a collection of active constraints. Adjacent Extreme Points lass Exercise: Which points among x (0), x (), x () and x (3) are adjacent extreme points? Which active constraints do these points have in common? A x 3 x () x (3) Adjacent Extreme Points: Remark: Adjacent extreme points are joined by an edge determined by the active constraints the extreme points have in common H x () x (0) G D E F ommon Active onstraints: I J K L enoît hachuat (McMaster University) LP: Principles and oncepts 4G03 / 9 enoît hachuat (McMaster University) LP: Principles and oncepts 4G03 / 9

Optimal Points in LP Fundamental Result Every optimal solution to an LP (that has a non-constant objective function) will be a boundary point of its feasible region Optimal Points in LP Fundamental Result Every optimal solution to an LP (that has a non-constant objective function) will be a boundary point of its feasible region Other Fundamental Properties: lass Exercise: Explain why point cannot be optimal? How about point? If an LP has any extreme point, then one such point must be an optimal solution Why? If an LP has a unique optimal solution, that optimum must occur at an extreme point of its feasible region Why? 3 Every local optimum for an LP is a global optimum Why? enoît hachuat (McMaster University) LP: Principles and oncepts 4G03 3 / 9 enoît hachuat (McMaster University) LP: Principles and oncepts 4G03 3 / 9 Identifying Optimal Points lass Exercise: Indicate which of the labeled points can be optimal or uniquely optimal for some objective function: Naive Algorithm Exploiting the extreme point concept as the foundation for a solution method: Algorithm: alculate the objective function value at all extreme points, and keep whichever is best! Application: onsider an LP comprising 0 variables and 0 inequality constraints. Up to how many extreme points exist for this (rather small) LP problem? enoît hachuat (McMaster University) LP: Principles and oncepts 4G03 4 / 9 enoît hachuat (McMaster University) LP: Principles and oncepts 4G03 5 / 9

ack to the Drawing oard! lass Exercise: Develop an algorithm that combines the basic numerical approach with the key geometric insight ack to the Drawing oard! lass Exercise: Develop an algorithm that combines the basic numerical approach with the key geometric insight Starting point asis of the Simplex Algorithm! asic Numerical Optimization: Use local information only, in an iterative scheme Determine a feasible next point that improves the objective value check if further improvement is possible: if yes, continue; else, stop Starting point No further improvement One possible approach: asis of the Simplex Algorithm! onsider only adjacent extreme points for improvement direction Move along the edge that yields the greatest rate of improvement Move until another extreme point has been reached heck if further improvement is possible: if yes, continue; else, stop enoît hachuat (McMaster University) LP: Principles and oncepts 4G03 6 / 9 enoît hachuat (McMaster University) LP: Principles and oncepts 4G03 6 / 9 LP Standard Form Definition: LP in standard form have: only equality main constraints only nonnegative variables objective function and main constraints simplified so that each variable appears at most once (on the left-hand side), and any constant term (possibly zero) appears on the right-hand side min z = c T x x s.t. Ax = b x 0 x j = jth decision variable c j = objective function coefficient of x j a i,j = constraint coefficient of x j in the ith main constraint b i = right-hand side (RHS) constant term of main constraint i m = number of main constraints LP Standard From: Why and How? Why LP in Standard Form? How to Yield LP Standard Form? onvert and inequalities to equalities onvert nonpositive variables to nonnegative 3 onvert unrestricted (URS) variables to nonnegative n = number of decision variables enoît hachuat (McMaster University) LP: Principles and oncepts 4G03 7 / 9 enoît hachuat (McMaster University) LP: Principles and oncepts 4G03 8 / 9

LP Standard From: Some Practice! lass Exercise: Place each of the following LP in standard form Identify the m, n, A, b and c of standard matrix representation min 9w + 6w s.t. w + w 0 w 50 w + w = 40 00 w + w 5 w 0,w 0 ma5( + 8 ) 4x 3 s.t. (0 ) + + 5(9 x 3 ) 0 + x 3, 0,x 3 URS enoît hachuat (McMaster University) LP: Principles and oncepts 4G03 9 / 9