Linear Programming
Linear Programming
Solution
Let
It is plain from the diagram below that the maximum occurs at the
intersection of x=45 and 50x + 24y = 2400
2. The demand for two products in each of the last four weeks is shown
below.
Week
1 2 3 4
Demand - product 1 23 27 34 40
Demand - product 2 11 13 15 14
Apply exponential smoothing with a smoothing constant of 0.7 to generate
a forecast for the demand for these products in week 5.
These products are produced using two machines, X and Y. Each unit of
product 1 that is produced requires 15 minutes processing on machine X
and 25 minutes processing on machine Y. Each unit of product 2 that is
produced requires 7 minutes processing on machine X and 45 minutes
processing on machine Y. The available time on machine X in week 5 is
forecast to be 20 hours and on machine Y in week 5 is forecast to be 15
hours. Each unit of product 1 sold in week 5 gives a contribution to
profit of £10 and each unit of product 2 sold in week 5 gives a
contribution to profit of £4.
Solution
M1 = Y1 = 23
M2 = 0.7Y2 + 0.3M1 = 0.7(27) + 0.3(23) = 25.80
M3 = 0.7Y3 + 0.3M2 = 0.7(34) + 0.3(25.80) = 31.54
M4 = 0.7Y4 + 0.3M3 = 0.7(40) + 0.3(31.54) = 37.46
The forecast for week five is just the average for week 4 = M4 = 37.46
= 31 (as we cannot have fractional demand).
M1 = Y1 = 11
M2 = 0.7Y2 + 0.3M1 = 0.7(13) + 0.3(11) = 12.40
M3 = 0.7Y3 + 0.3M2 = 0.7(15) + 0.3(12.40) = 14.22
M4 = 0.7Y4 + 0.3M3 = 0.7(14) + 0.3(14.22) = 14.07
The forecast for week five is just the average for week 4 = M4 = 14.07
= 14 (as we cannot have fractional demand).
We can now formulate the LP for week 5 using the two demand figures (37
for product 1 and 14 for product 2) derived above.
Let
The graph is shown below, from the graph we have that the solution occurs
on the horizontal axis (x2=0) at x1=36 at which point the maximum profit
is 13(36) + 5(0) - 125 = £343
maximize
subject to:
17.1667x + 25.8667y
subject to:
It is plain from the diagram below that the maximum occurs at the
intersection of x=10 and 20x + 29y <= 2100
4. A company manufactures two products (A and B) and the profit per unit
sold is £3 and £5 respectively. Each product must be assembled on a
particular machine, each unit of product A taking 12 minutes of assembly
time and each unit of product B 25 minutes of assembly time. The company
estimates that the machine used for assembly has an effective working
week of only 30 hours (due to maintenance/breakdown).
It is plain from the diagram below that the maximum occurs at the
intersection of 12xA + 25xB = 1800 and xB - 0.4xA = 0
Solving simultaneously, rather than by reading values off the graph,
we have that:
Doubling the assembly time available means that the assembly time
constraint (currently 12xA + 25xB <= 1800) becomes 12xA + 25xB <=
2(1800) This new constraint will be parallel to the existing assembly
time constraint so that the new optimal solution will lie at the
intersection of 12xA + 25xB = 3600 and xB - 0.4xA = 0
5. Solve
minimise
4a + 5b + 6c
subject to
a + b >= 11
a - b <= 5
c - a - b = 0
7a >= 35 - 12b
Solution
minimise
subject to
a + b >= 11
a - b <= 5
7a + 12b >= 35
a >= 0 b >= 0
subject to
x1 + x2 <= 10
x1 - x2 >= 3
x1 >= 0
x2 >= 0
Solution
It is plain from the diagram below that the maximum occurs at the
intersection of
i.e. 15 + 9x2 = 35
x1 = 3 + x2 = (47/9) = 5.222
7. A carpenter makes tables and chairs. Each table can be sold for a
profit of £30 and each chair for a profit of £10. The carpenter can
afford to spend up to 40 hours per week working and takes six hours to
make a table and three hours to make a chair. Customer demand requires
that he makes at least three times as many chairs as tables. Tables
take up four times as much storage space as chairs and there is room
for at most four tables each week.
Formulate this problem as a linear programming problem and solve it
graphically.
Solution
Variables
Let
Constraints
customer demand
xC >= 3xT
storage space
(xC/4) + xT <= 4
Objective