Linear Programming Models Explained
Linear Programming Models Explained
To ensure the use of this effective tool, we developed a model that responds.
with the highest fidelity possible to the conditions of the problem to which it is intended to give
solution.
The solution found to the problem will be a good approximation to the optimal solution.
This approach will be better to the extent that the model represents the best.
approach to the real conditions of the problem.
The applications of PL are so diverse that they range from agriculture to military.
Mathematical models
The construction of models is not a new idea; the process is used every day, with
frequency in an unconscious manner, in situations of basic problems.
[Link]
Page 1
Decision variables (DV): X1, X2, ..., Xn
Where:
represent the decision variables on which there are
X1, X2......,Xn
what to decide.
a11 a12....a1n
a21 a22....a2nthey represent the unit requirements for each variable of
decision.
am1am2....amn
they represent the marginal contributions (the input that it provides to the
objective function (OF), each unit of the elements
c1, c2....cn
represented by the decision variables.
The values bj, where j = 1,2,3...,m represent either the maximum availability limit.
of the i-th resource or the minimum required for a certain standard to be met.
The other set of restrictions (Xi 0), they limit the values of the variables of
decisions (VD) to be non-negative.
c. Formulation of models
The first thing we need to do when we have a problem is to build the model of
PL
Page 2
Example 1:
The Masaya Furniture Factory (MFF) specializes in the production of two types.
trendy eateries in Central America: Virginiano and Masaya.
The FMM achieves a profit (net selling price - variable manufacturing costs) of
$200 and $240 of each type respectively.
The FMM has experienced a high demand for both cafeterias, as a result,
The manager believes he can sell all the dining sets he produces.
s.a
6 X1+ 12 X2 120 (Availability (h / Construction Dept.)
8 X1+ 4 X2 64 ( Availability (h / Painting Dept. )
X1, X2 0
Example 2 (Diet):
A certain nutrient for livestock is made up of a mixture of ingredients 1, 2, and 3.
The ingredients contain proteins, fats, vitamins, and minerals, whose content in
The libra is given in the following table:
Content/qq
Cost
Ingredients Protein Fat Vitamins and (lb)
(lb) (lb) minerals (lb)
1 2 7 2 $12.50
2 5 4 2 $14.00
3 8 2 3 $17.50
The livestock company wants the mixture to contain at least 10 pounds of protein.
minus 5 pounds of fat and at least 4 pounds of vitamins and minerals.
Determine how many pounds of each ingredient should be ordered to prepare the
mix at a minimal cost?
Solution:
Page 3
FO:==>(Min) Z = 12.5 X1+ 14 X2+ 17.5 X3(Total cost)
s.a:
2 X1+ 5 X2+ 8 X3 10 (pounds of protein)
7 X1+ 4 X2+ 2 X3 5 (pounds of fat)
2 X1+ 2 X2+ 3 X3 4 (pounds of Vitamins and Minerals)
Xj 0
Example 3 (COOPERATIVE):
A cooperative has 200 acres of land where it plans to grow beans, rice, and
corn. The expected production is 1800 kg per acre planted with beans, 2100
Kg. per acre planted with rice and 2900 Kg. per acre planted with corn.
How many apples should be planted of each product so that their profits are
maximums?
Solution:
s.a
Example 4 (CARTONISA):
A cardboard box factory has 1125 m2of cardboard and 8 machine hours daily
for its weekly production of 2 types of boxes I and II. It is known that with each meter
cardboard square produces 2 boxes of type I or 5 boxes of type II and the machinery
processes 5 and a half boxes of type II or 4 boxes of type I per hour.
The factory operates 5 days a week and requires 500 boxes monthly.
any type.
The boxes report profits of $4.5 and $5.5 for types I and II boxes.
respectively.
Page 4
Find the optimal weekly production strategy.
Solution:
s.a
1 2
X 1 X 2 40 (time in hours / machine)
4 11
X1 X 2 500monthly requirement
1 1
X 1 X 2 1,125(m2of cardboard)
2 5
Xj 0, j = 1,2
Actividad de autoaprendizaje No 1
Resolve each of the following cases that are presented and propose a solution for each one.
among them the linear programming model.
The skins for hawks are tougher and take more time to work with than those of the
pigeons. The skin machine can process 8 pigeon skins per minute, but
only 4 hawks. The filling line can fill 6 hawks per minute or
4 doves at the same time.
The hawks are going to a final operation on a beak sharpening machine that
It has a capacity of 3.5 hawks per minute.
How many hawks and doves should be prepared in 8-hour shifts for
maximize profits.
2. (Farm).
A farmer wants to determine the best selection of animals for his farm,
with the aim of maximizing their profits from the sale of such animals at the end of
summer.
Each lamb requires 1 acre of pasture and $15 in feed and treatment;
each one costs $25 and can be sold for $60
Each cattle requires 4 apples of pasture, $30 in feed and treatment, costs
$30 and can be sold for $100 each
Page 5
Each goat needs 1/2 apple of pasture, requires $5 in feed and
tratamiento, cuesta $10 y se vende en $20 c/u
The farm has 300 acres available for pasture and the farmer has
$2,500.00 to invest in the purchase and maintenance of the animals.
The farmer wants to have at least 50 sheep, no more than 40 cattle, and exactly 20.
goats.
How many animals of each type does he need to buy and then sell to maximize?
its utilities?
3. (ROLLING S.A).
The company is considering the production of two types of tires: Normal and Radial.
Each normal tire requires 2 man-hours and contributes $16 to the profit.
Each radial tire takes 2.5 man-hours and has a contribution to profit of
$20
The marketing department estimates that up to 6000 tires of that type can be sold.
Normal and at least 3000 tires of the Radial type.
Find the number of tires of each type that the company must produce with the
Objective of maximizing its profits by utilizing man-hours to the fullest.
4. (MACHINE).
A factory produces two types of parts that are used as spare parts for a certain...
agricultural machine. Each of the pieces requires a certain number of hours of
foundry, machining and finishing according to what is shown in the following table:
Parts
Processes A B
Foundry 1 3
Machination 2 4
Finished 2 1
The factory has the resources for each process for the following week:
Fundición:240 h ; Maquinación:370 h y Acabado:370h
Each piece leaves a profit of $100 and $300 respectively from A and B. If the
the factory manager is planning the weekly production, how many pieces of
What type should be produced to maximize profit?
Assuming that for the same problem, the main objective is the maximization of the
production, what would the model be then?
5. (BOMB).
Page 6
Una compañía fábrica y vende dos tipos de bombas hidráulicas:(1) Normal y (2) Extra
large. The manufacturing process associated with the production of pumps involves
tres actividades:ensamblado, pintura y pruebas (control de calidad).
The resource requirements for assembly, painting, and testing of the pumps are
shown in the following table.
The contribution to profits from the sale of a Normal pump is $50 while
The profit from an extra large pump is $75.
There are 4800 hours of assembly time available per week, 1980 hours of
painting time and 900 hours of testing time.
Previous sales experiences indicate that the company can expect to sell
At least 300 regular bombs and at most 180 of the extra large ones per week.
The company would like to determine the amount of each type of pump that it should
to manufacture weekly with the aim of maximizing their profits.
6. (FARMER).
Each bag of an agricultural disinfectant must contain a minimum of 600 grams of the
ingrediente I; 800 gr. del ingrediente II y 600 gr. del ingrediente III.
7. (Q.2).
The available time on the machines is limited to 800 hours per month.
Type A machine, 1200 monthly hours of machine B and 600 monthly hours of
type C machine.
Page 7
Graphic method to solve LP problems
Although this process does not work to solve problems that have more than two
variables, is useful to illustrate both the solution process and the characteristics
of an optimal solution or of utility maximization or cost minimization.
Steps
Example # 1
The X-ray department of a hospital has two machines, A and B, that can
to be used to develop photographs. The maximum daily processing capacity of these
machines is no more than 80 X-rays for machine A and no more than 100 X-rays
for machine B. The department must plan to process at least 150 radiographs per
The operating costs per X-ray are $4 for machine A and $3 for the
machine B. How many X-rays per day must each machine process to minimize
costs?
a. Solve the problem graphically and analytically.
b. How much are you willing to pay for additional capacity on machine A?
Min Z = 4 x1 + 3 x2
(1) x1 ≤ 80
(2) x2 ≤ 100
(3) x1+x2≥150
4x1 + 3 x2 = 120 x1 = 0; x2 = 40 y x2 = 0; x1 = 30
Carrying this line parallel until it touches the first point on the graph (point
the closest to the origin is the lowest cost), it is found that the optimal combination is
the corresponding to point (a).
Page 8
To verify that (a) is the mixture that minimizes costs, we replace the values that
take x1 and x2 at points (a), (b), and (c) in Z:
X1 + x2 = 150
X2 = 100
X1 = 50
Z (a) = 4 * 50 + 3 * 100
Z (a) = $ 500
X1 = 80
X2 = 100
Z (b) = 4 * 80 + 3 * 100
Z (b) = $ 620
X1 + x2 = 150
X1 = 80
X2 = 70
Z (b) = 4 * 80 + 3 * 70
Z (b) = $ 530
Page 9
B. How much are you willing to pay for additional capacity in machine A?
I would not pay anything for additional capacity on that machine, since there is capacity.
sufficient (of the 80 X-rays daily that it can process, the optimal mix is to perform
50) - and on the other hand, its operating costs are higher than those of machine B -.
Example #2
Page
10
The optimal solution is always found at one of the vertices of the set
feasible solutions. These values are analyzed in the objective function. The vertex
The best value of the objective function will represent the optimal solution.
Optimal solution:
X1=12 audits
X2= 40 settlements
Z= $7600
Objective Function:
Maximize
Restrictions:
Optimal solution.
y (hectares). The optimal value
is (dollars).
Page
11
Problems without solutions
Methodological Guide # 2
The following is a series of exercises to be solved and to reinforce the
learning.
We will observe that the FMM has a limited capacity, that is, the dining rooms
Virginiano and Masaya share the two departments of production and painting, each
one of which has limited daily capabilities and therefore must be
considered as scarce resources.
Page
12
To produce a Virginian dining room, 6 hours of construction and 8 hours are required.
of painting.
The FMM has a daily capacity of 120 hours in the construction department.
and 64 hours daily in the painting department.
To determine the best or optimal combination of both types of dining rooms that
they have to manufacture with the aim of maximizing utility, the FMM has to allocate
its limited capabilities (scarce resources) of the Construction and departments
Transport in a way that can achieve its goal.
Page
13