LINEAR PROGRAMMING FORMULATION AND GRAPHIC METHOD DEFINITION Mathematical











































- Slides: 43

LINEAR PROGRAMMING FORMULATION AND GRAPHIC METHOD

DEFINITION ØMathematical technique for optimizing the use of constrained resources, where the relationship between variables is linear.

LP Linear Programming Linear – relationship between two or more variables which is directly and precisly proportional. Programming – refers to use of certain mathematical techniques to get the best possible solution to a given problem involving limited resources.

Basic Requirements Decision variables and their relationships should be linear. Ø Objective function should be well defined Ø Presence of Constraints Ø Alternative course of action Ø Non negative restrictions Ø Linearity: Both Objective and Constraints must be expressed in Linear equations/inequalities. Ø

Terminology Decision variables – variables directly under the control of decision maker. Ø Objective function – An expression showing relationship between decision variables and organization's objectives. Ø Constraints – Limit or restriction on the availability of resources. Ø Non – negativity constraint – The decision variables must not assume negative values which is impossible situation. Ø Feasible region – The region which is common to all the constraints of given LPP. Ø

Ø Basic Solution – A solution of basic variables, where the values of non-basic variables are zero. Ø Feasible Solution – A solution satisfying all constraints and non-negativity restriction of a LPP. Ø Basic Feasible Solution – A basic solution, where the values of basic variables are non -negative. Ø Optimal Solution – A basic feasible solution which also optimizes the objective function.

Assumptions Ø Ø Ø Proportionality: l Proportionality/Linearity exists in Objective and Constraints Additivity: l Total resources used must equal sum of resources used in individual activity Divisibility: l Solution need not be whole numbers and may take up fractional value. Certainty: l Co-efficients are known (Deterministic) Finiteness: l Finite number of alternative solutions

Applications of LPP Industry Ø Management l Product Mix l Portfolio Selection l Production Smoothing l Financial Mix l Blending l Media Selection l Production l Manpower Planning Scheduling l Transportation l Trim Loss l Job Allocation Ø Miscellaneous l Travelling Salesman l Diet Problems l Farm Planning l Airline Routing l Facility Location Ø

Problem Formulation Ø Problem formulation or modeling is the process of translating a verbal statement of a problem into a mathematical statement.

LP Model Formulation Max/min z = c 1 x 1 + c 2 x 2 +. . . + cnxn subject to: a 11 x 1 + a 12 x 2 +. . . + a 1 nxn (≤, =, ≥) b 1 a 21 x 1 + a 22 x 2 +. . . + a 2 nxn (≤, =, ≥) b 2 : am 1 x 1 + am 2 x 2 +. . . + amnxn (≤, =, ≥) bm xj = decision variables bi = constraint levels cj = objective function coefficients aij = constraint coefficients

Guidelines for Model Formulation Ø Understand the problem thoroughly. Ø Describe the objective. Ø Describe each constraint. Ø Define the decision variables. Ø Write the objective in terms of the decision variables. Ø Write the constraints in terms of the decision variables.

Linear Programming Problem Ø A firm producing 2 products P 1 and P 2. Each unit of P 1 requires 1 kg material A, 2 kg of material B and 1 unit of labor. Each unit of P 2 requires 3 kg of material B and 1 unit of labor. Each week firm has availability of 6 kg of material A, 19 kg of material B and 8 units of labor. One unit of P 1 sold earn profit of Rs. 5 and P 2 earns profit of Rs 7. How many units of each product is to be produced so as to give the maximum profit.

A Maximization Problem Ø LP Formulation Max Z = 5 x 1 + 7 x 2 (Profit function) s. t. x 1 < 6 2 x 1 + 3 x 2 < 19 x 1 + x 2 < 8 x 1, x 2 > 0 (Material A Constraint) (Material B Constraint) (Labor Constraint) (Non-negativity constraint)

Graphic Method of solving LPP Formulate linear programming problem. Ø Each inequality in the constraints may be written as equality. Ø Plot the constraint lines considering them as equations. Ø Identify the feasible solution region. Ø Locate the corner points of the feasible region. Ø Calculate the value of objective function on the corner points. Ø Choose the point where the objective function has optimal value. Ø

Graphical Solution Ø Constraint #1 Graphed x 2 8 7 x 1 < 6 6 5 4 3 2 (6, 0) 1 1 2 3 4 5 6 7 8 9 10 x 1

Graphical Solution Ø Constraint #2 Graphed x 2 8 (0, 6 1/3) 7 6 5 2 x 1 + 3 x 2 < 19 4 3 (9 1/2, 0) 2 1 1 2 3 4 5 6 7 8 9 10 x 1

Graphical Solution Ø Constraint #3 Graphed x 2 (0, 8) 8 7 x 1 + x 2 < 8 6 5 4 3 2 (8, 0) 1 1 2 3 4 5 6 7 8 9 10 x 1

Graphical Solution Ø Combined-Constraint Graph x 2 x 1 + x 2 < 8 8 7 x 1 < 6 6 5 4 2 x 1 + 3 x 2 < 19 3 2 1 1 2 3 4 5 6 7 8 9 10 x 1

Graphical Solution Ø Feasible Solution Region x 2 8 7 6 5 4 3 Feasible Region 2 1 1 2 3 4 5 6 7 8 9 10 x 1

Example 1: Graphical Solution x 2 Ø The Five Extreme Points 8 7 A 6 5 4 B 3 Feasible Region 2 1 C E D 1 2 3 4 5 6 7 8 9 10 x 1

Evaluation of objective function at feasible region corner points Coordinates Objective function Z = 5 x 1 + 7 x 2 Value A (0, 6. 33) 5(0)+7(6. 33) 44. 31 B (5, 3) 5(5)+7(3) 46 C (6, 2) 5(6)+7(2) 44 D (6, 0) 5(6)+7(0) 30 E (0, 0) 5(0)+7(0) 0 Since Z has maximum value at point B (5, 3), so x 1 = 5, x 2 = 3 Where profit is Rs 46.

Alternate Solution by extreme points Ø Objective Function Line x 2 8 7 (0, 5) 6 Objective Function 5 x 1 + 7 x 2 = 35 5 4 3 2 (7, 0) 1 1 2 3 4 5 6 7 8 9 10 x 1

Alternate Graphical Solution Ø Optimal Solution x 2 Objective Function 5 x 1 + 7 x 2 = 46 8 7 Optimal Solution (x 1 = 5, x 2 = 3) 6 5 4 3 2 1 1 2 3 4 5 6 7 8 9 10 x 1

Extreme Points and the Optimal Solution Ø The corners or vertices of the feasible region are referred to as the extreme points. Ø An optimal solution to an LP problem can be found at an extreme point of the feasible region. Ø When looking for the optimal solution, you do not have to evaluate all feasible solution points. Ø You have to consider only the extreme points of the feasible region.

Summary of the Graphical Solution Procedure for Maximization Problems Prepare a graph of the feasible solutions for each of the constraints. Ø Determine the feasible region that satisfies all the constraints simultaneously. Ø Draw an objective function line. Ø Move parallel objective function lines toward larger objective function values without entirely leaving the feasible region. Ø Any feasible solution on the objective function line with the largest value is an optimal solution. Ø

Minimization Problem Min Z = 5 x 1 + 2 x 2 Subject to constraints 2 x 1 + 5 x 2 > 10 4 x 1 - x 2 > 12 x 1 + x 2 > 4 x 1, x 2 > 0

Ø Graphical Solution Graph the Constraints Constraint 1: When x 1 = 0, then x 2 = 2; when x 2 = 0, then x 1 = 5. Connect (5, 0) and (0, 2). The ">" side is above this line. Constraint 2: When x 2 = 0, then x 1 = 3. But setting x 1 to 0 will yield x 2 = -12, which is not on the graph. Thus, to get a second point on this line, set x 1 to any number larger than 3 and solve for x 2: when x 1 = 5, then x 2 = 8. Connect (3, 0) and (5, 8). The ">" side is to the right. Constraint 3: When x 1 = 0, then x 2 = 4; when x 2 = 0, then x 1 = 4. Connect (4, 0) and (0, 4). The ">" side is above this line.

Graphical Solution Ø Constraints Graphed x 2 Feasible Region 5 4 x 1 - x 2 > 12 4 x 1 + x 2 > 4 3 2 x 1 + 5 x 2 > 10 2 1 1 2 3 4 5 6 x 1

Graphical Solution Graph the Objective Function Set the objective function equal to an arbitrary constant (say 20) and graph it. For 5 x 1 + 2 x 2 = 20, when x 1 = 0, then x 2 = 10; when x 2= 0, then x 1 = 4. Connect (4, 0) and (0, 10). Ø Move the Objective Function Line Toward Optimality Move it in the direction which lowers its value (down), since we are minimizing, until it touches the last point of the feasible region, determined by the last two constraints. Ø

Graphical Solution Ø Objective Function Graphed Min z = 5 x 1 + 2 x 2 4 x 1 - x 2 > 12 5 x 1 + x 2 > 4 4 3 2 x 1 + 5 x 2 > 10 2 1 1 2 3 4 5 6 x 1

Graphical Solution Ø Solve for the Extreme Point at the Intersection of the Two Binding Constraints 4 x 1 - x 2 = 12 x 1+ x 2 = 4 Adding these two equations gives: 5 x 1 = 16 or x 1 = 16/5. Substituting this into x 1 + x 2 = 4 gives: x 2 = 4/5

Ø Solve for the Optimal Value of the Objective Function Solve for z = 5 x 1 + 2 x 2 = 5(16/5) + 2(4/5) = 88/5. Thus the optimal solution is x 1 = 16/5; x 2 = 4/5; z = 88/5

Graphical Solution Ø Optimal Solution Min z = 5 x 1 + 2 x 2 4 x 1 - x 2 > 12 5 4 x 1 + x 2 > 4 3 2 x 1 + 5 x 2 > 10 2 Optimal: x 1 = 16/5 x 2 = 4/5 1 1 2 3 4 5 6 x 1

Special Cases Ø Multiple Optimal Solutions Ø Infeasible problem Ø Unbounded problem Ø Redundant Constraint

Multiple optimal solutions Ø If objective function falls on more than one optimal point, the solution is said to be multiple optimal. Ø It exists when slope of the objective function and one of the constraint equation are same.

Infeasible problem Ø No feasible solution. Ø It means there are no points that simultaneously satisfy all constraints in the problem. Ø Common region do not develop in the first quadrant. Ø Objective function do not pass through any point of all constraints.

Example of Infeasible Problem Max Z = 2 x 1 + 6 x 2 subject to constraints 4 x 1 + 3 x 2 < 12 2 x 1 + x 2 > 8 x 1, x 2 > 0

Infeasible Problem Ø There are no points that satisfy both constraints, hence this problem has no feasible region, and no optimal solution. x 2 2 x 1 + x 2 > 8 8 4 x 1 + 3 x 2 < 12 4 3 4 x 1

Unbounded Problem Ø When feasible solution space formed by the constraints is not confined to the first quadrants only. Ø If constraints passes through 2 nd, 3 rd or 4 th quadrant. Ø No limits on the constraints. Ø Common feasible region is not bounded in any respect.

Example of Unbounded Problem Max Z = 3 x 1 + 4 x 2 subject to x 1 + x 2 > 5 3 x 1 + x 2 > 8 x 1, x 2 > 0

Unbounded Problem Ø The feasible region is unbounded and the objective function line can be moved parallel to itself without bound so that z can be increased infinitely. x 2 3 x 1 + x 2 > 8 8 5 Max 3 x 1 + 4 x 2 x 1 + x 2 > 5 2. 67 5 x 1

Redundant Constraint Ø When one constraint is less restrictive than other constraint, it is said to be redundant constraint.

Advantages & Drawbacks S. No. Advantages Drawbacks 1 Problem Insight Fraction Values 2 Considers all possible Solution Co-efficients must be Deterministic 3 Better Decisions Function must be Linear 4 Better Tools Time & Un-certainty effect not considered 5 Highlights Bottlenecks Approximation of Complex problems 6 Clear specification of Management problems