1 chapter 1 uses of optimization formulation of optimization problems overview of course

39
1 Chapter 1 •USES OF OPTIMIZATION •FORMULATION OF OPTIMIZATION PROBLEMS •OVERVIEW OF COURSE

Upload: lenard-mathews

Post on 29-Dec-2015

217 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

1

Ch

apte

r 1

•USES OF OPTIMIZATION

•FORMULATION OF OPTIMIZATION PROBLEMS

•OVERVIEW OF COURSE

Page 2: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

2

Ch

apte

r 1

OPTIMIZATION OF CHEMICAL PROCESSEST.F. EDGAR, D.M. HIMMELBLAU, and L.S. LASDONUNIVERSITY OF TEXASMCGRAW-HILL – 2001 (2nd ed.)

PART I – PROBLEM FORMULATION II – OPTIMIZATION THEORY AND METHODS III – APPLICATIONS OF OPTIMIZATION APPENDICES (MATRIX OPERATIONS)

Page 3: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

3

Ch

apte

r 1

PHILOSOPHY OF BOOK

•Most undergraduates learn by seeing how a method is applied

•Practicing professionals need to be able to recognizewhen optimization should be applied (Problem formulation)

•Optimization algorithms for reasonably-sized problemsare now fairly mature

•Focus on a few good techniques rather than encyclopediccoverage of algorithms

Page 4: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

4

Chapter 1

The Nature and Organization of Optimization Problems

Ch

apte

r 1

Page 5: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

5

Ch

apte

r 1

WHY OPTIMIZE?

1. Improved yields, reduced pollutants

2. Reduced energy consumption

3. Higher processing rates

4. Reduced maintenance, fewer shutdowns

5. Better understanding of process (simulation)

But there are always positive and negative factors to beweighed

Page 6: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

6

Ch

apte

r 1

Page 7: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

7

Ch

apte

r 1

Page 8: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

8

Ch

apte

r 1

OPTIMIZATION

• Interdisciplinary FieldMax ProfitMin CostMax Efficiency

• Requires

1. Critical analysis of process2. Definition of performance objective3. Prior experience (engr. judgment)

Page 9: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

9

Ch

apte

r 1

Page 10: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

10

Ch

apte

r 1

Page 11: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

11

Ch

apte

r 1

Page 12: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

12

Ch

apte

r 1

Figure E1.4-3

Optimal Reflux for Different Fuel Costs

Floodingconstraint

Min reflux toachieve separation

Page 13: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

13

Ch

apte

r 1

Page 14: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

14

Ch

apte

r 1

Page 15: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

15

Ch

apte

r 1

Page 16: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

16

Ch

apte

r 1

Page 17: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

17

Ch

apte

r 1

Material Balance Reconciliation

Page 18: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

18

Ch

apte

r 1

Least squares solution:

2

1

)(minii B

P

iCA mmm

opt. mA is the “average” value

any constraints on mA?

Page 19: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

19

Ch

apte

r 1

Page 20: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

20

Ch

apte

r 1

THREE INGREDIENTS IN OPTIMIZATION PROBLEM

1. Objective function economic model

2. Equality ConstraintsProcess model

3. Inequality Constraints

nx1

1

2

1. min f(x) x

2. subject to h( ) 0 (m )

3. g( ) 0 (m )

2(feasible region :)

3

dependent variables

independent variables

x

x

1 2relate to m and perhaps m

Page 21: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

21

Ch

apte

r 1

Page 22: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

22

Ch

apte

r 1

TABLE 1THE SIX STEPS USED TO SOLVE OPTIMIZATION PROBLEMS

1. Analyze the process itself so that the process variables and specific characteristics of interest are defined, i.e., make a list of all of the variables.

2. Determine the criterion for optimization and specify the objective function in terms of the above variables together with coefficients. This step provides the performance model (sometimes called the economic model when appropriate).

Page 23: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

23

Ch

apte

r 1

3. Develop via mathematical expressions a valid processor equipment model that relates the input-output variablesof the process and associated coefficients. Include both equality and inequality constraints. Use well-knownphysical principles (mass balances, energy balances), empirical relations, implicit concepts, and external restrictions. Identify the independent and dependent variables (number of degrees of freedom).

Page 24: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

24

Ch

apte

r 1

4. If the problem formulation is too large in scope:(A)Break it up into manageable parts and/or(B)Simplify the objective function

5. Apply a suitable optimization technique to the mathematical statement of the problem.

6. Check the answers and examine the sensitivity of theresult to changes in the coefficients in the problem andthe assumptions.

Page 25: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

25

Ch

apte

r 1

EXAMPLES – SIX STEPS OF OPTIMIZATION

specialty chemical100,000 bbl/yr.

2 costs inventory (carrying) or storage, production cost >

how many bbl produced per run?

Step 1

define variables

Q = total # bbl produced/yr (100,000)D = # bbl produced per runn = # runs/yr

Page 26: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

26

Ch

apte

r 1

Step 2

develop objective function

inventory, storage cost = k1D

production cost = k2 + k3 D per run (set up operating

cost) cost per unit

(could be nonlinear)

QkD

QkDkC

D

Qn

DkknDkC

321

321 )(

Page 27: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

27

Ch

apte

r 1

Step 3

evaluate constraints

continuous

integern

D>0

Step 4

simplification – none necessary

Page 28: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

28

Ch

apte

r 1

Step 5computation of the optimum

analytical vs. numerical solution

1

2

22

1 0

k

QkD

D

Qkk

dD

dC

opt

02

minimum? ifcheck

answer good

000,70000,30

optimumflat 622,31

10

0.4000,100.1

32

2

2

5

321

D

Qk

dD

Cd

D

D

Q

kkk

opt

Page 29: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

29

Ch

apte

r 1

Page 30: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

30

Ch

apte

r 1

solution? analytical

02

run per cost suppose

2/34

22

1

2/142

D

Qk

D

Qkk

dD

dC

Dkk

Step 6Sensitivity of the optimumsubst Dopt into C

316.4

000,100

162.3

620,31

2

321

3

2

1

2

1

2

1

321

kQ

kk

Q

C

Qk

C

k

Qk

k

C

k

Qk

k

C

QkQkkC

opt

opt

opt

opt

opt

Page 31: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

31

Ch

apte

r 1

000,1000.4000,100.1

158.02

1

00

581.12

1

810,152

1

321

1

2

3

21

2

2

11

2

1

1

2

Qkkk

Qk

Qk

Q

D

k

D

kk

Qk

k

D

kk

Qk

k

D

k

QkD

opt

opt

opt

opt

opt

Page 32: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

32

Ch

apte

r 1

RELATIVE SENSITIVITY (Percentage change)

213

321

1

1

1

2

1

1

111

Con sens. abs.

Don sens. abs.

0683.0240,463

)0.1(31620

0932.0

5.0863.0

5.00683.0

5.00683.0

620,31

0.1240,463

ln

ln

/

/

1

3

3

22

11

1

kQkk

kQkk

C

k

k

CS

SS

SS

SS

SS

k

Qk

k

C

kC

k

C

kk

CCS

opt

optCk

Dk

CQ

DQ

Ck

Dk

Ck

Dk

Ck

opt

opt

optoptoptCk

Page 33: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

33

Ch

apte

r 1

PIPELINE PROBLEM

variables parameters

V

p

f L

Re m

D pipe cost

electricity cost

#operating days/yr

pump efficiency

Page 34: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

34

Ch

apte

r 1

Equality Constraints

2

2

0.2

4Re /

2

.046 Re

Dv m

Dv

Lp v f

D

f

Page 35: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

35

Ch

apte

r 1

Page 36: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

36

Ch

apte

r 1

min (Coper + Cinv.)

subject to equality constraints

22 vD

Lfp

need analytical formula for f

tubessmoothf 2.0Re046.

pump power cost

o

pC m

2

mass flow rate 4

Dm v

substituting for ∆p,

)(5.11

0.28.22.08.4

annualizedDCC

mDCC

inv

ooper

Page 37: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

37

Ch

apte

r 1

5.11

8.48.222.0 TC cost Total DCDmCo (constraint eliminated by substitution)

6.3 0.2 2 2.8

1

0.16

.32 .45 .03

1

opt

2

( )0 necessary condition for a minimum

solving,

( )

( )

opt velocity V

4(sensitivity analysis)

opt o

opt o

opt

d TC

dD

CD m

C

CD m

C

m

D

Page 38: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

38

Ch

apte

r 1

optimum velocity

non-viscous liquids 3 to 6 ft/sec.gases (effect of ρ) 30 to 60 ft/sec.

at higher pressure, need to use different constraint (isothermal)

1

2 211 1

1 2

1 1

ln2

.32324

upstream velocity

or use Weymouth equation

ppp fL

p S Vp p D

S gV

for large L, ln ( ) can be neglectedexceptions: elevation changes, slurries (settling),

extremely viscous oils (laminar flow, f different)

Page 39: 1 Chapter 1 USES OF OPTIMIZATION FORMULATION OF OPTIMIZATION PROBLEMS OVERVIEW OF COURSE

39

Ch

apte

r 1

Heat Exchanger Variables

1. heat transfer area2. heat duty3. flow rates (shell, tube)4. no. passes (shell, tube)5. baffle spacing6. length7. diam. of shell, tubes8. approach temperature9. fluid A (shell or tube, co-current or countercurrent)10.tube pitch, no. tubes11.velocity (shell, tube)12.∆p (shell, tube)13.heat transfer coeffs (shell, tube)14.exchanger type (fins?)15.material of construction

(given flow rate of onefluid, inlet temperatures, one outlet temp., phys. props.)