+ All Categories
Home > Documents > Linear Programming Module- A Conceptual Framework

Linear Programming Module- A Conceptual Framework

Date post: 29-Nov-2014
Category:
Upload: sasquatch-s
View: 7,056 times
Download: 3 times
Share this document with a friend
Description:
Linear Programming Module - A Conceptual Framework.
25
1 Linear Programming Module- A Conceptual Framework Prepared By P.K. Viswanathan Introduction: An economist faces the problem of making an optimum allocation of resources among competing projects. A business-planning manager has to decide how many units of each product be produced to maximize profit subject to constraints on production capacity and demand for these products. We need a model that can help us to find the best solution in the context of constraints that are operating on the problem. Linear programming provides solutions to such problems. The word programming implies planning. Learning Objectives: After reading this module, you will be able to: Know what is Linear Programming (LP) Formulate Linear Programming Problems Use Graphical Method to Solve LP Appreciate Shadow Prices and Interpret Appreciate Computer Solutions for Large LP problems Contents: 1. What is Linear Programming? 2. Steps in formulating LP Problems 3. Solution-Graphical Method 4. Computer Solution 5. A Comprehensive Case on LP 6. Module Summary 7. Review Questions 1. What is Linear Programming? Linear Programming (LP) is concerned with the best way of allocating scarce resources among competing ends. The word optimization is used in the context of either maximizing or minimizing an objective function. Organizations do have problems such as minimizing cost of production, or maximizing the profit. The resources that are available in limited quantities are called constraints and the optimization will have to take place subject to the constraints the organization has.
Transcript
Page 1: Linear Programming Module- A Conceptual Framework

1

Linear Programming Module- A Conceptual FrameworkPrepared

ByP.K. Viswanathan

Introduction:

An economist faces the problem of making an optimum allocation of resources amongcompeting projects. A business-planning manager has to decide how many units of eachproduct be produced to maximize profit subject to constraints on production capacity anddemand for these products. We need a model that can help us to find the best solution inthe context of constraints that are operating on the problem. Linear programmingprovides solutions to such problems. The word programming implies planning.

Learning Objectives:

After reading this module, you will be able to:

Know what is Linear Programming (LP)Formulate Linear Programming ProblemsUse Graphical Method to Solve LPAppreciate Shadow Prices and InterpretAppreciate Computer Solutions for Large LP problems

Contents:

1. What is Linear Programming?2. Steps in formulating LP Problems3. Solution-Graphical Method4. Computer Solution5. A Comprehensive Case on LP6. Module Summary7. Review Questions

1. What is Linear Programming?

Linear Programming (LP) is concerned with the best way of allocating scarce resourcesamong competing ends. The word optimization is used in the context of eithermaximizing or minimizing an objective function. Organizations do have problems suchas minimizing cost of production, or maximizing the profit. The resources that areavailable in limited quantities are called constraints and the optimization will have to takeplace subject to the constraints the organization has.

Page 2: Linear Programming Module- A Conceptual Framework

2

"Programming" here means planning and has nothing to do with computer programming.The word 'linear" is very important. Linear implies that the objective function andconstraints are all linear namely the variables are raised to the power 1 only. Theconstraints could be of three types: 1) less than or equal to 2) equal to and 3) greater thanor equal to. Symbolically, they are represented as ,, respectively.

To put it succinctly, linear programming is a very widely used OR model that maximizesor minimizes an objective function subject to a number of limiting factors calledconstraints. All relationships among the variables are linear. That is objective function,and constraints are all linear. Another requirement of LP is that all variables must be non-negative (0 or positive). You cannot have a negative solution in linear programmingalthough mathematically you may get negative solutions for the decision variables.

Some Examples where LP is applied

An advertising company wants to maximize exposure of a client’s product andhas a choice of advertising in different media that include TV, Radio, andmagazines. These media charge different advertising costs. The ad company hasto achieve its objective of maximizing exposure subject to the constraints of adbudget, minimum and maximum number of ads in the various media. LP can helpthe company solve this problem.

A furniture manufacturer producing a number of items would like to maximize hisprofit. He has certain commitments to his customers in the form of minimum andmaximum quantities to be supplied for each item. Also in his plant, the availableproduction time in each of the 3 departments is limited. LP can help him find anoptimum product mix that can maximize his total profit.

Applications of linear programming are plenty. Product mix problem, mediaplanning, transportation problem, blending problem, scheduling of nurses anddoctors to the patients in a hospital, and capital investment are among the manywhere linear programming can be applied.

2. Steps in formulating LP Problems

Identify the decision variables.Decision variables are those for which you are trying to find the solution.Identifying the decision variables is important in solving an LP problem

Formulate the objective function in terms of the decision variablesIf the organization’s goal is to maximize profit, the objective function will be amaximization case. Likewise, in a blending problem, if the aim is to minimizecost, then the objective function will be a minimization case. At any rate, youmust be able to express the objective function in terms of the decision variables.

Page 3: Linear Programming Module- A Conceptual Framework

3

Formulate the constraints in terms of the decision variables.Constraints represent limitations on resources. They will also have to be written interms of the decision variables.

Note: As the solution for the decision variables should not turn out to be negative, youhave to specify that they are zero or positive. This is termed as non-negativity constraint.In any LP problem, it is generally understood that all the decision variables are non-negative.

Example: One of the divisions of a small-scale unit manufactures two products. Both theproducts require two raw materials and the consumption per unit production is givenbelow:

Table -Consumption in kg per unit productionProduct 1 Product 2 Maximum

Availabilityof Raw

Materials(kg)

Raw Material1 2 3 18Raw Material2 1 1 8

Further, it is known from market research that product 1 cannot be sold more than 4 units.The profit per unit of product 1 is $ 15, and product 2 is $ 21. You will have to help thissmall-scale unit decide how many units of product 1 and product 2 to produce so as tomaximize the total profit.

Formulation

Identify the decision variables:Let x1 be the number of units of product 1 to be producedLet x2 be the number of units of product 2 to be produced

Formulate the objective function in terms of the decision variables:The profit per unit of product is $. 15 and product 2 is $.21. If you produce x1 units ofproduct 1 and x2 units of product 2, then the total profit =15x1 + 21x2 . This has to bemaximized. In linear programming terminology, we write the objective function as

Z = 15x1 + 21x2 . Z is to be maximized.

Formulate the constraints in terms of the decision variables:The maximum quantity of product 1 that can be sold is 4 units. So

x1 4 (Sales constraint)

Page 4: Linear Programming Module- A Conceptual Framework

4

The maximum availability of raw material 1 is 18 kg. To produce x1 units of product1 andx2 units of product 2, you need 2x1 + 3x2 kg. So,

2x1 + 3x2 18 (raw material 1 availability) (see table of consumption above)

Similarly we can work out the raw material availability constraint for raw material 2. Andit is

x1 + x2 8 (raw material 2 availability)

Complete formulation for the example:

Maximize Z = 15x1 + 21x2

Subject to:

x1 4

2x1 + 3x2 18

x1 + x2 8

And x1, x2 0(non-negativity)

Inline Question: Linear programming is one of the computer programming languages.True or False.

Answer: The statement is false. The word programming means planning and linear meansthe relationships among the variables are raised to the power 1. This has nothing to do withcomputer programming language.

Assumptions in Linear Programming:

1) Proportionality: Because we assume linear relationship among variables in LP,proportionality is inevitable. Suppose you need 5 kg of input to produce one unit.Then to produce two units, you need 10 kg of input. This is not necessarily true.

2) Additivity: When we formulate the constraints, we add resource requirements ofthe decision variables. We ignore the interaction term in the expression. Interactionmeasures the effect of any combination of decision variables.

3) Divisibility: Divisibility does not guarantee integer solutions. In a particularproblem, fractional solution does not make sense. For example, in a product mixproblem, you may get a solution that says produce 10.3 units of model 1 and 14.4

Page 5: Linear Programming Module- A Conceptual Framework

5

units of model 2. It does not make sense. Rounding to the whole numbersometimes may vitiate the solutions. Of course you have a technique called integerlinear programming that can help you solve problems where you are looking forinteger solutions.

4) Certainty: In linear programming, you assume all variables are known without anydoubt. Thus, you assume a deterministic or certainty scenario. But in reality, youmay have to assess carefully the magnitude of uncertainty.

3. Solution-Graphical Method

Graphical method of solving a linear programming model is possible only for twovariables. To get a feel for linear programming, graphical method is extremely useful.Let us take the same example used for formulating LP model.

Example Problem:Graphical SolutionExample Problem:Graphical Solution

Constraint Lines and Feasibility RegionDrawn in a combined manner

88

77

66

55

44

33 Feasibility RegionFeasibility Region

22

11

1 2 3 4 5 61 2 3 4 5 6 7 8 9 107 8 9 10

22xx11 + 3+ 3xx22 =18=18

xx22

xx11

xx11 ++ xx22= 8= 8

XX11=4=4A(0,6)

B (4, 3 1/3)

C(4,0)D(0,0)

Page 6: Linear Programming Module- A Conceptual Framework

6

Please see the feasibility region in the diagram bounded by thick lines with corner pointsco-ordinates marked by A(0,6), B(4, 3 1/3), C(4,0) and D(0,0). This is the region thatsatisfies all the three constraints. Co-ordinates for B is obtained by solving the twoequations X1 = 4 and 2X1+3X2 =18. Do not read the co-ordinates from the graph. You maynot get the accuracy. The word feasibility is important here. It says that every pair of co-ordinate points in this region is a feasible solution to the problem given. But, what is theoptimum solution? See next.

Optimal SolutionOptimal Solution

In any linear programming problem the optimumsolution when it exists is always one of the cornerpoints in the feasibility region. Select that cornerpoint which gives the maximum Z value. (Note: Forminimization case select that corner point that givesthe minimum Z value). In our case we need to selectthe maximum Z value.

Corner Point Z Value : Z= 15x1 + 21x2

A(0,6) 126B(4, 3 1/3) OptimumC(4,0) 60D(0,0) 0

130

Page 7: Linear Programming Module- A Conceptual Framework

7

The optimum solution that maximizes the profit is to produce 4 units of product 1 and3 1/3 units of product 2. The maximum profit is $. 130.

Inline question: If the example problem discussed is a minimization problem, what is theoptimum solution?

Answer: Take that corner point that gives the minimum value of Z. Omit the trivialsolution D(0,0) that says don’t produce any thing. Z is minimum for C(4,0). The value of Z=60. The optimum solution is to produce 4 units of product 1 and 0 units of product 2.

Assignment: Solve the following LP problem graphically:

Maximize Z = 8X1 + 10X2Subject to: 8X1 + 4X2240

6X1 +12X2 360X1, X2 0

4. Computer Solution:

Graphical method just provides some insights into linear programming. It can solveproblems having two variables only. In practice, complex problems involving more thantwo variables are encountered. The efficient way of solving such problems is to use“Solver” in Microsoft Excel. You can get output giving insights into shadow prices andsensitivity analysis apart from the usual optimum solution. The method used for solvinglinear programming problems is called “simplex method” discovered by Dantiz. Doing thismanually in practice is not only time consuming but also error prone. Computer solution issimple and best.

The emphasis in this module is on your ability to formulate a linear programming modelfor a given problem and then solve it using “Solver”. The technical terms associated withlinear programming purely from a mathematical perspective will be avoided. For amanager, a problem well formulated is half solved. The simple slogan I would popularize is“Excel in formulating any LP problem and solve it using Excel”.

Before we move on to solving some complex LP problems, let us first solve a simpleproblem using solver. Take the example used for graphical method. Follow the step-by-stepprocedure. The formulation of this problem on the spreadsheet is given below:

Page 8: Linear Programming Module- A Conceptual Framework

8

Model Formulation on the spreadsheet

Explanation on the Formulation:

This is a crucial step in using solver. Column A is used for labeling the linear programmingvocabulary. Decision Variables appear in cell A2. In Column B and C, Product1 andProduct 2 are labeled. Corresponding to Row 2 and columns B and C values 1 and 1 areentered. These are the initial values of the decision variables X1 and X2 we have used whileformulating the LP model. These initial values are varied by solver to get the optimumvalues of X1 and X2. Please remember, solver cannot accept X1 and X2 in the respectivecells. Please note that you are at liberty to use your own labeling and Excel is flexible inthis regard.

In A4 cell Objective Function is written. Against this label, under Column B and C values15 and 21 are entered. These are the unit profits of the two products. F3 is labeled as TotalProfit and F4 gives the profit that is obtained by multiplying the coefficients of theobjective function with the initial values of the decision variables. That is (15)(1)+21(1)=36. In order that Excel understands this, you create a formula in F4(target cell)=B4*B2+C4*C2. Excel will vary the values of B2 and C2 to get the optimum values ofProduct1 and Product2.

Page 9: Linear Programming Module- A Conceptual Framework

9

Then we label in Column A in Row 6 Constraints. Under this we further label theindividual constraints namely Sales for Product1, Raw material1 availability, and Rawmaterial2 availability. In Column B and C we enter the coefficients of the decisionvariables corresponding to these constraints. The value 1 is entered under column Bcorresponding to Sales for Product1 and value 0 is entered under column C for Product2. InColumn D corresponding to Sales for product1, the value 1 appears. This is calculated bythe formula =B7*B2+C7*C2 and this is 1. In Column E corresponding to Sales forProduct1, we label the symbol < = meaning less than or equal to constraint. This labeling isdone for our own understanding and Excel ignores this. In Column F corresponding toSales for Product1, we have entered the value 4. Now if you look at the entire Row 4, forthe constraint Sales for Product1, you are saying B7*B2+C7*C2 < = 4. This is same assaying X1 < =4. Likewise the constraints on raw material 1 and raw material 2 are workedout. For better clarity, spreadsheet showing model equations are given next:

Spreadsheet Giving Model Equations

Page 10: Linear Programming Module- A Conceptual Framework

10

Solution: Now you are ready to invoke solver. Click Tools, and click Solver. You get

In “Set Target Cell” highlight F4 that contains the objective function. In “Equal To” clickMax because you want to maximize the objective function. “By Changing Cells” isSolver’s way of saying that the initial values of the decision variables are varied untiloptimal solution is reached. You highlight the cells B2:C2. You now get

Solution continues:

Page 11: Linear Programming Module- A Conceptual Framework

11

You now come to “Subject to the Constraints”. Solver accepts all the three types ofconstraints (< =, =, > =). When you develop a model, you better arrange the constraintsaccording to types in the spreadsheet itself. That is all < = are done first; then > = and then=. This will save a lot of time. You can enter a set of constraints together in Solver byhighlighting the appropriate cells. Here all the constraints are < = and are arranged in thatorder. You click “Add” and you get

In “Cell Reference” you highlight D7:D9. Click < =. Then highlight cells F7:F9 forconstraint values. You have now entered all constraints. You get now

Click OK and you get

Complete Formulation of LP Model for the Example

Page 12: Linear Programming Module- A Conceptual Framework

12

The last two things that remain to be done by you is to tell Solver that you are solving alinear programming model and the decision variables are non-negative. Click Options.Then click Assume Linear Model and Assume Non-Negative. After this, you click Solveand you get

Now click OK. You get the solution shown next.

Model Giving Optimal Solution

As you can see the optimum solution is to produce 4 units of Product1 and 3.33 units ofProduct2. The maximum total profit is $. 130. Constraints 1 and 2 are fully exhaustedmeaning that the resources are fully utilized. In the LP parlance, the word slack is used.Here slack is 0. Slack represents the unused quantity of a resource. For constraint3, there is

Page 13: Linear Programming Module- A Conceptual Framework

13

a slack of 0.67 kg that was unutilized. This cannot be helped as things stand. Any attemptwe make to use more of this will not give a profit better than $.130.

Sensitivity Analysis

Finding the solution to a linear programming model is only a first step. A manager wouldlike to know how sensitive the solution is to changes in inputs and assumptions. Let usinterpret the sensitivity analysis output given by solver for the LP problem just solved.

When you click solve, you actually get

If you now press OK, you get the optimum solution. Before clicking OK, highlightSensitivity and then click OK. You get

Page 14: Linear Programming Module- A Conceptual Framework

14

Shadow Price:

The shadow price gives the incremental increase in profit when the right hand sidevalue of a constraint is increased by one unit, and the decrease in profit when theright hand side value of a constraint is decreased by one unit. Shadow prices play akey role in evaluating the worth of increasing the resources and also new productevaluation. Let us interpret the shadow prices for our example.

Shadow price corresponding to constraint 1 namely Sales for Product1 is seen to be=1. This means that the objective function (total profit) will increase or decrease by$1 if the sale quantity for product1 is increased or decreased by $1. From amarketing angle every additional unit sold on product 1 will increase the profit by$1.

Shadow price corresponding to constraint 2 is 7. This means that an increase ordecrease of 1 kg in availability of raw material 2 will produce an increase ordecrease of $7 in the objective function. So, the moral of the story is that everyadditional kg of raw material 2 made available will increase the profit by $7.

Shadow price for raw material 2 is 0. It does not make any impact on the objectivefunction.

Thus shadow prices for Sale of Product 1, Raw Material 1, and Raw Material 2 are$1, $7, and $0 respectively.

The allowable increase and allowable decrease shown in the output indicates therange for which the shadow prices will hold true.

Inline Question: For the example discussed, if the small-unit’s R&D department hascreated a new product called Product 3. It is quite profitable, $25 per unit. It requires 4kgof raw material 1 and 1 kg of raw material 2. Should Product 3 be produced?

Solution: The opportunity cost of producing one unit of Product 3 is:

(Shadow price of raw material 1)(Consumption of raw material 1 per unit production)+(Shadow price of raw material 2)(Consumption of raw material 2 per unit production)

=$74+01=$28This represents the opportunity cost that the company will have to forego by not producingProduct 1 and Product 2. The profit per unit of Product 3 is $25. Since this is less than$28(opportunity cost of not producing Product 1 and Product 2), Product 3 should not beproduced.

Page 15: Linear Programming Module- A Conceptual Framework

15

5. Comprehensive Case on LP

Programmers Recruitment Planning

A software company conducts a short applied certificate course in computerprogramming for trainee programmers. Trained programmers are used as instructors inthe certificate course in the ratio of one for every ten trainee programmers recruited. Thecertificate course lasts for one month. From past experience, it has been found that out often trainee programmers hired, only six complete the certificate course successfully (theunsuccessful trainee programmers are sent out).

Trained programmers are also needed for company's computer assignments and thecompany's requirements for the next three months are as follows:

Month 1 200Month 2 300Month 3 350

In addition, the company requires 400 trained programmers in the beginning of Month 4.There are 230 trained programmers available as of now.

Salary Details are:

Each Trainee Programmer Rs. 4000

Each Trained Programmer Rs. 7000(Doing company’s computerassignments or as instructor)

Each Trained Programmerwho remains idle Rs. 5000(Union agreement prevents firingTrained Programmers)

Decide and set up the hiring and training schedule of programmers, which will meet thecompany's requirements at minimum cost

Problem Formulation for the Case:

•Identify the decision variablesLet X1 =Trained programmers functioning as instructors in Month 1Let X2 =Trained programmers who remain idle in Month 1Let X3= Trained programmers functioning as instructors in Month 2Let X4= Trained programmers who remain idle in Month 2Let X5= Trained programmers functioning as instructors in Month 3Let X6 =Trained programmers who remain idle in Month 3

Page 16: Linear Programming Module- A Conceptual Framework

16

•Formulate the objective functionMinimize Z = 4000(10X1+10X3+10X5) +7000(X1+X3+X5)+5000(X2+X4+X6)Z = Total Variable Cost. The salary to be paid to programmers in Month 1, Month 2, andMonth 3 are fixed cost that cannot be reduced. Hence, in the objective function, it is notincluded. Simplifying Z = 47000X1+5000X2+47000X3+5000X4+47000X5+5000X6

Note: Because trained programmers are used as instructors in the course in the ratio ofone for every 10 trainee programmers recruited, the following are true:

10X1 trainee programmers are recruited in Month 110X3 trainee programmers are recruited in Month 210X5 trainee programmers are recruited in Month 3

•Formulate the constraints230 = 200+X1+X2 (Month 1 constraint)230+6X1 =300+X3+X4 (Month 2 constraint)230+6X1+6X3 =350+X5+X6 (Month 3 constraint)230+6X1+6X3+6X5 = 400 (Month 4 constraint)

Note: Out of 10X1 trainee programmers recruited, 6X1 are successful in the course inMonth 1 and are available for company’s computer assignments or functioning asinstructors in Month 2. Similarly those who are successful in completing the course inMonth 2, and Month 3 are available in the subsequent month for company’s computerassignments or functioning as instructors

Upon simplification, the constraints are:

Month 1 X1+X2 = 30Month 2 6X1-X3-X4 = 70Month 3 6X1+6X3-X5-X6 = 120Month 4 6X1+6X3+6X5 = 170

X1,X2,X3,X4,X5,X6 are 0 (Non-negativity)Complete LP Formulation for the Example:

Minimize Z=47000X1+5000X2+47000X3+5000X4+47000X5+5000X6Subject to constraints

X1+X2 = 30(Month 1)

6X1-X3-X4 = 70(Month 2)

6X1+6X3-X5-X6 = 120(Month 3)

6X1+6X3+6X5 = 170(Month 4)

X1, X2, X3, X4, X5, X6 are 0 (Non-negativity)

Page 17: Linear Programming Module- A Conceptual Framework

17

Inline Question: Obtain optimum solution for the case problem above using solver. Youshow the initial model formulation on the spreadsheet and then the model solution.

Solution: Follow the step-by step procedure discussed in this module. It is just anextension of the two-decision variables case to six-decision variables case. Every stepwill be the same.

Spreadsheet Displaying Model Formulation

Page 18: Linear Programming Module- A Conceptual Framework

18

Spreadsheet Displaying Optimum Solution

As you can see that the minimum cost is Rs 1416531. The optimum values of thedecision variables are:

X1 =Trained programmers functioning as instructors in Month 1 = 13X2 =Trained programmers who remain idle in Month 1 = 17X3= Trained programmers functioning as instructors in Month 2 = 8X4= Trained programmers who remain idle in Month 2 = 0X5= Trained programmers functioning as instructors in Month 3 = 7X6 =Trained programmers who remain idle in Month 3 = 0

We have rounded the values of the decision variables to integers as fractional values ofprogrammers are not possible. Please note that all constraints are fully satisfied when youtake the fractional values.

Page 19: Linear Programming Module- A Conceptual Framework

19

6. Module Summary

This module has introduced you to a very useful resource optimization tool called linearprogramming. Specifically this module focused on:

Meaning, definition, and examples of linear programming

Steps in formulating linear programming model

Explaining the LP model formulation steps through an example

Problem formulation is key to solution

Computer solution using Solver of Microsoft Excel

Explaining computer solution through an example

Sensitivity analysis as an important tool for mangers to see the changes insolution as a result of changes in inputs and assumptions.

The role of shadow price in evaluating the worth of increasing or decreasingresource quantities as well as the worth of a new product

A comprehensive case discussion on LP model formulation and computer solution

7. Review Questions (Test Items)

Discussion Topic

Analyze, criticize, and explain the following statement:

“ Linear programming is an oversimplification of real life problems. It assumes only oneobjective function when organizations are facing multiple objectives”.

1) What is linear programming?

Answer: Linear programming is a technique in management science thatmaximizes or minimizes an objective function subject to a number of limitingfactors called constraints.

2) What are the assumptions of a linear programming model?

Page 20: Linear Programming Module- A Conceptual Framework

20

Answer: The model assumes proportionality, additivity, divisibility, anddeterministic scenario.

3) What are the steps in a linear programming model formulation?

Answer: 1) Identify the decision variables 2) Formulate the objective function interms of the decision variables 3) Formulate the constraints in terms the decisionvariables 4) Superimpose the non-negativity requirements on decision variables (0or positive)

4) What is sensitivity analysis in LP?

Answer: Sensitivity analysis means how the linear programming model solutionreacts to changes in input parameters such as costs, prices, and resources. Itattempts to answer how sensitive the solution is to changes in inputs andassumptions.

5) What is shadow price?

Answer: Shadow price gives the incremental increase in profit when the righthand side value of a constraint is increased by one unit, and the decrease in profitwhen the right hand side value of a constraint is decreased by one unit. Shadowprices play a key role in evaluating the worth of increasing the resources and alsonew product evaluation.

6) Mini Case:

Mr. Joseph, investment manager of Wizard Finance has $120000 to invest in new ITstocks. Data on four chosen stocks are given below:

Stock Dividend Growth % Price per Share1 1.5 30 352 0.75 25 453 2.0 28 404 0.5 35 55

Mr. Joseph has been asked to maximize growth in $ value excluding dividends of thisportfolio of shares in the coming year. It is Wizard’s policy to get at least $2500 asannual dividend from this portfolio of shares. Wizard also wants to play safe bystipulating the following conditions. Amount invested in stock 4 cannot be more than55% of amount invested in stock 1. Further the company requires that at least 15% oftotal investment be in stock 2.

Formulate and solve this case as a linear programming problem and obtain theoptimum solution-using Solver.

Page 21: Linear Programming Module- A Conceptual Framework

21

Solution:

Identify the decision variables

Let X1 = $ amount invested in Stock 1Let X2 = $ amount invested in Stock 2Let X3 = $ amount invested in Stock 3Let X4 = $ amount invested in Stock 4

Formulate the objective function

From the wording of the problem, it is clear that Wizard would like to maximize thegrowth of this portfolio of shares.

Maximize Z = 0.30X1+0.25X2+0.28X3+0.35X4

Formulate the constraintsStock Dividend Growth % Price per Share1 1.5 30 352 0.75 25 453 2.0 28 404 0.5 35 55

The amount set aside for investment is $120000. Hence the total amount investedin the four shares has to be less than or equal to $120000.

X1+X2+X3+X4 < = 120000(Investment amount constraint)

The company specifies an annual dividend of at least $2500 for this portfolio ofshares. This is a bit tricky. Since we know dividends per share as well as the priceof each share. The annual dividend from this portfolio is =

X4550.5

X3402.0

X245

0.75X1

351.5

. This must be greater than or equal to

$2500. Hence this constraint is

X4550.5X3

402.0X2

450.75X1

351.5

> =2500(Dividend constraint). Upon

simplification this constraint becomes

0.43X1+0.017X2+0.050X3+0.009X4 > =2500(Dividend constraint)

Page 22: Linear Programming Module- A Conceptual Framework

22

Amount invested in Stock 4 cannot be more than 55% of amount invested inStock 1. This constraint can be written as

X4 < = 0.55X1. Simplifying this is written as

X4-0.55X1< =0(Safety constraint)

The last constraint is at least 15% of total amount invested must be in Stock2.This can be written as

X2 > = 0.15(X1+X2+X3+X4). Simplifying this expression, this constraint becomes

–0.15X1+0.85X2-0.15X3-0.15X4 > = 0(Minimum amount in Stock 2 constraint)

Finally X1, X2, X3, X4 > = 0(Non-negativity)

Complete Model Structure (arranged according to the type of constraints)

Maximize Z = 0.30X1+0.25X2+0.28X3+0.35X4

Subject to

X1+X2+X3+X4 < = 120000(Investment amount constraint)

X4-0.55X1< =0(Safety constraint)

0.43X1+0.017X2+0.050X3+0.009X4 > =2500(Dividend constraint)

–0.15X1+0.85X2-0.15X3-0.15X4 > = 0(Minimum amount in Stock 2constraint)

X1, X2, X3, X4 > = 0(Non-negativity)

Let us now get the solution from Excel using Solver.

Page 23: Linear Programming Module- A Conceptual Framework

23

Spreadsheet Displaying Model formulation

Optimum solution is given next.

Page 24: Linear Programming Module- A Conceptual Framework

24

Spreadsheet Displaying Optimum Solution

The optimum solution is to invest $65806 in Stock 1, $18000 in Stock 2, $0 inStock 3, and $36194 in Stock 4. The maximum growth = $36909. 68

Glossary:

Additivity: This is one of the assumptions of linear programming in which theresources for the decision variables are added for getting the total resource.

Certainty: In linear programming, we assume all variables are known withoutany doubt. That is, we assume a deterministic or certainty scenario.

Constraints: Restrictions in the form of resource limitations or requirement in alinear programming problem.

Decision variables: Variables those are unknown for which solution is sought.

Divisibility: One of the assumptions of linear programming by whichthe decision variables will have fractional solutions. This may not be meaningfulin situations where we need integer solutions.

Page 25: Linear Programming Module- A Conceptual Framework

25

Linear: This is one of the requirements of linear programming, which stipulatesthat the objective function and constraints are all linear namely the variables areraised to the power 1 only.

Linear Programming (LP): It is a very widely used OR model that maximizesor minimizes an objective function subject to a number constraints. LinearProgramming is concerned with the best way of allocating scarce resourcesamong competing ends.

Nonnegativity Constraints: This is a requirement in linear programming thatsays that the decision variables cannot have negative solutions. That is, they canhave only positive or zero values.

Objective Function: It is the goal of the organization written mathematically interms of the decision variables. This is either maximized or minimized.

Optimization: This word is used in the context of either maximizing orminimizing an objective function.

Optimum Solution: The best values of the decision variables for a given linearprogramming problem.

Programming: Programming in the context of LP means planning and hasnothing to do with computer programming.

Proportionality: This is another assumption in linear programming that says thatthe value of the resources utilized are in direct proportion to the values of thedecision variables. This assumption is a sequel to the assumption of linearity ofobjective function and constraints in LP.

Shadow Price: This gives the incremental increase in profit when the right handside value of a constraint is increased by one unit, and the decrease in profit whenthe right hand side value of a constraint is decreased by one unit. Shadow pricesplay a key role in evaluating the worth of increasing the resources and also newproduct evaluation.


Recommended