how can we solve linear programming problem using simplex method

  • max Z = 3x1 + 5x2 + 4x3 subject to 2x1 + 3x2 2x2 + 5x3 3x1 + 2x2 + 4x3 and x1,x2,x3 >= 0
  • max Z = 5x1 + 10x2 + 8x3 subject to 3x1 + 5x2 + 2x3 4x1 + 4x2 + 4x3 2x1 + 4x2 + 5x3 and x1,x2,x3 >= 0
  • max Z = 4x1 + 3x2 subject to 2x1 + x2 x1 + x2 x1 x2 and x1,x2 >= 0
  • =,>=`4,7`');">min Z = x1 + x2 subject to 2x1 + 4x2 >= 4 x1 + 7x2 >= 7 and x1,x2 >= 0
  • =,>=`80,60`');">min Z = 600x1 + 500x2 subject to 2x1 + x2 >= 80 x1 + 2x2 >= 60 and x1,x2 >= 0
  • =`12,10,10`');">min Z = 5x1 + 3x2 subject to 2x1 + 4x2 2x1 + 2x2 = 10 5x1 + 2x2 >= 10 and x1,x2 >= 0
  • max Z = x1 + 2x2 + 3x3 - x4 subject to x1 + 2x2 + 3x3 = 15 2x1 + x2 + 5x3 = 20 x1 + 2x2 + x3 + x4 = 10 and x1,x2,x3,x4 >= 0
  • max Z = 3x1 + 9x2 subject to x1 + 4x2 x1 + 2x2 and x1,x2 >= 0
  • max Z = 3x1 + 2x2 + x3 subject to 2x1 + 5x2 + x3 = 12 3x1 + 4x2 = 11 and x2,x3 >= 0 and x1 unrestricted in sign
  • max Z = 3x1 + 3x2 + 2x3 + x4 subject to 2x1 + 2x2 + 5x3 + x4 = 12 3x1 + 3x2 + 4x3 = 11 and x1,x2,x3,x4 >= 0
  • =`30,24,3`');">max Z = 6x1 + 4x2 subject to 2x1 + 3x2 3x1 + 2x2 x1 + x2 >= 3 and x1,x2 >= 0
  • =`6,10,1`');">max Z = 3x1 + 5x2 subject to x1 - 2x2 x1 x2 >= 1 and x1,x2 >= 0
  • =`5,8`');">max Z = 6x1 + 4x2 subject to x1 + x2 x2 >= 8 and x1,x2 >= 0
  • =,>=`-5,8`');">max Z = 6x1 + 4x2 subject to -x1 - x2 >= -5 x2 >= 8 and x1,x2 >= 0

how can we solve linear programming problem using simplex method

LP Ch.5: Linear Programming with the Simplex Method

Chapter 5: Linear Programming with the Simplex Method

how can we solve linear programming problem using simplex method

One of the most significant advancements in linear programming is the simplex method, developed by George Dantzig. This algorithm provides a systematic approach to finding the optimal solution to linear programming problems. In this article, we will explore the simplex method, its key concepts, and how it is applied to solve linear programming problems.

Overview of the Linear Programming with the Simplex Method

The simplex method is a systematic approach to traverse the vertices of the polyhedron containing feasible solutions in a linear programming problem. It aims to find the optimal solution by iteratively improving the objective function value. This method is considered one of the greatest inventions of modern times due to its broad applicability in solving business-related problems.

Formulating the Original Linear Programming Problem

To illustrate the simplex method, let’s consider a furniture production problem. We want to maximize the revenue generated by producing chairs and tables, subject to constraints on the availability of mahogany and labor. The original problem can be formulated as follows:

  • Maximize Revenue = 45×1 + 80×2
  • 5×1 + 20×2 ≤ 400 (Mahogany constraint)
  • 10×1 + 15×2 ≤ 450 (Labor constraint)
  • x1, x2 ≥ 0 (Non-negativity constraint)

In this formulation, x1 represents the number of chairs produced, x2 represents the number of tables produced, and the objective function maximizes the total revenue. The constraints limit the consumption of mahogany and labor within the available capacities.

Transforming into Standard Form

To apply the simplex method, we transform the original problem into the standard form, which involves converting the inequalities into equalities. We introduce slack variables to represent the surplus capacity of each constraint. In this case, we add h1 and h2 as slack variables for the mahogany and labor constraints, respectively. The problem in standard form becomes:

  • Maximize Revenue = 45×1 + 80×2 + 0h1 + 0h2
  • 5×1 + 20×2 + h1 = 400 (Mahogany constraint)
  • 10×1 + 15×2 + h2 = 450 (Labor constraint)
  • x1, x2, h1, h2 ≥ 0 (Non-negativity constraint)

The slack variables h1 and h2 represent the unused capacities of mahogany and labor, respectively. We still aim to maximize the revenue while satisfying these transformed equalities.

Basic Feasible Solutions and Canonical Form

A basic feasible solution is an initial production plan that satisfies all the constraints, with some variables set to zero. In our case, the initial solution where no chairs or tables are produced (x1=0, x2=0) represents a basic feasible solution. This solution generates zero revenue, as expected.

The non-basic variables in a basic feasible solution are set to zero, while the basic variables take positive values. In our initial solution, h1 and h2 are the basic variables, representing the unused capacities of mahogany and labor. The non-basic variables are x1 and x2, which are set to zero. This configuration is called a basic feasible solution and is an important concept in linear programming.

To express the problem in canonical form, we represent the basic variables (h1 and h2) in terms of the non-basic variables (x1 and x2). Similarly, we substitute the non-basic variables in the objective function. This process is known as pivoting. The canonical form of the problem becomes:

  • Maximize z = 45×1 + 80×2 + 0h1 + 0h2
  • x1 = 0 + (1/5)h1 – (4/5)h2 (Transformed mahogany constraint)
  • x2 = 0 – (2/5)h1 + (3/5)h2 (Transformed labor constraint)
  • x1, x2, h1, h2 ≥ 0

In the canonical form, the objective function and constraints are expressed with respect to the basic variables x1 and x2. The reduced costs associated with the non-basic variables x1 and x2 (coefficients in the objective function) indicate the potential improvement in the objective function value if these variables enter the basis.

Iteration and Optimal Solution

In each iteration of the simplex method, we analyze the non-basic variables and their coefficients. If all the non-basic variables have coefficients ≤ 0, the current solution is optimal. Negative reduced costs associated with the non-basic variables indicate that increasing these variables would decrease the objective function value.

If there is a non-basic variable with a positive reduced cost, we choose the one with the largest coefficient to enter the basis. To determine the maximum value for this variable, we perform the minimum ratio test using the transformed equations. The minimum ratio identifies the constraint that limits the increase of the non-basic variable while staying feasible.

After selecting the entering variable, we perform pivoting to express the problem in canonical form with respect to the new basic variables. This process continues iteratively until we reach an optimal solution or determine that the problem is unbounded.

The simplex method provides a systematic approach to solving linear programming problems by iteratively improving the objective function value. By transforming the problem into the standard form and expressing it in canonical form, we can identify basic feasible solutions and optimize the objective function. The simplex method is a fundamental tool in linear programming, enabling efficient optimization in various industries and applications.

Download the complete  Linear Programming Tutorial Series slide deck .

View the entire series:

  • Welcome: Linear Programming Tutorial
  • Chapter 1: Mathematical Programming
  • Chapter 2: Introduction to Linear Programming
  • Chapter 3: Mixed Integer Linear Programming Problems
  • Chapter 4: Furniture Factory Problem
  • Chapter 5: Simplex Method
  • Chapter 6: Modeling and Solving Linear Programming Problems
  • Chapter 7: Sensitivity Analysis of Linear Programming Problems
  • Chapter 8: Multiple Optimal Solutions
  • Chapter 9: Unbounded Linear Programming Problems
  • Chapter 10: Infeasible Linear Programming Problems
  • Chapter 11: Linear Programming Overview – Further Considerations
  • Chapter 12: Duality in Linear Programming
  • Chapter 13: Optimality Conditions
  • Chapter 14: Dual Simplex Method

Guidance for Your Journey

30 day free trial for commercial users, always free for academics.

GUROBI NEWSLETTER

Latest news and releases

  • Linear Programming (LP) – A Primer on the Basics
  • Chapter 7: Sensitivity Analysis of Linear…

Try Gurobi for Free

Choose the evaluation license that fits you best, and start working with our Expert Team for technical guidance and support.

Evaluation License

Academic license, cloud trial.

Request free trial hours, so you can see how quickly and easily a model can be solved on the cloud.

Looking for documentation?

Jupyter Models

Case studies, privacy overview.

IMAGES

  1. simplex method for solving linear programming

    how can we solve linear programming problem using simplex method

  2. simplex method for solving linear programming

    how can we solve linear programming problem using simplex method

  3. simplex method for solving linear programming

    how can we solve linear programming problem using simplex method

  4. PPT

    how can we solve linear programming problem using simplex method

  5. Solved Solve the linear programming problem by the simplex

    how can we solve linear programming problem using simplex method

  6. LPP by Simplex Method

    how can we solve linear programming problem using simplex method

VIDEO

  1. Simplex Method for Bounded Variable Linear Programing Problem LPP English explanation

  2. Linear Programming Cost Minimization Problem Simplex Method

  3. 2.6. Solve a problem using linear programming

  4. SIMPLEX for Maximization

  5. Simplex Method of Solving Linear Programming #simplexmethod #linearprogramming

  6. Linear Programming- Simplex Method Word Problem With Solutions

COMMENTS

  1. What Are the Advantages and Disadvantages of Linear Programming?

    Advantages of linear programming include that it can be used to analyze all different areas of life, it is a good solution for complex problems, it allows for better solution, it unifies disparate areas and it is flexible.

  2. What Are Some Real World Uses for Linear Functions?

    Real world uses for linear functions include solving problems and finding unknowns in engineering, economics and finances. A linear function describes a gradual rate of change, either positive or negative. When drawn, it presents a straight...

  3. How Is Linear Programming Used in the Real World?

    Linear programming is used daily in the real world to optimize the allocation of resources or activities to generate the most benefit or profit. Linear programming can take multiple factors into account into the thousands and is used extens...

  4. 4.2: Maximization By The Simplex Method

    Set up the problem. · Convert the inequalities into equations. · Construct the initial simplex tableau. · The most negative entry in the bottom row

  5. Intro to Simplex Method

    This video shows how to solve a basic maximization LP using simplex tableau. 00:00 Standard form 00:32 Basic and non-basic

  6. How to use the simplex method to solve maximization ...

    ... use the simplex method to solve the linear programming problem. Maximize: z=5x_1+2x_2 Subject to: • 2x_1+4x_2≤15 • 3x_1+x_2≤10 With: x_1

  7. Explanation of Simplex Method

    A linear program is a method of achieving the best outcome given a maximum or minimum equation with linear constraints. Most linear programs can be solved using

  8. Simplex Method, Example 1

    Solving a standard maximization linear programming problem using the simplex method.

  9. Chapter 6 Linear Programming: The Simplex Method

    First, we convert problem constraints into equations with the help of slack variables. Consider the following maximization problem in the standard form:.

  10. Simplex method calculator

    Simplex method calculator - Solve the Linear programming problem using Simplex method, step-by-step online.

  11. A Beginner's Guide to Linear Programming and the Simplex Algorithm

    The simplex algorithm is a widely used method for solving linear programming problems. It was developed by George Dantzig in 1947. The intuition

  12. UNIT 4 LINEAR PROGRAMMING

    A more general method known as Simplex Method is suitable for solving linear programming problems with a larger number of variables. The method through an.

  13. Chapter 5: Linear Programming with the Simplex Method

    It aims to find the optimal solution by iteratively improving the objective function value. This method is considered one of the greatest inventions of modern

  14. Solved Use the simplex method to solve the linear

    Maximize Z = 2X1 + 7X2 subject to 5X1 + X2 <= 60 7X1 + 2X2 <= 80 X1 + X2 <= 70 X1,X2 >= 0 Given linear problem is a standard linear problem so we can add slack