SOLVING LINEAR PROGRAMS Dr. Ron Lembke. Solving LPs Need a more formal method How to find points to solve for? A picture is worth a thousand words.

Slides:



Advertisements
Similar presentations
Solve a System Algebraically
Advertisements

© 2003 Anita Lee-Post Linear Programming Part 2 By Anita Lee-Post.
Linear Programming Graphical Solution Procedure. Two Variable Linear Programs When a linear programming model consists of only two variables, a graphical.
Linear Programming Operations Management Dr. Ron Tibben-Lembke.
Operations Management Dr. Ron Lembke
6s-1Linear Programming CHAPTER 6s Linear Programming.
Foundations for LP Sean Eom. In this course, LP is the foundation of all other quantitative models. Study of LP and related techniques (Integer LP and.
Section 12.0 Review of Linear Inequalities
LINEAR EQUATION IN TWO VARIABLES. System of equations or simultaneous equations – System of equations or simultaneous equations – A pair of linear equations.
Chapter 3 An Introduction to Linear Programming
3.2 Solving Systems Algebraically 2. Solving Systems by Elimination.
Drill Solve the linear system by substitution. 1.y = 6x – 11 -2x – 3y = x + y = 6 -5x – y = 21.
Systems of Equations and Inequalities
Thinking Mathematically Algebra: Graphs, Functions and Linear Systems 7.3 Systems of Linear Equations In Two Variables.
Linear Systems of Equations
Algebra 2 Chapter 3 Notes Systems of Linear Equalities and Inequalities Algebra 2 Chapter 3 Notes Systems of Linear Equalities and Inequalities.
Algebra 2 Chapter 3 Notes Systems of Linear Equalities and Inequalities Algebra 2 Chapter 3 Notes Systems of Linear Equalities and Inequalities.
Linear Systems Two or more unknown quantities that are related to each other can be described by a “system of equations”. If the equations are linear,
1 1 Slide © 2005 Thomson/South-Western Slides Prepared by JOHN S. LOUCKS ST. EDWARD’S UNIVERSITY.
1 1 Slide Linear Programming (LP) Problem n A mathematical programming problem is one that seeks to maximize an objective function subject to constraints.
Linear Programming – Simplex Method
Goal: Solve a system of linear equations in two variables by the linear combination method.
1 Max 8X 1 + 5X 2 (Weekly profit) subject to 2X 1 + 1X 2  1000 (Plastic) 3X 1 + 4X 2  2400 (Production Time) X 1 + X 2  700 (Total production) X 1.
Linear Programming Problem. Definition A linear programming problem is the problem of optimizing (maximizing or minimizing) a linear function (a function.
Chapter 2 Introduction to Linear Programming n Linear Programming Problem n Problem Formulation n A Maximization Problem n Graphical Solution Procedure.
Monday WARM-UP: TrueFalseStatementCorrected Statement F 1. Constraints are conditions written as a system of equations Constraints are conditions written.
3-2 Solving Linear Systems Algebraically Objective: CA 2.0: Students solve system of linear equations in two variables algebraically.
7.4. 5x + 2y = 16 5x + 2y = 16 3x – 4y = 20 3x – 4y = 20 In this linear system neither variable can be eliminated by adding the equations. In this linear.
Do Now (3x + y) – (2x + y) 4(2x + 3y) – (8x – y)
Example 3.2 Graphical Solution Method | 3.1a | a3.3 Background Information n The Monet Company produces two type of picture frames, which.
6.2 Solve a System by Using Linear Combinations
MAT 150 Module 10 – Systems of Equations Lesson 1 – Systems of Linear Equations.
Kerimcan OzcanMNGT 379 Operations Research1 Linear Programming Chapter 2.
SOLVING SYSTEMS USING ELIMINATION 6-3. Solve the linear system using elimination. 5x – 6y = -32 3x + 6y = 48 (2, 7)
Algebra Review. Systems of Equations Review: Substitution Linear Combination 2 Methods to Solve:
Elementary Row Operations Interchange two equations Multiply one equation by a nonzero constant Add a multple of one equation to another equation.
Example 3.2 Graphical Solution Method | 3.1a | a3.3 Background Information n To illustrate the graphical approach, we will use a slightly.
1 1 Slide Graphical solution A Graphical Solution Procedure (LPs with 2 decision variables can be solved/viewed this way.) 1. Plot each constraint as an.
Linear Programming Operations Management Dr. Ron Lembke.
Solving Pairs of Linear Equations—Lots of Ways!
An Introduction to Linear Programming
2.1 Solving Systems of Equations
6) x + 2y = 2 x – 4y = 14.
Systems of Equations An Introduction.
An Introduction to Linear Programming Pertemuan 4
4.3 Determinants and Cramer’s Rule
Solving By Substitution
3.2 Solve Linear Systems Algebraically
Warm up Graph y = 3x – 4 y = -2x + 11 on your graphing calculator.
6-2 Solving Systems Using Substitution
Linear Systems Chapter 3.
Solving Linear Systems Algebraically
Introduction to Algebra
4.3 Determinants and Cramer’s Rule
Lesson 7.1 How do you solve systems of linear equations by graphing?
Non - Graphical Solution of Simultaneous Equations
What is the x-intercept?
Simultaneous Equations
2.1 Solving Systems of Equations
Graphical Solution Procedure
Max Z = x1 + x2 2 x1 + 3 x2  6 (1) x2  1.5 (2) x1 - x2  2 (3)
Solve Linear Equations by Elimination
Simultaneous Equations
SYSTEMS OF EQUATIONS.
SIMULTANEOUS EQUATIONS 1
Linear Programming Problem
1.7 - Exploring Linear Systems
Graphical solution A Graphical Solution Procedure (LPs with 2 decision variables can be solved/viewed this way.) 1. Plot each constraint as an equation.
Solving systems of 3 equations in 3 variables
Presentation transcript:

SOLVING LINEAR PROGRAMS Dr. Ron Lembke

Solving LPs Need a more formal method How to find points to solve for? A picture is worth a thousand words

Standard Form Linear programs are written the following way: Max20S+25T s.t.0.5S+0.2T<= S+0.5T<=56 S>=0 T>=0 Space Time

Graphical Solution Sweatshirts T-shirts T S Draw a picture to represent the feasible combinations of S and T, that meet all of the constraints, and find the best point Draw a line of all points that would exactly use up all of the space, and a line of all the points that would exactly use up all of the time

Endpoints of constraints Space:0.5S+0.2T<=40 If S=0, then 0.2T=40, so T=200 (0,200) If T=0, then 0.5S=40, so S=80 (80,0) Time: 0.25S+0.5T<=56 If S=0, 0.5T=56, so T=112(0,112) If T=0, 0.25S=56, so S=224(224,0) Hey! These look familiar!

Graphical Solution Sweatshirts T-shirts T S Draw a line to represent Space constraint Space Constraint S=0, T=200 S=80, T=0

Graphical Solution Sweatshirts T-shirts T S Draw a line to represent Time constraint Time Constraint S=0, T=112 S=224, T=0

Graphical Solution Sweatshirts T-shirts T S Green area satisfies all constraints “Feasible Region” Time Constraint S=0, T=112 Space S=80, T=

Graphical Solution Sweatshirts T-shirts T S Last time, we started at (0,112) in search of a better solution. We traded 1 T for 2S, which kept the amount of time used constant, and kept doing that until we used up all of the space (that is, hit the space constraint). Time Constraint S=0, T=112 Space S=80, T=

Graphical Solution Sweatshirts T-shirts T S Where do constraints intersect? Where the lines cross - the point is on both 0.5S T= S + 0.5T= 56 So for S and T. Two equations, two unknowns Algebra! Woohoo!! Time Constraint S=0, T=112 Space S=80, T=

Graphical Solution Sweatshirts T-shirts T S Multiply one (or both) to get same coefficients 0.5S T=40 [0.25S+ 0.5T =56] x2 becomes 0.5S + 1 T = 112 -[0.5S + 0.2T = 40] subtract the first one S + 0.8T = 72, so T = 72/0.8 = 90 Substitute into any of the three equations: 0.5S + 0.2*90 = 40, so 0.5S = = 22 So S =22/0.5 = 44 Optimal = (44, 90) Time S=0, T=112 Space S=80, T=

Evaluate Profits at Intersection Points Sweatshirts T-shirts T S S = 44, T=90 Z=20* *90 = = 3,130 Time S=0, T=112 Z=20*0+25*112 = 2,800 Space S=80, T=0 Z=20*80 +25*0 =

Edge Points Better than Interior Points A BC A has to be better than B C has to be better than B To figure out if A or C is better, have to evaluate the objective function at both.

Corner Points Better than Middle Edge E D F IF E is better than D, then F will be better than D or E Or, IF E is better than F, D will be better than E or F. Using same logic, either F or H has to be better than G. One has to be better than G. G H

Find all the Corner Points of Feasible Space There can be many, many constraints. Find the feasible space. Ignore constraints that don’t border it. Constraints can be vertical or horizontal.

Solution Method (For 2 variables only) 1. Find end points of each constraint 2. Draw constraints 3. Figure out which intersections are interesting 4. Use algebra to solve for intersection pts 5. Find profits (or costs) of intersections 6. Choose the best one