1. Home
  2. Explore
  3. Mathematics
  4. Linear Optimization Introduction

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Linear Optimization Introduction

Linear Optimization

Optimization is the field of taking optimal decisions, not just any decision. While everyday decisions (like choosing a route to class) can rely on common sense, complex systems require rigorous optimization because a small improvement can save millions of dollars.


The Assignment Problem: A Motivating Example

Consider 70 people and 70 jobs. Each person can perform a subset of jobs, and a numerical value indicates how well each person performs each job. The goal is to assign each person to exactly one job to maximize total quality.

A brute-force algorithm that enumerates all possible assignments would check 70!70!70! possibilities – roughly 1010010^{100}10100, more than the number of particles in the observable universe. Even with a supercomputer, solving this for 30 people and 30 jobs would take 14 billion years (four times the age of the universe). This demonstrates that common sense or exhaustive search is completely inadequate for seemingly simple problems.

Key insight: Many optimization problems appear easy but become intractable without proper theory and algorithms. Linear programming provides an efficient way to solve the assignment problem in seconds.


The Modeling Approach

Real-world optimization follows a structured process:

  1. Modeling: Translate the real-world problem into mathematical relationships, obtaining an optimization problem of the form $$\text{minimize } f(x) \text{ subject to } x \in S$$

    • fff: objective function

    • SSS: feasible set

  2. Model Analysis: Study mathematical properties of the model (e.g., optimality conditions, duality) to design efficient solution methods.

  3. Algorithm Design: Develop an algorithm (solution method) that exploits the properties found.

  4. Solve: Apply the algorithm to find an optimal solution x∗x^*x∗.

  5. Validation: Check if x∗x^*x∗ truly satisfies all real-world constraints. Often missing constraints are discovered, requiring a return to the modeling step. This loop repeats until the solution is valid.


What is Linear Programming?

Linear programming (LP) is the special case where every function in the problem is linear.

Linear Functions

A function f:Rn→Rf: \mathbb{R}^n \to \mathbb{R}f:Rn→R is linear if it satisfies two properties:

  • f(x+y)=f(x)+f(y)f(x + y) = f(x) + f(y)f(x+y)=f(x)+f(y) for all x,y∈Rnx, y \in \mathbb{R}^nx,y∈Rn

  • f(λx)=λf(x)f(\lambda x) = \lambda f(x)f(λx)=λf(x) for all x∈Rnx \in \mathbb{R}^nx∈Rn and scalar λ\lambdaλ

Equivalently, a linear function can be written as the inner product

f(x)=cTx=c1x1+c2x2+⋯+cnxnf(x) = c^T x = c_1 x_1 + c_2 x_2 + \dots + c_n x_nf(x)=cTx=c1​x1​+c2​x2​+⋯+cn​xn​

LP Problem Form

A linear programming problem always takes the form:

minimize cTx subject to Ax≥b\text{minimize } c^T x \text{ subject to } A x \geq bminimize cTx subject to Ax≥b
  • The objective cTxc^T xcTx is a linear function.

  • The feasible set is defined by a system of linear inequalities (and equalities) expressed in matrix form as Ax≥bA x \geq bAx≥b.

Allowed Constraints in LP

  • Less than or equal to (≤\leq≤)

  • Equal to (===)

  • Greater than or equal to (≥\geq≥)

  • Strict inequalities (<<< or >>>) are never allowed.

  • Variables can be unrestricted or sign-restricted (xi≥0x_i \geq 0xi​≥0, xj≤0x_j \leq 0xj​≤0).

Example of an LP Problem

Minimize 2x1−x2+4x32x_1 - x_2 + 4x_32x1​−x2​+4x3​
subject to:

  • x1+x2+x4≤2x_1 + x_2 + x_4 \leq 2x1​+x2​+x4​≤2

  • 3x2−x3=53x_2 - x_3 = 53x2​−x3​=5

  • x3+x4≥3x_3 + x_4 \geq 3x3​+x4​≥3

  • x1≥0x_1 \geq 0x1​≥0

  • x3≤0x_3 \leq 0x3​≤0

All functions are linear: no product of variables (x1x2x_1 x_2x1​x2​), no squares (x12x_1^2x12​), no cubes. Each constraint uses ≤\leq≤, ===, or ≥\geq≥.


Algorithms for Linear Programming

The Simplex Algorithm

The simplex method is considered one of the most important algorithms of the 20th century. It exploits the geometric and algebraic structure of linear programs (optimality conditions and duality) to drastically reduce the number of candidate solutions examined.

For the assignment problem with 70 people and 70 jobs, the simplex method solves it in seconds, whereas enumeration would take longer than the age of the universe.

The Ellipsoid Method

The ellipsoid method is a completely different algorithm for linear programming. Its importance lies in being the first algorithm proven to solve LP problems efficiently in theory (polynomial time).

Why Theory Matters

The course focuses on why algorithms work, not just how they work. Each algorithm is derived from mathematical properties, and correctness is proved. There is a strong interplay between geometry (visual intuition) and algebra (formal proofs and algorithms).


Topics Covered in a Typical Linear Optimization Course

  1. Introduction to Linear Programming – basic concepts and examples.

  2. Polyhedra and Their Properties – geometric foundation of LP.

  3. The Simplex Method – main solution algorithm.

  4. Duality Theory – the primal LP has a related dual LP; this yields the dual simplex method.

  5. Network Flow Problems – special LP problems for which the simplex method can be specialized.

  6. Computational Complexity and the Ellipsoid Method – theoretical efficiency.


Prerequisites and Background

A solid understanding of linear algebra is essential, including:

  • Set-theoretic notation

  • Vectors and matrices, matrix inversion

  • Subspaces, bases, affine subspaces

  • Linear independence, rank of a matrix

Basic proof techniques are also required:

  • Direct proof, proof by contradiction, proof by induction

  • Logical concepts like contrapositive

Mathematical notation and symbols should be familiar.


Key Takeaways

  • Optimization = mathematical decision-making to find the best solution.

  • Linear programming = optimization with linear objective and linear constraints.

  • The assignment problem shows that naive algorithms fail spectacularly, but LP solves it efficiently.

  • The modeling process is iterative: model → analyze → algorithm → solve → validate → repeat.

  • The simplex method is the cornerstone algorithm for LP.

  • LP is used across engineering, computer science, physics, biology, finance, economics, and even military operations.

  • LP also appears as a subproblem in more complex optimization (e.g., integer optimization).

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent