Log in Sign up
Back to Discover
🔢

Simplex algorithm

math Maturity 7-9

Math can help us plan.

Simplex algorithm.png
Simplex algorithm.png
It finds the best way to do things. A man named George found a way to do this. It helps us make good choices. Can you use math to plan your day?

39 words

Math can help us plan.

Simplex algorithm.png
Simplex algorithm.png
It finds the best way to do things. A man named George Dantzig found a way to do this. He worked for the Army during a war.
Simplex-description-en.svg
Simplex-description-en.svg
He used math to solve hard puzzles. He looked at shapes with many corners. He would walk along the edges of a shape. He moved from corner to corner to find the best spot. This helps us make good choices. Can you use math to plan your day?

83 words

Math can help us find the best way to do things. This is called linear programming.

Simplex algorithm.png
Simplex algorithm.png
George Dantzig created a way to solve these problems. He worked for the Army Air Force during World War II. He used a desk calculator to plan things.
Simplex-description-en.svg
Simplex-description-en.svg

To solve a problem, we look at a shape called a polytope. This shape is made by rules called constraints. These rules show what is possible. The best answer is always at a corner of the shape. We call these corners vertices.

Simplex-method-3-dimensions.png
Simplex-method-3-dimensions.png

The simplex algorithm is a set of steps to find that best corner. First, the math finds a starting corner. This is called Phase I. Then, the math moves along the edges of the shape. It moves from one corner to another. It only moves to corners that make the goal better. This goal is called an objective function. We want to make this value as large as possible. This part is called Phase II. The math stops when it reaches the best corner. It can also stop if the goal can grow forever.

184 words

Math can help us find the best way to do things. This is called linear programming.

Simplex algorithm.png
Simplex algorithm.png
It helps us reach a goal while following certain rules. These rules are called constraints. One way to solve these problems is the simplex algorithm. It was created by George Dantzig. This method helps us find the best possible answer among many choices.

To understand how it works, imagine a geometric shape called a polytope.

Simplex-description-en.svg
Simplex-description-en.svg
This shape is formed by all the possible answers that follow the rules. The corners of this shape are called vertices. We call a solution found at a corner a basic feasible solution. The algorithm works by walking along the edges of this shape. It moves from one corner to another to find the best one.
Simplex-method-3-dimensions.png
Simplex-method-3-dimensions.png
Each step takes us toward a better answer.

George Dantzig developed this method during World War II. He worked for the US Army Air Force. At that time, he used a desk calculator for his planning. A colleague challenged him to make the process automatic in 1946. Dantzig used ideas from the work of Wassily Leontief. He realized he could turn ground rules into an objective function. This is a mathematical goal that we want to maximize.

Finding the best answer happens in two main steps. The first step is called Phase I. In this phase, the math looks for a starting corner. If no corner can be found, the problem is called infeasible. This means there are no answers that follow all the rules. The second step is called Phase II.

Simplex-method-3-dimensions.png
Simplex-method-3-dimensions.png
This phase starts at the first corner and moves along the edges. It continues until it reaches the best corner or an infinite edge.

We can use math symbols to show how the algorithm moves. A pivot operation is the way the math jumps between corners. It changes which variables are part of the solution. One variable enters the group while another leaves. This process is done using a table called a tableau. The tableau helps keep track of all the numbers. By following these steps, the algorithm always finds the best answer or tells us if no answer exists.

364 words

Mathematical optimization is the study of finding the best possible solution to a problem. One of the most important tools for this is the simplex algorithm. This algorithm is used for linear programming, which is a way to reach a specific goal while following a set of rules. These rules are known as constraints. The simplex algorithm allows us to find the maximum or minimum value of an objective function.

Simplex algorithm.png
Simplex algorithm.png

To use the simplex algorithm, a problem must first be written in standard form. This process makes the math easier to manage. First, any variable with a lower bound other than zero is changed. We introduce a new variable to represent the difference between the original variable and its bound. Next, we handle inequality constraints by adding slack variables. A slack variable turns an inequality into an equality by representing the difference between the two sides. Finally, any unrestricted variables are replaced by the difference of two restricted variables. This transforms the problem into a clean system of linear equations.

In geometric terms, these equations define a shape called a polytope.

Simplex-description-en.svg
Simplex-description-en.svg
This polytope represents the feasible region, which is the collection of all possible answers that follow the rules. The corners of this shape are called vertices. In math, these vertices are known as basic feasible solutions, or BFS. If the objective function has a maximum value within the feasible region, that value will always occur at one of these extreme points. This is a vital insight because it means we only need to check the corners rather than every point inside the shape.

The simplex algorithm operates through two distinct stages. The first stage is called Phase I. In this phase, the algorithm searches for a starting basic feasible solution. If the algorithm cannot find any corner that follows the rules, the problem is declared infeasible. This means the constraints are impossible to satisfy at the same time. If a starting point is found, the algorithm moves to Phase II.

Simplex-method-3-dimensions.png
Simplex-method-3-dimensions.png
In Phase II, the algorithm begins its search for the optimal solution by moving from the starting vertex toward better ones.

George Dantzig developed the simplex method during World War II. He was working on planning methods for the US Army Air Force. At the time, he used a desk calculator to perform his work. In 1946, a colleague challenged him to mechanize the planning process. Dantzig was inspired by the work of Wassily Leontief. He realized that military ground rules could be translated into a linear objective function. This allowed him to turn a vague set of rules into a specific mathematical goal to maximize. Dantzig later published his work as a doctoral thesis.

The actual movement between corners is done through a process called a pivot operation. To keep track of the numbers, mathematicians use a table called a tableau. The tableau shows the coefficients of the objective function and the constraints. During a pivot, a nonbasic variable is chosen to become an entering variable. This variable moves into the set of basic variables. To make room, an existing basic variable must leave the set. This is known as the leaving variable.

Simplex-method-3-dimensions.png
Simplex-method-3-dimensions.png
This operation changes the tableau into a new canonical form that represents a new corner.

The algorithm is highly efficient because it always moves in the direction of the objective function. It walks along the edges of the polytope from one vertex to another. Each step is chosen to increase the value of the objective function. The process continues until the algorithm reaches a vertex where no adjacent edge leads to a higher value. Because a polytope has a finite number of vertices, the algorithm is guaranteed to terminate. It will either find the optimal solution or conclude that the objective function is unbounded, meaning the value can increase forever.

640 words
🖼️ Images & Media (3)
File:Simplex algorithm.png
Simplex algorithm.png
File:Simplex-description-en.svg
Simplex-description-en.svg
File:Simplex-method-3-dimensions.png
Simplex-method-3-dimensions.png
Up Next
🔢
George Dantzig
Math
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.