Chapter 5 Linear Programming Models - Tagged
📚 Chapter 5 Linear Programming Models - Tagged.pdf
Brief overview
This document introduces the foundational concepts of linear programming (LP) and its practical application. It details how to mathematically model and solve optimization problems, including the use of software tools and the interpretation of results. Understanding these principles is crucial for making optimal decisions in various business and operational contexts.
Key points
- Introduction to the basic assumptions and properties of linear programming models
- How to formulate linear programming problems mathematically and solve simple cases graphically
- Overview of using software applications like Q M for Windows and Excel Solver for LP problems
- Examination of special cases in LP including infeasibility and unboundedness
- Introduction to sensitivity analysis for understanding solution changes with model variations
1. Introduction to linear programming
1.1 What is linear programming?
Linear programming (LP) is a mathematical technique for optimizing a situation. It helps in allocating limited resources to different activities.
LP models are widely used for product mix problems.
LP applies when you need to make the best decision with limited resources.
The core requirements for a problem to be an LP problem are:
- Objective function: To maximize or minimize a specific quantity.
- Constraints: Restrictions or limitations that must be met.
- Alternative actions: Multiple choices or courses of action are available.
- Linearity: Objective function and constraints are expressed as linear equations or inequalities.
These properties ensure that the relationships within the model are straightforward and predictable.
1.2 Properties and assumptions of linear programming
Linear programming relies on several key assumptions to ensure valid solutions. These properties guide the formulation and interpretation of LP models.
| Property | Description |
|---|---|
| One objective | A single goal to maximize or minimize (e.g., profit, cost). |
| One or more constraints | Limitations on resources or requirements that must be satisfied. |
| Alternative actions | Choices available regarding how to use resources. |
| Linearity | Relationships are proportional and divisible (doubling input doubles output). |
| Certainty | All parameters (coefficients, resource availability) are known and constant. |
| Divisibility | Solutions can be fractional (e.g., producing 2.5 chairs). |
| Nonnegative variables | Decision variables must be zero or positive. |
1.3 Formulating linear programming problems
Formulating an LP problem involves translating a real-world situation into mathematical terms. This process helps in defining the problem clearly for analysis.
The steps for formulating an LP problem are:
- Identify the objective and constraints: Determine what needs to be maximized or minimized and what limits exist.
- Define decision variables: Specify the variables that represent the choices to be made (e.g., number of tables, number of chairs).
- Write mathematical expressions: Express the objective function and all constraints using these decision variables.
1.3.1 Flair Furniture Company example
The Flair Furniture Company produces tables (T) and chairs (C). They want to maximize profit given limited resources in carpentry and painting/varnishing.
Data:
| Department | Hours per Table (T) | Hours per Chair (C) | Available Hours |
|---|---|---|---|
| Carpentry | 4 | 3 | 240 |
| Painting & varnishing | 2 | 1 | 100 |
Formulation:
-
Objective function: Maximize profit. Maximize Profit=70T+50C
-
Constraints:
- Carpentry: 4T+3C≤240
- Painting/varnishing: 2T+1C≤100
- Nonnegativity: T≥0,C≥0
1.4 Graphical representation of constraints
The graphical method is used to solve LP problems with only two decision variables. It provides a visual understanding of the constraints and possible solutions.
1.4.1 Plotting constraints
Each constraint is plotted as a line on a graph. The decision variables are typically represented on the x and y axes.
For a constraint like 4T+3C≤240, you first plot the line 4T+3C=240.
To plot 4T+3C=240:
- If T=0, then 3C=240, so C=80. Point: (0, 80).
- If C=0, then 4T=240, so T=60. Point: (60, 0). Connect these two points to form the constraint line.

1.4.2 Identifying the feasible region
The feasible region is the area on the graph where all constraints are satisfied simultaneously. For ≤ constraints, this region is usually below or to the left of the constraint lines.
For the carpentry constraint 4T+3C≤240, any point on or below the line represents a feasible combination of tables and chairs for carpentry. Points above the line are not allowed.

The painting and varnishing constraint is 2T+1C≤100. Plotting this constraint yields another boundary for the feasible region.
The line for this constraint passes through (0, 100) on the y-axis and (50, 0) on the x-axis.

1.4.3 Combining constraints to find the feasible region
When multiple constraints are present, the feasible region is the area that satisfies all of them. This region is often a polygon.
Any point within or on the boundary of this polygon is a potential solution.
The feasible region for the Flair Furniture Company problem is the overlap of all constraint areas, including the nonnegativity constraints (T≥0,C≥0).

You can test combinations within this region. For example, (T=30, C=20) is feasible.
Combinations like (T=70, C=40) are infeasible because they violate one or more constraints.
1.5 Iso-profit line solution method
This method helps find the optimal solution by moving a "profit line" across the feasible region. The iso-profit line represents combinations of decision variables that yield a constant profit.
- Graph the objective function: Choose an initial profit value (e.g., 2,100 dollars) and plot its corresponding equation, 70T+50C=2100.
- Move the line: Shift this line parallel to itself in the direction of increasing profit (away from the origin for maximization).
- Identify optimal point: The last point the iso-profit line touches within the feasible region is the optimal solution.

By plotting several iso-profit lines, you can visualize how the profit increases as the line moves further out. The highest profit is achieved when the line is tangent to the feasible region at its furthest point from the origin.

The optimal solution for Flair Furniture occurs at point (30, 40), yielding a maximum profit.
1.6 Corner point solution method
This method identifies the optimal solution by evaluating the objective function at each "corner" or vertex of the feasible region.
- Graph constraints and find the feasible region: Same as the initial step for the iso-profit line method.
- Find corner points: These are the intersection points of the constraint lines. For the Flair Furniture problem, these include the origin (0, 0) and intersections like (30, 40).
- Evaluate the objective function: Substitute the (T, C) values of each corner point into the objective function to calculate the profit.
- Select the optimal solution: The corner point that yields the highest profit (for maximization) is the optimal solution.
For Flair Furniture, the corner points are:
- (0, 0)
- (50, 0)
- (0, 80)
- (30, 40) - This is the intersection of 4T+3C=240 and 2T+1C=100.
Evaluating the profit at each point:
- (0, 0): Profit = 0 dollars
- (50, 0): Profit = 70×50+50×0=3500 dollars
- (0, 80): Profit = 70×0+50×80=4000 dollars
- (30, 40): Profit = 70×30+50×40=2100+2000=4100 dollars
The optimal solution is (30, 40) with a profit of 4100 dollars.
The optimal solution for an LP problem always lies at a corner point of the feasible region.
1.7 Slack and surplus
These terms measure how much a resource is unused or how much a requirement is exceeded.
-
Slack: Used with ≤ constraints. It's the unused amount of a resource.
- Formula: Slack=AvailableResource−AmountUsed
- For Flair Furniture's carpentry constraint (4T+3C≤240), if they produce 20 tables and 25 chairs:
- At the optimal solution, slack is typically zero for binding constraints, meaning all resources are used.
-
Surplus: Used with ≥ constraints. It's the amount by which a requirement is exceeded.
- Formula: Surplus=ActualAmount−MinimumAmount
- If a constraint is 2T+C≥42, and T=20, C=25:
- Actual amount: 20+25=45.
- Surplus: 45−42=3.
1.8 Summary of graphical solution methods
Both the iso-profit line and corner point methods are effective for solving two-variable LP problems graphically.
| Method | Steps |
|---|---|
| Iso-profit line | 1. Graph constraints, find feasible region. 2. Graph an objective function line to find slope. 3. Move line toward optimal value. 4. Identify optimal point and variable values. |
| Corner point | 1. Graph constraints, find feasible region. 2. Identify all corner points. 3. Calculate objective function value at each corner. 4. Select the corner with the best objective value. |
The graphical method visually shows how constraints define the solution space and how the objective function interacts with it to find the optimum.
🔑 Important: Understanding the graphical method is crucial for grasping LP concepts, even though computer solvers are used for problems with many variables. The core principles of feasible regions and optimality remain the same.
2. Software applications for LP
2.1 QM for Windows
QM for Windows is a software tool that helps solve linear programming (LP) problems. It guides users through inputting problem specifics and then provides the solution.
To use QM for Windows for LP:
- Select the Linear Programming module.
- Specify the number of constraints and decision variables. Non-negativity is assumed.
- Indicate if the objective is to be maximized or minimized.
For the Flair Furniture example, there are two constraints and two decision variables. The goal is to maximize profit.

The software then takes this input and generates the optimal solution. It can also provide graphical representations of the LP problem.

2.2 Excel's Solver
Excel's Solver add-in is another powerful tool for solving LP problems. It requires setting up the problem within a spreadsheet environment.
Steps to use Excel's Solver:
- Input all problem data: variable names, objective function coefficients, constraint coefficients, and RHS values.
- Designate cells in the spreadsheet to hold the values of the decision variables.
- Write a formula to calculate the objective function's total value.
- Create formulas for the left-hand side of each constraint.
🔑 Important: Properly setting up the spreadsheet with clear variable cells and constraint formulas is crucial for Solver to function correctly.
Here is how the Flair Furniture problem is set up in Excel.

The Solver Parameters dialog box is where you define the optimization problem.

- Set Objective: Specify the cell containing the objective function formula.
- By Changing Variable Cells: Select the cells that will hold the decision variable values.
- Subject to the Constraints: Link the constraint formulas to their respective RHS values.
Constraints are added using the Solver Add Constraint dialog.

You specify the LHS formula, the type of relationship (e.g., <=, >=, =), and the RHS value. After setting up these parameters, running Solver provides the solution.

The Solver results dialog box summarizes the outcome, indicating if a solution was found and showing the optimal values for the decision variables and the objective function.
📝 Example: For Flair Furniture, Solver would output the optimal number of Tables (T) and Chairs (C) to produce for maximum profit, along with the total profit achieved and how much of each resource (Carpentry and Painting hours) is used.
2.3 Excel QM
Excel QM is an Excel add-in that integrates QM modules directly into Excel, offering a user-friendly interface for LP problems. It combines the familiarity of Excel with the specialized functions of QM software.
Using Excel QM involves a similar data entry process as QM for Windows, but within an Excel worksheet.
The setup in Excel QM requires defining variables, coefficients, and constraints directly in spreadsheet cells.
After inputting the data, Excel QM processes it to generate the LP solution.
The output is presented in a clear, structured format, similar to QM for Windows, showing optimal variable values and objective function results.
🔑 Important: Both QM for Windows and Excel's Solver (or Excel QM) are valuable tools. Understanding their input requirements and output interpretation is key to applying linear programming effectively.
🔑 Important: For this topic, focus on how to input problem data into software and interpret the resulting optimal solution and constraint slack/surplus.
| Software Tool | Primary Interface | Key Features |
|---|---|---|
| QM for Windows | Standalone software | Dedicated LP module, graphical output |
| Excel Solver | Excel add-in | Spreadsheet integration, flexible setup |
| Excel QM | Excel add-in | Combines Excel ease with QM functionality |
3. Special cases and sensitivity analysis (part 1)
3.1 Special cases in linear programming
Linear programming (LP) problems can sometimes present special situations that affect their solutions. Understanding these cases helps in interpreting LP model outcomes correctly.
Common special cases include no feasible solution, unboundedness, redundancy, and alternate optimal solutions.
- No feasible solution: This occurs when no combination of decision variables can satisfy all problem constraints simultaneously. It means there is no way to meet all requirements.
- Unboundedness: In maximization problems, this means profits can increase infinitely without violating constraints. For minimization, costs can decrease infinitely. This often signals an improper model formulation.
- Redundancy: A constraint is redundant if it does not influence the feasible solution region. Removing such constraints simplifies the model without changing the optimal solution.
- Alternate optimal solutions: This happens when multiple combinations of decision variables yield the same optimal objective function value. Graphically, it means the objective function line is parallel to a constraint line.

3.2 Understanding special cases graphically
Visualizing linear programming problems on a graph helps identify these special cases. The feasible region, defined by the intersection of all constraints, is key to understanding the solution.
- No feasible solution: If the constraint lines do not create a common overlapping region, no point satisfies all conditions.
- Unboundedness: In a maximization problem, if the feasible region extends infinitely in a direction that increases profit, the solution is unbounded.

-
Redundancy: A redundant constraint's feasible region is entirely contained within the region of other constraints. Its boundary does not form part of the overall feasible region.
-
Alternate optimal solutions: This occurs when the objective function line (isoprofit or isocost) is parallel to a binding constraint line. Any point along the segment of that constraint within the feasible region is an optimal solution.

3.3 Sensitivity analysis introduction
Linear programming models often assume fixed values for parameters like costs, profits, and resource availability. Sensitivity analysis, also known as postoptimality analysis, examines how changes in these parameters affect the optimal solution.
Real-world conditions are dynamic, making this analysis crucial for robust decision-making.
The goal is to understand how much a model's assumptions can change before the optimal solution shifts. This can be done through trial and error or by using software tools like Excel's sensitivity report.
Sensitivity analysis determines how a solution changes when model inputs change.
3.4 Case study: High Note Sound Company
The High Note Sound Company manufactures speakers and receivers. They face resource limitations in electrician and audio technician hours.
A linear programming model can help them maximize profit.
The LP model is: Maximize profit = 50 dollars X1 + 120 dollars X2 Subject to: 2X1+4X2≤80 (electrician hours) 3X1+1X2≤60 (technician hours) X1,X2≥0
The LP objective is to maximize profit by balancing production of speakers (X1) and receivers (X2).

3.4.1 Analyzing resource utilization
At the optimal solution, resource utilization can be analyzed. This helps understand if resources are fully used or if there is slack.
| Resource Type | Calculation | Hours Used | Total Available | Slack |
|---|---|---|---|---|
| Electrician | 2+4=80 | 80 | 80 | 0 |
| Technician | 3[4](#page=4) + 1[20](#page=20) = 32 | 32 | 60 | 28 |
- Binding constraints (like electrician hours) have zero slack. Small increases in their availability generally increase profits.
- Nonbinding constraints (like technician hours) have positive slack. Adding more resources here only increases the slack.
3.5 Changes in objective function coefficients
The profitability of products can change over time. Analyzing how these changes impact the optimal solution is vital.
- The feasible region of the LP problem remains unchanged if only objective function coefficients vary.
- The slope of the objective function line changes. This may alter the optimal solution.
Modest changes in profit per unit might not change the optimal production mix.

🔑 Important: Sensitivity analysis helps determine the range within which objective function coefficients can change without altering the optimal solution.
🔑 Important: Special cases like unboundedness often indicate a problem with how the LP model was initially set up.
4. Special cases and sensitivity analysis (part 2)
4.1 Changes in model parameters
Changes in the technological coefficients affect the constraints. These changes often reflect updates in technology.
If the resource amounts required change, the coefficients in constraint equations will also change. This can significantly alter the shape of the feasible region.
It may also lead to a new optimal solution.

Changes in resources or right-hand-side (RHS) values of constraints represent available resources. More resources can potentially lead to higher total profit.
Sensitivity analysis helps determine how much to pay for additional resources and how much more of a resource would be useful.
Changing the RHS value alters the feasible region, unless the constraint is redundant. This often results in a different optimal solution.
The dual price, also known as the dual value, is crucial here. It quantifies the change in the objective function's value for a one-unit increase in a resource.
This can be seen as a marginal return.
The dual price is relevant only within specific limits.
The potential increase in the RHS is limited. If the RHS exceeds this upper bound, the objective function will not continue to increase at the dual price rate.
This indicates excess resources, often called slack.
4.1.1 Sensitivity report
Software like Excel Solver provides a sensitivity report. This report details how changes in certain parameters affect the solution.
It typically covers variable cells and constraints.

The sensitivity report helps understand the impact of changes on:
- Variable Cells: Shows the final values of decision variables.
- Constraints: Details the status and impact of constraints.
- Allowable Increase/Decrease: Indicates the range within which a parameter can change without affecting the current optimal solution.
Sensitivity analysis helps understand the range of acceptable changes for parameters.
4.1.2 Changes in resource constraints
Modifying resource constraints, such as the time available for electricians, changes the feasible region.

When a resource constraint changes, the feasible region shifts. This is shown graphically.
The original constraint line for audio technicians' time is a boundary. A new constraint for electricians' time can move this boundary.

This figure shows two constraints, representing audio technicians' time and electricians' time. These constraints intersect at a point.
The orange shaded area represents the feasible region.

The graph depicts constraint lines for different resources. One constraint represents 60 hours of audio technicians' time.
Another constraint shows 240 hours of electricians' time.
Changes in resources directly affect production possibilities.
🔑 Important: Understanding how changes in technological coefficients and resource availability impact the optimal solution is key to effective decision-making in linear programming.
📝 Example: If the cost of raw materials (a technological coefficient) increases, the profit per unit might decrease, potentially changing the optimal production mix. Similarly, if the available labor hours (a resource) increase, the company might be able to produce more, leading to a higher overall profit up to a certain point.
🔑 Important: The dual price is the marginal value of one additional unit of a resource, but it is only valid within the "allowable increase" range found in the sensitivity report.
© 2026 Maeve. All rights reserved. This content is protected by copyright.