Linear Programming Examples.doc

7
Linear programming problems 1) A company makes two products (X and Y) using two machines (A and B). Each X that is produced requires 5 minutes processing time on machine A and ! mi processing time on machine B. Each unit of Y that is produced requires "# min processing time on machine A and !! minutes processing time on machine B. At the start of the current week there are ! units of X and $ units of Y in A%ai&a'&e processing time on machine A is forecast to 'e # hours and on mach forecast to 'e !5 hours. he demand for X in the current week is forecast to and for Y is forecast to 'e $5 units. *ompany po&icy is to ma+imise the com'i the units of X and the units of Y in stock at the end of the week. ,ormu&ate the pro'&em of deciding how much of each product to make in th current week as a &inear program. -o&%e this &inear program graphica&&y. ") A carpenter makes ta'&es and chairs. Each ta'&e can 'e so&d for a profit o each chair for a profit of 1. he carpenter can afford to spend up to # ho working and takes si+ hours to make a ta'&e and three hours to make a chair. demand requires that he makes at &east three times as many chairs as ta'&es. up four times as much storage space as chairs and there is room for at most f each week. ,ormu&ate this pro'&em as a &inear programming pro'&em and so&%e it graphica& !) /oe assem'&es two types of cameras0 the e+ce&erio and the premerio. is c assem'&ing these cameras is 2"1. and 2#". respecti%e&y. he tota& funds a his use are 210"3.. 4t takes 5 hours to assem'&e an e+ce&erio and " hours premerio. e can work for no more than 1 hours. 4f the profit on the two ki cameras is 2 . and 21. respecti%e&y0 determine how many cameras of each shou&d assem'&e to earn ma+imum profit. #) A pension fund has 2! mi&&ion to in%est. he money is to 'e di%ided among notes0 'onds0 and stocks. he ru&es for administration of the fund require th mi&&ion 'e in%ested in each type of in%estment0 at &east ha&f the money 'e i reasury notes and 'onds0 and the amount in%ested in 'onds not e+ceed twice t in%ested in reasury notes. he annua& yie&ds for the %arious in%estments are reasury notes0 6 for 'onds0 and $6 for stocks. ow shou&d the money 'e a&&ocated among the %arious in%estments to produce th return7 8etting started9 4n mi&&ions of do&&ars0 &et x = the amount in reasury notes0 y = the amount in 'onds0 and 30-( y + y )= the amount in stocks.

Transcript of Linear Programming Examples.doc

Linear programming solution examples

Linear programming problems1) A company makes two products (X and Y) using two machines (A and B). Each unit of X that is produced requires 50 minutes processing time on machine A and 30 minutes processing time on machine B. Each unit of Y that is produced requires 24 minutes processing time on machine A and 33 minutes processing time on machine B.

At the start of the current week there are 30 units of X and 90 units of Y in stock. Available processing time on machine A is forecast to be 40 hours and on machine B is forecast to be 35 hours. The demand for X in the current week is forecast to be 75 units and for Y is forecast to be 95 units. Company policy is to maximise the combined sum of the units of X and the units of Y in stock at the end of the week.

Formulate the problem of deciding how much of each product to make in the current week as a linear program.

Solve this linear program graphically.

2) A carpenter makes tables and chairs. Each table can be sold for a profit of 30 and each chair for a profit of 10. The carpenter can afford to spend up to 40 hours per week working and takes six hours to make a table and three hours to make a chair. Customer demand requires that he makes at least three times as many chairs as tables. Tables take up four times as much storage space as chairs and there is room for at most four tables each week.

Formulate this problem as a linear programming problem and solve it graphically.

3) Joe assembles two types of cameras, the excelerio and the premerio. His cost of assembling these cameras is $21.00 and $42.00 respectively. The total funds available for his use are $1,260.00. It takes 5 hours to assemble an excelerio and 2 hours to assemble a premerio. He can work for no more than 100 hours. If the profit on the two kinds of cameras is $8.00 and $10.00 respectively, determine how many cameras of each kind Joe should assemble to earn maximum profit.

4) A pension fund has $30 million to invest. The money is to be divided among Treasury notes, bonds, and stocks. The rules for administration of the fund require that at least $3 million be invested in each type of investment, at least half the money be invested in Treasury notes and bonds, and the amount invested in bonds not exceed twice the amount invested in Treasury notes. The annual yields for the various investments are 7% for Treasury notes, 8% for bonds, and 9% for stocks.How should the money be allocated among the various investments to produce the largest return?

Getting started: In millions of dollars, let x= the amount in Treasury notes, y= the amount in bonds, and 30-(y+y)= the amount in stocks.Solution 1

Let

x be the number of units of X produced in the current week

y be the number of units of Y produced in the current week

then the constraints are:

50x + 24y = 45 so production of X >= demand (75) - initial stock (30), which ensures we meet demand

y >= 95 - 90

i.e. y >= 5 so production of Y >= demand (95) - initial stock (90), which ensures we meet demand

The objective is: maximise (x+30-75) + (y+90-95) = (x+y-50)i.e. to maximise the number of units left in stock at the end of the week

It is plain from the diagram below that the maximum occurs at the intersection of x=45 and 50x + 24y = 2400

Solving simultaneously, rather than by reading values off the graph, we have that x=45 and y=6.25 with the value of the objective function being 1.25

Solution 2

Let

xT = number of tables made per week

xC = number of chairs made per week

Constraints

total work time

6xT + 3xC = 3xT

storage space

(xC/4) + xT = 0

Objective

maximise 30xT + 10xC

The graphical representation of the problem is given below and from that we have that the solution lies at the intersection of

(xC/4) + xT = 4 and 6xT + 3xC = 40

Solving these two equations simultaneously we get xC = 10.667, xT = 1.333 and the corresponding profit = 146.667

Problem 4 (stocks bonds) The constraints are:

and the objective function to be maximized is: The corresponding set of linear equations are:

: The feasible region is: The maximum return is $2.5 million when x=5 million and y=10 million.