Linear Programming¶
Definition¶
A linear program (LP) maximizes or minimizes a linear objective function subject to linear equality and/or inequality constraints. Its decision variables are continuous; if additional integer restrictions are imposed, the model becomes an integer linear program rather than an LP. For example,
Other inequality directions and equalities are also allowed in an LP.
Interpretation¶
A linear program optimizes a linear objective over the decisions allowed by linear constraints. "Linear" means that each variable enters only multiplied by a constant, and the terms are added, as in . This simple form is what makes large planning models tractable.
The figure shows what linearity looks like in two variables. Every constraint boundary is a straight line, so the feasible region is a polygon with straight edges, and every set of points with equal objective value is a straight line; the lines and are parallel. The best value is reached where the highest objective line still touches the region, at the corner .
The definition rules out products such as , powers such as and fractions with a variable in the denominator, although some fractions can be multiplied out, as the share constraint of the diet problem shows. Variables are continuous, so soldiers is an allowed value; indivisible decisions need explicit integer restrictions. The definition does not promise an optimum either: the constraints may contradict each other, or the objective may improve without limit.
Two variables can be handled by the graphical method; larger LPs are solved by the simplex method, which moves from corner to corner of the region.
Key Results¶
- Products of decision variables and powers such as are not linear.
- Negative coefficients are allowed.
- The graphical method is useful for two variables; simplex handles larger models.
Examples¶
The illustrated Giapetto LP has objective and attains value 180 at . Its original quantities are continuous; no integrality restriction is included.
- Giapetto maximizes under linear labour and demand limits.
- The diet problem minimizes cost under nutrient and composition requirements.
Prerequisites¶
Related Concepts¶
Sources¶
- OR Modelling · Week 1
Aliases: LP, linear optimization, linear optimisation Keywords: linear program Symbols: sum
Last updated: 27 October 2026 11:52
Linear ProgrammingAugmented FormCorner Point OptimalityGiapetto Production ModelGraphical MethodInteger Linear ProgrammingLinear Program FormulationMaximum Flow Linear ProgramMultiple Optimal SolutionsSimplex MethodUnbounded Linear ProgramUnrestricted Variable TransformationObjective FunctionConstraint