Basic Solutions
What you will be able to do
Given a standard-form constraint system and a proposed set of columns, the learner can decide whether the set is a basis, construct the corresponding basic solution by setting nonbasic variables to zero and solving the square system, and state separately whether the result is feasible.
Orientation
Switch off all but
The construction is short: switch off the variables outside the basis, solve for the ones left on. What makes it worth its own unit is the step that is not in it. Nothing in the procedure consults the nonnegativity restrictions, so the arithmetic will hand you a point with a negative component and report no difficulty at all. That point satisfies every equation and is still not a member of the feasible region.
So there are two questions here, and they are answered in order rather than together: what point does this basis determine, and is that point feasible. Collapsing them is the error this unit exists to prevent.
This unit assumes you can test a set of vectors for independence, solve a square system, and convert a program to standard form.
Intuition
Choosing which variables to set to zero
There are more variables than equations, so the equations alone do not pin down a point. They leave a whole flat of solutions. To land on one specific point you must supply something extra, and the extra thing is a decision.
The decision is: choose
The arithmetic gives no signal when the result is infeasible. You solve
That is why the feasibility test is a separate step rather than a property of a job well done. A successful construction guarantees the equalities. It guarantees nothing about the signs, and the signs are half of what feasibility means.
There is a second thing the arithmetic will not tell you. If the chosen columns are dependent,
Definition
Basis, basic solution, and the feasibility test
Let
Basis. A set
Basic solution. Set every nonbasic variable to zero and solve for the rest:
This satisfies
Basic feasible solution. A basic solution that additionally satisfies
The gap between the two. The construction above involves no sign test. The components of
Structure of the point. Every basic solution has at least
How many. There are
Figure
Basic feasible, basic infeasible, and feasible nonbasic
The construction, carried out where you can see it. In standard form the constraints become
Basic and feasible — the four red corners. Switch off
Basic and infeasible — the purple point. Take the basis
Feasible but not basic — the grey point
That is the distinction the unit exists for. Solving
Procedure
Constructing a basic solution
Check the system is in standard form. Equality constraints and nonnegative variables. If it is not, convert first: the definitions below are stated for
Test the proposed columns for independence. Assemble
Set every nonbasic variable to zero. Write them down explicitly as zeros rather than omitting them. They are components of the answer, and a reported vector missing them is incomplete.
Solve the square system
Assemble the full vector. Place the solved values at their basic positions and zeros elsewhere, in the original variable order.
Verify the equalities. Substitute into
Now test the signs, as a separate question. Check whether every component is nonnegative. If so the point is a basic feasible solution and therefore a vertex of the feasible region. If any component is negative the point is a basic solution that is not feasible: a legitimate result of the construction, and not a corner.
Report both facts. Say which point the basis determines and whether it is feasible. Reporting only the first invites the reader to assume the second.
Example
Three bases for one system
Take
so
Basis
Basis
The set
Three different outcomes from the same system, and only the third is a failure of the construction rather than a result of it.
Worked example
A basis giving an infeasible point
Problem. For the system
construct the basic solution for
Goal. The point the basis determines, and whether it is feasible.
Relevant principle. The construction guarantees the equalities. Feasibility is a separate test on the result.
Step 1: check independence.
Nonzero, so the columns are independent and
Step 2: set the nonbasic variables to zero.
Step 3: solve the square system.
From the second,
Step 4: assemble.
Step 5: verify the equalities.
Step 6: test the signs. Every component is nonnegative. This one is a basic feasible solution.
Now change
The point is
Test the signs.
What to notice. Steps 1 through 5 were equally successful in both cases. The determinant was nonzero, the system solved cleanly, the equalities checked out. Only step 6 separates them, and a learner who treats step 5 as the end of the work will report the second point as a corner.
Non-example
What is not a basic solution
Not a basic solution: a feasible point with too many positive components. In the four-variable example,
Not a basic solution: the result of a dependent column set. Choosing
Not a basic feasible solution: a basic solution with a negative component. The point
Not a reason to skip the sign test: a clean construction. The determinant being nonzero and the elimination going through without difficulty say nothing about feasibility. They are conditions on
Not the same thing: zero nonbasic variables and zero basic variables. Nonbasic variables are zero by decision, always. A basic variable solving to zero is different. The point is then degenerate, which is taken up separately.
Contrast
Basic solutions that are not feasible
The most reliable way to produce a wrong answer here is to treat a successful construction as a finished one.
What the construction guarantees. That
What it does not guarantee. That
The two cases side by side. With
Why this matters beyond bookkeeping. The enumeration argument for the simplex method rests on optima occurring at vertices. A basic solution that is not feasible is not a vertex, so evaluating the objective there and comparing it with genuine corners can return a value that beats every feasible point. An 'optimum' outside the region. The error does not present as a contradiction. It presents as an unusually good answer.
The habit. Make the sign test an explicit line of the work with its own verdict, in the same way the equality check is. Two sentences at the end: the equalities hold, and every component is nonnegative, so the point is a basic feasible solution, or component
Exercise
1. For
2. Same system,
3. Same system. Show that
4. How many components of a basic solution of this system must be zero, at minimum? Give a basic solution with more zeros than that minimum, and say what such a point is called.
5. A colleague reports: 'I chose columns 2 and 3, the determinant was zero, so the basic solution is infeasible.' Two things are wrong with that sentence. What are they?
What to carry forward
A basis is
The construction guarantees the equality constraints and nothing else. Feasibility is a separate test, every component nonnegative, applied to the result, and a basic solution failing it is not a vertex and not a candidate for the optimum.
Three outcomes are possible from a proposed column set, and they are genuinely different: the columns are dependent and there is no basic solution at all; the construction succeeds and the point is infeasible; the construction succeeds and the point is a basic feasible solution.
Every basic solution has at least
This construction is performed inside every simplex iteration, where the sign test has been folded into the ratio test and is no longer visible as a separate step. Knowing it is there is what makes the ratio test's restriction intelligible rather than arbitrary.