Linear Programming Optimization Problems
Linear Programming Optimization Problems
PROBLEMS
PROBLEMA 1:
Decision Variables
XA = number of items of A
XB = number of items of B
2. Objective Function
Zmax = 3XA + 5XB
(X number of articles from A for their usefulness + X number of articles from
B for its usefulness).
3. Restrictions
Subject A:
1XA + 0XB 4
2) 0XA + 2XB 12
3) 3XA + 2XB 18
4) XA, XB > 0 No negativity
GRAPHICAL SOLUTION OF LINEAR PROGRAMMING
Step 1: define the model
Step 2: graphically represent the constraints.
. Classes of solution
a. Basic solution: obeys positive variables
b. Degenerate basic solution: the decision variables have a
value equal to zero.
c. Basic feasible solution: the feasible solution area is (A B C D E
Within the feasible solution area is the area that generally
at the vertices Zmax = (2,6)
PROBLEM 2:
A company has three mines, the ore from each of them is separated.
before embarking on two different qualities the capacity of
daily production from the mines as well as their daily operating costs,
they are the following:
Solution:
a) Initialize Variables
X1 = # horas Mina 1
X2 =# hours Mine 2
X3 =# hours Mine 3
b) Objective Function
Zmin = 20X1 + 22X2 + 18X3
c) Restrictions
40X1 + 60X2 + 40X3 ≥ 54 Ton
40X1 + 40X2 + 60X3 ≥ 65 Ton
GRAPHIC SOLUTION
PROBLEM 3:
Class X1 Class X2
Labor 20 15
Washing machine plant 4.0 2.0
Maintenance equipment 5.0 5.0
Gains 8.0 5.0
The amount of production is limited.
Labor salary 150,000 U$/month
Washing plant 50,000 U$/month
Equipment maintenance 90,000 U$/month
What amount of carbon X1 and X2 should be produced per month to maximize the
earnings?
Solution:
a. Initialize Variables
X1 = Special Compliance
X2 = Special
b. Objective Function
Zmax = 8X1 + 5X2
c. Restrictions
Subject A:
20X1 + 15X2 150,000 USD/month;
(Labor restriction to not exceed 150,000 USD/month)
2) 4X1 + 2X2 50000U$/month; (restriction by washing plant)
3) 5X1 + 5X2 90000 USD/month
(Restriction so that maintenance does not exceed 90000)
4) XA, XB > 0 No negativity
GRAPHICAL SOLUTION
PROBLEM 4:
PROBLEM 5:
The company wants to know how to meet the demand for works from the centers.
of distribution, minimizing transportation costs. Develop the model of
linear programming.
PROBLEM 6:
There are also three different classes of plants that can be cultivated; wheat,
barley and corn, each of them has restrictions on the number of
hectares that can be cultivated based on water consumption per hectare and
each one is associated with a utility per cultivated hectare.
PROBLEM 7:
1 2 3 4
A Price of 15,000 12.000 10,000 8.000
sale
Cost per 12,000 9,000 7,500 6.500
method A
Cost per 16,000 10.500 2.000 7,000
method B
Sale in 30,000 40,000 50,000 35,000
tons
The occupation in the processes to fulfill a period with the production like this.
as the available time slots are:
1 2 3 4 Availability
METHOD
A
Process 1 3.5 h 3.6 h 3.0 h 1.0 h 12,000 h
Process 2 5.0 h 4.5 h 3.2 h 1.5 h 20,000 h
Process 3 2.5 h 2.0 h 1.5 h 1.2 h 7,000 h
METHOD
B
Process 1 4.0 h 3.5 h 2.0 h 3.0 h 13,000 h
Process 2 4.5 h 4.0 h 3.0 h 2.0 h 10,000 h
What measures should the company's management take to maximize
total utility, considering production and production times.
PROBLEM 9:
Substances 1, 2, and 3 are available that contain vitamins A, B, and C.
The following table shows the vitamin content in millions of
units/Kg:
PROBLEM 10:
The three princes of Serendip went to visit Paris. They could not
carry too much weight; over 300 pounds was excessive. They discovered when
they were returning to Ceylan and their supplies were almost out. Suddenly
Prince William saw a bunch of coconuts under a bridge by chance.
"They will give us 60 rupees for a coconut," said Ricardo in the middle of the great
commotion.
Meanwhile, Prince Robert carefully discovered beautiful furs of
lion in a cave. "If we can take her to Ceylon," said the lucky one, "we...
they will give 300 rupees for each skin and in cash." Although each skin weighs 15 pounds and
each coconut five, they managed to bring everything to the beach with great effort. At the beach
they found a very small boat, it only carried 15 cubic feet, but it didn't have
owner. One cubic foot covered each lion's skin. And for eight coconuts this same
volume Serbia.
With the ship optimally loaded, they set sail, calculating the fortune they were going.
to win. "The profit will be very big," said Guillermo. "In any other
she would have a reduction; a different combination of skins and coconuts,
it would make us less rich, and I would burst into tears." "I have an idea"
Ricardo said with great joy, 'Let's ask the students at UPTC.'
Ingeniería de Minas cuantas pieles y cuantos cocos nosotros los inteligentes
princes of Serendip we brought from our fabulous spree through Paris.
PROBLEM 11:
There are 120 caffeinated cola sodas and 180 non-caffeinated cola sodas.
caffeine. The soft drinks are sold in packages of two types. The type packages
Type A contains three caffeinated sodas and three caffeine-free, and type B contains
two with caffeine and four without caffeine. The seller earns 6 euros for each package
What sells type A and 5 euros for each one sold of type B. Calculate from
reasoned way how many packages of each type should be sold to maximize the
benefits and calculate this.
PROBLEM 12:
It is intended to cultivate two types of olives on a piece of land: A and B. It is not allowed to.
cultivate more than 8 ha with type A olives, nor more than 10 ha with olives of
Type B. Each hectare of type A olives needs 4 m3 of water annually.
and each of type B, 3 m3. An annual total of 44 m3 of water is available.
Each hectare of type A requires an investment of 500 € and each one of
tipo B, 225 €. Se dispone de 4500 € para realizar dicha inversión. Si cada
hectare of olive grove type A and B produce, respectively,
500 and 300 liters annually of oil:
a) Reasonably obtain the hectares of each type of olive that are needed.
to plant in order to maximize oil production.
b) Obtain the maximum production.
PROBLEM 13:
A company manufactures two models of sofa covers, A and B, which leave
benefits of 40 and 20 euros respectively. For each case of
Model A requires 4 hours of work and 3 units of fabric. For
To manufacture one of model B, 3 hours of work and 5 units are required.
of fabric. The company has 48 hours of work and 60 units of
fabric. If I add them up, 9 covers of model A can be made. How many
Covers for each model must be manufactured to achieve the maximum.
benefit and what would it be?
PROBLEM 14:
We have 21,000 euros to invest in the stock market. We are recommended two
types of shares. Type A shares, which yield 7%, and type B shares, which
They yield 9%. We decided to invest a maximum of 13,000 euros in those of the type.
And at least 6000 in type B. Furthermore, we want that the
investment in type B should be less than double the investment in A.
What should the distribution of the investment be to achieve the maximum?
annual interest?
PROBLEM 15:
We have 210,000 euros to invest in the stock market. We are recommended
two types of shares. Type A, which yield 10%, and type B,
that yield 8%. We decided to invest a maximum of 130,000 euros in the
of type A and at least 60,000 in type B. In addition, we want
that the investment in type A is less than double the investment
In B. What should be the distribution of the investment to obtain the
maximum annual interest?
PROBLEM 16:
In a pastry shop, two types of cakes are made: Viennese and Royal. Each cake
Vienna needs a quarter of filling for each kg of sponge cake and produces
a benefit of 250 Pts, while a Real cake needs half a Kg.
of filling for each kg of cake and produces 400 Ptas. of profit. In
The pastry shop can produce up to 150 kg of cake and 50 daily.
Kg. of filling, although due to machinery problems they cannot make.
more than 125 cakes of each type. How many Viennese cakes and how many
How many must be sold per day for maximum profit?
PROBLEM 17:
A school is preparing a trip for 400 students. The company of
Transport has 8 buses with 40 seats and 10 buses with 50 seats.
but only has 9 drivers. The rental of a large coach
it costs 80 euros and the small one costs 60 euros. Calculate how many of
each type needs to be used so that the excursion is as
possible economical for the school.
PROBLEM 18:
A company owns two mines: mine A produces 1 ton every day.
3 tons of high quality iron, 3 tons of medium quality and 5 tons of low quality.
Mine B produces 2 tons of each of the three every day.
qualities. The company needs at least 80 tons of ore
high quality, 160 tons of medium quality and 200 of low quality.
Knowing that the daily cost of the operation is 2000 euros in each
mine how many days must each mine work for the cost to be
minimum?
PROBLEM 19:
A layout of an automobile workshop is going to be organized where they are going to
to work electricians and mechanics. Due to market needs, it is
it is necessary to have an equal or greater number of mechanics than
electricians and that the number of mechanics does not exceed double that of
electricians. In total, there are 30 electricians and 20 mechanics. The
The company's profit per shift is 250 euros per electrician and 200
euros per mechanic. How many workers of each type should be chosen?
to obtain the maximum benefit and what is it?
PROBLEM 20:
To cover a certain route, an airline wants to
offer, at most, 5000 spots of two types: T(tourist) and P(first). The
The profit corresponding to each type T spot is 30 euros.
while the profit from type P is 40 euros.
The number of type T spaces cannot exceed 4500 and the type P must be,
at most, one third of those of type T that are offered.
Calculate how many of each class need to be offered for the profits
maximum limit.
Solution:
no. Profit
Tourist x 30x
First y 40y
Total 5000 30x + 40y
The objective function is:
f (x, y) = 30x + 40y
The restrictions:
The vertices, A(0, 5000), B(3750, 1250), C(4500, 500) and D(4500, 0) (check
point B solving the corresponding system)
The graphical method tells us that the solution point is B (3750, 1250)
PROBLEM 21:
The objective function that gives the profit in thousands of pesetas and that must be
maximization is given by: f(x,y) = 1000x + 1500y
f(A) = 2000 millones de ptas. ; f(B) = 3500 millones de pesetas; f(C) = 4000
millions of pesetas; f(D) = 3000 million pesetas and f(O) = 0 pts.
PROBLEM 22:
Its difference is not less than 10 grams and does not exceed 30 grams:
30 > x - y > 10
B cannot exceed 30 grams or be less than 10 grams: 30> and
>10.
PROBLEM 23:
On a chicken farm, a 'fattening' diet is provided with a
minimum composition of 15 units of a substance A and another 15 of
a substance B. In the market, only two classes of are found.
compounds: type X with a composition of one unit of A and five
of B, and type Y, with a composition of five units of A and one of
The price of type X is 1000 pesetas and that of type Y is 3000.
pesetas. One asks:
What quantities need to be purchased of each type to cover the
needs at a minimal cost?
The objective function of the total cost, f, if x kg of compound X and y are used
kg of compound Y is:
Z = f(x,y) = 1000x + 3000y
El conjunto de restricciones es: x >0, y > 0; x + 5y >15; 5x + y > 15.
With this data, we represent the feasible region and the level curves of the
objective function.
Of all the level curves that touch the feasible region, it makes the cost
It is at least the one that passes through vertex A (2.5, 2.5).
The optimal solution is obtained by purchasing 2.5 units of X and 2.5 units.
from Y.
The total cost is: Z = f(2.5,2.5) = 1000·2.5 + 3000·2.5 = 10,000 bolivars
PROBLEM 24:
An individual has three farms of a certain size. Each one
it has certain specific characteristics of appropriate irrigation to the
region, and each of them has a summary of those
features that appear below.
There are also three different classes of plants that can be cultivated.
wheat, barley, corn, each of them has restrictions on the number of
hectares that can be cultivated. On water consumption per hectare, and
each one is associated with a utility per cultivated hectare