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
Formulation of Linear Programming Problems (LPP)
Formulating an LPP involves translating a word problem into mathematical inequalities or equalities. Key components include:
- Decision Variables
- Objective Function
- Constraints
- Non-Negativity Constraints
a. Decision Variables
These are variables (e.g., x, y) representing the quantities to be determined.
b. Objective Function
This is a linear function used to find the minimum or maximum value. It's in the form:
where a and b are constants.
c. Constraints
These are linear inequalities defining limitations. They arise from limited resources, obligations, or physical laws. Inequality signs used are ≤, ≥, <, and >.
Common words representing inequality symbols:
| Word | Inequality Symbol |
|---|---|
| Greatest value, maximum value, at most, not more than | ≤ |
| Lowest value, minimum value, at least, not less than | ≥ |
d. Non-Negativity Constraints
These are inequalities x ≥ 0 and y ≥ 0. Decision variables cannot be negative (e.g., you can't have negative quantities of items or resources).
Examples
Example 1: Food mixture problem
A cook wants to mix two types of food, and , to create a mixture containing at least 8 units of vitamin A and 11 units of vitamin B. costs Tsh 600/kg and contains 3 units/kg of vitamin A and 5 units/kg of vitamin B. costs Tsh 800/kg and contains 4 units/kg of vitamin A and 2 units/kg of vitamin B. Formulate an LPP to minimize the cost.
| Vitamin Content | Food (units/kg) | Food (units/kg) | Minimum Requirement |
|---|---|---|---|
| Vitamin A | 3 | 4 | 8 |
| Vitamin B | 5 | 2 | 11 |
| Cost (Tsh/kg) | 600 | 800 |
Solution:
- Decision Variables: Let x be the kg of and y be the kg of .
- Constraints:
- Vitamin A:
- Vitamin B:
- Objective Function (Minimize Cost):
- Non-Negativity Constraints:
The LPP is:
Minimize:
Subject to:
Example 2: Furniture company problem
A furniture company produces tables and chairs. Each table takes 4 hours of carpentry and 2 hours of painting. Each chair takes 3 hours of carpentry and 1 hour of painting. 240 hours of carpentry and 100 hours of painting time are available. Each table yields a profit of Tsh 70,000 and each chair yields a profit of Tsh 50,000. Formulate an LPP to maximize profit.
| Department | Tables | Chairs | Available Hours |
|---|---|---|---|
| Carpentry | 4 | 3 | 240 |
| Painting | 2 | 1 | 100 |
| Profit (Tsh) | 70,000 | 50,000 |
Solution:
- Decision Variables: Let x be the number of tables and y be the number of chairs.
- Constraints:
- Carpentry:
- Painting:
- Objective Function (Maximize Profit):
- Non-Negativity Constraints:
The LPP is:
Maximize:
Subject to:
Mwalimu
Unasoma somo hili? Niulize nikuelezee chochote kilichomo.
Ingia ili kumuuliza Mwalimu wa AI wa Sonza kuhusu mada hii.
Ingia ili kuuliza