5
5
Linear programming (LP) is a mathematical method used to determine the best possible outcome (such
as maximum profit or minimum cost) in a mathematical model whose requirements are represented by
linear relationships. Two important aspects of linear programming are duality and sensitivity analysis.
Duality in linear programming refers to a relationship between every linear programming problem
(called the primal problem) and another linear programming problem (called the dual problem).
1. Dual Formulation: The dual problem is derived from the primal problem by associating a variable with
each constraint. If the primal problem is a minimization problem, then the dual problem will be a
maximization problem, and vice versa. Here’s how you can formulate the dual from the primal:
Minimize: cTxsubject to:Ax≥b,x≥0\text{Minimize: } c^T x \quad \text{subject to:} \quad Ax \geq b, \quad
x \geq 0
where cc is a vector of coefficients for the objective function, AA is the matrix of coefficients for the
constraints, and bb is the right-hand side vector of the constraints.
Dual Problem: The dual problem is formed by introducing a new variable for each constraint of
the primal problem. If the primal problem is a minimization problem with constraints of the
form Ax≥bAx \geq b, then the dual is a maximization problem with constraints of the form
ATy≤cA^T y \leq c, where yy is the vector of dual variables (also called shadow prices).
Dual Formulation:
Maximize: bTysubject to:ATy≤c,y≥0\text{Maximize: } b^T y \quad \text{subject to:} \quad A^T y \leq c, \
quad y \geq 0
Here:
In economic terms, the dual variables yy represent the shadow prices or marginal values of the
constraints in the primal problem. A dual variable provides information on how much the
objective of the primal problem would change if the right-hand side of the corresponding
constraint were increased by one unit.
For example, if the dual variable associated with a resource constraint is large, it means the
resource is highly valuable (scarce), and increasing its availability would improve the objective of
the primal problem significantly.
3. Duality Theorems:
Weak Duality Theorem: The objective value of the dual problem is always a bound on the
objective value of the primal problem. Specifically, if the primal is a minimization problem, then
the objective value of the dual is always greater than or equal to the objective value of the
primal.
Strong Duality Theorem: If both the primal and dual problems have feasible solutions, then
both problems have the same optimal objective value.
Complementary Slackness: If the primal constraint is satisfied with equality, the corresponding
dual variable is positive. Similarly, if the dual constraint is satisfied with equality, the
corresponding primal variable is positive.
The primal-dual relationship is the fundamental connection between the primal and dual problems in
linear programming. This relationship is crucial for understanding how changes in the primal problem
affect the dual problem and vice versa.
o Let x∗x^* be the optimal solution to the primal and y∗y^* be the optimal solution to
the dual.
o For each ii, if xi∗>0x_i^* > 0, then the corresponding dual constraint is tight (i.e., the
dual inequality becomes an equality).
o For each jj, if yj∗>0y_j^* > 0, then the corresponding primal constraint is tight (i.e., the
primal inequality becomes an equality).
o At optimality, the primal and dual problems have the same objective value, and the
complementary slackness conditions describe how the primal and dual solutions are
related. In other words, if a primal constraint is not active (it has a positive slack), then
the corresponding dual variable is zero, and vice versa.
o Weak Duality implies that the optimal value of the dual objective provides a bound on
the optimal value of the primal objective.
o Strong Duality asserts that if both the primal and dual problems are feasible, they have
the same optimal value.
Simplex Method and Duality
The Simplex method is a popular algorithm used to solve linear programming problems. It works by
moving along the edges of the feasible region from one vertex (basic solution) to another in search of
the optimal solution.
o The Simplex method can be applied to both the primal and dual problems.
o The dual Simplex method is a variant of the Simplex algorithm used for solving the dual
problem, and it proceeds in a similar way to the primal Simplex method.
o In practice, the Simplex method solves the primal, and the dual variables are updated as
part of the algorithm. The complementary slackness conditions help ensure the dual
feasibility is maintained.
o The dual Simplex method is a version of the Simplex method used when the primal
solution is feasible but the dual is not. It works by iterating to restore dual feasibility
while maintaining primal feasibility.
o This method is particularly useful when solving LP problems where changes in the
constraints cause an initial infeasible dual solution.
Duality establishes a relationship between the primal and dual linear programs, with each
problem having a corresponding counterpart.
Dual Problem: Maximization with corresponding dual variables and inequality constraints.
Weak Duality: The optimal value of the dual provides a lower bound to the primal (in
minimization).
Strong Duality: The optimal values of the primal and dual are equal when both are feasible.
Complementary Slackness: Ties the primal and dual solutions together by indicating that if a
primal constraint is non-binding, its corresponding dual variable must be zero, and vice versa.
Simplex Method: Can be used to solve both the primal and dual problems. The dual Simplex
method handles situations where the primal is feasible, but the dual is not.
Sensitivity Analysis
Sensitivity analysis in linear programming involves studying how the optimal solution changes when
there are variations in the coefficients of the objective function or the right-hand side of the constraints.
Key areas include:
Sensitivity to Objective Coefficients: How changes in the coefficients of the objective function
affect the optimal solution.
Sensitivity to Right-Hand Side: How changes in the right-hand side vector (the constraints)
influence the solution.
Range of Optimality: The range of values for an objective coefficient over which the current
optimal solution remains optimal.
Range of Feasibility: The range of values for a right-hand side parameter for which the current
feasible region remains feasible.
In duality, sensitivity analysis can also reveal how the dual variables (shadow prices) change when the
constraint coefficients or right-hand side values change.
These notes provide a concise overview of duality and sensitivity analysis in linear programming,
including dual formulation, interpretation, the primal-dual relationship, and the connection to the
Simplex method.
Sure! Here are study notes for Special Types of Linear Programming (LP) Models:
Linear programming is a powerful tool for optimization, and there are several specialized models
designed to solve specific types of problems. Below are three important types:
Purpose: The transportation model is used to determine the most cost-effective way to transport goods
from several suppliers to several consumers while satisfying demand and supply constraints.
Key Elements:
Suppliers: Where the goods are produced (each has a supply capacity).
Transportation cost: Cost of transporting one unit of goods from a supplier to a consumer.
General Structure:
Constraints:
1. Supply constraints: Total supply from each supplier cannot exceed its available supply.
Purpose: The transshipment model is an extension of the transportation model, where goods are not
only transported from suppliers to consumers, but can also be transferred between intermediate points
(called transshipment nodes).
Key Elements:
Suppliers, consumers, and transshipment nodes: These are the various locations involved in the
movement of goods.
General Structure:
Let xijx_{ij} be the amount of goods transported from location ii to location jj.
Constraints:
1. Supply constraints: As in the transportation model, the supply from each origin location must
not exceed its available supply.
2. Demand constraints: Each destination or transshipment node must meet its demand or outflow.
3. Flow conservation at transshipment nodes: For each intermediate node, the total inflow must
equal the total outflow.
Applications:
Purpose: The assignment model deals with assigning resources (such as workers or machines) to tasks in
such a way that the total cost (or time) is minimized or profit is maximized.
Key Elements:
Tasks (e.g., jobs or assignments): These are the tasks that need to be assigned to resources.
Cost or time: The cost (or time) to assign a particular resource to a particular task.
General Structure:
Let xij=1x_{ij} = 1 if resource ii is assigned to task jj, and 00 otherwise.
Constraints:
1. Assignment constraints: Each resource is assigned to exactly one task, and each task is assigned
to exactly one resource.
2. Non-negativity: xij∈{0,1}x_{ij} \in \{0, 1\}, where xij=1x_{ij} = 1 means the assignment is made,
and xij=0x_{ij} = 0 means no assignment.
Applications:
Summary of Differences:
1. Transportation Model focuses on finding the least-cost way to transport goods between
suppliers and consumers.
Understanding the unique characteristics of each model will help you apply the right model to real-
world problems, like supply chain logistics or job scheduling.