Linear Programming — Optimizing Linear Objectives Under Linear Constraints
Also known as: LP, linear optimization, Doğrusal Programlama (LP)
Linear programming (LP), pioneered by George B. Dantzig in 1947, is a mathematical method for finding the best value of a linear objective function — such as minimum cost or maximum profit — subject to a set of linear inequality and equality constraints. It is the foundational technique in operations research and underlies production planning, resource allocation, logistics, diet problems, and countless other decision-making scenarios across engineering, economics, and the natural sciences.
Key highlights
- Guaranteed global optimum: because the feasible region is a convex polyhedron, any local optimum is also a global optimum, with no risk of being trapped in a sub-optimal solution.
- Highly scalable: modern solvers (HiGHS, Gurobi, CPLEX) handle models with millions of variables and constraints in seconds.
- Rich post-solution information: shadow prices and sensitivity ranges deliver actionable insight about resource value and solution robustness without additional runs.
- No distributional assumptions: LP is a purely algebraic model, so it does not require normality or any statistical property of the data.
Intuition
This section is available to Pro members. Upgrade to Pro
How it works
This section is available to Pro members. Upgrade to Pro
When to use it
Linear programming is appropriate whenever you need to optimise a quantity that depends linearly on a set of decision variables, and all constraints are also linear. It requires no distributional assumptions and no minimum sample size — it is a deterministic mathematical model, not a statistical estimator. The method applies when decision variables are continuous (fractional values are meaningful); if variables must be whole numbers or binary, integer programming is needed instead. LP is widely used in production scheduling, supply-chain logistics, diet and blending problems, financial portfolio optimisation, transportation and assignment problems, and energy dispatch.
Strengths & limitations
- Guaranteed global optimum: because the feasible region is a convex polyhedron, any local optimum is also a global optimum, with no risk of being trapped in a sub-optimal solution.
- Highly scalable: modern solvers (HiGHS, Gurobi, CPLEX) handle models with millions of variables and constraints in seconds.
- Rich post-solution information: shadow prices and sensitivity ranges deliver actionable insight about resource value and solution robustness without additional runs.
- No distributional assumptions: LP is a purely algebraic model, so it does not require normality or any statistical property of the data.
- Linearity requirement: if the objective or any constraint is nonlinear, the LP model is mis-specified and the solution may be incorrect or infeasible.
- Continuous variables only: when decision variables must take integer or binary values, LP relaxation gives a lower bound but not a valid solution; integer programming must be used.
- Deterministic: LP does not model uncertainty in parameters; stochastic programming or robust optimisation is needed when data are uncertain.
- Degeneracy and cycling: in rare cases the Simplex method can cycle among degenerate bases without converging, though anti-cycling rules (e.g., Bland's rule) resolve this.
Common pitfalls
This section is available to Pro members. Upgrade to Pro
Applications
This section is available to Pro members. Upgrade to Pro
Frequently asked
What makes a problem 'linear' for LP purposes?
Both the objective function and every constraint must be linear — meaning each term is a constant multiplied by a single decision variable, with no products of variables, no exponents, and no nonlinear functions. If even one constraint or the objective involves, say, x times y or x squared, standard LP no longer applies and a nonlinear or quadratic programming solver is needed.
Why does the optimal solution always lie at a corner of the feasible region?
The feasible region defined by linear constraints is a convex polyhedron (or polytope). A linear objective function is itself linear, so it cannot be 'pulled' toward the interior of a convex set — it always achieves its extreme value on the boundary, and specifically at a vertex (corner point). This is the geometric insight underlying the Simplex method's vertex-to-vertex strategy.
When should I use integer programming instead of LP?
Whenever one or more decision variables must take integer or binary (0/1) values — for example, whether to open a facility (yes/no), how many trucks to dispatch (whole numbers), or which items to include in a selection. Simply solving the LP and rounding the continuous solution is not reliable: rounded solutions can be infeasible or far from optimal. Integer programming handles integrality correctly, at greater computational cost.
What do shadow prices tell me?
A shadow price (dual variable) for a binding constraint indicates how much the optimal objective value would improve if that constraint's right-hand-side were relaxed by one unit, holding everything else constant. For example, a shadow price of 3 on a labour-hours constraint means that adding one more hour of labour would improve the objective by 3 units. Constraints that are not binding have a shadow price of zero — they are not limiting the current optimum.
Sources
- 1.Dantzig, G.B. (1963). Linear Programming and Extensions. Princeton University Press.ISBN 9780691059136
- 2.Vanderbei, R.J. (2014). Linear Programming: Foundations and Extensions. Springer.
You have read it. What now?
Cite this page
ScholarGate. (2026, June 1). Linear Programming. ScholarGate. https://scholargate.app/optimization/linear-programming