Skip to content
Simplex-Methode-Rechner Simplex-Methode-Rechner
← Zurück zum Blog
Maximization vs Minimization in the Simplex Method (Solved Example)

Maximization vs Minimization in the Simplex Method (Solved Example)

Veröffentlicht am June 27, 2026 · von Simplex Method Calculator Editorial Team

The simplex method works for both maximization and minimization problems, but the rules for choosing the entering variable and for stopping are reversed. There are two standard ways to handle a minimization problem: convert it to maximization, or apply the minimization rules directly. Both give the same answer. This guide explains both and solves one example each way.

The Rules at a Glance

MaximizationMinimization (solved directly)
Entering variableLargest positive Cj − ZjMost negative Cj − Zj
Optimal whenEvery Cj − Zj ≤ 0Every Cj − Zj ≥ 0
Leaving variableMinimum ratio testMinimum ratio test (unchanged)
Big M penalty for artificials−M+M

The minimum ratio test is the same in both cases, because its job is to keep the solution feasible, not to improve the objective. For a refresher on the Cj − Zj row, see how to calculate Zj and Cj − Zj.

Method 1: Convert to Maximization

Minimizing Z gives the same solution as maximizing −Z. So:

  1. Multiply every objective coefficient by −1.
  2. Solve the new problem as a maximization, with the maximization rules.
  3. At the end, change the sign of the optimal value to get the minimum Z.

The values of the decision variables do not change; only the sign of the objective value does. This is the most common method in textbooks, and it is what the simplex method calculator does internally when you choose minimize.

Method 2: Use the Minimization Rules Directly

Keep the original objective, calculate Zj and Cj − Zj as usual, and:

  1. Choose the most negative Cj − Zj as the entering variable, because it lowers Z the most per unit.
  2. Use the minimum ratio test to choose the leaving variable.
  3. Stop when every Cj − Zj is zero or positive.

Solved Example

Minimize Z = 2x1 − 3x2 subject to x1 + x2 ≤ 4, x1 − x2 ≤ 6, and x1, x2 ≥ 0.

Add slack variables s1 and s2.

Solving With Method 1 (Maximize −Z)

Maximize −Z = −2x1 + 3x2. The Cj row is −2, 3, 0, 0.

BasisCbx1x2s1s2RHS
s1011104
s201−1016
Cj − Zj−2300−Z = 0

x2 has the only positive value (3), so x2 enters. Ratio test: row s1 gives 4/1 = 4; row s2 has −1 in the x2 column and is skipped. s1 leaves.

BasisCbx1x2s1s2RHS
x2311104
s20201110
Cj − Zj−50−30−Z = 12

All Cj − Zj ≤ 0, so the maximization is optimal with −Z = 12. Therefore the minimum Z = −12, at x1 = 0, x2 = 4.

Solving With Method 2 (Minimize Directly)

Keep Cj = 2, −3, 0, 0.

BasisCbx1x2s1s2RHS
s1011104
s201−1016
Cj − Zj2−300Z = 0

The most negative value is −3, so x2 enters, and the same ratio test removes s1. In the new tableau, x2 has Cb = −3:

  • Zj under x1: (−3)(1) + 0(2) = −3, so Cj − Zj = 2 − (−3) = 5
  • Zj under s1: (−3)(1) + 0(1) = −3, so Cj − Zj = 0 − (−3) = 3
  • Zj under RHS: (−3)(4) = −12

Every Cj − Zj is now ≥ 0, so the tableau is optimal: Z = −12 at x1 = 0, x2 = 4, the same answer as Method 1. Notice that the Cj − Zj values in Method 2 (5 and 3) are exactly the negatives of those in Method 1 (−5 and −3).

Checking the Answer

Substitute: Z = 2(0) − 3(4) = −12. Constraints: 0 + 4 = 4 ≤ 4 ✓ and 0 − 4 = −4 ≤ 6 ✓. The first constraint is binding.

What If We Maximized Instead?

For comparison, maximizing Z = 2x1 − 3x2 with the same constraints gives a completely different corner: x1 enters first (Cj − Zj = 2), s1 leaves, and the optimum is x1 = 4, x2 = 0, Z = 8. The feasible region is the same; the direction of optimization decides which corner wins.

Which Method Should You Use?

  • Method 1 lets you learn only one set of rules, and it matches most calculators and software. Just remember to flip the sign of the final objective value.
  • Method 2 keeps the objective values in their natural sign, which some instructors prefer. Make sure you use “most negative” and “all ≥ 0” consistently.
  • For problems with ≥ constraints, both methods need artificial variables. Use the Big M method or the two phase method, or the dual simplex method if all costs are non-negative.

Common Mistakes

  • Forgetting to change the sign back after maximizing −Z. The optimal value of −Z is 12, but the answer to the question is Z = −12.
  • Mixing the rules: choosing the most negative Cj − Zj but stopping when all are ≤ 0.
  • Using −M instead of +M for artificial variables in a minimization solved directly.
  • Changing the ratio test. It is identical for maximization and minimization.

Try Both Directions

Enter 2x1 - 3x2 with the two constraints in the simplex minimization calculator to confirm Z = −12, then switch to maximize in the maximization calculator to see the answer change to Z = 8.