- Detect when slack variables are not enough to start simplex (equality and
$\ge$ constraints). - Convert constraints to an equation form using slack/surplus and (when needed) artificial variables.
- Set up the Big‑M method objective and correctly “substitute out” basic artificial variables from the z-row.
- Explain the two‑phase method and how Phase I detects infeasibility.
- Simplex needs a starting BFS. If the “obvious” slack-based BFS doesn’t exist, we manufacture one.
- Artificial variables are bookkeeping devices: they make a starting basis possible, but must end at 0.
- Two-phase is the clean way to avoid picking a numeric
$M$ ; Big‑M bakes the “remove artificials” goal into the objective.
From the lecture notes:
- If constraints are not all “$\le$ with nonnegative RHS”, adding only slack variables may not yield a BFS.
- Typical triggers:
- Equality constraints
$=$ - “$\ge$” constraints (after adding a surplus variable, you still may not have an identity column)
- Equality constraints
Idea: penalize artificial variables heavily so the algorithm drives them to 0.
- For maximization: subtract
$M R_i$ terms from the objective. - For minimization: add
$M R_i$ terms to the objective.
Practical watch-out (noted in the lecture remarks):
- Big
$M$ does not magically fix infeasibility; if the model is infeasible, at least one artificial variable stays positive.
Phase I:
- Add artificial variables where needed.
- Optimize an auxiliary objective (typically: minimize the sum of artificial variables).
- If the Phase I optimum is positive → no feasible solution for the original problem.
Phase II:
- Start from the feasible basis found in Phase I.
- Restore the original objective and continue simplex.
- Ensure RHS is nonnegative (multiply the whole constraint by
$-1$ if needed). - For
$\le$ : add slack$+s$ . - For
$\ge$ : subtract surplus$-s$ and add artificial$+R$ . - For
$=$ : add artificial$+R$ . - Build the initial tableau with the artificial variables as basic (where needed).
- Fix the objective row:
- If an artificial variable is basic, eliminate its column from the z-row by adding/subtracting a multiple of that constraint row (as shown in tutorial problems).
- If you want a single-phase simplex run: Big‑M.
- If you want to avoid a large numeric constant
$M$ : Two‑phase.
Tutorial03.md focuses on exactly this skill: once an artificial variable is basic, the initial z-row must be adjusted.
Illustrative pattern (as stated in the tutorial solutions):
- Start with a z-row that contains an
$M$ coefficient on$R_1$ . - Then update: $$ \text{New z-row} = \text{Old z-row} + (-M)\times(\text{row of }R_1) $$ for a maximization problem (sign follows the chosen convention).
The lecture outlines:
- Add artificial variables.
- Phase I objective eliminates them.
- Phase II solves the original objective using the Phase I feasible basis.
Not found in provided materials: the Phase I example tableau in F25 - Intro to Opt -Lecture_3 - Artifitial.md is cut off mid-tableau, so later numeric steps are missing.
Lab03.md includes an M‑method problem and a two‑phase problem, but the document is truncated during the Phase I iterations. Use it as a template for how the model is rewritten (standard form + artificials), even if later pivots are not visible.
- Forgetting that
$\ge$ constraints introduce a surplus variable first (then often an artificial). - Not eliminating basic artificial variables from the z-row before pivoting.
- Using the wrong sign for the
$M$ penalty (depends on max vs min). - Declaring feasibility too early: in two-phase, you need the Phase I optimum value.
- Numerical instability with huge
$M$ (a reason the two-phase method is preferred conceptually).
- Artificial variables give you a starting basis; your algorithm must “kick them out”.
- Big‑M: do it via penalties in the objective.
- Two‑phase: do it via an auxiliary Phase I objective, then solve the real objective in Phase II.
- Decide whether an LP needs artificials and show the standard-form conversion.
- Write the Phase I objective for a given model.
- Adjust the z-row to eliminate basic artificial variables.
- Explain how infeasibility is detected in Phase I.
- I can rewrite
$\le,\ge,=$ constraints into equation form with correct variables. - I can set up Big‑M or Phase I correctly.
- I can do the “substitute out artificials” z-row step without sign mistakes.
- I can state the feasibility decision rule for Phase I.