Solved Problems
Solved Problems
The care required for a rabbit is 3 and for a chicken is 2, and the benefits.
the reported sales amount to 500 and 300 pesetas per head respectively,
findthenumberofanimalsthatmustberaisedforprofittobemaximum.
Solution:
Wedefinetheoriginalvariablesas:
x1numberofrabbits.
x2=numberofchickens.
Thelinearconstraintsoftheproblemareformulatedas:
Finally,wehavethenon-negativityconstraintsofthevariables:
x1 ,x2≥ 0
1
The problem statement is therefore as follows:
max500x1+ 300x2
s.a.:2x1+ x2+ x3H= 100
3x 1+ 2x 2+ x4H= 180
x1 ,x2,x3H,x4H≥ 0
x1 x2 x3H x4H
x3H 100 2 3 1 0
H
x 4 180 3 2 0 1
500 300 0 0
Wecontinuewiththefollowingiterations:
x1 x2 x3H x4H
x1 50 1 1/ 2 1/ 2 0
x4H 30 0 1/ 2 -3/2 1
0 50 -250 0
2
x1 x2 x3H x4H
x1 20 1 0 2 -1
x2 60 0 1 -3 2
0 0 -100 -100
Weobtain,therefore,theoptimalsolutionwhosevalueis:
x1*= 20 rabbits,x2= *
60 chickens,Z= *
28000 pesetas.
Thisproblemcanalsobesolvedgraphically:
A
B 3x + 2y = 180
500x + 300y = 0 20x + 10y = 1000
Now, we calculate the vertices and the value that the function takes at them
objective:
(0,0)
f (A) = 0, f(B) = 25000, f(C) = 28000, f(D) = 27000
3
EXAMPLE 2.
Solution:
Wedefinetheoriginalvariablesas:
x1numberoftype1assortments.
x2numberoftype2assortments.
Thelinearconstraintsoftheproblemareformulatedas:
150 times1+ 200 times2≤ 200000 (for the availability of the polvorones)
100x1+ 100x2≤ 130000 (for the availability of the shortbreads)
80x 1+ 100x2≤ 104000 (for the availability of the donuts)
x1+ x2≤ 1200 (for the availability of the boxes)
x1 ,x2≥ 0
4
The problem statement is therefore as follows:
max450x1+ 560x2
3
x1+ 2x 2+ x3H= 2000
2
4
x1+ x2+ x4H= 1040
5
x1+ x2+ x5=H 1200
x1,x2x, 3,x4Hx,5≥ H H
0
H H H
x1= x2= 0,x3= 2000,x 4= 1040 ,x5= 1200
5
Wecontinuewiththefollowingiterations:
Wethereforeobtaintheoptimalsolutionwhosevalueis:
x1* = 800 assorted type 1, x2* = 400 assorted type 2, Z* = 584,000 pesetas.
Wenoticedthatjustashappenedinexample1,thisproblemcanbe
resolved also graphically, where we identify the variables by
comfort comoxey (number of assortments of type 1 and type 2
respectively). The graphical resolution method will be as follows
way
6
D
Now we calculate the vertices and the value that the function takes at them
Objective. We noticed that the intersection point of the three lines of the restrictions
takentwobytwo,itisthesamepointC:
(0,0)
f (A) = 0, f(B) = 540000, f(C) = 584000, f(D) = 560000
Therefore, we obtain the same solution: 800 assortments of type 1 and 400 of
type 2, with a maximum benefit of 584,000 pesetas.
EXAMPLE 3.
Acertain manufacturer produces chairs and tables for which the use of two is required
production sections: the assembly section and the painting section. The
The production of a chair requires 1 hour of work in the assembly section and 2
hours in painting. For its part, the manufacture of a table takes 3 hours.
in the assembly section and 1 hour in the painting section. The assembly section only
It can operate for 9 hours a day, while the painting one can only do so for 8.
hours. The profit from producing tables is double that of chairs. What should be the
daily production of tables and chairs to maximize profit?
7
Solution:
Wedefinetheoriginalvariablesas:
x1numberofchairs.
x2numberoftables.
Thelinearconstraintsoftheproblemareformulatedas:
Finally,wehavethenon-negativityconstraintsofthevariables:
x1 ,x2≥ 0
Weobtainthestandardformbyintroducingthecorrespondingvariablesof
clearance
maxx1+ 2x 2
s.a.:x1+ 3x 2+ x3H= 9
2x 1+ x2+ x4H= 8
x1 ,x2,x3H,x4H≥ 0
8
The initial basic feasible solution is:
x1 x2 x3H x4H
x3H 9 1 3 1 0
x4H 8 2 1 0 1
1 2 0 0
Wecontinuewiththefollowingiterations:
x1 x2 x3H x4H
x2 3 1/3 1 1/3 0
H
x 4 5 5/3 0 -1/3 1
1/3 0 -2/3 0
x1 x2 x3H x4H
x2 2 0 1 2/5 -1/5
x1 3 1 0 -1/5 3 out of 5
0 0 -3/5 -1/5
Weobtain,therefore,theoptimalsolutionwhosevalueis:
9
D
C
x + 3y = 9
A
B
2x + y = 8
x + 2y = 0
Now, we calculate the vertices and the value that the function takes at them.
objective:
(0,0)
f (A) = 0, f(B) = 4, f(C) = 7, f(D) = 6
Therefore, we obtain the same solution: 3 chairs and 2 tables, with a profit
maximum of 7 times the value of a chair.
EXAMPLE 4.
10
Solution:
Wedefinetheoriginalvariablesas:
x1numberofdailyunitsoftypeA.
x2=numberofdailyunitsoftypeB.
x3numberofdailyunitsoftypeC.
Thelinearconstraintsoftheproblemareformulatedas:
x1 ,x2,x3≥ 0
Weobtainthestandardformbyintroducingthecorrespondingvariablesof
slack
11
max4000x1+ 3000x2+ 2000x3
s.a.:3x1+ 3x 2+ x3+ x4H= 24
6x 1+ 4x 2+ 3x 3+ x5H= 60
x1+ x2+ x3+ x6H= 12
x1 ,x2,x3 ,x4H,x5H,x6H≥ 0
Wecontinuewiththefollowingiterations:
12
Weobtain,therefore,theoptimalsolutionwhosevalueis:
EXAMPLE 5.
Adentist employs three assistants. In the two chairs of his office, procedures are carried out.
endodontics and general stomatology work. An endodontics service
requires 0.75 hours of sitting, 1.5 hours of work from an assistant, and 0.25 hours of work
fromthedentist.Ageneraldentistryservicerequires,respectively,0.75
hours, 1 hour and 0.5 hours. For each endodontic service, a profit is obtained.
5000pesetasandforeachgeneraldentistryservice4000pesetas.Ifboth
the dentist and his assistants work 8 hours a day, how should the time be distributed
work, between endodontics and general dentistry sessions, so that the
Isthedailybenefitatamaximum?
Solution:
Wedefinetheoriginalvariablesas:
x1numberofrootcanals.
x2numberofgeneraldentistrysessions.
Thelinearconstraintsoftheproblemareformulatedas:
13
Finally, by definition, we have the non-negativity restrictions.
ofthevariables:
x1 ,x2≥ 0
max5x1+ 4x 2
s.a.:0.75x1+ 0.75x2+ x3H= 16
1.5x1+ x2+ x4H= 24
0.25x1+ 0.5x2+ x5H= 8
x1 ,x2,x3H,x4H,x5H≥ 0
14
Wecontinuewiththefollowingiterations:
Weobtain,therefore,theoptimalsolutionwhosevalueis:
Thisproblemcanbesolvedbyapplyingthegraphicalmethod:
A 0.25x + 0.5y = 8
B
15
Now, we calculate the vertices and the value that the function takes at them.
objective:
(0,0)
f (A) = 0, f(B) = 80000, f(C) = 88000, f(D) = 64000
16