Graphic Method, Simplex Method (including Big M method)
Graphical and Simplex Methods of Solving LP Problems
Linear Programming (LP) models can be addressed using various methods, with the graphical method and the simplex method being two of the most common approaches.
Graphical Method
The graphical method is a visual technique used for solving linear programming problems with two decision variables. This method involves plotting constraints on a graph, identifying the feasible region, and finding the optimal solution by evaluating the objective function at the vertices (corner points) of the feasible region.
Example Problem:
A workshop uses three types of machines (A, B, and C) to produce two products (1 and 2). The hours required for each product per machine, total available hours per machine per week, and profit per unit sold are summarized in the table below:
Machine | Product 1 (hours) | Product 2 (hours) | Total Available Hours (per week) |
---|---|---|---|
A | 2 | 1 | 100 |
B | 1 | 3 | 150 |
C | 2 | 1 | 100 |
Profit per unit:
- Product 1: $40
- Product 2: $30
Formulation:
Decision Variables:
- : Units of Product 1 to be produced weekly.
- : Units of Product 2 to be produced weekly.
Objective Function:
Maximize profit :
Constraints:
Machine A:
Machine B:
Machine C:
Non-negativity:
Graphical Solution:
Plot the Constraints:
For :
- When ,
- When ,
- When ,
For :
- When ,
- When ,
For :
- This constraint is the same as for Machine A.
Identify the Feasible Region:
The feasible region is where all constraints overlap, and both and are non-negative.
Evaluate the Objective Function at the Vertices of the Feasible Region:
Find the vertices of the feasible region by solving the system of equations formed by the constraints.
Find the Optimal Solution:
Calculate at each vertex to identify the maximum profit.
Simplex Method
The simplex method is an iterative procedure for solving linear programming problems with more than two decision variables. It systematically explores the vertices of the feasible region to find the optimal solution.
Steps of the Simplex Method:
Convert Inequalities to Equations:
Introduce slack variables to turn inequalities into equalities.
Set Up the Initial Simplex Tableau:
Arrange the objective function and constraints in a tabular format.
Identify the Pivot Element:
- Select the most negative value in the bottom row (excluding the rightmost column) to choose the entering variable.
- Determine the pivot row by finding the minimum positive ratio of the rightmost column to the pivot column (ignoring negative or zero values).
Perform Row Operations:
Adjust the tableau to make the pivot element equal to 1 and all other elements in the pivot column equal to 0.
Iterate Until Optimality:
Repeat the process of identifying pivot elements and performing row operations until there are no negative values in the bottom row.
Interpret the Final Tableau:
The final tableau displays the solution to the linear programming problem, including the values of the decision variables and the optimal value of the objective function.
Example Problem:
Using the previous problem setup:
Objective Function:
Maximize :
Constraints:
Machine A:
Machine B:
Machine C:
Non-negativity:
Initial Simplex Tableau:
Iteration Process:
Continue iterations by selecting the most negative value in the objective row, performing pivot operations, and updating the tableau until the optimal solution is found.
Conclusion:
The graphical method is effective for problems with two decision variables, offering an intuitive approach to visualize constraints and feasible regions. The simplex method, on the other hand, is a powerful tool for larger and more complex problems, systematically finding optimal solutions through iterative adjustments. Both methods are essential in operations research for solving linear programming problems and making optimal decisions.