o-1

47
AAOC C222: OPTIMISATION Text Book: Operations Research: An Introduction By Hamdy A.Taha (Pearson Education) 8 th Edition 1 P K Sahoo, BITS-Hyderabad Campus Monday, June 6, 2022

Upload: jigyasa-kapoor

Post on 27-Oct-2014

279 views

Category:

Documents


24 download

TRANSCRIPT

Page 1: O-1

April 7, 2023 1

AAOC C222: OPTIMISATION

Text Book:

Operations Research: An Introduction

By Hamdy A.Taha (Pearson Education) 8th Edition

P K Sahoo, BITS-Hyderabad Campus

Page 2: O-1

April 7, 2023 2

Reference Books:

1. Rao, S S: Engineering Optimization, New Age International

2. Pant, J.C: Optimization,Jain Brothers

3. Ravindran A, et al.: Operations Research, John Wiley & sons

P K Sahoo, BITS-Hyderabad Campus

Page 3: O-1

April 7, 2023 3

4. Hillier & Lieberman: Introduction to Operations Research, Tata McGraw-Hill

5. Winston, WL: Operations Research, Thomson Learning

6. GC Onwubolu and BV Babu, New Optimization Techniques in Engineering, Springer-Verlag, Heidelberg, Germany, First Edition, 2004.

P K Sahoo, BITS-Hyderabad Campus

Page 4: O-1

April 7, 2023 4

Section: 1

Room: G 201 (M W F) 5th Hour

G 201 (W) 1st Hour

Instructor: Dr. P. K. Sahoo

P K Sahoo, BITS-Hyderabad Campus

COURSE HANDOUT IS AVAILABLE IN EDUCAN

CHAMBER CONSULTATION HOURTHURSDAY 9th HOUR (C-317)

Page 5: O-1

April 7, 2023 5

The formal activities of Operations Research (OR) were initiated in England during World War II when a team of British scientists set out to make decisions regarding the best utilization of war material. Following the end of the war, the ideas advanced in military operations were adapted to improve efficiency and productivity in the civilian sector. Today, OR is a dominant and indispensable decision making tool.

P K Sahoo, BITS-Hyderabad Campus

Introduction

Page 6: O-1

6

In decision making problem we have to answer three questions:

1. What are the decision alternatives?

2. Under what restrictions is the decision made?

3. What is an appropriate objective criterion for evaluating the alternatives?

P K Sahoo, BITS-Hyderabad CampusApril 7, 2023

Page 7: O-1

April 7, 2023 7

Example: The Cotton Gate garment company manufactures men's shirts and women’s blouses for Walmark Discount stores. Walmark will accept all the production supplied by Cotton Gate. The production process includes cutting, sewing and packaging. Cotton Gate employs 25 workers in the cutting department, 35 in the sewing department and 5 in the packaging

P K Sahoo, BITS-Hyderabad Campus

Page 8: O-1

April 7, 2023 8

department. The factory works one 8-hour shift, 5 days a week. The following table gives the time requirements and the profits per unit for the two garments:

P K Sahoo, BITS-Hyderabad Campus

Page 9: O-1

April 7, 2023 9

Garment Cutting Sewing Packaging Unit profit($)

Shirts 20 70 12 8.00

Blouses 60 60 4 12.00

Minutes per unit

Determine the optimal weekly production schedule for Cotton Gate.

P K Sahoo, BITS-Hyderabad Campus

Page 10: O-1

April 7, 2023 10

Solution: Assume that Cotton Gate produces x1 shirts and x2 blouses per week.

8 x1 + 12 x2

Time spent on cutting =

Profit got =

Time spent on sewing = 70 x1 + 60 x2 mts

Time spent on packaging = 12 x1 + 4 x2 mts

20 x1 + 60 x2 mts

P K Sahoo, BITS-Hyderabad Campus

Page 11: O-1

April 7, 2023 11

The objective is to find x1, x2 so as to maximize the profit z = 8 x1 + 12 x2

satisfying the constraints:

20 x1 + 60 x2 ≤ 25 40 60

70 x1 + 60 x2 ≤ 35 40 60

12 x1 + 4 x2 ≤ 5 40 60

x1, x2 ≥ 0, integers P K Sahoo, BITS-Hyderabad Campus

Page 12: O-1

April 7, 2023 12

This is a typical optimization problem.

Any values of x1, x2 that satisfy all the constraints of the model is called a feasible solution. We are interested in finding the optimum feasible solution that gives the maximum profit while satisfying all the constraints.

P K Sahoo, BITS-Hyderabad Campus

Page 13: O-1

April 7, 2023 13

More generally, an optimization problem looks as follows:

Determine the decision variables x1, x2, …, xn so as to optimize an objective function f (x1, x2, …, xn) satisfying the constraintsgi (x1, x2, …, xn) ≤ bi (i=1, 2, …, m).

P K Sahoo, BITS-Hyderabad Campus

Page 14: O-1

April 7, 2023 14

An optimization problem is called a Linear Programming Problem (LPP) when the objective function and all the constraints are linear functions of the decision variables, x1, x2, …, xn. We also include the “non-negativity restrictions”, namely xj ≥ 0 for all j=1, 2, …, n. Thus a typical LPP is of the form:

P K Sahoo, BITS-Hyderabad Campus

Linear Programming Problems(LPP)Chapter-2

Page 15: O-1

April 7, 2023 15P K Sahoo, BITS-Hyderabad Campus

Optimize (i.e. Maximize or Minimize)

z = c1 x1 + c2 x2+ …+ cn xn

subject to the constraints:

a11 x1 + a12 x2 + … + a1n xn ≤ b1

a21 x1 + a22 x2 + … + a2n xn ≤ b2

. . .

am1 x1 + am2 x2 + … + amn xn ≤ bm

x1, x2, …, xn 0

Page 16: O-1

April 7, 2023 16

A LPP satisfies the three properties:

Proportionality , additivity & certainty.

Proportionality means the contributions of each decision variable in the objective function and its requirements in the constraints are directly proportional to the value of the variable.

P K Sahoo, BITS-Hyderabad Campus

Page 17: O-1

April 7, 2023 17

Additivity stipulates that the total contributions of all the variables in the objective function and their requirements in the constraints are the direct sum of the individual contributions or requirements of each variable.

Certainty means the objective and constraint coefficients of the LP model are known constants (deterministic).

P K Sahoo, BITS-Hyderabad Campus

Page 18: O-1

April 7, 2023 18

• We shall first look at formulation of some LPPs,

• Graphically solve some LPPs involving two decision variables

• Study some mathematical preliminaries regarding the solutions of LPPs

• Finally look at the Simplex method of solving a LPP

P K Sahoo, BITS-Hyderabad Campus

Page 19: O-1

April 7, 2023 19

Q. Wild West produces two types of cowboy hats. Type I hat requires twice as much labor as a Type II. If all the available labor time is dedicated to Type II alone, the company can produce a total of 400 Type II hats a day. The respective market limits for the two types of hats are 150 and 200 hats per day. The profit is $8 per Type I hat and $5 per Type II hat. Formulate the problem as an LPP so as to maximize the profit.

P K Sahoo, BITS-Hyderabad Campus

Page 20: O-1

April 7, 2023 20

Solution: Assume that Wild West produces x1 Type I hats and x2 Type II hats per day.

8 x1 + 5 x2

Labour Time spent is (2 x1 + x2) c minutes

Per day Profit got =

Assume the time spent in producing one type II hat is c minutes.

P K Sahoo, BITS-Hyderabad Campus

Page 21: O-1

April 7, 2023 21

The objective is to find x1, x2 so as to maximize the profit z = 8 x1 + 5 x2

satisfying the constraints:

(2 x1 + x2 ) c ≤ 400 c

x1 ≤ 150

x2 ≤ 200

x1, x2 ≥ 0, integers P K Sahoo, BITS-Hyderabad Campus

Page 22: O-1

April 7, 2023 22

That is: The objective is to find x1, x2 so

as to maximize the profit z = 8 x1 + 5 x2

satisfying the constraints:

2 x1 + x2 ≤ 400

x1 ≤ 150

x2 ≤ 200

x1, x2 ≥ 0, integers P K Sahoo, BITS-Hyderabad Campus

Page 23: O-1

April 7, 2023 23

Q4(2.2B) A company has two grades of inspectors, I and II to undertake quality control inspection. At least, 1500 pieces must be inspected in an 8-hour day. Grade I inspector can check 20 pieces in an hour with an accuracy of 96% and grade II inspector can check 14 pieces in an hour with an accuracy of 92%. The wages of two inspectors are $5 & $4 per hour. Any error made by an inspector costs $3 to the company. If there are, in all, 10 grade I inspector and 15 grade II inspector in the company, find the

P K Sahoo, BITS-Hyderabad Campus

Page 24: O-1

April 7, 2023 24

optimal assignment of inspector that minimizes the daily inspection cost.Solution: Let x1 and x2 represent the number of these inspectors. The objective is to minimize the daily cost of inspection. The company has to incur two types of costs:Wages paid to the inspectors and the cost of their inspection errors. The cost of grade I inspector/hour isRs. (5 + 3 × 0.04 × 20) = Rs. 7.40

P K Sahoo, BITS-Hyderabad Campus

Page 25: O-1

April 7, 2023 25

The cost of grade II inspector/hour isRs. (4 + 3 × 0.08 × 14) = Rs. 7.36The objective function isMinimize Z = 8(7.40 x1 + 7.36 x2)= 59.20 x1 + 58.90 x2

subject to the constraintsx1 ≤ 10x2 ≤ 1520 × 8 x1 + 14 × 8 x2≥ 1,500.(No. of pieces to be inspected daily).x1, x2 ≥ 0

P K Sahoo, BITS-Hyderabad Campus

Page 26: O-1

April 7, 2023 26

Trim Loss problem: A company has to manufacture the circular tops of cans. Two sizes, one of diameter 10 cm and the other of diameter 20 cm are required. They are to be cut from metal sheets of dimensions 20 cm by 50 cm. The requirement of smaller size is 20,000 and of larger size is 15,000. The problem is : how to cut the tops from the metal sheets so that the number of sheets used is a minimum. Formulate the problem as a LPP.

P K Sahoo, BITS-Hyderabad Campus

Page 27: O-1

April 7, 2023 27

A sheet can be cut into one of the following three patterns:

Pattern I

Pattern II

Pattern III

10

20

20

10

1010

2010

P K Sahoo, BITS-Hyderabad Campus

Page 28: O-1

April 7, 2023 28

Pattern I: cut into 10 pieces of size 10 by 10 so as to make 10 tops of size 1

Pattern II: cut into 2 pieces of size 20 by 20 and 2 pieces of size 10 by 10 so as to make

2 tops of size 2 and 2 tops of size 1

Pattern III: cut into 1 piece of size 20 by 20 and 6 pieces of size 10 by 10 so as to make 1 top of size 2 and 6 tops of size 1

P K Sahoo, BITS-Hyderabad Campus

Page 29: O-1

April 7, 2023 29

So assume that x1 sheets are cut according to pattern I, x2 according to pattern II, x3 according to pattern III

The problem is to

Minimize z = x1 + x2 + x3

Subject to 10 x1 + 2 x2 + 6 x3 ≥ 20,000

2 x2 + x3 ≥ 15,000

x1, x2, x3 ≥ 0, integers

P K Sahoo, BITS-Hyderabad Campus

Page 30: O-1

April 7, 2023 30

Q2 (2.3F) In an LTL (less-than-truckload) trucking company, terminal docks include casual workers who are hired temporarily to account for peak loads. At the Omaha, Nebraska, dock, the minimum demand for casual workers during the seven days of the week (starting on Monday) is 20, 14, 10, 15, 18, 10, 12 workers. Each worker is contracted to work five consecutive days. Determine an optimal weekly hiring practice of casual workers for the company.

P K Sahoo, BITS-Hyderabad Campus

Page 31: O-1

April 7, 2023 31

Solution: Let xi be the number of casuals required at the beginning of day i (i = 1, 2, …, 7). Thus our problem is to find xi so as to

P K Sahoo, BITS-Hyderabad Campus

Page 32: O-1

April 7, 2023 32

Minimize 1 2 3 4 5 6 7z x x x x x x x

Subject to

1 4 5 6 7 20 (Mon)x x x x x

1 2 5 6 7 14 (Tue)x x x x x

1 2 3 6 7 10 (Wed)x x x x x

1 2 3 4 7 15(Thu)x x x x x

1 2 3 4 5 18 (Fri)x x x x x

2 3 4 5 6 10(Sat)x x x x x

3 4 5 6 7 12 (Sun)x x x x x

xi 0. integers

P K Sahoo, BITS-Hyderabad Campus

Page 33: O-1

April 7, 2023 33

Q.BITS wants to host a Seminar for five days. For the delegates there is an arrangement of dinner every day. The requirement of napkins during the 5 days is as follows:

Day 1 2 3 4 5

Napkins Needed

80 50 100 80 150

P K Sahoo, BITS-Hyderabad Campus

Page 34: O-1

April 7, 2023 34

Institute does not have any napkins in the beginning. After 5 days, the Institute has no more use of napkins. A new napkin costs Rs. 2.00. The washing charges for a used one are Rs. 0.50. A napkin given for washing after dinner is returned the third day before dinner. The Institute decides to accumulate the used napkins and send them for washing just in time to be used when they return. How shall the Institute meet the requirements so that the total cost is minimized ? Formulate as a LPP.

P K Sahoo, BITS-Hyderabad Campus

Page 35: O-1

April 7, 2023 35

Solution Let xj be the number of napkins purchased on day j, j=1,2,..,5

Let yj be the number of napkins given for washing after dinner on day j, j=1,2,3

Thus we must have

Also we have y1 ≤ 80, y2 ≤ (80 – y1) + 50

y3 ≤ (80 – y1) + (50 – y2) + 100

x1 = 80, x2 = 50, x3 + y1 = 100, x4 + y2 = 80x5 + y3 = 150

P K Sahoo, BITS-Hyderabad Campus

Page 36: O-1

April 7, 2023 36

Thus we have to Minimize

z = 2(x1+x2+x3+x4+x5)+0.5(y1+y2+y3)

Subject to

x1 = 80, x2 = 50, x3 +y1 =100,

x4 + y2 = 80, x5 + y3 = 150,

y1 ≤ 80, y1+y2 ≤ 130, y1+y2+y3 ≤ 230,

all variables ≥ 0, integersP K Sahoo, BITS-Hyderabad Campus

Page 37: O-1

April 7, 2023 37

Inventory Control

Ex: Acme manufacturing company has contracted to deliver home windows over the next 6 months. The demands for each month are 100, 250, 190, 140, 220 and 110 units respectively. Production cost per window varies from month to month depending on the cost of labour, material & utilities. Acme estimates the production cost per window over next 6 months to be $50, $45, $55, $48, $52 and $50.

P K Sahoo, BITS-Hyderabad Campus

Page 38: O-1

April 7, 2023 38

To take an advantage of the fluctuations in manufacturing cost, Acme may elect to produce more than is needed in a given month and hold the excess units for delivery in latter months. This, however, will incur storage costs at the rate of $8 per window per month assessed on end-of-month inventory. Develop a linear program to determine the optimum production schedule.

P K Sahoo, BITS-Hyderabad Campus

Page 39: O-1

April 7, 2023 39

Solution: The variables of the problem include the monthly production amount and the end-of-month inventory.

For i= 1,2….,6 let

xi= Number of units produced in month i

Ii =Inventory units left at the end of month i

The relationship between these variables and monthly demand over the six-month horizon is represented by the schematic diagram.

P K Sahoo, BITS-Hyderabad Campus

Page 40: O-1

April 7, 2023 40

The system starts empty, which means I0 =0.

The objective function seeks to minimize the sum of the production and end-of-month inventory costs.

I=0 I6I2

I3 I4 I5I1

x1 x2 x3x4 x5

x6

100 250 190 140 220 110

P K Sahoo, BITS-Hyderabad Campus

Page 41: O-1

April 7, 2023 41

Total production cost=

50x1 +45x2 +55x3 +48x4 +52x5 +50x6

Total inventory cost= 8(I1 +I2 +I3 +I4 +I5 +I6 )

The objective function is

Min z= 50x1 +45x2 +55x3 +48x4 +52x5 +50x6

+ 8(I1 +I2 +I3 +I4 +I5 +I6 )

The constraints can be determined from the figure. For each period we have the balance equation:

P K Sahoo, BITS-Hyderabad Campus

Page 42: O-1

April 7, 2023 42

Beginning inventory + Production amount

- Ending inventory = Demand

For the individual month

(Month 1) I0 +x1 –I1 = 100

(Month 3) I2 +x3 –I3 = 190 (Month 4) I3 +x4 –I4 = 140

xi , Ii ≥ 0 for all i= 1,2,….6

Put I0 =0 since the situation starts

(Month 5) I4 +x5 –I5 = 220

(Month 2) I1 +x2 –I2 = 250

(Month 6) I5 +x6 –I6 = 110

P K Sahoo, BITS-Hyderabad Campus

Page 43: O-1

P K Sahoo, BITS-Hyderabad Campus 43

Q5. (2.3G) Pollution Control

Three types of coal, C1, C2 and C3 are pulverized and mixed together to produce 50 tons per hour needed to power a plant for generating electricity. The burning of coal emits sulfur oxide (in parts per million) which must meet the Environment Protection Agency (EPA) specifications at most 2000 parts per million. The following table summarizes the data of the situation:

April 7, 2023

Page 44: O-1

P K Sahoo, BITS-Hyderabad Campus 44

C1 C2 C3Sulfur (parts per million) Pulverizer capacity (ton/hr)Cost per ton

250030$30

150030$35

160030$33

Determine the optimal mix of the coals.

Solution:

Let xi = tons of coal, i= 1,2,3

Minimize Z=30x1+35x2+33x3

April 7, 2023

Page 45: O-1

P K Sahoo, BITS-Hyderabad Campus 45

Subject to the restrictions

2500x1+1500x2+1600x3≤ 2000(x1+x2+x3)

x1 ≤30 x2 ≤30 x3 ≤30

x1+x2+x3≥ 50

x1, x2, x3 ≥ 0, integers

April 7, 2023

Page 46: O-1

April 7, 2023 46

There are many Software packages available to solve LPP and related problems.

• Your book contains a CD having the package “TORA” probably developed by the author.

• There is also Microsoft’s Excel Solver.

• There is also a commercial package “LINGO”

P K Sahoo, BITS-Hyderabad Campus

Page 47: O-1

April 7, 2023 47

• Dr. J C Pant’s book contains in the end a C code for solving some of the LPP problems.

• You may yourself develop programs to solve LPP problems.

P K Sahoo, BITS-Hyderabad Campus