0% found this document useful (0 votes)
97 views

Linear Programming Examples

The document describes two linear programming problems: 1) A production planning problem where a company makes 4 variants with different assembly, polishing, and packing times. Given fixed time available for each operation, the LP determines the optimal production quantities to maximize profit. 2) An extension where the company can vary the time allocated to each operation within a total limit. The extended LP determines the optimal time allocations and production quantities. Both LPs are formulated with variables for production quantities and time allocations, subject to constraints on time availability and an objective to maximize total profit. The optimal solutions provide the amounts to produce of each variant and associated maximum profit.

Uploaded by

Edlyn Pangilinan
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
97 views

Linear Programming Examples

The document describes two linear programming problems: 1) A production planning problem where a company makes 4 variants with different assembly, polishing, and packing times. Given fixed time available for each operation, the LP determines the optimal production quantities to maximize profit. 2) An extension where the company can vary the time allocated to each operation within a total limit. The extended LP determines the optimal time allocations and production quantities. Both LPs are formulated with variables for production quantities and time allocations, subject to constraints on time availability and an objective to maximize total profit. The optimal solutions provide the amounts to produce of each variant and associated maximum profit.

Uploaded by

Edlyn Pangilinan
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Linear programming example

A company makes three products and has available 4 workstations. The production
time (in minutes) per unit produced varies from workstation to workstation (due to
different manning levels) as shown below:
Workstation
1 2 3 4
Product 1 5 7 4 10
2 6 12 8 15
3 13 14 9 17

Similarly the profit (£) contribution (contribution to fixed costs) per unit varies from
workstation to workstation as below

Workstation
1 2 3 4
Product 1 10 8 6 9
2 18 20 15 17
3 15 16 13 17

If, one week, there are 35 working hours available at each workstation how much of
each product should be produced given that we need at least 100 units of product 1,
150 units of product 2 and 100 units of product 3. Formulate this problem as an LP.

Solution

Variables

At first sight we are trying to decide how much of each product to make. However on
closer inspection it is clear that we need to decide how much of each product to make
at each workstation. Hence let

xij = amount of product i (i=1,2,3) made at workstation j (j=1,2,3,4) per week.

Although (strictly) all the xij variables should be integer they are likely to be quite
large and so we let them take fractional values and ignore any fractional parts in the
numerical solution. Note too that the question explicitly asks us to formulate the
problem as an LP rather than as an IP.

Constraints

We first formulate each constraint in words and then in a mathematical way.


 limit on the number of minutes available each week for each workstation

5x11 + 6x21 + 13x31 <= 35(60)

7x12 + 12x22 + 14x32 <= 35(60)

4x13 + 8x23 + 9x33 <= 35(60)

10x14 + 15x24 + 17x34 <= 35(60)

 lower limit on the total amount of each product produced

x11 + x12 + x13 + x14 >= 100

x21 + x22 + x23 + x24 >= 150

x31 + x32 + x33 + x34 >= 100

Objective

Presumably to maximize profit - hence we have

maximize

10x11 + 8x12 + 6x13 + 9x14 + 18x21 + 20x22 + 15x23 + 17x24 + 15x31 + 16x32 + 13x33 +
17x34

Blending problem

Consider the example of a manufacturer of animal feed who is producing feed mix for
dairy cattle. In our simple example the feed mix contains two active ingredients and a
filler to provide bulk. One kg of feed mix must contain a minimum quantity of each of
four nutrients as below:
Nutrient A B C D
gram 90 50 20 2

The ingredients have the following nutrient values and cost


A B C D Cost/kg
Ingredient 1 (gram/kg) 100 80 40 10 40
Ingredient 2 (gram/kg) 200 150 20 - 60
What should be the amounts of active ingredients and filler in one kg of feed mix?

Blending problem solution

Variables

In order to solve this problem it is best to think in terms of one kilogram of feed mix.
That kilogram is made up of three parts - ingredient 1, ingredient 2 and filler so let:

x1 = amount (kg) of ingredient 1 in one kg of feed mix 


x2 = amount (kg) of ingredient 2 in one kg of feed mix 
x3 = amount (kg) of filler in one kg of feed mix 
where x1 >= 0, x2 >= 0 and x3 >= 0.

Essentially these variables (x1, x2 and x3) can be thought of as the recipe telling us how
to make up one kilogram of feed mix.

Constraints

 nutrient constraints

100x1 + 200x2 >= 90 (nutrient A) 


80x1 + 150x2 >= 50 (nutrient B) 
40x1 + 20x2 >= 20 (nutrient C) 
10x1 >= 2 (nutrient D)

Note the use of an inequality rather than an equality in these constraints, following the
rule we put forward in the Two Mines example, where we assume that the nutrient
levels we want are lower limits on the amount of nutrient in one kg of feed mix.

 balancing constraint (an implicit constraint due to the definition of the


variables)

x1 + x2 + x3 = 1

Objective

Presumably to minimize cost, i.e.

minimize 40x1 + 60x2


which gives us our complete LP model for the blending problem.

In case you are interested the optimal solution to this LP (solved using the package as
dealt with later) is x1= 0.3667, x2=0.2667 and x3=0.3667 to four decimal places.

Obvious extensions/uses for this LP model include:

 increasing the number of nutrients considered


 increasing the number of possible ingredients considered - more ingredients can
never increase the overall cost (other things being unchanged), and may lead to
a decrease in overall cost
 placing both upper and lower limits on nutrients
 dealing with cost changes
 dealing with supply difficulties
 filler cost

Blending problems of this type were, in fact, some of the earliest applications of LP
(for human nutrition during rationing) and are still widely used in the production of
animal feedstuffs.

Production planning problem

A company manufactures four variants of the same product and in the final part of the
manufacturing process there are assembly, polishing and packing operations. For each
variant the time required for these operations is shown below (in minutes) as is the
profit per unit sold.
Assembly Polish Pack Profit (£)
Variant 1 2 3 2 1.50
2 4 2 3 2.50
3 3 3 2 3.00
4 7 4 5 4.50

 Given the current state of the labour force the company estimate that, each
year, they have 100000 minutes of assembly time, 50000 minutes of polishing
time and 60000 minutes of packing time available. How many of each variant
should the company make per year and what is the associated profit?
 Suppose now that the company is free to decide how much time to devote to
each of the three operations (assembly, polishing and packing) within the total
allowable time of 210000 (= 100000 + 50000 + 60000) minutes. How many of
each variant should the company make per year and what is the associated
profit?

Production planning solution

Variables

Let:

xi be the number of units of variant i (i=1,2,3,4) made per year 


Tass be the number of minutes used in assembly per year 
Tpol be the number of minutes used in polishing per year 
Tpac be the number of minutes used in packing per year

where xi >= 0 i=1,2,3,4 and Tass, Tpol, Tpac >= 0

You might also like