Skip to main content

Menu

LEVEL 0
0/5 XP
HomeAboutTopicsPricingMy VaultStats

Categories

πŸ€– Artificial Intelligence
☁️ Cloud and Infrastructure
πŸ’Ύ Data and Databases
πŸ’Ό Professional Skills
🎯 Programming and Development
πŸ”’ Security and Networking
πŸ“š Specialized Topics
HomeAboutTopicsPricingMy VaultStats
LEVEL 0
0/5 XP
GitHub
Β© 2026 CheatGridβ„’. All rights reserved.
Privacy PolicyTerms of UseAboutContact

Linear Programming and the Simplex Method Cheat Sheet

Linear Programming and the Simplex Method Cheat Sheet

Back to Mathematics and Algorithms
Updated 2026-05-21
Next Topic: Logic Cheat Sheet

Linear Programming (LP) is a mathematical optimization technique for maximizing or minimizing a linear objective function subject to linear constraints. The simplex method, introduced by George Dantzig in 1947, remains the dominant algorithm for solving LP problems in practice despite its worst-case exponential complexity, because it performs very efficiently on real-world instances. This cheat sheet covers LP formulation from first principles through advanced topics including duality theory, integer programming, interior-point methods, network flows, and practical solver usage.

What This Cheat Sheet Covers

This topic spans 16 focused tables and 129 indexed concepts. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.

LP Standard Form and Canonical FormFormulating Real Problems as LPsBasic Feasible Solutions and Polytope VerticesSimplex Method: Tableau and Pivot RulesBland's Anti-Cycling RuleTwo-Phase Simplex and Big-M MethodLP Duality and Weak/Strong Duality TheoremsSensitivity Analysis and Shadow PricesInteger Linear Programming (ILP) BasicsBranch and Bound for ILPInterior-Point Methods OverviewTransportation and Assignment ProblemsNetwork Simplex for Min-Cost FlowSolver Tools: SciPy, PuLP, Gurobi, CPLEXModeling Languages: AMPL and GAMSCommon Formulation Pitfalls

LP Standard Form and Canonical Form

ConceptExampleDescription
Standard Form (Inequality)
\max c^T x s.t. Ax \leq b,\ x \geq 0
β€’ Canonical max LP: objective is linear, all constraints are \leq inequalities, all variables non-negative
β€’ most solvers accept this as input
Canonical Form (Equality)
\max c^T x s.t. Ax = b,\ x \geq 0
β€’ Equality form used internally by simplex
β€’ obtained by adding slack variables
β€’ also called augmented or slack form
Slack Variable
x_1 + x_2 + s_1 = 4,\ s_1 \geq 0
β€’ Non-negative variable added to convert \leq inequality to equality
β€’ s_i = b_i - a_i^T x measures unused capacity
Surplus Variable
x_1 + x_2 - e_1 = 2,\ e_1 \geq 0
β€’ Non-negative variable subtracted to convert \geq inequality to equality
β€’ e_i = a_i^T x - b_i

More in Mathematics and Algorithms

  • Linear Algebra Cheat Sheet
  • Logic Cheat Sheet
  • Abstract Algebra Essentials Cheat Sheet
  • Complex Analysis Cheat Sheet
  • Graph Algorithms Shortest Paths and Network Search Cheat Sheet
  • Number Theory Cheat Sheet
View all 57 topics in Mathematics and Algorithms