Download Operation Research Summary and more Summaries Operational Research in PDF only on Docsity!
Lec3 Ch3 Operations Research The Simplex Method and Sensitivity Analysis
Special Cases in Linear Programming There are four important special cases in LP:
- Degeneracy
- Alternative Optima (Infinity of Solutions)
- Unbounded Solution
- Non-existing or Infeasible Solution
- Degeneracy : Occurs when more than two constraint lines pass through the same optimal point in a two- dimensional problem. This means the point becomes overdetermined, and one of the constraints becomes redundant. Redundancy: An associated constraint can be removed without changing the solution space. Example: Maximize Z = 3X₁ + 9X₂ Subject to X₁ + 4X₂ ≤ 8 X₁ + 2X₂ ≤ 4 X₁ , X₂ ≥ 0 Here, the constraint X₁ + 4X₂ ≤ 8 is redundant, while X₁ + 2X₂ ≤ 4 is not.
- Alternative Optima (Infinity of Solutions): Occurs when the objective function is parallel to a binding constraint. In this case, the objective function has the same optimal value at more than one solution point. Example: Maximize Z = 2X₁ + 4X₂ Subject to X₁ + 2X₂ ≤ 5 X₁ + X₂ ≤ 4 X₁ , X₂ ≥ 0 Here, several points on a line segment may give the same optimal value.
- Unbounded Solution Occurs when the objective function can be increased indefinitely without violating any constraints. This means the feasible region is unbounded in at least one direction. Example: Maximize Z = 2X₁ + X₂ Subject to X₁ − X₂ ≤ 10 2X₁ ≤ 40 X₁ , X₂ ≥ 0 In this case, the feasible region extends infinitely, so the objective value keeps increasing.
- Non-existing or Infeasible Solution: Occurs when the constraints cannot be satisfied simultaneously. Thus, no feasible solution exists. Example: Maximize Z = 3X₁ + 2X₂ Subject to 2X₁ + X₂ ≤ 2 3X₁ + 4X₂ ≥ 12 X₁ , X₂ ≥ 0 Here the constraints conflict with each other, so the feasible region does not exist. Sensitivity Analysis In Linear Programming, the parameters (input data) of the model can change within certain limits without affecting the optimal solution. This analysis is called Sensitivity Analysis. Two Important Concepts
- Range of Optimality: Refers to the allowable range of the objective function coefficients. The optimal solution will remain unchanged as long as:
- The objective function coefficient remains within its range of optimality.
- No other parameters of the model change.
- Range of Feasibility: Refers to the sensitivity of the optimal solution to changes in the availability of resources (right-hand side of constraints).
- Find the range of feasibility of 𝑴𝟏 (raw material 1 or constraints for 𝑴𝟏).
- Find the range of feasibility of M₂ (Raw material 2 or constraint for M₂) This means finding the allowable change in the right-hand side of the first constraint. Meaning: How much the available amount of resource M₁ can increase or decrease while keeping the same optimum basis or optimum corner point.
- The change in Z function under this sensitivity change (in M₁ or M₂) ΔZ = ______ This means finding the allowable change in the right-hand side of the second constraint. Meaning: How much the available amount of resource M₂ can increase or decrease while keeping the same optimum solution structure.
- The worth per unit for changes for the first constraint (M₁) 𝒀₁ = 𝜟𝒁 𝜟𝑴𝟏 After changing M₁ or M₂, the value of the objective function Z also changes. This point asks for the new range or new amount of change in Z resulting from the change in available resources.
- The worth per unit for changes for the second constraint (M₂) 𝒀𝟐 = 𝜟𝒁 𝜟𝑴𝟐 This means calculating how much the objective function changes when the available amount of a resource changes by one unit. Example:
- Understanding the Problem This problem is a linear programming problem. The goal is to determine how many tons of each type of paint should be produced per day in order to maximize total profit. The profit function is: Z = 5x1 + 4x This means:
- each ton of exterior paint contributes 5 units of profit
- each ton of interior paint contributes 4 units of profit The production is restricted by the following constraints: 𝟔𝒙𝟏 + 𝟒𝒙𝟐 ≤ 𝟐𝟒 𝒙𝟏 + 𝟐𝒙𝟐 ≤ 𝟔 𝒙𝟐 − 𝒙𝟏 ≤ 𝟏 𝒙𝟐 ≤ 𝟐 𝒙𝟏 ≥ 𝟎 𝒙𝟐 ≥ 𝟎
- Why This Problem Can Be Solved Graphically This problem can be solved graphically because it has only two decision variables: x1, x
When a linear programming problem has only two variables, we can represent: x1 on the horizontal axis, x2 on the vertical axis Then each constraint becomes a straight line, and the feasible region can be shown on a graph. The optimum solution will occur at one of the corner points of the feasible region. This is the main idea behind the graphical method.
- Writing the Model in Standard Form for Graphical Analysis Objective Function: Maximize 𝒁 = 𝟓𝒙𝟏 + 𝟒𝒙𝟐 Subject to: 𝟔𝒙𝟏 + 𝟒𝒙𝟐 ≤ 𝟐𝟒 𝒙𝟏 + 𝟐𝒙𝟐 ≤ 𝟔 𝒙𝟐 − 𝒙𝟏 ≤ 𝟏 𝒙𝟐 ≤ 𝟐 𝒙𝟏 ≥ 𝟎 𝒙𝟐 ≥ 𝟎 At this stage, nothing is solved yet. We only organize the model clearly before drawing it.
- First Step in Graphical Solution: Convert Each Inequality into an Equation To draw each constraint on the graph, we first convert it from an inequality into an equation. Why do we do that? Because inequalities describe an area, but equations describe the boundary line of that area. So we draw the line first, then determine which side of the line satisfies the inequality. The constraints become: 6x1 + 4x2 = 24 x1 + 2x2 = 6 x2 − x1 = 1 x2 = 2 x1 = 0 x2 = 0 Now these are the boundary lines that must be drawn.
- Draw the First Constraint Constraint 1: 6x1 + 4x2 = 24 To draw this line, we usually find two points on it. The easiest method is the intercept method.
Constraint 3: x2 − x1 = 1 This line is easier to understand if we rewrite it as: −𝒙𝟏 + 𝒙𝟐 = 𝟏 If: x1 = 0 −(0) + x2 = 1 x2 = 1 Point = (0,1) if: x2 = 0 −x1 + 0 = 1 −x1 = 1 x1 = − Point = (−1,0) Result: The line passes through: (0,1) and (−1,0) Draw the straight line joining these two points.
- Draw the Fourth Constraint Constraint 4: x2 = 2 This is a horizontal line. Why? Because the value of x2 is fixed at 2, regardless of the value of x1. So every point on this line has vertical coordinate 2. Example points: (0,2) (2,2) Result:Draw a horizontal line passing through y = 2
- Draw the Non-negativity Constraints Constraint 5: x1 ≥ 0 This means x1 cannot be negative. So the feasible region must lie to the right of the y-axis. The boundary is: x1 = 0
This is the y-axis. Constraint 6: x2 ≥ 0 This means x2 cannot be negative. So the feasible region must lie above the x-axis. The boundary is: x2 = 0 This is the x-axis. Result: The solution must lie in the first quadrant.
- Determine the Correct Side of Each Constraint After drawing the boundary lines, we need to know which side of each line is allowed. We do this using a test point. The most common test point is (0,0), if the line does not cause any issue. Constraint 1: 6x1 + 4x2 ≤ 24 Test point: (0,0) 6(0) + 4(0) ≤ 24 0 ≤ 24 This is true. So the allowed side is the side containing (0,0) Constraint 2: x1 + 2x2 ≤ 6 Test point: (0,0) 0 + 0 ≤ 6 0 ≤ 6 This is true. So the allowed side is the side containing (0,0) Constraint 3: x2 − x1 ≤ 1 Test point: (0,0) 0 − 0 ≤ 1 0 ≤ 1 This is true. So the allowed side is the side containing (0,0) Constraint 4: x2 ≤ 2 Test point: (0,0) 0 ≤ 2
- Find Point A Point A is the origin. It is the intersection of: x1 = 0 and x2 = 0 So: A = (0,0)
- Find Point B Point B lies on:
- the first constraint line
- the x-axis The x-axis means: x2 = 0 Substitute into the first line: 6x1 + 4x2 = 24 6x1 + 4(0) = 24 6x1 = 24 x1 = 4 So: B = (4,0)
- Find Point C Point C is very important because it turns out to be the optimum point. Point C from intersection of: 6x1 + 4x2 = 24 x1 + 2x2 = 6 Step 3: Substitute to find x Substitute x1 = 3 into: 𝒙𝟏 + 𝟐𝒙𝟐 = 𝟔 𝟑 + 𝟐𝒙𝟐 = 𝟔 𝟐𝒙𝟐 = 𝟑 𝒙𝟐 = 𝟏. 𝟓 Final Result: C = (3 , 1.5) Step 1: Make coefficients suitable for elimination We want to eliminate one variable (preferably x2). Multiply the second equation by (−2): −2(x1 + 2x2 = 6) So it becomes: −2x1 − 4x2 = − Step 2: Add the two equations Now add: 6x1 + 4x2 = 24 −2x1 − 4x2 = − 4x1 + 0 = 12 So: 4x1 = 12 x1 = 3
- Find Point D Point D is the intersection of: x1 + 2x2 = 6 x2 = 2 Substitute x2 = 2 into the first equation: x1 + 2(2) = 6 x1 + 4 = 6 x1 = 2 So: D = (2,2)
- Find Point E Point E is the intersection of: x2 − x1 = 1 x2 = 2 Substitute x2 = 2 into the equation: 2 − x1 = 1 −x1 = − x1 = 1 So:E = (1,2)
- Find Point F Point F is the intersection of: x1 = 0 x2 − x1 = 1 Substitute x1 = 0: x2 − 0 = 1 x2 = 1 So: F = (0,1)
- Evaluate the Objective Function at Each Corner Point Now we calculate the value of: Z = 5x1 + 4x at each corner point. This is necessary because the optimum value must be among these values. At point A = (0,0) Z = 5(0) + 4(0) Z = 0 + 0 Z = 0 At point B = (4,0) Z = 5(4) + 4(0) Z = 20 + 0 Z = 20 At point C = (3,1.5) Z = 5(3) + 4(1.5) Z = 15 + 6 Z = 21 At point D = (2,2) Z = 5(2) + 4(2) Z = 10 + 8 Z = 18 At point E = (1,2) Z = 5(1) + 4(2) Z = 5 + 8 Z = 13 At point F = (0,1) Z = 5(0) + 4(1) Z = 0 + 4 Z = 4
- Compare the Objective Function Values Now compare all values: At A, Z = 0 At B, Z = 20 At C, Z = 21 At D, Z = 18 At E, Z = 13 At F, Z = 4 The largest value is: Z = 21 and it occurs at: C = (3,1.5)
- Final Optimal Solution
- changes in right-hand side values of the main constraints
- Binding Constraints at the Optimal Point At point C = (3,1.5), check which constraints hold as equalities. First constraint: 6x1 + 4x2 = 6(3) + 4(1.5) = 18 + 6= 24 So it is binding. Second constraint: x1 + 2x2 = 3 + 2(1.5) = 3 + 3 = 6 So it is binding. These two constraints are active and determine point C. The other constraints do not determine C directly in the same way. So sensitivity analysis around the optimum is mainly based on these two binding constraints.
- Range of Optimality Rang of C1 by C2(4): Step 1: Write Objective Function 𝒁 = 𝟓𝒙𝟏 + 𝟒𝒙𝟐 𝒁 = 𝒄𝟏𝒙𝟏 + 𝒄𝟐𝒙𝟐
Slope of 𝒁 =
−𝒄𝟏 𝒄𝟐 Step 2: Find Slopes of Binding Constraints Constraint 1: 𝟔𝒙𝟏 + 𝟒𝒙𝟐 = 𝟐𝟒 Slope = −𝟔 𝟒
−𝟑 𝟐 Constraint 2: 𝒙𝟏 + 𝟐𝒙𝟐 = 𝟔 Slope = −𝟏 𝟐 Step 3: Put Objective Slope Between Constraints −𝟏 𝟐 ≥ −𝒄𝟏 𝒄𝟐 ≥ −𝟑 𝟐 Step 4: Multiply by (−1): 𝟏 𝟐
𝒄𝟏 𝒄𝟐
𝟑 𝟐 Step 5: Find Range of c1 (Fix c2 = 4): 𝟏 𝟐 ≤ 𝒄𝟏 𝟒 ≤ 𝟑 𝟐 Step 6: Multiply by 4: 𝟐 ≤ 𝒄𝟏 ≤ 𝟔 Rang of C2 by C1(5): Step 1: Write Objective Function 𝒁 = 𝟓𝒙𝟏 + 𝟒𝒙𝟐 𝒁 = 𝒄𝟏𝒙𝟏 + 𝒄𝟐𝒙𝟐
Slope of 𝒁 =
−𝒄𝟐 𝒄𝟏 Step 2: Find Slopes of Binding Constraints Constraint 1: 𝟔𝒙𝟏 + 𝟒𝒙𝟐 = 𝟐𝟒
Slope =
−𝟒 𝟔
−𝟐 𝟑 Constraint 2: 𝒙𝟏 + 𝟐𝒙𝟐 = 𝟔 Slope = −𝟐 𝟏 Step 3 : Put Objective Slope Between Constraints −𝟐 𝟑 ≥ −𝒄𝟐 𝒄𝟏 ≥ −𝟐
Step 4: Multiply by (−1):
𝟐 𝟑
𝒄𝟐 𝒄𝟏
Step 5: Find Range of c 2 (Fix c1 = 5): 𝟐 𝟑 ≤ 𝒄𝟐 𝟓 ≤ 𝟐
Step 6: Multiply by 5:
𝟏𝟎 𝟑
Final Answer: Range of 𝒄𝟏: → 𝟐 ≤ 𝒄𝟏 ≤ 𝟔 → It means, any change in C₁ between 2, 6, that will make no change in the optimum solution (Range of optimality of C₁) Range of 𝒄𝟐: → 𝟏𝟎 𝟑 ≤ 𝒄𝟐 ≤ 𝟏𝟎 → It means, any change in C2 between 10/3, 10 that will make no change in the optimum solution (Range of optimality of C2)
Range of Feasibility Range of Feasibility for M When we study the range of feasibility for M1, we change the right-hand side of the first constraint: 6x1 + 4x2 ≤ M This means that the line: 6x1 + 4x2 = M1 moves parallel to itself. The second binding constraint stays fixed: x1 + 2x2 = 6 So the optimum point moves along this line. From the graph, the movement is from: D = (2 , 2) to: G = (6 , 0) ( 2 لى الخطنقط تقاطع عوأول 2 الزم الحركة تكون على الخطو ) Solution Given: D = (2 , 2) G = (6 , 0) Objective function: Z = 5x1 + 4x Resource M1 equation: M1 = 6x1 + 4x At point D Z at D: Z = 5(2) + 4(2) Z = 10 + 8 → Z = 18 M1 at D: M1 = 6(2) + 4(2) M1 = 12 + 8 M1 = 20 At point G Z at G: Z = 5(6) + 4(0) Z = 30 + 0 → Z = 30 M1 at G: M1 = 6(6) + 4(0) M1 = 36 + 0 M1 = 36 Therefore 18 ≤ Z ≤ 30 20 ≤ M1 ≤ 36 So: Range of feasibility for M1: 20 ≤ M1 ≤ 3 6 Range of Feasibility for M When we study the range of feasibility for M2, we change the right-hand side of the second constraint:x1 + 2x2 ≤ M This means that the line: x1 + 2x2 = M moves parallel to itself. The first binding constraint stays fixed: 6x1 + 4x2 = 24 So the optimum point moves along this line. H = 3 ❌ x2 ≤ 2 → We cannot use any point that violates the constraints. Therefore, we take the maximum allowable value ( 2 ) that satisfies all constraints. Step 1: Substitute x2 = 2 → 6x1 + 4(2) = 24 Step 2: Simplify: 6x1 + 8 = 24