LPexercises
LPexercises
This week the company has to produce 1050 assembled products, but up to 1200
assembled products can be produced if necessary. During the week, department 1
has 100 working hours available, but department 2 has 110 working hours available.
The storage space of the company can only store at most 200 unassembled produc-
tion parts of all types at the end of the week. Any fractional parts are accepted.
Formulate the problem of minimizing the cost of producing the assembled products
needed this week as a linear program.
Exercise 2. A company has 4 available workstations to make 3 products. The pro-
duction time (in minutes) per unit produced varies from workstation to workstation
as shown in Table 2.
Workstation
W1 W2 W3 W4
Production 1 5 7 4 10
Production 2 6 12 8 15
Production 3 7 12 9 11
The profit contribution (in USD) per unit varies from workstation to workstation
as given in Table 3.
In this week there are 35 working hours available at each workstation. The
customers need at least 100 units of product 1, 150 units of product 2, and 100
units of product 3, but they promise buying all produced products. Any product
1
2
Workstation
W1 W2 W3 W4
Production 1 10 8 6 9
Production 2 16 15 18 20
Production 3 13 16 19 10
fractions are accepted. Formulate the problem of maximizing the profit of producing
the products needed this week as a linear program.
M1 M2
P1 10 25
P2 13 20
P3 15 27
P4 9 33
The profit per unit for each product P1, P2, P3, P4 is 10, 12, 17, and 8 (USD)
respectively. Product P1 must be produced on both machines M1 and M2, but the
other products can be produced on either machine M1 or machine M2.
The factory is very small and this means that floor space is very limited. Only
one week’s production is stored in 50 square metres of floor space where the floor
space taken up by each product is 0.1, 0.15, 0.5 and 0.05 (square metres) for products
P1, P2, P3, and P4 respectively.
Customer requirements mean that the amount of product P3 produced should
be related to the amount of product P2 produced. Over a week exactly twice as
many units of product P2 should be produced as product P3.
Machine M1 is out of action for maintenance 5% of the time and machine M2
7% of the time.
Assuming a working week 35 hours long, formulate the problem of how to man-
ufacture these products to maximize total profit as a linear program.
2D linear programs
Exercise 7. Solve the following linear program with a graphical representation.
max x1 + 2x2
s.t. 2x1 + 3x2 ≤ 12
6x1 + 5x2 ≤ 30
x2 ≤3
x1 , x 2 ≥0
Exercise 8. Solve the following linear program by 2D graphical solution method.
min x1 + 3x2
s.t. x1 + x2 ≥3
−x1 + x2 ≤ −1
x1 + 2x2 ≤6
x1 , x 2 ≥0
Exercise 9. Solve the following linear program by 2D graphical solution method.
max x1 + 3x2
s.t. x1 + x2 ≥ 3
−x1 + x2 ≤ −1
x1 , x 2 ≥ 0
4
Simplex method
Exercise 10. Solve the following LP by using simplex method.
max 5x1 + 4x2 + 3x3
s.t. 2x1 + 3x2 + x3 ≤ 5
4x1 + x2 + 2x3 ≤ 11
3x1 + 4x2 + 2x3 ≤ 8
x1 , x 2 , x 3 ≥ 0
Exercise 11. Solve the following LP by using simplex method.
max x1 + 2x2
s.t. x1 + 3x2 + x3 = 9
2x1 + 3x2 ≤ 12
x1 , x 2 , x 3 ≥ 0
Exercise 12. Solve the following LP by using simplex method.
min − x1 − 3x2
s.t. x1 + 3x2 ≥ 3
− x1 + x2 ≤ −1
x1 , x 2 ≥ 0
Complementary slackness
Exercise 19. Consider the following linear program.
max x1 + 2x2 + 3x3 − 4x4
s.t. x1 − x2 + x3 ≤ 1
x1 − x3 − x 4 ≤ −1
x2 + x3 + x 4 ≤ 1
x1 , x 2 , x 3 , x 4 ≥ 0
Using the complementary slackness theorem, indicate whether (0, 1, 0, 0) and (1, 0, 2)
are optimal solutions of the given linear program and its dual problem, respectively.
6
max x1 + 2x2
s.t. 2x1 + 3x2 ≤ 12
6x1 + 5x2 ≤ 30
x2 ≤ 3
x1 , x 2 ≥ 0
It is known that (1, 0, 1) is an optimal solution of the dual problem. Use the com-
plementary slackness theorem to find an optimal solution of the given LP problem.