Module 4 of 6 · Lesson 6 of 6

Adjacent Basic Solutions

The edge between two corners, and why travelling it changes exactly one basis column.

What you will be able to do

Given a standard-form system and two bases, the learner can decide whether they are adjacent, compute the edge direction generated by an entering variable, determine how far the step can go before feasibility fails, and explain why moving between adjacent corners changes exactly one basis column.

Orientation

The simplex method moves from corner to corner by swapping one column. This unit explains why a single swap corresponds to walking along an edge rather than jumping across the region.

Two accounts are already in place. On one side, the static account: corners are basic feasible solutions, and there are finitely many. On the other, the simplex method: it swaps a column and arrives somewhere better. What has been missing is why a swap corresponds to a walk along an edge rather than a jump across the region.

The word 'adjacent' is used here without a definition. The precise version explains several things the informal one cannot: why exactly one variable enters and one leaves, why only some rows limit the step, and why a swap at a degenerate corner can fail to move at all.

This unit assumes you can construct a basic solution, take an active set, and state the correspondence between corners and bases.

Intuition

Releasing one active constraint to move along an edge

The canonical text gives the wall-releasing picture. What it does not say is where that picture stops being reliable.

The step can be zero. Releasing one constraint gives a direction, and you travel until another constraint stops you. If a constraint is already tight at the starting corner without being one of the ones you were pressing against, the permitted travel is zero. You have changed which constraints you are naming and stayed exactly where you were. That is degeneracy, and it is why the walk metaphor and the algorithm part company.

Adjacency is defined on bases, not on the picture. The method exchanges one column for another because that is an operation it can perform; the geometric claim that it has walked an edge to a new corner is a consequence that holds when each corner has exactly one basis. When it does not, several bases name one point and a swap between them traverses nothing.

Which is why the ratio test is where the geometry lives. The entering variable chooses the direction; the ratio test decides how far, by finding which basic variable reaches zero first. That minimum is the length of the edge, and a zero minimum is the algebra reporting that there is no edge to walk.

Figure

Adjacent vertices as endpoints of a shared edge

One vertex, its two neighbours, and a near vertex that is not one

One polygon, one selected vertex, and the distinction the word adjacent actually makes.

The two green vertices are adjacent to the selected one: each shares an edge with it, drawn heavily. The grey vertex is not adjacent: no edge of the polygon joins it to the selection, however the two are placed in the plane.

That is why adjacency is a combinatorial property rather than a metric one. Geometrically, two vertices are adjacent when they are the endpoints of an edge — a one-dimensional face — of the feasible region, which is the definition that always holds.

On a polygon like this one, where no extra constraint passes through any corner, that matches the algebraic picture: the tight sets of two adjacent vertices differ in exactly one member, one constraint released and one acquired. Degeneracy breaks the match, which is why the next unit takes it up separately. Either way spatial nearness has nothing to do with it, and simplex moves between adjacent corners for the algebraic reason, not a geometric one.

Definition

Adjacent bases and the edge between them

The canonical statement gives the two definitions and says when they correspond. The interesting case is when they do not.

Under degeneracy the correspondence breaks in both directions. One vertex may be named by several bases, so two adjacent bases can describe the same point: a swap that is combinatorially a move is geometrically a stay. Conversely two genuinely adjacent vertices may be describable by bases differing in more than one column, so an edge exists that no single swap traverses.

This is why the simplex method is described as walking edges rather than visiting corners. The algorithm operates on bases, which is the combinatorial object; the geometric story of travelling along an edge to a better corner is a consequence that holds when the correspondence holds. Degeneracy is exactly where the story and the mechanism part company, and where an iteration count stops matching a count of corners.

What a swap changes. Raising one nonbasic variable from zero while the basic variables adjust to keep A x = b traces a line. The step stops when some basic variable reaches zero, which is the ratio test. Under nondegeneracy that step is positive and the objective strictly improves; that is the whole guarantee, and degeneracy removes it.

Example

Two bases, and the edge joining their corners

Take

x 1 + x 2 + x 3 = 4 , x 1 + x 4 = 2 , x 1 , x 2 , x 3 , x 4 ≥ 0 ,

with columns A 1 = ( 1 , 1 ) T , A 2 = ( 1 , 0 ) T , A 3 = ( 1 , 0 ) T , A 4 = ( 0 , 1 ) T .

Two bases. B = { 3 , 4 } gives x 3 = 4 , x 4 = 2 , so the point is ( 0 , 0 , 4 , 2 ) . And B ′ = { 1 , 3 } gives x 1 = 2 , x 3 = 2 , so the point is ( 2 , 0 , 2 , 0 ) .

Are they adjacent? B ∩ B ′ = { 3 } , which has m − 1 = 1 element. Yes, x 4 leaves, x 1 enters.

The edge direction from B . With A B = ( 1 0 0 1 ) = I , entering j = 1 gives u = A B − 1 A 1 = ( 1 , 1 ) T . So as x 1 rises to θ , x 3 falls to 4 − θ and x 4 falls to 2 − θ .

How far. Both components of u are positive, so both rows bound the step: 4 / 1 = 4 and 2 / 1 = 2 . The minimum is θ ∗ = 2 , attained in the second row, so x 4 leaves.

Where it lands. x 1 = 2 , x 3 = 4 − 2 = 2 , x 4 = 0 . The point ( 2 , 0 , 2 , 0 ) , which is the basic feasible solution of B ′ . The walk arrived exactly where the algebra said it would.

The active sets. At ( 0 , 0 , 4 , 2 ) the active restrictions are x 1 = 0 and x 2 = 0 . At ( 2 , 0 , 2 , 0 ) they are x 2 = 0 and x 4 = 0 . They share x 2 = 0 and differ in one, which is the geometric reading of the one-column change.

Worked example

Deciding adjacency and computing the edge

Problem. For the system

2 x 1 + x 2 + x 3 = 8 , x 1 + 2 x 2 + x 4 = 8 , x 1 , x 2 , x 3 , x 4 ≥ 0 ,

decide whether B = { 3 , 4 } and B ″ = { 1 , 2 } are adjacent. Then, from B , compute the edge generated by entering x 1 and the corner it reaches.

Goal. An adjacency verdict and a computed edge.

Relevant principle. Adjacency is decided by the overlap of the column sets, not by comparing the points.

Step 1: the adjacency verdict. B ∩ B ″ = ∅ , which has 0 elements, not m − 1 = 1 . So B and B ″ are not adjacent: they differ in two columns, and no single swap connects them. Any route between their corners takes at least two iterations.

Step 2: the starting point. A B = I , so x 3 = 8 , x 4 = 8 , and the point is ( 0 , 0 , 8 , 8 ) .

Step 3: the edge direction. Entering j = 1 :

u = A B − 1 A 1 = A 1 = ( 2 1 ) .

So as x 1 rises to θ , x 3 becomes 8 − 2 θ and x 4 becomes 8 − θ . The full direction is d = ( 1 , 0 , − 2 , − 1 ) .

Step 4: the step limit. Both components of u are positive, so both rows count:

x 3 u 1 = 8 2 = 4 , x 4 u 2 = 8 1 = 8 .

θ ∗ = 4 , attained in the first row, so x 3 leaves.

Step 5: the corner reached. x 1 = 4 , x 3 = 0 , x 4 = 8 − 4 = 4 . The point is ( 4 , 0 , 0 , 4 ) with basis { 1 , 4 } .

Step 6: confirm adjacency of what we actually walked between. B = { 3 , 4 } and { 1 , 4 } share { 4 } , exactly m − 1 = 1 column. Adjacent, as the walk requires.

Check. ( 4 , 0 , 0 , 4 ) against the constraints: 8 + 0 + 0 = 8 and 4 + 0 + 4 = 8 . Both hold, all components nonnegative.

What decided the direction. Nothing was chosen except which variable to raise. The rates at which x 3 and x 4 had to fall were forced by the equality constraints, and u recorded them.

Non-example

What adjacency is not

Not adjacency: being close together. Adjacency is a combinatorial relation between column sets. Two adjacent corners may be arbitrarily far apart in distance, and two corners very near each other in space may require several swaps to connect. Distance plays no part in the definition.

Not adjacent: bases differing in two columns. { 3 , 4 } and { 1 , 2 } in the worked example share nothing. One swap cannot connect them, and the corners they describe are not joined by an edge.

Not a free choice: the edge direction. Once the entering variable is named, u = A B − 1 A j is determined. There is no latitude about which way the edge runs; the constraints fix it.

Not a limit on the step: a row with u i ≤ 0 . That basic variable is rising or holding steady as the entering variable increases, so it never reaches zero and never ends the walk. Including it in the ratio test produces a meaningless number, and if it is negative, one that would be wrongly selected as the minimum.

Not always two distinct corners: adjacent bases at a degenerate point. When the corner is degenerate, a swap can produce a basis describing the same point. The bases are adjacent, the edge between them has length zero, and the walk goes nowhere. Adjacency of bases does not guarantee distinctness of the corners they name.

Contrast

Adjacency is combinatorial, not spatial

The word 'adjacent' carries an everyday suggestion of nearness, and the suggestion misleads in a way that produces wrong expectations about the simplex method.

The tempting picture. The method is at a corner, looks around at the neighbouring corners, and steps to whichever is nearest, or perhaps to whichever is nearest among those that improve the objective.

What is actually true. Adjacency is decided by column sets: two bases are adjacent when they share all but one column. That condition mentions no distances and no coordinates. Two adjacent corners can be a hair apart or half the region apart, and the step length θ ∗ is whatever the ratio test returns. It is a consequence of the walk, never a criterion for choosing it.

A concrete illustration. In the worked example, entering x 1 from { 3 , 4 } travels a distance determined entirely by when x 3 hits zero, which was θ ∗ = 4 . Had b been ( 80 , 8 ) T instead, the same entering choice from the same basis would have travelled until x 4 hit zero, at θ ∗ = 8 , landing much further away. Same adjacency relation, same direction, very different distance. Nothing about the relation changed.

What the method actually selects on. The entering variable is chosen by the sign of its reduced cost, by the rate at which the objective improves along the edge, not by how far the edge goes or where it ends. A steep short edge and a shallow long one are judged by the same rule, and the rule looks at neither length.

Why the confusion is expensive. A learner expecting a nearest-neighbour walk will find the iteration count inexplicable, sometimes a long stride across the region, sometimes a step of length zero at a degenerate corner. Both are ordinary once adjacency is understood as a relation between active sets rather than a statement about proximity.

Exercise

1. For the system x 1 + x 2 + x 3 = 6 , x 1 + x 4 = 4 , x ≥ 0 , decide which pairs among { 3 , 4 } , { 1 , 3 } , { 1 , 2 } and { 2 , 4 } are adjacent.

2. From the basis { 3 , 4 } in that system, compute the edge direction generated by entering x 1 , the step limit, and the corner reached.

3. Repeat with x 2 entering. Which basic variable leaves, and why is the answer different?

4. Suppose an entering variable gives u = ( − 1 , − 3 ) T . What does the edge look like, and what does that say about the feasible region?

5. Two adjacent bases describe the same point. What must be true of that point, and what was the step length?

What to carry forward

Two bases are adjacent when they share all but one column. Under nondegeneracy the distinct corners they describe are joined by an edge of the feasible region and their active sets differ in exactly one constraint. The same fact read algebraically and geometrically. Degeneracy breaks the correspondence: several bases can describe one corner, so adjacent bases need not name distinct points.

The edge direction is forced, not chosen. Naming the entering variable j determines u = A B − 1 A j , the rates at which the basic variables must compensate, and the direction d with d j = 1 and d B ( i ) = − u i .

Exactly one column changes because exactly one constraint is released and one acquired: the entering variable rises off zero, the walk continues until some basic variable is driven to zero, and that one leaves.

Only components with u i > 0 bound the step, since only those are falling towards zero. If none is positive the edge runs on without limit, and the region is unbounded in that direction.

Adjacency is combinatorial rather than spatial. Adjacent corners may be far apart, the step length is an outcome of the ratio test rather than a criterion for the move, and at a degenerate corner two adjacent bases can name the same point with an edge of length zero between them.

This is the geometry a simplex iteration walks on. That unit decides which edge to take and executes the arithmetic; the edge itself, and why taking it is one column's worth of change, is what this unit supplies.

Next step

Practice Adjacent Basic Solutions

Practice records what support you used, so the evidence reflects how you actually performed.

Practice this lessonSkip to Reduced Costs and the Optimality Test

Results update as you type. Use the up and down arrow keys to move between results, Enter to open one, and Escape to close.

Type to search.

Settings

Appearance

Interface density

Your record

Your progress is stored in this browser and nowhere else: an identifier, the answers you have given, the mastery states and review schedule derived from them, and the lesson you last opened. Clearing it makes you a new learner on this device. It cannot be undone, and it will not affect your appearance or density settings.

Focus timer

Focus--minutes remaining

Phase

Kept in this browser only, and used to label the session in your own history.

Today

Nothing recorded yet. Finish a focus session and it will appear here.

Settings

Focus sessions between long breaks.

Sessions you are aiming for in a day.

Notifications

Your history

Sessions are stored in this browser and nowhere else. They are not evidence and never reach your mastery record.