Mada za sehemu hiiLinear ProgrammingMada 3
- Linear Programming Problems Formulation
- Graphical solution
- Transportation problems
A student has 120 shillings to spend on exercise books. At a school shop an exercise book costs 8 shillings, at stationery store an exercise book costs 12 shillings. The school has only 6 exercise books and the student wants to obtain the greatest number of exercise books possible using the money. Find the greatest number of exercise books he can buy.
Let be number of exercise books to be bought at school shop
Let be number of exercise books to be bought at stationery shop
Objective function
Let = objective function
Then
Constraints or linear inequalities
Non-negative constraints:
Equations
When ,
,
,
| Corner points | |
|---|---|
| A (0, 0) | |
| B (6, 0) | |
| C (6, 6) | |
| D (0, 10) |
The greatest numbers of exercise books he can buy are 12 books: 6 from the school shop and 6 from stationery.
Students in a certain class are about to take a certain test of BAM which has two sections A and B; where in section A each question worth 10 marks while in section B each worth 25 marks. The student must do at least 3 questions of section A but not more than 12. A student must also do 4 questions from section B but not more than 15. In addition students cannot do more than 20 questions. How many questions of each type should the student do to obtain the maximum scores?
Let be number of questions to be done in section A
Let be number of questions to be done in section B
Objective function
Constraints
,
Maximize subject to:
,
Equations
or
or
,
,
| Corner Points | |
|---|---|
| A (3, 4) | |
| B (12, 4) | |
| C (12, 8) | |
| D (5, 15) | |
| E (3, 15) |
The student should do 5 questions from section A and 15 questions from section B to obtain maximum score of 425.
Example 01
A doctor prescribes a special diet for patients containing the following number of units of Vitamin A and B per kg of two types of food F1 and F2.
| Type of Food | Vitamin A | Vitamin B |
|---|---|---|
| F1 | 20 units/kg | 7 units/kg |
| F2 | 15 units/kg | 14 units/kg |
If the minimum daily intake required is 120 units of A and 70 units of B, what is the least total mass of food a patient must have so as to have enough of these vitamins?
Example 02
Rice and beans provide maximum levels of protein, calories and vitamin B2. If used as a staple diet. The food values per kg of uncooked rice and beans are as shown in the table below.
| Protein/kg | Calories/kg | Vitamin B2/kg | Price/kg | |
|---|---|---|---|---|
| Rice | 60g | 3200 cal | 0.4 | 400 |
| Beans | 90g | 1000 cal | 0.1 | 500 |
| Min daily req. | 120g | 2000 cal | 0.2 |
What is the lowest cost of diet meeting these specifications?
Let be number of kg of rice to be bought
Let be number of kg of beans to be bought
Objective function
Minimize
Constraints
,
For :
When ,
,
For :
When ,
,
For :
When ,
When ,
| Corner points | |
|---|---|
| A (0, 8) | |
| B (3.6, 3.2) | |
| C (10, 0) |
The least total mass a patient should have is 6.8 kg, i.e. 3.6 kg of food 1 and 3.2 kg of food 2.
Mwalimu
Unasoma somo hili? Niulize nikuelezee chochote kilichomo.
Ingia ili kumuuliza Mwalimu wa AI wa Sonza kuhusu mada hii.
Ingia ili kuuliza