Mathematical optimization is the branch of applied mathematics concerned with finding the best element from a feasible set according to a defined criterion. It underpins machine learning, operations research, economics, and engineering β any domain where resources must be allocated or decisions must be made under constraints. The key mental model is the interplay between the objective function (what you want to minimize or maximize), the feasible region (what's allowed), and the structure of the problem (convex or not, continuous or integer) β because structure determines which algorithms are guaranteed to find a global optimum and which may only find a local one.
What This Cheat Sheet Covers
This topic spans 15 focused tables and 137 indexed concepts, 136 flashcards. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.
A jump-to index of every table row in this cheat sheet.
An interactive map of every table and concept in this topic.
Table 1: Linear Programming Formulation
Linear programming (LP) provides the foundational language for optimization problems where both the objective and all constraints are linear functions of the decision variables. Understanding standard form, canonical form, and slack variables is prerequisite to every solver and algorithm that follows.
| Method | Example | Description | |
|---|---|---|---|
$\max\ \mathbf{c}^\top \mathbf{x}$ s.t. $A\mathbf{x} \leq \mathbf{b},\ \mathbf{x} \geq 0$ | β’ LP form with $\leq$ inequality constraints and non-negative variables β’ most solvers convert to this before processing | ||
$\max\ \mathbf{c}^\top \mathbf{x}$ s.t. $A\mathbf{x} = \mathbf{b},\ \mathbf{x} \geq 0$ | β’ Each $\leq$ constraint is converted to equality by adding a slack variable $s_i \geq 0$ β’ required by the simplex method | ||
$a_1 x_1 + a_2 x_2 + s = b,\ s \geq 0$ | β’ Non-negative variable added to a $\leq$ constraint to convert it to equality β’ $s = 0$ at the constraint boundary | ||
$a_1 x_1 + a_2 x_2 - s = b,\ s \geq 0$ | β’ Non-negative variable subtracted from a $\geq$ constraint to convert it to equality β’ used in Phase I / Big M | ||
$z = 3x_1 + 5x_2$ | β’ The linear expression to be maximized or minimized β’ coefficients $\mathbf{c}$ encode the value of each variable | ||
Polygon defined by $Ax \leq b,\ x \geq 0$ | β’ The set of all variable values satisfying every constraint β’ for LP it is a convex polyhedron. | ||
Intersection of two constraint lines in 2-D | Optimal LP solution always occurs at a vertex (extreme point) of the feasible polyhedron when one exists. | ||
Unbounded: $\max x_1$ with no upper bound on $x_1$ | β’ LP is bounded if optimal value is finite β’ unbounded if the objective can increase indefinitely within the feasible region | ||
$x \geq 5$ and $x \leq 2$ simultaneously | β’ No point satisfies all constraints β’ the feasible region is empty. | ||
$x_1, x_2 \geq 0$ | β’ Structural requirement β’ free (unrestricted) variables can be split: $x = x^+ - x^-,\ x^+, x^- \geq 0$. |