Two towns (P and Q) depend on two farms (A and B) for their weekly supply of staples. The weekly requirements for P and Q are 6 and10 tons respectively. The weekly production capacity of A is 9 tons while that of B is 7 tons. The cost of transporting the staples from both farms to the towns are:
| P | Q | |
| A | 5 | 6 |
| B | 4 | 5 |
The amount of staples transported from the farms to the towns are:
| P | Q | |
| A | ||
| B |
The goal is to minimize the cost of transporting the staples from the farms to the towns.
The objective function of the above LPP is:
The production capacity constraints for A is:
The production capacity constraints for B is:
The weekly requirement for town P is:
The weekly requirement for town Q is:
Find the values of
Output format:
2 2 3 3 5 5 6 6