Linear programming is one of the fundamental approaches to mathematical optimization. Optimization professionals can adopt a number of linear programming methods and algorithms when developing their solution, including the simplex method.  

If linear programming is right for you, this tutorial can help you get started with the basics. 

What is the Simplex Method in Linear Programming? 

Linear models can graphically map the area of feasible solutions. Due to the many variables and constraints involved, the area is a complex polytope. The simplex method starts with a feasible solution for the optimization problem, and then iterates on the solution by evaluating how it compares to its neighboring vertices (i.e., corners) of the polytope. 

This approach works for two reasons: 

  1. On linear functions, the optimal solution will always be at a corner; and
  2. The region of feasible solutions is convex, meaning that each corner will continually guide the algorithm in the correct direction until it identifies the optimal solution. 

How does Linear Programming with the Simplex Method Work? 

To begin linear programming with the simplex method, it is assumed that an extreme point is known.  

Once a basic feasible solution (or “extreme point”) is known, the algorithm then compares that outcome to the two neighboring corners of the polytope.   

If one is a more optimal solution, the algorithm then compares the more optimal solution to its neighboring vertices. It continues iterating until it identifies a solution with no neighboring vertices that are more optimal. 

For more detailed instructions on linear programming with the simplex method, check out this tutorial.

When to Use the Simplex Method 

The simplex method allows mathematical optimization professionals to analyze complex problems in a relatively straightforward way.  

While the simplex method has many strengths, a few factors may delay progress. The first is ensuring that a feasible solution exists, given the constraints. In some cases, feasibility will be immediately apparent. 

The second factor affecting the simplex method is identifying the initial feasible solution vertex. While the workshop example above has an easily identified initial solution, most problems will have many more variables and constraints. The solver may need to devote significant time to identifying an initial vertex for the solver to begin comparing.  

The third factor affecting this approach’s performance is complexity. While the simplex method excels at identifying optimal solutions to complex problems, a high number of variables can increase the number of vertices exponentially. This means the most complex problems can take a long time to solve with this approach. 

The Bottom Line 

The simplex method is a straightforward way for solvers like Gurobi to find an optimal solution to complex problems. Under the right circumstances, it may be the best approach for your key business questions. To learn more about the various approaches to linear programming, check out Gurobi’s resources. 

Guidance for Your Journey

30 Day Free Trial for Commercial Users

Start solving your most complex challenges, with the world's fastest, most feature-rich solver.

Always Free for Academics

We make it easy for students, faculty, and researchers to work with mathematical optimization.

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
Get a free, full-featured license of the Gurobi Optimizer to experience the performance, support, benchmarking and tuning services we provide as part of our product offering.
Cloud Trial

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

Academic License
Gurobi provides free, full-featured licenses for coursework, teaching, and research at degree-granting academic institutions. Academics can receive guidance and support through our Community Forum.

Search

Gurobi Optimization

Navigation Menu