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

Size: px
Start display at page:

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

Transcription

1 Lecture 22 Solving a Linear Program withthe Simplex Algorithm and with Excel s Solver m j winter, 2 Farming Example Constraints: acreage: x + y < money: x + 7y < 6 time: x + y < 3 y x + y = B (, 8.7) x + 7y = 6 x + y = 3 C (, ) D (62., 37.) Objective function represents net profits: $ per acre of corn $2 per acre of wheat = x + 2 y A (, ) E(7, ) 2 x

2 What if we don t have a graph? We could take all possible intersections of two equations. We d have to test each one for feasibility (is it a corner of the region or away from it?), then evaluate the objective function at each feasible intersection point. For the farm example: constraints, means lines. How many combinations of two from are there? C 2 = possible intersection points. Too many points to try. Situation is even worse if there are 3 (or more) variables. 3 So, what do we do? There is a systematic method of starting at one vertex, and moving to an adjacent vertex, each time finding a better value of the objective function. The method is call the Simplex Method. Illustrate with the corn-wheat problem. Ideas are more concrete. Begin by introducing some new variables. Every constraint (inequality) will be made into an equality. 4 2

3 Slack Variables Introduce new variables Use x and x 2 instead of x and y. Define s = x x 2 s 2 = 6 x 7 x 2 s 3 = 3 x x 2 = x + 2x 2 x and x 2 are the independent x = variables. When x = x 2 = A (,) we are at corner A. We want to go around the boundary of the region. B (,6/7)) s = s = 2 x 2 = s = 3 C (, ) D (62., 37.) E (7, ) Each vertex is characteried by two variables set = A: x =, x 2 = B: x =, s 2 = C: s 2 =, s = etc. We are at A, want to move to B. Must make x 2 dependent and s 2 independent. Number the equations: Solve eq n 2 for x 2. Substitute into the other equations : s = x x 2 2: s 2 = 6 x 7 x 2 3: s 3 = 3 x x 2 4: = x + 2x 2 x = 6 x s

4 First Exchange Stage : s = x x 2 2: s 2 = 6 x 7 x 2 3: s 3 = 3 x x 2 4: = x + 2x 2 Stage 2 : s = x : x 2= x : s = x + s : = x s For this example, one stage was enough. Why? Stage 2 : s = x : x 2= x : s = x + s : = x s x =, s 2 = is feasible: all variables are non-negative. If either x or s 2 were positive, would be diminished. So we are done! 8 4

5 Questions: how do we know which variable to swap? how do we know which equation to use? how do we know when we are done? Answer: there are rules First make a table (tableau) of the linear program. 9 Stage : x + x 2 + s = 2: x + 7 x 2 + s 2 = 6 Matrix notation - rewrite with all variables on the left hand side. 3: x + x 2 + s 3 = 3 4: x 2x 2 + = x s s

6 Reading the Matrix x s s Set x and =. Read off value of other variables: s =, etc. = Choosing the Pivot Element (deciding how to make an exchange) x s s Rule : pick most negative element in bottom row. This determines the column. will go. = is the y-axis 2 6

7 Going to the next stage x s s3 / 7 6 6/7 3 3/ 2 Rule 2:for each non-ero element in the pivot column, calculate the quotient: last column/pivot column. Pick the smallest, non-negative quotient. This is the pivot row. The pivot element is at the intersection. Divide every element of the pivot row by the pivot. 3 Make the pivot element itself a x s s3 /7 /7 6/7 3 2 Divide every element of the pivot row by the pivot. Next: use matrix methods to make rest of pivot column all s. 4 7

8 Use the pivot row to make the rest of the pivot column all s x s s3 /7 /7 6/7 3 2 new R: R R2 new R3: R3 R2 new R4: R4 + 2R2 Next stage x s s3 2/7 /7 /7 /7 /7 6/7 3/7 /7 8/7 3/7 2/7 2/7 There will be two non-ero entries in the bottom row - they correspond to the independent variables. Setting these variables to tells you what happens at the vertex. 6 8

9 Reading the Vertex x s s3 2/7 /7 /7 /7 /7 6/7 3/7 /7 8/7 3/7 2/7 2/7 set x = and = = 6/7; s = /7; s3 = 8/7 = 2/7 7 Cannot continue - no negative numbers in bottom line (3/7)x + (2/7)() + = 2/7 or = 2/7 (3/7)x (2/7) The maximum possible value of is 2/7 = We are done. 8 9

10 Choose the next pivot Look at the bottom row. choose the most negative element. etc. If there are no negative elements, you are done! 9 You should be able to: determine initial tableau, find pivot element calculate first stage. Example (3 variables) Find the maximum of = 6x + 4x 2 + x 3 subject to the constraints: x + x 2 + x 3 < 2 2x + 2x 2 + 3x 3 < x, x 2, x 3 > 2

11 x Problem - 2 constraints means 2 slack variables x3 s Find the maximum of = 6x + 4x 2 + x 3 subject to the constraints: x + x 2 + x 3 < 2 2x + 2x 2 + 3x 3 < x, x 2, x 3 > Problem - 2 x x3 s

12 Problem - 3 x x3 s Interpret the results: 23 Problem - 4 Interpret the results: x 7 26 x3 2 s At solution, which constraint(s) are equalities? Maximum value of is: Occurs when are ero. Optimal values of x,, x3 are: 24 2

13 Problem - 4 Interpret the results: x 7 26 x3 2 s At solution, which constraint(s) are equalities? Maximum value of is: Occurs when, x3,s are ero. 2 Optimal values of x,, x3 are: 2,, 2 Notice: we are assuming we know the coordinates of a vertex to start with. Using the simplex algorithm with a minimiation problem usually requires two phases: first find a vertex, then proceed as we have done. 26 3

14 Set up the Problem Use The Simplex Method What you need to be able to do: Convert a description to a system of inequalities with an objective function. Decide on the pivot element. Carry out one step of the simplex method by hand - get new bottom row Be able to use Excel to do many steps. Watch the avi demonstration, but print out the next slides for reference. 27 Using Solver in Excel - Set Up Constraint corn wheat limit actual used acres... <=. money for seed <=. man-hrs.. 3. <=. variables.. current values of the varia objective function. 2. coefficients in objective f value of objective function. Enter the formula objective function T You'll need labels in row and in column Numbers entered in the yellow region here are constants - from the problem. For the blue cells you'll enter formulas Put eros in the green cells. The orange cells are just to remind you of the direction of the inequality. 28 4

15 A A B C D E F Constraint corn wheat limit actual used acres... <=. money for seed <=. man-hrs.. 3. <=. variables.. current values of the varia objective function. 2. coefficients in objective f value of objective function. Enter the formula objective function T Objective value is in B Constraints: F3 < D3 F4 < D4 F < D non-negativity: B8 > C8 > 29 Using Solver - Tools Menu (Add-In) 3

16 Setting Constraints in Solver Don t forget to make variables >= Click Add to add another constraint Click OK when done 3 Go to Options Select Assume Linear Model Click OK 32 6

17 Solve and get Answer Report Click OK 33 p Answer Report on Separate Sheet Target Cell (Max) Cell Name Original Value Final Value $B$ value of objective function corn Adjustable Cells Cell Name Original Value Final Value $B$8 variables corn.. $C$8 variables wheat Constraints Cell Name Cell Value Formula Status Slack $F$3 <= actual used 8.7 $F$3<=$D$3 Not Binding 4.29 $F$4 <= actual used 6. $F$4<=$D$4 Binding. $F$ <= actual used 8.7 $F$<=$D$ Not Binding $C$8 variables wheat 8.7 $C$8>= Not Binding 8.7 $B$8 variables corn. $B$8>= Binding. 34 7

How to Solve a Standard Maximization Problem Using the Simplex Method and the Rowops Program

How to Solve a Standard Maximization Problem Using the Simplex Method and the Rowops Program How to Solve a Standard Maximization Problem Using the Simplex Method and the Rowops Program Problem: Maximize z = x + 0x subject to x + x 6 x + x 00 with x 0 y 0 I. Setting Up the Problem. Rewrite each

More information

Linear Programming Terminology

Linear Programming Terminology Linear Programming Terminology The carpenter problem is an example of a linear program. T and B (the number of tables and bookcases to produce weekly) are decision variables. The profit function is an

More information

Mathematics for Business and Economics - I. Chapter7 Linear Inequality Systems and Linear Programming (Lecture11)

Mathematics for Business and Economics - I. Chapter7 Linear Inequality Systems and Linear Programming (Lecture11) Mathematics for Business and Economics - I Chapter7 Linear Inequality Systems and Linear Programming (Lecture11) A linear inequality in two variables is an inequality that can be written in the form Ax

More information

The Simplex Algorithm

The Simplex Algorithm The Simplex Algorithm April 25, 2005 We seek x 1,..., x n 0 which mini- Problem. mizes C(x 1,..., x n ) = c 1 x 1 + + c n x n, subject to the constraint Ax b, where A is m n, b = m 1. Through the introduction

More information

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

Introduction to Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras Introduction to Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras Module 03 Simplex Algorithm Lecture - 03 Tabular form (Minimization) In this

More information

Let s start by examining an Excel worksheet for the linear programming. Maximize P 70x 120y. subject to

Let s start by examining an Excel worksheet for the linear programming. Maximize P 70x 120y. subject to Excel is a useful tool for solving linear programming problems. In this question we ll solve and analyze our manufacturing problem with Excel. Although this problem can easily be solved graphically or

More information

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

Outline. CS38 Introduction to Algorithms. Linear programming 5/21/2014. Linear programming. Lecture 15 May 20, 2014 5/2/24 Outline CS38 Introduction to Algorithms Lecture 5 May 2, 24 Linear programming simplex algorithm LP duality ellipsoid algorithm * slides from Kevin Wayne May 2, 24 CS38 Lecture 5 May 2, 24 CS38

More information

Name: THE SIMPLEX METHOD: STANDARD MAXIMIZATION PROBLEMS

Name: THE SIMPLEX METHOD: STANDARD MAXIMIZATION PROBLEMS Name: THE SIMPLEX METHOD: STANDARD MAXIMIZATION PROBLEMS A linear programming problem consists of a linear objective function to be maximized or minimized subject to certain constraints in the form of

More information

Solving linear programming

Solving linear programming Solving linear programming (From Last week s Introduction) Consider a manufacturer of tables and chairs. They want to maximize profits. They sell tables for a profit of $30 per table and a profit of $10

More information

Lecture 4: Linear Programming

Lecture 4: Linear Programming COMP36111: Advanced Algorithms I Lecture 4: Linear Programming Ian Pratt-Hartmann Room KB2.38: email: ipratt@cs.man.ac.uk 2017 18 Outline The Linear Programming Problem Geometrical analysis The Simplex

More information

Artificial Intelligence

Artificial Intelligence Artificial Intelligence Combinatorial Optimization G. Guérard Department of Nouvelles Energies Ecole Supérieur d Ingénieurs Léonard de Vinci Lecture 1 GG A.I. 1/34 Outline 1 Motivation 2 Geometric resolution

More information

16.410/413 Principles of Autonomy and Decision Making

16.410/413 Principles of Autonomy and Decision Making 16.410/413 Principles of Autonomy and Decision Making Lecture 17: The Simplex Method Emilio Frazzoli Aeronautics and Astronautics Massachusetts Institute of Technology November 10, 2010 Frazzoli (MIT)

More information

4.1 Graphical solution of a linear program and standard form

4.1 Graphical solution of a linear program and standard form 4.1 Graphical solution of a linear program and standard form Consider the problem min c T x Ax b x where x = ( x1 x ) ( 16, c = 5 ), b = 4 5 9, A = 1 7 1 5 1. Solve the problem graphically and determine

More information

Lesson 08 Linear Programming

Lesson 08 Linear Programming Lesson 08 Linear Programming A mathematical approach to determine optimal (maximum or minimum) solutions to problems which involve restrictions on the variables involved. 08 - Linear Programming Applications

More information

Introduction. Linear because it requires linear functions. Programming as synonymous of planning.

Introduction. Linear because it requires linear functions. Programming as synonymous of planning. LINEAR PROGRAMMING Introduction Development of linear programming was among the most important scientific advances of mid-20th cent. Most common type of applications: allocate limited resources to competing

More information

Linear programming II João Carlos Lourenço

Linear programming II João Carlos Lourenço Decision Support Models Linear programming II João Carlos Lourenço joao.lourenco@ist.utl.pt Academic year 2012/2013 Readings: Hillier, F.S., Lieberman, G.J., 2010. Introduction to Operations Research,

More information

I will illustrate the concepts using the example below.

I will illustrate the concepts using the example below. Linear Programming Notes More Tutorials at www.littledumbdoctor.com Linear Programming Notes I will illustrate the concepts using the example below. A farmer plants two crops, oats and corn, on 100 acres.

More information

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

Optimization of Design. Lecturer:Dung-An Wang Lecture 8 Optimization of Design Lecturer:Dung-An Wang Lecture 8 Lecture outline Reading: Ch8 of text Today s lecture 2 8.1 LINEAR FUNCTIONS Cost Function Constraints 3 8.2 The standard LP problem Only equality

More information

CSE 40/60236 Sam Bailey

CSE 40/60236 Sam Bailey CSE 40/60236 Sam Bailey Solution: any point in the variable space (both feasible and infeasible) Cornerpoint solution: anywhere two or more constraints intersect; could be feasible or infeasible Feasible

More information

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

Fundamentals of Operations Research. Prof. G. Srinivasan. Department of Management Studies. Indian Institute of Technology Madras. Fundamentals of Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology Madras Lecture No # 06 Simplex Algorithm Initialization and Iteration (Refer Slide

More information

Lecture 9: Linear Programming

Lecture 9: Linear Programming Lecture 9: Linear Programming A common optimization problem involves finding the maximum of a linear function of N variables N Z = a i x i i= 1 (the objective function ) where the x i are all non-negative

More information

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

Simulation. Lecture O1 Optimization: Linear Programming. Saeed Bastani April 2016 Simulation Lecture O Optimization: Linear Programming Saeed Bastani April 06 Outline of the course Linear Programming ( lecture) Integer Programming ( lecture) Heuristics and Metaheursitics (3 lectures)

More information

Using Linear Programming for Management Decisions

Using Linear Programming for Management Decisions Using Linear Programming for Management Decisions By Tim Wright Linear programming creates mathematical models from real-world business problems to maximize profits, reduce costs and allocate resources.

More information

Solutions for Operations Research Final Exam

Solutions for Operations Research Final Exam Solutions for Operations Research Final Exam. (a) The buffer stock is B = i a i = a + a + a + a + a + a 6 + a 7 = + + + + + + =. And the transportation tableau corresponding to the transshipment problem

More information

Math 414 Lecture 30. The greedy algorithm provides the initial transportation matrix.

Math 414 Lecture 30. The greedy algorithm provides the initial transportation matrix. Math Lecture The greedy algorithm provides the initial transportation matrix. matrix P P Demand W ª «2 ª2 «W ª «W ª «ª «ª «Supply The circled x ij s are the initial basic variables. Erase all other values

More information

Chapter 13-1 Notes Page 1

Chapter 13-1 Notes Page 1 Chapter 13-1 Notes Page 1 Constrained Optimization Constraints We will now consider how to maximize Sales Revenue & Contribution Margin; or minimize costs when dealing with limited resources (constraints).

More information

Math Week in Review #5

Math Week in Review #5 Math 141 Spring 2006 c Heather Ramsey Page 1 Math 141 - Week in Review #5 Section 4.1 - Simplex Method for Standard Maximization Problems A standard maximization problem is a linear programming problem

More information

ORF 307: Lecture 14. Linear Programming: Chapter 14: Network Flows: Algorithms

ORF 307: Lecture 14. Linear Programming: Chapter 14: Network Flows: Algorithms ORF 307: Lecture 14 Linear Programming: Chapter 14: Network Flows: Algorithms Robert J. Vanderbei April 10, 2018 Slides last edited on April 10, 2018 http://www.princeton.edu/ rvdb Agenda Primal Network

More information

Discuss mainly the standard inequality case: max. Maximize Profit given limited resources. each constraint associated to a resource

Discuss mainly the standard inequality case: max. Maximize Profit given limited resources. each constraint associated to a resource Sensitivity Analysis Discuss mainly the standard inequality case: ma s.t. n a i, z n b, i c i,, m s.t.,,, n ma Maimize Profit given limited resources each constraint associated to a resource Alternate

More information

LP Graphic Solution & Solver for LP

LP Graphic Solution & Solver for LP LP Graphic Solution & Excel@ Solver for LP 5X + 3Y = 0 (3) Draw the objective function line on the graph: Any (including the optimal) LP solution has to be part of

More information

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

Advanced Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras Advanced Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras Lecture 16 Cutting Plane Algorithm We shall continue the discussion on integer programming,

More information

Optimization Methods in Management Science

Optimization Methods in Management Science Problem Set Rules: Optimization Methods in Management Science MIT 15.053, Spring 2013 Problem Set 6, Due: Thursday April 11th, 2013 1. Each student should hand in an individual problem set. 2. Discussing

More information

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

Advanced Operations Research Techniques IE316. Quiz 1 Review. Dr. Ted Ralphs Advanced Operations Research Techniques IE316 Quiz 1 Review Dr. Ted Ralphs IE316 Quiz 1 Review 1 Reading for The Quiz Material covered in detail in lecture. 1.1, 1.4, 2.1-2.6, 3.1-3.3, 3.5 Background material

More information

CSC 8301 Design & Analysis of Algorithms: Linear Programming

CSC 8301 Design & Analysis of Algorithms: Linear Programming CSC 8301 Design & Analysis of Algorithms: Linear Programming Professor Henry Carter Fall 2016 Iterative Improvement Start with a feasible solution Improve some part of the solution Repeat until the solution

More information

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

Linear Programming. Presentation for use with the textbook, Algorithm Design and Applications, by M. T. Goodrich and R. Tamassia, Wiley, 2015 Presentation for use with the textbook, Algorithm Design and Applications, by M. T. Goodrich and R. Tamassia, Wiley, 2015 Linear Programming 2015 Goodrich and Tamassia 1 Formulating the Problem q The function

More information

Ahigh school curriculum in Algebra 2 contains both solving systems of linear equations,

Ahigh school curriculum in Algebra 2 contains both solving systems of linear equations, The Simplex Method for Systems of Linear Inequalities Todd O. Moyer, Towson University Abstract: This article details the application of the Simplex Method for an Algebra 2 class. Students typically learn

More information

Systems of Inequalities and Linear Programming 5.7 Properties of Matrices 5.8 Matrix Inverses

Systems of Inequalities and Linear Programming 5.7 Properties of Matrices 5.8 Matrix Inverses 5 5 Systems and Matrices Systems and Matrices 5.6 Systems of Inequalities and Linear Programming 5.7 Properties of Matrices 5.8 Matrix Inverses Sections 5.6 5.8 2008 Pearson Addison-Wesley. All rights

More information

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

BCN Decision and Risk Analysis. Syed M. Ahmed, Ph.D. Linear Programming Module Outline Introduction The Linear Programming Model Examples of Linear Programming Problems Developing Linear Programming Models Graphical Solution to LP Problems The Simplex Method

More information

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

Section Notes 4. Duality, Sensitivity, and the Dual Simplex Algorithm. Applied Math / Engineering Sciences 121. Week of October 8, 2018 Section Notes 4 Duality, Sensitivity, and the Dual Simplex Algorithm Applied Math / Engineering Sciences 121 Week of October 8, 2018 Goals for the week understand the relationship between primal and dual

More information

Linear Programming Problems

Linear Programming Problems Linear Programming Problems Two common formulations of linear programming (LP) problems are: min Subject to: 1,,, 1,2,,;, max Subject to: 1,,, 1,2,,;, Linear Programming Problems The standard LP problem

More information

Math-2. Lesson 3-1. Equations of Lines

Math-2. Lesson 3-1. Equations of Lines Math-2 Lesson 3-1 Equations of Lines How can an equation make a line? y = x + 1 x -4-3 -2-1 0 1 2 3 Fill in the rest of the table rule x + 1 f(x) -4 + 1-3 -3 + 1-2 -2 + 1-1 -1 + 1 0 0 + 1 1 1 + 1 2 2 +

More information

Linear Programming. them such that they

Linear Programming. them such that they Linear Programming l Another "Sledgehammer" in our toolkit l Many problems fit into the Linear Programming approach l These are optimization tasks where both the constraints and the objective are linear

More information

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

Section Notes 5. Review of Linear Programming. Applied Math / Engineering Sciences 121. Week of October 15, 2017 Section Notes 5 Review of Linear Programming Applied Math / Engineering Sciences 121 Week of October 15, 2017 The following list of topics is an overview of the material that was covered in the lectures

More information

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

Linear Programming. Linear programming provides methods for allocating limited resources among competing activities in an optimal way. University of Southern California Viterbi School of Engineering Daniel J. Epstein Department of Industrial and Systems Engineering ISE 330: Introduction to Operations Research - Deterministic Models Fall

More information

1.1 calculator viewing window find roots in your calculator 1.2 functions find domain and range (from a graph) may need to review interval notation

1.1 calculator viewing window find roots in your calculator 1.2 functions find domain and range (from a graph) may need to review interval notation 1.1 calculator viewing window find roots in your calculator 1.2 functions find domain and range (from a graph) may need to review interval notation functions vertical line test function notation evaluate

More information

Section 18-1: Graphical Representation of Linear Equations and Functions

Section 18-1: Graphical Representation of Linear Equations and Functions Section 18-1: Graphical Representation of Linear Equations and Functions Prepare a table of solutions and locate the solutions on a coordinate system: f(x) = 2x 5 Learning Outcome 2 Write x + 3 = 5 as

More information

Concept: Solving Inequalities Name:

Concept: Solving Inequalities Name: Concept: Solving Inequalities Name: You should have completed Equations Section 7 Part A: Solving Inequalities before beginning this handout. COMPUTER COMPONENT Instructions: In follow the Content Menu

More information

Chapter 4. Linear Programming

Chapter 4. Linear Programming Chapter 4 Linear Programming For All Practical Purposes: Effective Teaching Occasionally during the semester remind students about your office hours. Some students can perceive that they are bothering

More information

What s Linear Programming? Often your try is to maximize or minimize an objective within given constraints

What s Linear Programming? Often your try is to maximize or minimize an objective within given constraints Linear Programming What s Linear Programming? Often your try is to maximize or minimize an objective within given constraints A linear programming problem can be expressed as a linear function of certain

More information

Select the Points You ll Use. Tech Assignment: Find a Quadratic Function for College Costs

Select the Points You ll Use. Tech Assignment: Find a Quadratic Function for College Costs In this technology assignment, you will find a quadratic function that passes through three of the points on each of the scatter plots you created in an earlier technology assignment. You will need the

More information

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

Lecture notes on the simplex method September We will present an algorithm to solve linear programs of the form. maximize. Cornell University, Fall 2017 CS 6820: Algorithms Lecture notes on the simplex method September 2017 1 The Simplex Method We will present an algorithm to solve linear programs of the form maximize subject

More information

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

Introduction to Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras Introduction to Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras Module - 05 Lecture - 24 Solving LPs with mixed type of constraints In the

More information

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

The Simplex Algorithm. Chapter 5. Decision Procedures. An Algorithmic Point of View. Revision 1.0 The Simplex Algorithm Chapter 5 Decision Procedures An Algorithmic Point of View D.Kroening O.Strichman Revision 1.0 Outline 1 Gaussian Elimination 2 Satisfiability with Simplex 3 General Simplex Form

More information

Math Introduction to Operations Research

Math Introduction to Operations Research Math 300 Introduction to Operations Research Examination (50 points total) Solutions. (6 pt total) Consider the following linear programming problem: Maximize subject to and x, x, x 3 0. 3x + x + 5x 3

More information

Technique or Feature Where Introduced

Technique or Feature Where Introduced Part 6: Keypad 4 Mirrored features Patterned features First extrusion Rounded corners In the earpiece part, you defined a radial pattern, one that created new instances of a feature at intervals around

More information

Question 2: How do you solve a linear programming problem with a graph?

Question 2: How do you solve a linear programming problem with a graph? Question : How do you solve a linear programming problem with a graph? Now that we have several linear programming problems, let s look at how we can solve them using the graph of the system of inequalities.

More information

9.1 Linear Inequalities in Two Variables Date: 2. Decide whether to use a solid line or dotted line:

9.1 Linear Inequalities in Two Variables Date: 2. Decide whether to use a solid line or dotted line: 9.1 Linear Inequalities in Two Variables Date: Key Ideas: Example Solve the inequality by graphing 3y 2x 6. steps 1. Rearrange the inequality so it s in mx ± b form. Don t forget to flip the inequality

More information

WEEK 4 REVIEW. Graphing Systems of Linear Inequalities (3.1)

WEEK 4 REVIEW. Graphing Systems of Linear Inequalities (3.1) WEEK 4 REVIEW Graphing Systems of Linear Inequalities (3.1) Linear Programming Problems (3.2) Checklist for Exam 1 Review Sample Exam 1 Graphing Linear Inequalities Graph the following system of inequalities.

More information

Vertical Line Test a relationship is a function, if NO vertical line intersects the graph more than once

Vertical Line Test a relationship is a function, if NO vertical line intersects the graph more than once Algebra 2 Chapter 2 Domain input values, X (x, y) Range output values, Y (x, y) Function For each input, there is exactly one output Example: Vertical Line Test a relationship is a function, if NO vertical

More information

San Francisco State University

San Francisco State University San Francisco State University Michael Bar Instructions for Excel 1. Plotting analytical function. 2 Suppose that you need to plot the graph of a function f ( x) = x on the interval [ 5,5]. Step 1: make

More information

Matrices and Systems of Equations

Matrices and Systems of Equations 1 CA-Fall 2011-Jordan College Algebra, 4 th edition, Beecher/Penna/Bittinger, Pearson/Addison Wesley, 2012 Chapter 6: Systems of Equations and Matrices Section 6.3 Matrices and Systems of Equations Matrices

More information

MATH SPEAK - TO BE UNDERSTOOD AND MEMORIZED DETERMINING THE INTERSECTIONS USING THE GRAPHING CALCULATOR

MATH SPEAK - TO BE UNDERSTOOD AND MEMORIZED DETERMINING THE INTERSECTIONS USING THE GRAPHING CALCULATOR FOM 11 T15 INTERSECTIONS & OPTIMIZATION PROBLEMS - 1 1 MATH SPEAK - TO BE UNDERSTOOD AND MEMORIZED 1) INTERSECTION = a set of coordinates of the point on the grid where two or more graphed lines touch

More information

Friday 5 June 2015 Morning

Friday 5 June 2015 Morning Oxford Cambridge and RSA Friday 5 June 2015 Morning AS GCE MATHEMATICS 4736/01 Decision Mathematics 1 QUESTION PAPER * 3 2 4 8 7 7 8 5 4 8 * Candidates answer on the Printed Answer Book. OCR supplied materials:

More information

Chapter 3: Towards the Simplex Method for Efficient Solution of Linear Programs

Chapter 3: Towards the Simplex Method for Efficient Solution of Linear Programs Chapter 3: Towards the Simplex Method for Efficient Solution of Linear Programs The simplex method, invented by George Dantzig in 1947, is the basic workhorse for solving linear programs, even today. While

More information

More Ways to Solve & Graph Quadratics The Square Root Property If x 2 = a and a R, then x = ± a

More Ways to Solve & Graph Quadratics The Square Root Property If x 2 = a and a R, then x = ± a More Ways to Solve & Graph Quadratics The Square Root Property If x 2 = a and a R, then x = ± a Example: Solve using the square root property. a) x 2 144 = 0 b) x 2 + 144 = 0 c) (x + 1) 2 = 12 Completing

More information

Chapter 4 Linear Programming

Chapter 4 Linear Programming Chapter Objectives Check off these skills when you feel that you have mastered them. From its associated chart, write the constraints of a linear programming problem as linear inequalities. List two implied

More information

Chapter 4: The Mechanics of the Simplex Method

Chapter 4: The Mechanics of the Simplex Method Chapter 4: The Mechanics of the Simplex Method The simplex method is a remarkably simple and elegant algorithmic engine for solving linear programs. In this chapter we will examine the internal mechanics

More information

Transportation Problems

Transportation Problems Transportation Problems Transportation is considered as a special case of LP Reasons? it can be formulated using LP technique so is its solution 1 (to p2) Here, we attempt to firstly define what are them

More information

Unit 3, Lesson 3.1 Creating and Graphing Equations Using Standard Form

Unit 3, Lesson 3.1 Creating and Graphing Equations Using Standard Form Unit 3, Lesson 3.1 Creating and Graphing Equations Using Standard Form Imagine the path of a basketball as it leaves a player s hand and swooshes through the net. Or, imagine the path of an Olympic diver

More information

Using the Simplex Method to Solve Linear Programming Maximization Problems J. Reeb and S. Leavengood

Using the Simplex Method to Solve Linear Programming Maximization Problems J. Reeb and S. Leavengood PERFORMANCE EXCELLENCE IN THE WOOD PRODUCTS INDUSTRY EM 8720-E October 1998 $3.00 Using the Simplex Method to Solve Linear Programming Maximization Problems J. Reeb and S. Leavengood A key problem faced

More information

Concept: Solving Inequalities Name:

Concept: Solving Inequalities Name: Concept: Solving Inequalities Name: You should have completed Equations Section 7 Part A: Solving Inequalities before beginning this handout. COMPUTER COMPONENT Instructions: In follow the Content Menu

More information

Important Things to Remember on the SOL

Important Things to Remember on the SOL Notes Important Things to Remember on the SOL Evaluating Expressions *To evaluate an expression, replace all of the variables in the given problem with the replacement values and use (order of operations)

More information

Lesson 17. Geometry and Algebra of Corner Points

Lesson 17. Geometry and Algebra of Corner Points SA305 Linear Programming Spring 2016 Asst. Prof. Nelson Uhan 0 Warm up Lesson 17. Geometry and Algebra of Corner Points Example 1. Consider the system of equations 3 + 7x 3 = 17 + 5 = 1 2 + 11x 3 = 24

More information

A Survey of Software Packages for Teaching Linear and Integer Programming

A Survey of Software Packages for Teaching Linear and Integer Programming A Survey of Software Packages for Teaching Linear and Integer Programming By Sergio Toledo Spring 2018 In Partial Fulfillment of Math (or Stat) 4395-Senior Project Department of Mathematics and Statistics

More information

Systems of Equations and Inequalities. Copyright Cengage Learning. All rights reserved.

Systems of Equations and Inequalities. Copyright Cengage Learning. All rights reserved. 5 Systems of Equations and Inequalities Copyright Cengage Learning. All rights reserved. 5.5 Systems of Inequalities Copyright Cengage Learning. All rights reserved. Objectives Graphing an Inequality Systems

More information

Chapter II. Linear Programming

Chapter II. Linear Programming 1 Chapter II Linear Programming 1. Introduction 2. Simplex Method 3. Duality Theory 4. Optimality Conditions 5. Applications (QP & SLP) 6. Sensitivity Analysis 7. Interior Point Methods 1 INTRODUCTION

More information

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

Advanced Operations Research Techniques IE316. Quiz 2 Review. Dr. Ted Ralphs Advanced Operations Research Techniques IE316 Quiz 2 Review Dr. Ted Ralphs IE316 Quiz 2 Review 1 Reading for The Quiz Material covered in detail in lecture Bertsimas 4.1-4.5, 4.8, 5.1-5.5, 6.1-6.3 Material

More information

Lecture 14. Resource Allocation involving Continuous Variables (Linear Programming) 1.040/1.401/ESD.018 Project Management.

Lecture 14. Resource Allocation involving Continuous Variables (Linear Programming) 1.040/1.401/ESD.018 Project Management. 1.040/1.401/ESD.018 Project Management Lecture 14 Resource Allocation involving Continuous Variables (Linear Programming) April 2, 2007 Samuel Labi and Fred Moavenzadeh Massachusetts Institute of Technology

More information

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

Linear and Integer Programming :Algorithms in the Real World. Related Optimization Problems. How important is optimization? Linear and Integer Programming 15-853:Algorithms in the Real World Linear and Integer Programming I Introduction Geometric Interpretation Simplex Method Linear or Integer programming maximize z = c T x

More information

ISE203 Optimization 1 Linear Models. Dr. Arslan Örnek Chapter 4 Solving LP problems: The Simplex Method SIMPLEX

ISE203 Optimization 1 Linear Models. Dr. Arslan Örnek Chapter 4 Solving LP problems: The Simplex Method SIMPLEX ISE203 Optimization 1 Linear Models Dr. Arslan Örnek Chapter 4 Solving LP problems: The Simplex Method SIMPLEX Simplex method is an algebraic procedure However, its underlying concepts are geometric Understanding

More information

Econ 172A - Slides from Lecture 8

Econ 172A - Slides from Lecture 8 1 Econ 172A - Slides from Lecture 8 Joel Sobel October 23, 2012 2 Announcements Important: Midterm seating assignments. Posted tonight. Corrected Answers to Quiz 1 posted. Quiz 2 on Thursday at end of

More information

MAC Rev.S Learning Objectives. Learning Objectives (Cont.) Module 4 Quadratic Functions and Equations

MAC Rev.S Learning Objectives. Learning Objectives (Cont.) Module 4 Quadratic Functions and Equations MAC 1140 Module 4 Quadratic Functions and Equations Learning Objectives Upon completing this module, you should be able to 1. understand basic concepts about quadratic functions and their graphs.. complete

More information

1. Sorting (assuming sorting into ascending order) a) BUBBLE SORT

1. Sorting (assuming sorting into ascending order) a) BUBBLE SORT DECISION 1 Revision Notes 1. Sorting (assuming sorting into ascending order) a) BUBBLE SORT Make sure you show comparisons clearly and label each pass First Pass 8 4 3 6 1 4 8 3 6 1 4 3 8 6 1 4 3 6 8 1

More information

Linear optimization. Linear programming using the Simplex method. Maximize M = 40 x x2. subject to: 2 x1 + x2 70 x1 + x2 40 x1 + 3 x2 90.

Linear optimization. Linear programming using the Simplex method. Maximize M = 40 x x2. subject to: 2 x1 + x2 70 x1 + x2 40 x1 + 3 x2 90. Linear optimization Linear programming using the Simplex method Maximize M = 40 x + 60 x2 subject to: 2 x + x2 70 x + x2 40 x + 3 x2 90 x 0 Here are the constraints 2 simplexnotes.nb constraints = Plot@870-2

More information

Notes Packet on Quadratic Functions and Factoring Graphing quadratic equations in standard form, vertex form, and intercept form.

Notes Packet on Quadratic Functions and Factoring Graphing quadratic equations in standard form, vertex form, and intercept form. Notes Packet on Quadratic Functions and Factoring Graphing quadratic equations in standard form, vertex form, and intercept form. A. Intro to Graphs of Quadratic Equations:! = ax + bx + c A is a function

More information

Notes for Lecture 18

Notes for Lecture 18 U.C. Berkeley CS17: Intro to CS Theory Handout N18 Professor Luca Trevisan November 6, 21 Notes for Lecture 18 1 Algorithms for Linear Programming Linear programming was first solved by the simplex method

More information

CS483 Analysis of Algorithms Lecture 09 Linear Programming 01

CS483 Analysis of Algorithms Lecture 09 Linear Programming 01 CS483 Analysis of Algorithms Lecture 09 Linear Programming 01 Jyh-Ming Lien April 09, 2009 this lecture note is based on Algorithms by S. Dasgupta, C.H. Papadimitriou, and U.V. Vazirani and to the Design

More information

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

DM545 Linear and Integer Programming. Lecture 2. The Simplex Method. Marco Chiarandini DM545 Linear and Integer Programming Lecture 2 The Marco Chiarandini Department of Mathematics & Computer Science University of Southern Denmark Outline 1. 2. 3. 4. Standard Form Basic Feasible Solutions

More information

Optimization. A first course on mathematics for economists Problem set 6: Linear programming

Optimization. A first course on mathematics for economists Problem set 6: Linear programming Optimization. A first course on mathematics for economists Problem set 6: Linear programming Xavier Martinez-Giralt Academic Year 2015-2016 6.1 A company produces two goods x and y. The production technology

More information

1 GIAPETTO S WOODCARVING PROBLEM

1 GIAPETTO S WOODCARVING PROBLEM 1 GIAPETTO S WOODCARVING PROBLEM EZGİ ÇALLI OBJECTIVES CCSS.MATH.CONTENT.HSA.REI.D.12: Graph the solutions to a linear inequality in two variables as a half-plane (excluding the boundary in the case of

More information

Some Advanced Topics in Linear Programming

Some Advanced Topics in Linear Programming Some Advanced Topics in Linear Programming Matthew J. Saltzman July 2, 995 Connections with Algebra and Geometry In this section, we will explore how some of the ideas in linear programming, duality theory,

More information

Chapter 1. Linear Equations and Straight Lines. 2 of 71. Copyright 2014, 2010, 2007 Pearson Education, Inc.

Chapter 1. Linear Equations and Straight Lines. 2 of 71. Copyright 2014, 2010, 2007 Pearson Education, Inc. Chapter 1 Linear Equations and Straight Lines 2 of 71 Outline 1.1 Coordinate Systems and Graphs 1.4 The Slope of a Straight Line 1.3 The Intersection Point of a Pair of Lines 1.2 Linear Inequalities 1.5

More information

Convex Optimization CMU-10725

Convex Optimization CMU-10725 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/

More information

Linear Programming Problems: Geometric Solutions

Linear Programming Problems: Geometric Solutions Linear Programming Problems: Geometric s Terminology Linear programming problems: problems where we must find the optimum (minimum or maximum) value of a function, subject to certain restrictions. Objective

More information

CHAPTER 11: BASIC LINEAR PROGRAMMING CONCEPTS

CHAPTER 11: BASIC LINEAR PROGRAMMING CONCEPTS Linear programming is a mathematical technique for finding optimal solutions to problems that can be expressed using linear equations and inequalities. If a real-world problem can be represented accurately

More information

The x-intercept can be found by setting y = 0 and solving for x: 16 3, 0

The x-intercept can be found by setting y = 0 and solving for x: 16 3, 0 y=-3/4x+4 and y=2 x I need to graph the functions so I can clearly describe the graphs Specifically mention any key points on the graphs, including intercepts, vertex, or start/end points. What is the

More information

Quadratic Functions. *These are all examples of polynomial functions.

Quadratic Functions. *These are all examples of polynomial functions. Look at: f(x) = 4x-7 f(x) = 3 f(x) = x 2 + 4 Quadratic Functions *These are all examples of polynomial functions. Definition: Let n be a nonnegative integer and let a n, a n 1,..., a 2, a 1, a 0 be real

More information

2.6: Solving Systems of Linear Inequalities

2.6: Solving Systems of Linear Inequalities Quick Review 2.6: Solving Systems of Linear Inequalities = - What is the difference between an equation and an inequality? Which one is shaded? Inequality - When is the line solid?, - When is the line

More information

4.1 The original problem and the optimal tableau

4.1 The original problem and the optimal tableau Chapter 4 Sensitivity analysis The sensitivity analysis is performed after a given linear problem has been solved, with the aim of studying how changes to the problem affect the optimal solution In particular,

More information

3 INTEGER LINEAR PROGRAMMING

3 INTEGER LINEAR PROGRAMMING 3 INTEGER LINEAR PROGRAMMING PROBLEM DEFINITION Integer linear programming problem (ILP) of the decision variables x 1,..,x n : (ILP) subject to minimize c x j j n j= 1 a ij x j x j 0 x j integer n j=

More information