Linear Programming Exercises Test
Linear Programming Exercises Test
A pet store has determined that each hamster should receive less than 70.
units of protein. 100 units of carbohydrates and 20 units of fat. If the
store sells the six types of food shown in the table. What mix of
Does the food meet the needs at a minimal cost for the store?
Solution:
Problem 35:
A local manufacturing company produces four different metallic products that
they must be machined, polished, and assembled. The specific time requirements (in
hours) for each product are as follows:
Solution:
Problem 36:
The total cost of producing a unit of each product is directly based on the
machine time. Assume that the cost per hour for machines 1 and 2 is $10 and
$15. The total hours budgeted for all products on machines 1 and 2
They are 500 and 380. If the selling price per unit for products 1, 2, 3, and 4 is $65,
$70, $55, and $45, formulate the problem as a linear programming model for
maximize the total net profit.
Solution:
What are we going to maximize?
Problem 37:
At the beginning of each month, the company has three options available for acquisition.
machinery. In the first alternative, you can buy a machine for $20,000.00 each.
with a delivery period of one month. That is, if at the beginning of each month 't' is requested and
Pay for the machinery, it will be delivered at the beginning of month t + 1.
In the second alternative, each machine can be purchased for $15,000.00, but the
The delivery period is in two months. The last alternative is to buy for $10,000.00
each machine with a delivery period of three months.
Formulate a linear programming model that allows determining the purchasing policy.
of machinery, production, and payment of operators each month, in such a way that by
At the beginning of the seventh month, there should be the maximum number of machines in operation.
Solution:
Problem 38:
Note that period 1 follows period 6. Consider that each person in the
The company works 8 consecutive hours. Suppose that Xty Zt, they denote the number of
technical and specialized personnel, respectively, who start working at the beginning
of period t each day. In this company, the union agreement establishes that in all
There must be at least three times the number of technical staff than
specialized personnel. Establish a linear programming model to determine
the minimum number of technical and specialized staff to meet the needs
work days in the company.
Solution:
Min Z = x1+ x2
Subject to:
20x1+ 8x2> 60
40x1+ 12x2120
80x1+ 15x2240
45x1+ 9x23(45)
25x1+ 3x2> 75
10x1+ 2x230
Problem 39:
National Railways of Mexico has the following demand at the beginning of next year
of diesel locomotives to occupy their system throughout the country:
Quarter 1 2 3
Locomotives 750 800 780
Diesel
It is estimated that at the beginning of the year there will be 650 locomotives in working condition and the
the operating budget for that year is $100,000,000 delivered in installments
quarterly of 40, 30, 20, and 10 million respectively.
It is supposed that at the end of each quarter, 5% of the locomotives must be maintained.
repair and 5% are out of service. Formulate a programming problem
linear that allows to determine the combination of policies that should be taken into account
management of railways to minimize costs and meet the demand for locomotives.
Solution:
Problem 40:
A company produces brown sugar, white sugar, powdered sugar, and molasses.
with sugar cane syrup. The company buys 4000 tons of syrup from
the week and has a contract to deliver a minimum of 25 tons weekly of
each type of sugar. The production process begins by manufacturing brown sugar and
molasses with syrup. One ton of syrup produces 0.3 tons of sugar.
brown sugar and 0.1 tons of molasses. After that, white sugar is produced by processing
brown sugar. 1 ton of brown sugar is required to produce 0.8 tons
of white sugar. Finally, powdered sugar is made from white sugar by
through a special grinding process, which has 95% conversion efficiency (1
ton of white sugar produces 0.95 tons of powdered sugar). The
utilities per ton
are 150, 200, 230, and 35 dollars, respectively. Formulate the problem as a
linear program.
Solution:
The production of each type of sugar according to the production process is detailed in
continuation for each ton of material used.
Problem 41:
Four products are processed in sequence by two machines. The following table
provide the relevant data to the problem.
Solution:
We determine the decision variables:
Xij: units produced by product type j: 1, 2, 3, 4.
using each machine i: 1, 2.
The restrictions:
2X11 + 3X12 + 4X13 + 2X14 <= 500 (Capacity constraint of machine 1)
3X21 + 2X22 + 1X23 + 2X24 <= 380 (Capacity constraint of machine 2)
Problem 42:
With rubies and sapphires, a businessman produces two types of rings. A type 1 ring requires 2
rubies, 3 sapphires and 1 hour of work from a jeweler. A type 2 ring requires 3 rubies, 2 sapphires and 2
working hours of a jeweler. Each type 1 ring is sold for 400 dollars, and each type 2 ring, at
500 dollars. All the produced rings can be sold. Currently, there are 100 available.
rubies, 120 sapphires, and 70 hours of work from a jeweler. You can buy more rubies at a cost
from 100 dollars for the ruby. Market demand requires a production of at least
20 rings of type 1 and at least 25 rings of type 2. Formulate the problem to maximize the
profit.
Solution:
Requirement by unit
Type of
ring Availability
Type 1 Type 2
Rubies (unit) 2 3
Sapphires (unit) 3 2
Hours-man 1 2 70
Price ($/unit) 400 500
Demand (unit) 20 25
Problem 43:
For a 24-hour shift, a hospital is requiring the following personnel for the area of
nursing, six shifts of four hours each are defined.
Shift Number
minimum
of personal
2:00 - 6:00 4
6:00 - 10:00 8
10:00 - 14:00 10
2:00 PM - 6:00 PM 7
18:00 - 20:00 12
20:00 - 24:00 4
Employment contracts are for 8 consecutive hours per day. The objective is to find the number
fewer people who meet the requirements. Formulate the problem as a model.
of linear programming.
Solution:
We determine the decision variables:
Amount of personnel per shift i = 1, 2, 3, 4, 5, 6.