Skip to main content
Optimisation
Lesson 53 of 75
Standard practice

Inequality constraints

Objective. Interpret complementary slackness and KKT conditions.

  1. 1. Learn
  2. 2. Worked example
  3. 3. Practice
  4. 4. Feedback
  5. 5. Continue

Learn: the key idea

Inequality constraints extend optimisation beyond equalities by allowing feasible regions bounded by curves like g(x)≤0, requiring the Karush–Kuhn–Tucker (KKT) conditions. At an optimum, ∇f + Σμᵢ∇gᵢ = 0 with μᵢ ≥ 0, gᵢ ≤ 0, and complementary slackness μᵢgᵢ = 0, meaning a multiplier is zero unless its constraint is active (binding). Example: minimise f(x)=x² subject to x≥1, i.e. g(x)=1−x≤0; since the unconstrained minimum x=0 is infeasible, the constraint binds at x=1 with μ>0, giving minimum value 1. Complementary slackness tells us exactly which constraints matter at the solution.

Worked example

Using KKT inequality-constraint reasoning, minimise f(x) = (x−3)² subject to x ≥ 5.

3 … 5
Illustrated card showing 3 … 5
  1. 1Unconstrained minimum of f is at x = 3, which violates x ≥ 5
  2. 2So the constraint x ≥ 5 is active, giving g(x) = 5 − x = 0, so x = 5
  3. 3Check complementary slackness: μ > 0 is consistent since the constraint binds
  4. 4Evaluate f(5) = (5−3)² = 4

Answer: 4

Concept mastery

Based on your past attempts at this lesson — the question types to practise again come first.

Complete a practice set to see your concept breakdown here.

Practice

Practice happens on its own screen, one question at a time. Answers stay hidden until you submit yours, and you can stop and pick up at the same question later.

Start practising

Common mistake. Students assign a positive multiplier to every constraint listed, ignoring complementary slackness; if a constraint is not active at the optimum its multiplier must be zero, not merely small.

Your progress

Tick each step as you finish it. Your exact reading position is saved automatically, so Continue drops you back on the same line.

0 of 5 steps complete

Your place saves automatically as you read.

My dashboard