Linear Programming Assignement
Linear Programming Assignement
Linear programming (LP, also called linear optimization) is a method to achieve the best outcome
(such as maximum profit or lowest cost) in a mathematical model whose requirements are represented
by linear relationships. Linear programming is a special case of mathematical programming (also known
as mathematical optimization).
Examples:
A transport company has two types of trucks, Type A and Type B. Type A has a
refrigerated capacity of 20 m³ and a non-refrigerated capacity of 40 m³ while Type B has
the same overall volume with equal sections for refrigerated and non-refrigerated stock. A
grocer needs to hire trucks for the transport of 3,000 m³ of refrigerated stock and 4,000 m³
of non-refrigerated stock. The cost per kilometer of a Type A is 30 and 40 for Type B. How
many trucks of each type should the grocer rent to achieve the minimum total cost?
By default, we see what takes the value x to y = 66 in the equation 20x + 30y =
3,000. x = 51 which it is within the feasible solutions.
For materials, the manufacturer has 750 m² of cotton textile and 1,000 m² of
polyester. Every pair of pants (1 unit) needs 1 m² of cotton and 2 m² of polyester.
Every jacket needs 1.5 m² of cotton and 1 m² of polyester.
What is the number of pants and jackets that the manufacturer must give to the
stores so that these items obtain a maximum sale?
x = number of pants
y = number of jackets
2x + y ≤ 1000
As the number of pants and jackets are natural numbers, there are two more constraints:
x≥0
y≥0
Represent the constraints graphically.
As x ≥ 0 and y ≥ 0, work in the first quadrant.
Represent the straight lines from their points of intersection with the axe
Solve the inequation graphically: 2x +3y ≤ 1500, and take a point on the plane, for example
(0,0).
2 · 0 + 3 · 0 ≤ 1,500
Since 0 ≤ 1,500 then the point (0,0) is in the half plane where the inequality is satisfied.
2 · 0 + 0 ≤ 1,000
The area of intersection of the solutions of the inequalities would be the solution to the system of
inequalities, which is the set of feasible solutions.
5. Calculate the coordinates of the vertices from the compound of feasible solutions.
The optimal solution, if unique, is in a vertex. These are the solutions to the systems: