Solved Exercises
Solved Exercises
---------------P. P. PRICE/GALLON
REFINED CRUDE
CURRENT 40% 60% $4000
EXTRA 30% 70% $4500
ACPM 50% 50% $4100
AVAILABILITY 5000 7000
gallons gallons
PRICE/PER GALLON $3000 $3500
POSITIVITY RESTRICTIONS:
X1,X2,X3,X4,X5≤ 0
The costs per barrel of crude A, B, and C are $650, $500, and $450.
respectively. The daily purchasing budget is $50
millions; the daily availability of crude B and C is limited
respectively to 3000 and 7000 barrels. Certain agreements oblige
buy at least 2500 barrels of A per day. The demands of the
Super and Normal gasoline are 2000 and 2500 barrels daily.
respectively, that must be met. The company wishes to
maximize the production of Euro gasoline.
Quantity restrictions:
0.8C1 + 0.1C2 + 0.05C3 ≥ 0.6 (XAS+XBS+XCS)
0.45C1 + 0.3C2 + 0.2C3 ≤ 0.25 (XAS+XBS+XCS)
0.3C1 + 0.4C2 + 0.25C3 ≥ 0.1 (XAS+XBS+XCS)
0.8C1 + 0.1C2 + 0.05C3 ≥ 0.5 (XAN+XBN+XCN)
0.45C1 + 0.3C2 + 0.2C3 ≤ 0.3 (XAN+XBN+XCN)
millions
Daily availability restriction of crude oils B and C:
XBS+XBN+XBE≤ 3000 barrels.
XCS+XCN+XCE≤ 7000 barrels.
Positivity restriction:
Xij≥0 →i= Type of crude oil= {A, B, C}; j=Type of gasoline= {S, N, E}.
Restrictions:
· Restriction on the amount of wood to be used:
7X1+10X2≤ 700 m
· Restriction on the amount of tube to be used:
10X1+8X2≤800 m
· Restriction on the amount of sandpaper to be used:
6X1+15X2≤900 sheets
· Positivity restriction:
X1, X2greater than or equal to 0
Our objective function is, taking into account that the company
wants to maximize the production of Euro gasoline:
Zmax = XAE + XBE + XCE
Quantity restrictions:
0.80XAS + 0.45XBS + 0.30XCS ≥ 0.60(XAS + XBS + XCS)
0.10XAS + 0.30XBS + 0.40XCS ≤ 0.25(XAS + XBS + XCS)
0.05XAS + 0.20XBS + 0.25XCS ≥ 0.10 (XAS + XBS + XCS)
0.80XAN + 0.45XBN + 0.30XCN ≥ 0.50(XAN + XBN + XCN)
0.10XAN + 0.30XBN + 0.40XCN ≤ 0.30(XAN + XBN + XCN)
0.05XAN + 0.20XBN + 0.25XCN ≤ 0.15 (XAN + XBN + XCN)
0.80XAE + 0.45XBE + 0.30XCE ≤ 0.40(XAE + XBE + XCE)
0.10XAE + 0.30XBE + 0.40XCE ≥ 0.35(XAE + XBE + XCE)
0.05XAE + 0.20XBE + 0.25XCE ≥ 0.20(XAE + XBE + XCE)
millions
Daily availability restriction of crude oils B and C:
XBS+XBN+XBE≤ 3000 barrels.
XCS+XCN+XCE≤ 7000 barrels.
Positivity restriction:
Xij≥0 →i= Type of crude oil= {A, B, C}; j=Type of gasoline= {S, N, E}.
The restrictions are determined and expressed as equations or inequalities of the variables of
decision. Such restrictions are deduced from the required composition for the daily diet (in Kg):
In component A: 0.1·X1 + 0·X2 ≥ 0.4
In component B: 0·X1 + 0.1·X2≥ 0.6
In component C: 0.1·X1 + 0.2·X2≥ 2
In component D: 0.2·X1 + 0.1·X2 ≥ 1.7
All the conditions implicitly established by the nature of the
variables: that cannot be negative, that are integers, that can only take certain values
values, ... In this case, the only restriction is that the amounts of feed that make up the diet do not
they can be negative:
X1 ≥ 0
X2 ≥ 0
7. Troop transport
A military detachment made up of 50 engineering soldiers, 36 sappers, 22 from the forces
special forces, and 120 infantry soldiers as support troops, must be transported to a
important strategic position. In the base park there are 4 types of vehicles A, B, C,
and D, conditioned for troop transport. The number of people that each vehicle can
transport is 10, 7, 6, and 9, as detailed in the following table:
Engineers Shoemakers Forces Infantry
specials
A 3 2 1 4
B 1 1 2 3
C 2 1 2 1
D 3 2 3 1
The fuel needed for each vehicle to reach the destination point is estimated at 160,
80, 40, and 120 liters respectively. If we want to save fuel, how many vehicles of each
What type should be used so that the consumption is as low as possible?
The decision variables are determined and represented algebraically. In this case:
Xi: number of vehicles of each type that are used
The restrictions are determined and expressed as equations or inequalities of the variables of
decision. Such restrictions are deduced from the availability of units in each warehouse
as well as the demand of each store:
Availability in warehouse A: X1 + X2 + X3 = 5
Availability in warehouse B: X4 + X5 + X6 = 10
Store T1 demand: X1 + X4 = 8
Store T2 demand: X2 + X5 = 5
Store T3 demand: X3 + X6 = 2
All the conditions implicitly established by the nature of the
variables: that cannot be negative, that are integers, that can only take certain values
values, ... In this case the restrictions are that the quantity of units cannot be negative and
it must also be an integer:
Xi ≥ 0
Xi is integers
9. Fruit trees
A farmer has a plot of 640m² to dedicate to the cultivation of fruit trees: orange trees,
pear trees, apple trees, and lemon trees. She wonders how she should divide the area of the plot.
among the varieties to achieve the maximum benefit knowing that:
each orange tree needs a minimum of 16m², each pear tree 4m², each apple tree 8m², and each lemon tree
12m².
has 900 hours of work per year, needing 30 hours per year for each orange tree, each pear tree
5 hours, each apple tree 10 hours, and each lemon tree 20 hours.
Due to the drought, the farmer has restrictions on irrigation: he has been allocated 200m³ of water.
annual water. The annual needs are 2m³ per orange tree, 1m³ per pear tree, 1m³ per
2m³ for each apple tree, and 2m³ for each lemon tree.
The unit profits are 50, 25, 20, and 30 € for each orange tree, pear tree, apple tree, and lemon tree.
respectively.
The decision variables are determined and represented algebraically. In this case:
X1: number of orange trees
number of pear trees
X3: number of apple trees
X4: number of lemon trees
The objective function is determined:
Maximize Z = 50·X1 + 25·X2 + 20·X3 + 30·X4
The constraints are determined and expressed as equations or inequalities of the variables of
decision. These restrictions are deduced from the needs of each plot tree, hours of
annual work, and irrigation needs:
Land needs: 16·X1 + 4·X2 + 8·X3 + 12·X4 ≤ 640
Annual hour requirements: 30·X1 + 5·X2 + 10·X3 + 20·X4 ≤ 900
Irrigation needs: 2·X1 + X2 + X3 + 2·X4 ≤ 200
All the conditions implicitly established by the nature of the
variables: that cannot be negative, that are integers, that can only take certain
values, ... In this case the restrictions are that the number of trees cannot be negative and
it must also be an integer:
Xi ≥ 0
Xi are whole numbers
Xij≥ 0
Yi is boolean
13. Stock market investment
An investor has €50,000 to invest among the following four possibilities: stock market X,
stock Y, bonds X, and bonds Y, for a period of one year. A maximum of €10,500 can be invested
in bonds X, and a maximum of €10,000 in bonds Y. Investing in the X stock market carries a risk
considerable for it is determined not to invest more than a quarter of the total investment. The amount
invested in the stock market and it must be at least three times the amount invested in stock X. Furthermore, the
the investor requires that the investment in bonds be at least as large as half of the investment
in the bags. The annual net returns are estimated as shown in the following table:
Bag X Bag Y Bag X Bag Y
20% 10% 9% 11%
The specifications and selling prices of the combinations are provided in the table:
COMBINED SPECIFICATION PRICE
SALE
(PTAS/L)
H No more than 50% of M 100
No more than 20% of P
No less than 10% of L
G 40% of N 120
35% of L
25% of P
The demand for various juices is high, so it is expected to sell out all the
production. For every kg of fruit, one liter of the corresponding juice is produced.
Determine the production levels of the seven juices, so that there are
maximum benefit in the coming period.
SOLUTION:
VARIABLES
Xij where X: amount of liters
I: (H=1, G=2)
J: (naranja= 1, pera= 2, limón=3, tomate=4, manzana = 5)
OBJECTIVE FUNCTION
Z(max)= 100X1 + 120X2 + 129(X11+X21) + 125(X12+X22) + 110(X13+X23) +
88(X14+X24) + 97(X15+X25)–94(X11+X21)–87(X12+X22)–73(X13+X23)–
47(X14+X24)–68(X15+X25)
100X1 + 120X2 + 35(X11+X21) + 38(X12+X22) + 37(X13+X23) + 41(X14+X24)
+ 29(X15+X25)
RESTRICTIONS
Concentration
X15 ≤ 0.50 X1
X12 ≤ 0.20 X1
X13 ≥ 0.10 X1
X12 + X13 + X15 + X11 + X14 = X1
X21 = 0.40 X2
0.35 X2
X22 = 0.25 X2
X21 + X23 + X22 + X24 + X25 = X2
Availability
X11 + X21 ≤ 32000
X12 + X22 ≤ 25000
X13 + X23 ≤ 21000
X14 + X24 ≤ 18000
X15 + X25 ≤ 27000
Positivity
Xi j ≥ 0 for all i = 1, 2 and j = 1, 2, 3, 4, 5
Proposed exercises
Formulate and build the models of the following problems
of linear programming:
An agent is arranging a skiing trip; he can take a
maximum of 10 people and has decided that at least they must go
4 men and 3 women. Their profit will be 10 pesos for each
woman and 15 pesos for each man. How many men and how many
Do women yield the highest profit?
A tailor has the following raw materials at his disposal:
16 m2 of cotton, 11 m2 of silk, and 15 m2 of wool. A suit.
requires: 2 m2 of cotton, 1 m2 of silk, and 1 m2 of wool. A
tunic requires: 1m2 of cotton, 2m2 of silk, and 3m2 of wool. If the
A suit is sold for $300 and a tunic for $500. How many pieces of
Each garment must be made by the tailor to obtain the maximum.
amount of money?
3).- MARY Furniture manufactures two products, tables and chairs that are
they must process through the assembly departments and
finished. Assembly has 60 hours available, finishing can
to manage up to 40 hours of work. The manufacturing of a table
requires 4 hours of assembly and 2 hours of finishing, while
a chair requires 2 hours of assembly and 2 hours of finishing. If the
profit is $80 per table and $60 per chair. What is the best one?
possible combination of tables and chairs to produce and sell for
obtain the maximum profit?
A brokerage firm offers two types of investments.
which generate income at a rate of 4% and 5% respectively. A
the client wishes to invest a maximum of $10,000 and that their annual income
at least $4500. insists that at least ¾ of the total
It must be reversed at 5%. The broker receives 1% of the income.
from the investment at 5% and 2% of the investment of 4%. How much
the broker will invest at each rate so that their fees are
maximums?
5).- A cargo airline company wants to maximize the
income obtained from the cargo transported by the company
It has a single plane designed to carry two types of cargo.
Normal load and fragile load. The company does not receive extra payment for
transport fragile cargo; however, to ensure certain
business contracts, the company has agreed to transport
at least 5 tons of fragile cargo. This type of cargo must
to be taken in a pressurized cabin. The capacity of the cabin
The principal is 20 tons of cargo. The pressurized cabin does not
it can carry more than 10 tons of cargo. The plane has
weight restriction that prevents you from carrying more than 20 tons of
load, to maintain the balance of the weight, the load of the cabin
pressurized must be less than or equal to two thirds of the weight of the
main cabin, plus one ton, the company receives $1000 for
ton of the two types of cargo it transports.
A investor has $10,000 that he would like to generate.
money by any means possible; wants to invest part in stocks, part
in bonds and place the rest in a savings account. The
Investor believes they can earn 8% with the money they invest in
stocks and the 7% that is invested in bonds. The bank pays 5% of
interest on savings accounts. As stocks are a
investment with certain risk, decides not to invest in stocks more than
what is put in the savings account. The investor will stay
with at least $2000 in the savings account in case you need money
in cash immediately. How much money should be invested in each
type?
A woman wants to design an exercise program.
weekly, including walking, biking, and swimming. To vary
The exercises plan to invest at least as much time on the bike.
like the combination of walking and swimming. In addition, he wants
swim at least two hours a week, because he/she likes swimming more
than the other exercises. Walking burns 600 calories per
per hour, you burn 300 calories cycling and 300 swimming.
calories per hour. He wants to burn at least 3000 calories in the
every other week of exercises. How many hours should he dedicate?
for each type of exercise if I want to minimize the number of hours
inverted?
A certain company has a subsidiary that supplies it with the cans that
needs to market its product in the subsidiary that produces
aluminum cans contain the lids made from metal sheets
rectangular. The dimensions of these sheets are 6cms x
15cms Two different sizes of lids are required, the diameter
the small ones are 3cm and the large ones are 6cm.
the production program on a given day is 20,000 lids
girls and 5000 large lids. What is the program?
minimize the total number of metal sheets used such
way to obtain the best combination of tapas from different
sizes that can be cut?
General Motors, which sells the most compact car, wants to make
advertising for this model through channel 13 of television, the
advertising will consist of short commercials of variable duration
that will be interspersed in a weekly program of 60 minutes. In which
The best singers of the continent and a comedian will be presented.
from the locality. General Motors insists on having at least 5 min.
commercials and the television station's regulations require when
Many commercials take 18 minutes in 60-minute programs.
at least, and that the duration of the commercials never exceeds
performance of the singers, the singers do not want to work anymore
of 30 min. Out of the 60 that the program lasts, so that the
comical is used for any period of time in which not
there will be commercials or when the singers are not working. By
experience of the television company, it is known that for each min.
If the singers are on the air, 6000 more viewers will be.
watching the show, for every minute that the comedian is working
3000 viewers will be watching the program, while for each
On average, 500 viewers are lost during commercials.
The comedian charges $200 per minute, the singers charge $1000 per.
min and the commercials $50 per min. If at General Motors you wish:
1).- Maximize the number of viewers by the end of the program
of 60 min.
2).- produce the program at minimum cost. What is the model for
use for each situation?
The company 'HOLSA' from Mexico wants to minimize them.
sheet waste, for which he/she assigns to his/her department of
production that optimizes the cost of the sheets according to the
consumer requirements. In particular, it will be done with the
most important consumer to whom three sizes are supplied
laminates to know: type 1: 30 cm x 60 cm and thickness of 8 mm; type
2:30 cm x 70 cm and thickness of 8 mm type 3:30 cm x 50 cm and
thickness of 8 mm. The necessary quantities are 10000, 15000 and
5000 per month respectively. If the sheets produced by the
the company dimensions are 30 cm x 180 cm with thickness
8 mm. What is the model to optimize waste?
A shoe company can produce three types of
shoes at their maximum capacity: dress shoes, work shoes and
sport
respectively. The shoe market has decreased as
consequence of the existing economic difficulties in the country
in such a way that there is an excess capacity of 550,650 and 300
units per day.
In plants, there are storage difficulties caused by
the decrease in sales. The three plants have: 10000, 8500
and 4000 square meters of space available respectively.
Dress shoes require 0.50 square meters for
storage, of 0.75 square meters for work and 0.40
square meters for sports. The company has
forecasted that the sales will be 700, 850, and 750 units
respectively for dress shoes, work shoes, and sports shoes.
What is the model that maximizes net utility?
12).- In a banquet hall, banquets are scheduled.
during the following
five days, the tablecloth requirements per banquet are:
12345
Numero de manteles : 80 60 100 130 200
The problem for the manager is that tablecloths are needed.
different from the ones he uses, so he will have to buy that type.
of tablecloths; the cost of each tablecloth is $40 and the cost of
send it to the laundry under urgent service to have it ready by
The two days is $10 per tablecloth.
What is the model that will allow the administrator to comply with
their requirements and also minimize the total cost?
A investor has $5000 that he wishes to invest,
two options are presented to him; A and B. The plan A guarantees that
each peso invested will produce $0.50 in a year, while the
planBle guarantees that every peso invested will produce $1.50 in
two years. How should that person invest in order to
How to maximize your profits at the end of three years?
A company manufactures three products: steering wheels, gaskets, and shafts.
the manager faces the problem of deciding which should be the best
production program for the next month. It has been determined
what is available when more than 1620 hours of time
production for the next month. there is no limit for it
metal supply for these three products, every hour of
production time costs $7.00 and each unit of metal costs
$2.20. All sales are cash and all costs must
to pay in cash for the fixed costs for the next month
The following month's expenses are $2,200 and a cash flow is required.
from $800 due to previous commitments. The cash balance to
The beginning of the month is $28,425.
TABLE OF TECHNICAL DATA.
HOURS OF UNITS OF
DEMAND
TIME OF METAL PRICE
FORECASTED OF
PRODUCT PRODUCTION NECESSARY UNITARY TO
THE CLIENTS (IN
PER UNIT PER UNIT CLIENT (IN $)
UNITS).
FABRICATED MANUFACTURED
FLYERS 4.5 3.25 $50.65 300
TOGETHER 1.8 4.70 $38.94 550
AXES 3.6 5.00 $50.20 320