Mada za sehemu hiiLinear ProgrammingMada 5
- Applications of linear programming
- Formulation of linear programming problems ( L PP
- Graphs of linear inequalities
- Solutions of Linear Programming Problems
- Theorem
Solutions of Linear Programming Problems
The graphical method is used to solve linear programming problems with two decision variables.
Key Terminology
- Solution: A set of values for the decision variables that satisfies all constraints.
- Feasible Region: The common region satisfying all constraints, including non-negativity restrictions. Feasible regions can be bounded (completely enclosed) or unbounded (infinite solutions).
- Corner Points: The vertices of the feasible region. Found by inspecting the graph or solving for intersections of boundary lines.
- Optimal Solution: A point in the feasible region that yields the optimal value (maximum or minimum) of the objective function. If an optimal solution exists, it will occur at one or more corner points.
- Optimal Value: The maximum or minimum value of the objective function over the feasible region.
Steps for Solving LPPs Graphically
- Summarize Information: Create a table summarizing the given data.
- Identify Decision Variables: Define the unknowns (e.g., , ).
- Formulate the Objective Function: Express the quantity to be maximized or minimized as a linear function.
- Write the Constraints: Express the limitations as linear inequalities.
- Graph the Constraints: Draw the graph to determine the feasible region.
- Identify Corner Points: Find the coordinates of the vertices of the feasible region.
- Test Corner Points: Substitute the coordinates of each corner point into the objective function.
- Conclude: State the optimal solution and optimal value based on the problem's requirements.
Examples
Example 1: Counterbook purchase
Clement has Tsh 7,200 to buy counterbooks. They cost Tsh 480 at the school shop (12 available) and Tsh 720 at the stationery store. Maximize the number of counterbooks Clement can buy.
| Place | Cost (Tsh) | Available |
|---|---|---|
| School Shop | 480 | 12 |
| Stationery Store | 720 | |
| Total Cash | 7200 |
Solution:
-
Decision Variables: = counterbooks from school shop, = counterbooks from stationery store.
-
Objective Function: Maximize
-
Constraints:
-
Graph: (See below)
-
Corner Points: , , ,
-
Test Corner Points:
Corner Point 10 14 12 0 -
Conclusion: Clement can buy a maximum of 14 counterbooks (12 from the school shop and 2 from the stationery store).
Example 2: Nutrient requirements
A person needs minimum daily requirements of vitamin, protein, and fat. Two food items, and , have the following contents and costs:
| Nutrient | Food | Food | Minimum Requirement |
|---|---|---|---|
| Vitamin | 20 | 50 | 800 |
| Protein | 40 | 20 | 1000 |
| Fat | 30 | 40 | 1200 |
| Cost (Tsh) | 5000 | 3000 |
a) Formulate the LPP. b) Find the combination that satisfies the requirements at the least cost.
Solution:
-
Decision Variables: = units of , = units of .
-
Objective Function: Minimize
-
Constraints:
-
Graph and Corner Points: (See below) Corner points: , ,
-
Test Corner Points:
Corner Point 150,000 134,000 200,000 -
Conclusion: To minimize cost (Tsh 134,000), use 16 units of and 18 units of .
Example 3: Curtain production
A firm makes ordinary and deluxe curtains. Ordinary curtains take 1.5 hours and 12 meters of material; deluxe curtains take 3 hours and 14 meters of material. 30 labor hours and 180 meters of material are available. Profits are Tsh 18,500 for ordinary and Tsh 25,500 for deluxe curtains.
a) Formulate the LPP. b) How many of each type should be made to maximize profit?
| Curtain Type | Time (hours) | Material (meters) | Profit (Tsh) |
|---|---|---|---|
| Ordinary | 1.5 | 12 | 18,500 |
| Deluxe | 3 | 14 | 25,500 |
| Total Available | 30 | 180 |
Solution:
-
Decision Variables: = ordinary curtains, = deluxe curtains.
-
Objective Function: Maximize
-
Constraints:
-
Graph and Corner Points: (See below) Corner points: , , ,
-
Test Corner Points:
Corner Point 0 255,000 301,000 277,500 -
Conclusion: Maximum profit (Tsh 301,000) is achieved by making 8 ordinary and 6 deluxe curtains.
Example 5: Retail shop orders
A retail shop received orders from customers C1 and C2 for food packages. C1's package: 50 kg beans, 30 kg rice, 70 kg maize. C2's package: 25 kg beans, 45 kg rice. Stock: 850 kg beans, 810 kg rice, 980 kg maize. C1's package costs Tsh 2,100, C2's Tsh 1,800.
a) Formulate the LPP. b) How many packages should be supplied to maximize sales? c) How much stock remains?
| Customer | Beans (kg) | Rice (kg) | Maize (kg) | Cost (Tsh) |
|---|---|---|---|---|
| C1 | 50 | 30 | 70 | 2,100 |
| C2 | 25 | 45 | 0 | 1,800 |
| Stock | 850 | 810 | 980 |
Solution:
-
Decision Variables: = packages for C1, = packages for C2.
-
Objective Function: Maximize
-
Constraints:
-
Graph and Corner Points: (See below) Corner points: , , , ,
-
Test Corner Points:
Corner Point 0 32,400 43,200 38,400 29,400 -
Conclusion (b): To maximize sales (Tsh 43,200), supply 12 packages to C1 and 10 packages to C2.
-
Stock Remaining (c):
- Beans: kg (All beans used)
- Rice: kg (All rice used)
- Maize: kg. Stock remaining: kg

Mwalimu
Unasoma somo hili? Niulize nikuelezee chochote kilichomo.
Ingia ili kumuuliza Mwalimu wa AI wa Sonza kuhusu mada hii.
Ingia ili kuuliza