2.1 Linear Programming Formulation, Graphical Solutions & Sensitivity Analysis
Key Takeaways
A linear program consists of a linear objective function and linear constraints, with continuous decision variables restricted by non-negativity.
Under the Fundamental Theorem of Linear Programming, an optimal solution to a bounded, non-empty feasible region always occurs at an extreme point (corner point) of the convex polyhedron.
Slack variables convert less-than-or-equal constraints into equalities representing unused resource capacity, while surplus variables convert greater-than-or-equal constraints representing excess above minimum requirements.
The shadow price (dual price) quantifies the marginal improvement in the optimal objective value per unit increase in a constraint's right-hand side, holding strictly within its allowable range of feasibility.
The allowable range of optimality specifies the bounds within which an objective function coefficient can vary without altering the optimal decision variable values.
2.1 Linear Programming Formulation, Graphical Solutions & Sensitivity Analysis
Linear Programming (LP) is the cornerstone mathematical optimization technique utilized by industrial and systems engineers to allocate scarce operational resources—including labor hours, machine capacities, raw materials, capital, and transportation pathways—to maximize profit or minimize cost. Developed mathematically by George Dantzig in 1947 through the introduction of the Simplex algorithm, LP models system interactions using linear relationships.
Foundations of Mathematical Programming in Industrial Systems
A mathematical optimization model seeks to determine the optimal values of decision variables that optimize an objective function subject to a system of structural constraints.
Core Model Components
- Decision Variables (): Controllable, quantifiable continuous entities representing operational levels (e.g., units of product produced per week, operating hours of facility , or barrels of crude oil routed through pipeline ).
- Objective Function (): A single mathematical expression to be maximized (e.g., total contribution margin, revenue, system throughput) or minimized (e.g., total production cost, scrap generation, delivery transit time):
where represents the objective function coefficient (unit profit or unit cost) associated with decision variable .
- Structural Constraints: Mathematical inequalities or equalities defining technological limitations, physical capacities, contractual commitments, or legal regulations:
where represents the technological consumption coefficient (the quantity of resource consumed per unit of activity ), and represents the right-hand side (RHS) parameter indicating the total availability of resource or the minimum requirement.
- Non-Negativity Restrictions: Physical operational activities cannot take negative values:
Fundamental Assumptions of Linear Programming
For an optimization model to be formulated strictly as a linear program, four axiomatic assumptions must hold:
- Proportionality: The contribution of each decision variable to both the objective function and the constraints is directly proportional to the value of the variable. There are no volume discounts, setup penalties, or diminishing marginal returns within the modeled domain.
- Additivity: The total contribution of all variables to the objective function and constraints is the exact algebraic sum of their individual contributions. No interaction effects or synergetic couplings exist between variables.
- Divisibility (Continuity): Decision variables are continuous and may assume any non-negative real value (fractional values are permitted). If decision variables must be integer-valued (e.g., whole airplanes or integer personnel counts), the model belongs to Integer Linear Programming (ILP).
- Certainty: All parameters () are known constants with deterministic certainty throughout the operational planning horizon.
Graphical Solution Methodology for Two-Variable Problems
When a linear program involves exactly two decision variables (), the entire optimization space can be evaluated geometrically on a two-dimensional Cartesian plane. This provides visual intuition for high-dimensional simplex geometry.
Step-by-Step Graphical Procedure
- Establish the Coordinate Axes: Set on the horizontal axis and on the vertical axis. The non-negativity constraints () immediately restrict all feasible solutions to the first quadrant.
- Plot Constraint Boundary Lines: Convert each inequality into an equality . Determine the intercepts:
- Set
- Set Connect these two points to establish the boundary line.
- Determine the Half-Space: Identify which side of the boundary line satisfies the original inequality by testing the origin . If is true, the region containing is feasible; otherwise, shade the opposite half-space.
- Delineate the Feasible Region (): The intersection of all half-spaces forms the feasible region. In linear programming, the feasible region is always a convex polyhedron (or polygon in 2D), meaning that a straight line segment connecting any two points within lies entirely within .
- Evaluate Extreme Points (Corner Points): By the Fundamental Theorem of Linear Programming, if an optimal solution exists, it occurs at an extreme point (vertex) of the feasible region.
- Objective Function Contours (Isoprofit / Isocost Lines): Set to an arbitrary constant to generate the contour line , with slope . The gradient vector indicates the direction of steepest increase. Translating the contour line parallel to itself in the direction of until it last touches an extreme point identifies the optimal solution .
Binding vs. Non-Binding Constraints and Slack/Surplus
- Binding Constraint: A constraint that is satisfied as a strict equality at the optimal solution point (). The optimal point lies directly on the boundary line. Modifying the RHS will change the optimal objective value .
- Non-Binding Constraint: A constraint satisfied as a strict inequality at the optimal point ( for a constraint). The boundary line does not pass through the optimal vertex.
- Slack Variable (): Introduced into a constraint to quantify unused capacity:
For a binding constraint, . For a non-binding constraint, .
- Surplus Variable (): Subtracted from a constraint to represent excess over minimum requirements:
Simplex Algorithm Mechanics & Algebraic Geometry
While graphical analysis is limited to two variables, real industrial problems contain thousands of variables and constraints. The Simplex method solves these problems by moving systematically from one extreme point (basic feasible solution) to an adjacent extreme point with an improved objective value.
Conversion to Standard Form
To apply the Simplex method, the LP must be cast in standard algebraic form:
- Maximize the objective function (a minimization problem is converted to ).
- All structural constraints are expressed as strict equalities.
- All right-hand side constants are non-negative ().
- All decision, slack, and surplus variables are non-negative.
For a system with constraints and total variables (after adding slacks and subtracting surpluses), where :
- Basic Variables ( variables): Selected variables solved in terms of the non-basic variables. These variables form the basis.
- Non-Basic Variables ( variables): Set identically to zero ().
- Basic Feasible Solution (BFS): A basic solution where all basic variables satisfy . Geometrically, each BFS corresponds exactly to an extreme point of the feasible region.
Simplex Pivot Mechanics
- Optimality Check: In a maximization problem, evaluate the reduced costs () in the objective row. If all , the current BFS is globally optimal.
- Entering Variable Selection (Pivot Column): Choose the non-basic variable with the most negative reduced cost (). This variable offers the highest rate of objective improvement per unit increase.
- Leaving Variable Selection (Pivot Row / Minimum Ratio Test): To maintain feasibility, the entering variable can only increase until the first basic variable drops to zero. Compute the ratio of current RHS values to positive technological coefficients in the pivot column:
The basic variable corresponding to the minimum ratio leaves the basis. 4. Gauss-Jordan Elimination: Perform elementary row operations to transform the pivot element to 1 and all other elements in the pivot column to 0, yielding a new adjacent BFS.
Special Solution Outcomes in Linear Programming
| Outcome | Graphical Manifestation | Simplex Tableau Indicator |
|---|---|---|
| Unique Optimal Solution | Objective line touches exactly one vertex of | All non-basic reduced costs |
| Alternate (Multiple) Optima | Objective line is parallel to a binding constraint edge | Reduced cost of a non-basic variable is zero () at optimality |
| Unbounded Solution | Feasible region is open in direction of optimization | Entering variable has no positive pivot coefficients ( for all ) |
| Infeasible Problem | Constraints are mutually contradictory; | Artificial variables remain positive () in the final optimal tableau |
| Degeneracy | More than constraint boundaries intersect at a single vertex | Tie in the minimum ratio test; a basic variable equals zero () |
Duality Theory & Economic Interpretation
Every linear programming problem, termed the Primal, possesses a corresponding symmetric companion problem termed the Dual. The dual problem provides economic valuation of the primal system's resources.
Primal-Dual Relationships
Consider the symmetric primal-dual formulation:
Primal Problem:
Dual Problem:
Where:
- represents the dual decision variable associated with primal constraint .
- Each primal constraint corresponds to a dual variable.
- Each primal variable corresponds to a dual constraint.
- The primal objective coefficients become the dual RHS vector.
- The primal RHS vector becomes the dual objective coefficients.
- The technological matrix is transposed to .
Core Duality Theorems
- Weak Duality Theorem: For any primal feasible solution and any dual feasible solution :
The objective value of any dual feasible solution provides an upper bound on the objective value of any primal feasible solution.
- Strong Duality Theorem: If the primal problem has an optimal solution , then the dual problem also has an optimal solution , and their optimal objective values are identical:
- Complementary Slackness Theorem: Let be primal feasible and be dual feasible. They are mutually optimal if and only if:
Managerial Consequence: If primal constraint has positive slack (), its dual valuation is zero (). Conversely, if a resource has a positive shadow price (), its corresponding constraint must be strictly binding ().
Post-Optimality & Sensitivity Analysis
Sensitivity analysis examines how perturbations in input parameters () affect the optimal solution without resolving the linear program from scratch.
1. Shadow Price (Dual Value )
The shadow price of constraint is the marginal rate of change in the optimal objective value resulting from a one-unit increase in the right-hand side :
- In a maximization problem, a resource constraint has , indicating the maximum price an enterprise should be willing to pay for one additional unit of resource beyond its standard cost.
- For a non-binding constraint, surplus capacity exists; hence, .
2. Allowable Range of Feasibility (for RHS )
The range of values for over which the current optimal basis (set of basic variables) remains unchanged. Within this range:
- The shadow price remains constant.
- The coordinates of the optimal extreme point change linearly as functions of .
- The optimal objective value changes at the constant rate: . If is changed beyond the allowable range, the shadow price changes because a different set of constraints becomes binding.
3. Allowable Range of Optimality (for Objective Coefficients )
The range of values for an objective function coefficient over which the current optimal extreme point coordinates remain strictly identical.
- Within this range, the decision variables do not change, but the total objective value changes at rate : .
- In two dimensions, this corresponds to rotating the isoprofit line between the slopes of the two binding constraint lines intersecting at the optimal vertex.
4. Reduced Cost ()
The reduced cost of a decision variable indicates the amount by which its objective function coefficient must improve before it becomes economical to produce a positive quantity ():
- If in the optimal solution, its reduced cost is strictly zero ().
- If (non-basic), represents the marginal penalty incurred per unit of introduced into the basis: (for maximization).
Step-by-Step Worked Numerical Example
Problem Formulation: Precision Machining Facility
A precision manufacturing plant produces two advanced aerospace components: Component 1 () and Component 2 (). Each unit generates unit contribution margins of:
- Component 1: $50/unit
- Component 2: $40/unit
Production requires processing across three dedicated departmental workcenters with finite available weekly hours:
- Milling Workcenter: hours available
- Assembly Workcenter: hours available
- Finishing Workcenter: hours available
Non-negativity requires .
Step 1: Constraint Boundary Analysis & Extreme Points
Plotting the boundary equations:
- Milling Boundary: and .
- Assembly Boundary: and .
- Finishing Boundary: and .
Evaluate all candidate intersections in the positive quadrant:
- Origin : Feasible. .
- -intercept: The tightest constraint along the -axis is Milling at . Check other constraints:
- Assembly: (Feasible)
- Finishing: (Feasible)
- .
- Intersection of Milling and Finishing: Substitute into Finishing: Verify against Assembly constraint: Calculate objective value:
- Intersection of Assembly and Finishing: Substitute into Finishing: . Check Milling constraint: (Infeasible! Violates Milling capacity).
- Intersection of Milling and Assembly: and . Subtracting gives . Check Finishing: (Infeasible! Violates Finishing capacity).
- -intercept: The tightest constraint along the -axis is Finishing at . Check others:
- Milling: (Feasible)
- Assembly: (Feasible)
- .
Summary of Extreme Points
| Vertex | Milling () | Assembly () | Finishing () | Status | Objective |
|---|---|---|---|---|---|
| Feasible | $0 | ||||
| (Binding) | Feasible | $2,500 | |||
| (Binding) | (Slack = 4) | (Binding) | Optimal | $3,280 | |
| (Binding) | Feasible | $2,400 |
The optimal production plan is units of Component 1 and units of Component 2, yielding a maximum contribution margin of $3,280.
Step 2: Exact Sensitivity Report Derivations
A. Shadow Prices ()
Since Assembly is non-binding ( hours), by Complementary Slackness:
To find the shadow prices of the binding constraints (Milling and Finishing ), perturb by : From the second equation, . Substitute into the first:
Calculate the rate of change in :
Similarly, perturbing Finishing capacity by : Solving yields and .
B. Allowable Range of Optimality for
The binding constraints at are:
- Milling: (Slope )
- Finishing: (Slope )
The slope of the objective function is . For the extreme point to remain optimal, the slope of the objective contour must lie between the slopes of the two binding constraints: Multiply across by (reversing the inequality signs):
- Allowable Increase for :
- Allowable Decrease for :
C. Allowable Ranges for the Binding Right-Hand Sides
The shadow prices stay valid only while the same two constraints remain binding and every variable stays non-negative.
- Milling (): the solution is and , so Assembly uses . Assembly becomes binding at , and reaches zero at . Allowable increase hours; allowable decrease hours.
- Finishing (): the solution is and , so Assembly uses . Assembly becomes binding at , and reaches zero at . Allowable increase hours; allowable decrease hours.
Comprehensive Sensitivity Report
| Variable Cells | Final Value | Reduced Cost | Objective Coefficient | Allowable Increase | Allowable Decrease |
|---|---|---|---|---|---|
| Component 1 () | 24 | 0 | 50.00 | 30.00 | 36.67 |
| Component 2 () | 52 | 0 | 40.00 | 110.00 | 15.00 |
| Constraints | Final Value | Shadow Price | Constraint RHS | Allowable Increase | Allowable Decrease |
|---|---|---|---|---|---|
| Milling Workcenter | 100 | 22.00 | 100.00 | 10.00 | 40.00 |
| Assembly Workcenter | 76 | 0.00 | 80.00 | 4.00 | |
| Finishing Workcenter | 180 | 6.00 | 180.00 | 20.00 | 130.00 |
A production facility's sensitivity report indicates that the labor constraint has a shadow price of $15.00/hour, with an allowable increase of 40 hours and an allowable decrease of 20 hours. Currently, 200 labor hours are available. A temporary staffing agency offers to supply 25 additional labor hours at a premium cost of $9.00/hour above the baseline labor rate. What is the net economic benefit of accepting this offer?
$75.00 net gain
$150.00 net gain
$225.00 net gain
$375.00 net gain
In a two-variable linear program maximizing profit Z = c1x1 + 40x2, the optimal vertex (24, 52) is formed by the intersection of the two binding constraints 2x1 + x2 = 100 and x1 + 3x2 = 180. What is the allowable range of optimality for the profit coefficient c1 such that the optimal product mix remains unchanged?
10.00 <= c1 <= 60.00
20.00 <= c1 <= 100.00
13.33 <= c1 <= 80.00
25.00 <= c1 <= 120.00
Sections you finish are checked off in the contents.