Linear Programming for Freezer Production
Linear Programming for Freezer Production
Economics Degree
Operations Research
one of them must undergo three operations before its commercialization: Assembly,
painting and quality control. Freezers require, respectively, 2.5 and 3 hours of
assembly, 3 and 6 Kg. of enamel for painting and 14 and 10 hours of quality control. The
total manufacturing costs per unit are, respectively, 30 and 28, and the prices of
8.400 Kg. of enamel and 20,000 hours for quality control. The market studies
shows that the weekly demand for freezers does not exceed 1,700 units and that, in
they must be manufactured of each type so that the benefit is maximized, taking into account
b) Solve it using the simplex method. Interpret the optimal solution including
the slack variables.
3 6 10
X1= Congelador tipo A
Variables X2= Congelador tipo B
F. O Zmax: 22X1+ 20X2
2.5X1 + 3X2 <= 4500
14X1 + 10X2 <= 8400
R 3X1 + 6X2 <= 20000
X1 + X2 <= 1700
X1>=600
C.N X1; X2>=0
2,5X1+3X2=4500
14X1+10X2=8400
2,5X1+3X2+S1=4500
S5+T1=600
Z–22X1–20X2 + MT1 = 0
4. Simplex Board.
Base Board:
Variable Variable
Base Slack variable Solution Operation
of Artificial
decision
X1 X2 S S2 S3 S S T1
1 4 5
Z -22 -20 0 0 0 0 0 M 0
S1 5/2 -3 1 0 0 0 0 0 4500
S2 3 6 0 1 0 0 0 0 8400
S3 14 10 0 0 1 0 0 0 20000
S4 1 1 0 0 0 1 0 0 1700
T1 1 0 0 0 0 0 - 1 600
1
Iteration 1
Iteration 1
X1 X2 S S2 S3 S4 S5 T1
1
Z - -20 0 0 0 0 M 0 0
22
M
S1 5/2 3 1 0 0 0 0 0 4500
S2 3 6 0 1 0 0 0 0 8400
S3 14 10 0 0 1 0 0 0 20000
S4 1 1 0 0 0 1 0 0 1700
T1 1 0 0 0 0 0 -1 1 600
Iteration 2
Iteration 2
X1 X2 S1 S2 S3 S4 S5 T1
Z 0 -20 0 0 0 0 -22 0 0 Z+X1(22+M)
S1 0 3 1 0 0 0 5/2 0 3000 S1-5/2X1
S2 0 6 0 1 0 0 3 0 6600 S2-3X1
S3 0 10 0 0 1 0 14 0 11600 S3-14X1
S4 0 1 0 0 0 1 1 0 1100 S4-X1
X1 1 0 0 0 0 0 -1 0 600
Iteration 3
Iteration 3
X1 X2 S1 S2 S3 S4 S5 T1
Z 0 -30/7 0 0 November 07 0 31428.571428571428
Z+22S5
S1 0 17/14 1 0 -5/28 0 0 6500/7 S1-5/2S5
S2 0 27/7 0 1 -3/14 0 0 28800/7 S2-3S5
S5 0 5/7 0 0 1/14 0 1 5800/7 S5/14
S4 0 2/7 0 0 -1/14 1 0 1900/7 S4-S5
X1 1 5/7 0 0 11/7 0 0 10000 divided byT1+S5
7
Final Matrix
Final matrix
X1 X2 S1 S2 S3 S4 S5 T1
Z 0 0 60/17 0 16/17 0 0 590000 dividedZ+30/7X2
by 17
X2 0 1 14/17 0 -5/34 0 0 13000/17 X2*14/17
Response:
Exercise 2
X1= Producto 1
Variables
X2 = Product 2
X3 = Product 3
X4= Producto 4
F. O Zmáx=5X1+6.5X2+5X3+5.5X4
2X1 + 2X2 + 1.5X3 + 4X4 ≤ 180
2X1+2.5X2+2X3+1.5X4≤230
R 2X1+2X2+1.5X3+4X4 ≤180
2X1+2.5X2+2X3+1.5X4≤230
2X1+2X2+1.5X3+4X4 ≤180
C.N X1;X2≥0
2X1+2X2+1.5X3+4X4=180
2X1+2.5X2+2X3+1.5X4= 230
2X1+2X2+1.5X3+4X4+S1= 180
2X1+2.5X2+2X3+1.5X4+S2= 230
4. Simplex Board
Base Board
Base Decision variable V. Holgura Solution
X1 X2 X3 X4 S1 S2
S1 2 2 1.5 4 1 0 180
S2 2 2.5 2 1.5 0 1 230
Z -5 -6.5 -5 -5.5 0 0 0
Iteration 1
INTERACTION Formulas
1
X2 1 1 3/4 2 1/2 0 90 S1/2=X2
Iteration 2
INTERACTION Formulas
2
X2 4 1 0 23 8 -6 60 X2 - 3/4 * X3
S2*8=X3
X3 -4 0 1 -28 -10 8 40
Z 1 0 0 4 2 1 590 Z + 1/8 * X3
Answers:
X2=60
X3=40
Z=590
X1=0
X4=0
Zmáx =5(0) +6,5(60) +5(40) +5,5(0)
590=590
Exercise 3
Carrocería S.A. is a company in the city of Machala that specializes in manufacturing.
of truck, automobile, and van bodies. In type A, to manufacture a
the body of a truck takes 5 days-man hours to manufacture, while for that of a car it takes
they need 3
days-worker and to manufacture a van 2 days-worker. In type B, 4 days are invested -
worker in truck, automobile, and van bodies. Due to limitations of
machinery in the workshops and labor, type A has 300 operating days, and type
B of 287 days - worker. If the benefits obtained from each truck are
$4250 dollars and $5000 dollars for each car.
How many units of each type should be manufactured to maximize profits?
Truck quantity
Variables to manufacture (units) X2:
Number of cars to
manufacture(units) X3:
Number of vans to
manufacture(units)
F. O Zmax: 4250X1 + 5000X2 + 5000X3
5X1 + 3X2 + 2X3 <= 300
4X1 + 4X2 + 4X3 <= 287
R 5X1 + 3X2 + 2X3 <= 300
4X1 + 4X2 + 4X3 <= 287
5X1 + 3X2 + 2X3 <= 300
C.N X1; X2 <= 0
X1 X2 X3 S1 S2
S1 5 3 2 1 0 300
S2 4 4 4 0 1 287
Iteration 1
Final matrix
X1 X2 X3 S1 S2
S1 2 0 0 -1 -3/4 339/4 S1-3X2
X2 1 1 1 0 1/4 287/4 X2/4
Z 750 0 0 0 125 358750 Z+5000X
0 2
Answers:
Zmax= 0 + 358750 + 0
Zmax= 358750
Exercise 4
In a workshop, 3 types of tables are manufactured: A, B, and C. Each table requires a certain
time to cut the parts that compose it, to assemble and paint the piece
finished. The total production of tables is sold. Furthermore, model C can
selling without painting, for the development of the work various people are employed who
they work in partial environments because the time available to carry out each of these
activities is variable. Based on the following data, formulate a programming model.
linear that allows maximizing profits, if the cutting department presents a
capacity of 150 hours,
the assembly of 200 hours and the painting department of 300 hours, if the
ganancia por la mesa A es de 1500 por la mesa B 20000 y por la mesa C35000 y por la C sin
to paint 30000.
Type of table A
X2: Type of table B
Variables
X3: Type of table C
X4: Untreated type C table
Zmax:
F. O
1500X1+20000X2+35000X3+30000X4
3X1 + X2 + 4X3 + 4X4 <= 150
R 4X1 + 2X2 + 5X3 + 5X4 <= 200
5X1 + 5X2 + 4X3 <= 300
C.N X1; X2 >= 0
3X1+X2+4X3+4X4=150
4X1+2X2+5X3+5X4=200
5X1+5X2+4X3=300
3X1+X2+4X3+4X4+S1=150
4X1+2X2+5X3+5X4+S2=200
4. Simplex Board
Base Board:
Iteration 1
INTERACTION Formulas
1
S1/4=X3
X3 3/4 1/4 1 1 1/4 0 0 37.5
S2-5*X3
S2 1/4 3/4 0 0 -1 1/4 1 0 12.5
S3-4*X3
S3 2 4 0 -4 -1 0 1 150
Z+350*X3
Z 247 1/2 -112.5 0 320 87 1/2 0 0 13125
iteration 2
INTERACTION Formulas
2
X3 2/3 0 1 1 2/3 1/3 0 33 and a third X3-1/4*X2
iteration 3
Iteration 3
X1 X2 X3 X4 S1 S2 S3
Z 504500/17 0 0 -2058.8235294117645
0 95000/17 30000/17 28000000/17 Z+10000S1
Final matrix
Matrix
final
X1 X2 X3 X4 S1 S2 S3
Response:
Zmax= 1680000
Exercise 5
workers. The price per unit of wheat and rye is $15 and $20.5 respectively, being
the available quantities of land and labor of 100 and 130 units. If the entrepreneur wants
they give us the price of wheat and rye per unit and the production needs that are
for every 3 units then the price value of wheat and rye we multiply by 3
Z - 37X1 - 72X2 = 0
[Link] Board
Base Board
X1 X2 S1 S2
S1 6 5 1 0 100
S2 3 6 0 1 130
Z -37 -72 0 0 0
Iteration 1
ITERATION Formulas
1
S1/5=X2
S2+6*X2
S2 -4 1/5 0 -1 1/5 1 10
Z+72*X2
Z 49.4 0 14 2/5 0 1440
Answers:
X2=20Z=1440
Exercise 6
grams of minerals per animal. If you want to feed 100 dogs with the following products
that are found in the market and have the following composition. How many kilos of
each product should be purchased if you want to meet the nutritional quota at the lowest cost
possible?
Board
Initial
Variable
Base Decision variable Slack variable Artificial Operation Solution
X1 X2 X3 S1 S2 S3 T1 T2 T3
Z -10+89/100M -11+22/25M -19/2 + 51/100M -M -M -M 0 0 0 47M
T1 1/5 3/10 1/20 -1 0 0 1 0 0 10
T2 3/5 1/2 19/50 0 -1 0 0 1 0 30
T3 9/100 2/25 2/25 0 0 -1 0 0 1 7 T1 + T2 + T3 in Z
Iteration 1
Iteration 1
X1 X2 X3 S1 S2 S3 T1 T2 T3
Iteration 2
X1 X2 X3 S1 S2 S3 T1 T2 T3
Matriz Final
Final matrix
X1 X2 X3 S1 S2 S3 T1 T2 T3
Answers:
Exercise 7
7.-To invest a certain amount of money, one can choose from five instruments.
different, classified with a risk level of 1, 2, and 3, where 1 is the lowest level and 3 the highest
high. The level of risk, unit cost, and utility of each instrument is shown in the following
table:
Due to the risk level of each instrument, the company has the following:
The sum of all the percentages of each investment must equal 100%.
The sum of the percentages of instruments C, D, and E must be less than 50%.
The sum of the percentages of instruments D and E must be less than 30%.
Use the simplex method to determine the amount of money to invest in each
inverted.
X1= instrumento A
X2= instrument B
Variables X3= instrument C
X4= instrument D
X5= instrument E
F. O Zmax=8X1+7X2+6X3+10X4+12X5
8X1+7X2+6X3+10X4+12X5>=100
8X1 <= 040
R 6X3 + 10X4 + 12X5 <= 50
10X4 + 12X5 <= 30
X1 + X2 + X3 + X4 + X5 <= 100000
C.N X1; X2 >= 0
8X1 = 040
10X4 + 12X5 = 30
X1 + X2 + X3 + X4 + X5 = 100000
8X1 + S2 = 040
10X4 + 12X5 + S4 = 30
X1 + X2 + X3 + X4 + X5 + S5 = 100000
[Link] Board
Base Board:
Variable
Base Decision variable Slack variable artificial Solution Operation
n
X1 X2 X3 X4 X5 S1 S S3 S S T1
2 4 5
Z -8-8M -7-7M -6-6M -10-10M -12-12M 0 0 0 0 0 0 0
T1 8 7 6 10 12 -1 0 0 0 0 1 100 T1 in Z
S2 8 0 0 0 0 0 1 0 0 0 0 40
S3 0 0 6 10 12 0 0 1 0 0 0 50
S4 0 0 0 10 12 0 0 0 1 0 0 30
S5 1 1 1 1 1 0 0 0 0 1 0 100000
Iteration 1
Iteration 1
X1 X2 X3 X4 X5 S1 S2 S3 S4 S5 T1
Z 8-8M 7-7M 6-6M 0 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