engineering optimization

77
Engineering Optimization Concepts and Applications Fred van Keulen Matthijs Langelaar CLA H21.1 [email protected]

Upload: lani-blevins

Post on 01-Jan-2016

48 views

Category:

Documents


2 download

DESCRIPTION

Concepts and Applications. Engineering Optimization. Fred van Keulen Matthijs Langelaar CLA H21.1 [email protected]. Optimization problem. Design variables: variables with which the design problem is parameterized: - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Engineering Optimization

Engineering Optimization

Concepts and Applications

Fred van Keulen

Matthijs Langelaar

CLA H21.1

[email protected]

Page 2: Engineering Optimization

Optimization problem

● Design variables: variables with which the design

problem is parameterized:

● Objective: quantity that is to be minimized (maximized)

Usually denoted by:

( “cost function”)

● Constraint: condition that has to be satisfied

– Inequality constraint:

– Equality constraint:

( ) 0g x

( ) 0h x

( )f x

1 2, , , nx x xx

Page 3: Engineering Optimization

Optimization problem (cont.)

● General form of optimization problem:

xxx

x

xh

xg

xx

nX

f

0)(

0)(

)(

:to subject

min

Page 4: Engineering Optimization

Classification● Problems:

– Constrained vs. unconstrained

– Single level vs. multilevel

– Single objective vs. multi-objective

– Deterministic vs. stochastic

● Responses:

– Linear vs. nonlinear

– Convex vs. nonconvex

– Smooth vs. nonsmooth

● Variables:

– Continuous vs. discrete (integer, ordered, non-ordered)

Page 5: Engineering Optimization

Solving optimization problems

● Optimization problems are typically solved using an

iterative algorithm:

Model

Optimizer

Designvariables

Constants Responses

Derivatives ofresponses(design sensi-tivities)

hgf ,,

iii x

h

x

g

x

f

,,

x

Page 6: Engineering Optimization

Optimization pitfalls!

● Proper problem formulation critical!

● Choosing the right algorithm

for a given problem

● Many algorithms contain lots

of control parameters

● Optimization tends to exploit

weaknesses in models

● Optimization can result in very sensitive designs

● Some problems are simply too hard / large / expensive

Page 7: Engineering Optimization

Exercises

● Exercise 1: Introduction to the

valve spring design problem

– Study analysis model

– Formulation of spring optimization model

● Exercise 2: Model behavior / optimization formulation

– Study model properties (monotonicity, convexity,

nonlinearity)

– Optimization problem formulation

Page 8: Engineering Optimization

Course overview

● General introduction, problem formulation, design space / optimization terminology

● Modeling, model simplification

● Optimization of unconstrained / constrained problems

● Single-variable, zeroth-order and gradient-based optimization algorithms

● Design sensitivity analysis (FEM)

● Topology optimization

Page 9: Engineering Optimization

Defining a design model and

optimization problem

1. What can be changed and how can the design be described?

– Dimensions

– Stacking sequence of laminates

– Ply orientation of laminates

– Thicknesses

For structures: distinguish sizing, material and shape variables

Bridgestone aircraft tire

Page 10: Engineering Optimization

Defining the optimization problem

2. What is “best”? Define an objective function:

– Weight

– Production cost

– Life-time cost

– Profits

3. What are the restrictions? Define the constraints:

– Stresses

– Buckling load

– Eigenfrequency

Page 11: Engineering Optimization

Defining the optimization problem (cont.)

4. Optimization: find a suitable algorithm to solve the optimization problem. Choice depends on problem characteristics:

– Number of design variables, constraints

– Computational cost of function evaluation

– Sensitivities available?

– Continuous / discrete design variables?

– Smooth responses?

– Numerical noise?

– Many local optima? (nonconvex)

Page 12: Engineering Optimization

Summary

Defining an optimization problem:

1. Choose design variables and their bounds

2. Formulate objective (best?)

3. Formulate constraints (restrictions?)

4. Choose suitable optimization algorithm

Page 13: Engineering Optimization

Standard forms

● Several standard forms exist:

xxx

x

xh

xg

xx

nX

f

0)(

0)(

)(

:to subject

min

Negative null form:

0)(

0)(

xh

xgPositive null form:

1)(

1)(

xh

xgNeg. unity form:

1)(

1)(

xh

xgPos. unity form:

Page 14: Engineering Optimization

Structural optimization examples

● Typical objective function: weight

● Typical constraint: maximum stress, maximum

displacement

)(

)(

0x

x

W

Wf Note the scaling!

01)(max

allowed

g x 0)(max allowedg x

Scaled vs. Unscaled

Page 15: Engineering Optimization

Example: minimum weight

tubular column design● Length l given

● Load P given

● Design variables:

– Radius R [Rmin, Rmax]

– Wall thickness t [tmin, tmax]

● Objective: minimum mass

● Constraints: buckling, stress

R

t

R

t

P

l

Page 16: Engineering Optimization

maxmin

maxmin

2

2

max

,

4

..

min

ttt

RRRl

EIP

A

Pts

lAtR

Design problem:

Tubular column design

maxmin

maxmin

2

33

max

,

4

2..

2min

ttt

RRRl

tERP

Rt

Pts

RtltR

2

23

42

l

EIP

A

PtRIRtA crit

maxmin

maxmin

33

2

max

,

014

012

..

2min

ttt

RRRtER

lP

Rt

Pts

RtltR

0110

10

R

tRt

Page 17: Engineering Optimization

Tubular column design (2)● Alternative formulation:

4422

4 ioio RRIRRA

Ro

Ri

P

l

maxmin

maxmin

44

2

3

max22

22

,

16

..

min

iii

ooo

oi

io

io

ioRR

RRR

RRR

RR

RRl

EP

RR

Pts

RRlio

Page 18: Engineering Optimization

Multi-objective problems

● Minimize c(x)

s.t. g(x) 0, h(x) = 0

● Input from designer required! Popular approach:

replace by weighted sum:

Vector!

)()( xx i

iicwf

● Optimum, clearly, depends on choice of weights

● Pareto optimal point: “no other feasible point exists that

has a smaller ci without having a larger cj”

Page 19: Engineering Optimization

Multi-objective problems (cont.)● Examples of multi-objective problems:

– Design of a structure for

Minimal weight and

Minimal stresses

– Design of reduction gear unit for

Minimal volume

Maximal fatigue life

– Design of a truck for

Minimal fuel consumption @ 80 km/h

Minimal acceleration time for 0 – 40 km/h

Minimal acceleration time for 40 – 90 km/h

Page 20: Engineering Optimization

Pareto set● Pareto point: “Cannot improve an objective without

worsening another”

c1

c2

Attainable set

Pareto setPareto point

Page 21: Engineering Optimization

Pareto set

Pareto set (cont.)

● Alternative view:

x

c1

c2

Page 22: Engineering Optimization

Pareto set (cont.)

● Pareto set can be disjoint:

c1

c2

Attainable set

Pareto set

Page 23: Engineering Optimization

Hierarchical systems

● Large system can be decomposed into subsystems /

components:

● Optimization requires specialized techniques,

multilevel optimization

Page 24: Engineering Optimization

Structural hierarchical systems

● Example: wing box

● Too many design

variables to treat at once

● Global level: global loads,

global dimensions

● Local (rib / stiffner)

level: plate thickness,

fiber orientation

Page 25: Engineering Optimization

Contents

● Defining an optimization problem

● The design space & problem characteristics

● Model simplification

Page 26: Engineering Optimization

The design space

● Design space = set of all possible designs

● Example:

F

k2

k1

1 2f k k

crFF k2

k1

max2max1 , kkkk

kmax

kmax

Feasible domain

Optimum

Page 27: Engineering Optimization

Isolines

● Isolines (level sets) connect points with equal function

values:

Page 28: Engineering Optimization

The design space (cont.)

Dominated constraint(redundant)

No feasible domain

Problem overconstrained:no solution exists.

Page 29: Engineering Optimization

A

B

Design space (cont.)

A and B active

Objective functionisolines

Optimum

B active, A inactive

Optimum

Objective functionisolines

A and B inactive

Interior optimum

Objective functionisolines

Page 30: Engineering Optimization

Active constraint optimization

● Idea of constraint activity at boundary optimum

sometimes used in intuitive design optimization:

– Fully stressed design (sizing / topology optimization)

– Simultaneous failure mode theory

● Careful: does not always give the optimal solution!

FF

Page 31: Engineering Optimization

Problem characteristics

● Study of objective and constraint functions:

– simplify problem

– discover incorrect problem formulation

– choose suitable optimization algorithms

● Properties:

– Boundedness

– Linearity

– Convexity

– Monotonicity

Page 32: Engineering Optimization

Boundedness

● Proper bounds are necessary to avoid unrealistic

solutions:

– Example: aspirin pill design

Objective: minimize dissolving time

= maximize surface area

(fixed volume)

1

22

2

2

,

hr

rhrhr

s.t.

maxrh

Page 33: Engineering Optimization

Boundedness (cont.)

● Volume equality constraint can be substituted, yielding:

rr

rh

r

22

1 22

max

0

50

100

150

200

250

300

350

400

450

500

0 1 2 3 4 5 6 7 8 9 10

r

f

Page 34: Engineering Optimization

Linearity

“A function f is linear if it satisfies

f(x1+ x2) = f(x1)+ f(x2)

and

f( x1) = f(x1)

for every two points x1, x2 in the domain, and all ”

Page 35: Engineering Optimization

Linearity (2)

● Nonlinear objective functions can have multiple local optima:

f

x1

x2

x

x1x2

f

● Challenge: finding the global optimum.

Page 36: Engineering Optimization

Problem characteristics

● Study of objective and constraint functions:

– simplify problem

– discover incorrect problem formulation

– choose suitable optimization algorithms

● Properties:

– Boundedness

– Linearity

– Convexity

– Monotonicity

Page 37: Engineering Optimization

Boundedness

● Surface maximization of aspirin pill not well bounded:

rr

rh

r

22

1 22

max

0

50

100

150

200

250

300

350

400

450

500

0 1 2 3 4 5 6 7 8 9 10

r

f

Page 38: Engineering Optimization

Linearity

● Nonlinear objective functions can have multiple local optima:

f

x1

x2

x

x1x2

f

● Challenge: finding the global optimum.

Page 39: Engineering Optimization

Convexity

● Convex function: any line connecting any 2 points on the graph lies above it (or on it):

● Linearity implies convexity (but not strict convexity)

Page 40: Engineering Optimization

Convexity (cont.)

● Convex set [Papalambros 4.27]:

“A set S is convex if for every two points x1, x2 in S, the

connecting line also lies completely inside S”

Page 41: Engineering Optimization

● Nonlinear constraint functions can result in nonconvex

feasible domains:

Convexity (cont.)

x1

x2

● Nonconvex feasible domains can have multiple local

boundary optima, even with linear objective functions!

Page 42: Engineering Optimization

Monotonicity

● Papalambros p. 99:

– Function f is strictly monotonically increasing if:

f(x2) > f(x1) for x2 > x1

– weakly monotonically increasing if:

f(x2) f(x1) for x2 > x1

– Similar for mon. decreasing

f2

f1

x1 x2

0dx

df● Similar:

● Note: monotonicity convexity!

● Linearity implies monotonicity

Page 43: Engineering Optimization

Optimization problem

characteristics● Responses:

– Boundedness

– Linearity

– Convexity

– Monotonicity

● Feasible domain:

– Convexity

Page 44: Engineering Optimization

Example: tubular column designR

t

P

l

maxmin

maxmin

3

33

2

2

max1

,

0110

014

012

..

2min

ttt

RRRR

tg

tER

Plg

Rt

Pgts

lRtftR

f

t

R g3g1

g2

Page 45: Engineering Optimization

Optimization problem analysis

● Motivation:

– Simplification

– Identify formulation errors early

– Identify under- / overconstrained problems

– Insight

● Necessary conditions for existence of optimal solution

● Basis: boundedness and constraint activity

Page 46: Engineering Optimization

Well-bounded functions –

some definitions

● Lower bound:

xxfl )(

● Greatest lower bound (glb):

)(xfllg g

f

xx*● Minimum:

● Minimizer:

gxf *)(

*x

Page 47: Engineering Optimization

Boundedness checking

● Assumption: in engineering optimization problems,

design variables are positive and finite

● Define

● Boundedness check:

– Determine g+ for

– Determine minimizers

– Well bounded if

Nx

: ( )X x f x g PX

xxP 0: xxN 0:

Page 48: Engineering Optimization

Examples:

xxf )(

xxf

1)(

Bounded at zero

Asymptotically bounded

2)1()( xxf

3)2()1()( 22 xxxf

2)1()( 22 xxf

0g PX 0

0g PX

0g PX 1

3g PX 2,1

2g PX 1,1

21 2 2( , ) ( 1) 1f x x x 1g 2)1,( PNX

Page 49: Engineering Optimization

Air tank design

● Objective: minimize mass

t

r

h

l htrlrtrf 222 )(2)()( x

htrltrt 22 )(22

PXg 00

● Not well bounded: constraints needed

Page 50: Engineering Optimization

Air tank constraints

● Minimum volume:72

1 1012.2 lrg

● Min. head/radius ratio

(ASME code):13.02

r

hg

● Min. thickness/radius ratio

(ASME code):

00959.03 r

tg

● Room for nozzles:

min. length104 lg

● Space limitations:

max. outside radius

1505 trg

01048.11 271 lrg

07.712 r

hg

010413 r

tg

01.014 lg

011505

tr

g

Page 51: Engineering Optimization

Partial minimization &

bounding constraints● Partial minimization: keep all variables constant but

one. Example: air tank wall thickness t:

01150

01.01

01041

07.71

01048.11

)(22

5

4

3

2

271

22

,,,

trg

lgr

tg

r

hg

lrg

htrltrtftrlh

s.t.

min

Conclusion: • f not well bounded from below

• g3 bounds t from below

01150

01041

)(22

5

3

22

tRg

R

tg

HtRLtRtft

s.t.

min

Page 52: Engineering Optimization

Constraint activity

● Removing constraint = relaxing problem

● Solution set of relaxed problem without gi is Xi

1.

2.

3.

inactive ii gXX

active ii gXX

semiactive ii gXX

A

B

A and B active

● Activity information can

simplify problem: ● Active: eliminate variable

● Inactive: remove constraint

Page 53: Engineering Optimization

Constraint activity checking

● Example:

1 2 3

2 2 2 2 21 2 2 2 3, ,

1 1

2 2

3 2

4 3

( 1) ( 3) ( 4) ( 5)

1 0

2 0

5 0

1 0

min

s.t.

x x xf x x x x x

g x

g x

g x

g x

x2

f(1,x2,5)

g3

g2

Conclusion:

• g1 active

• g2 semiactive

• g3 and g4 inactive

Page 54: Engineering Optimization

Activity and Monotonicity Theorem

● “Constraint gi is active if and

only if the minimum of the

relaxed problem is lower than

that of the original problem”x

f

g1

x

f

g

f(x)

g(x)

● “If f(x) and gi(x) all increase or

decrease (weakly) w.r.t. x, the

domain is not well constrained”

f(x)

g(x)

g2

Page 55: Engineering Optimization

First Monotonicity Principle

● “In a well-constrained minimization problem every

variable that increases f is bounded below by at least

one non-increasing active constraint”

x

f

g

● This principle can be

used to find active

constraints.

● Exactly one bounding

constraint: critical constraint

f(x)

g(x)

Page 56: Engineering Optimization

Air tank design

● Monotonicity analysis:

01150

01.01

01041

07.71

01048.11

)(22

5

4

3

2

271

22

,,,

trg

lgr

tg

r

hg

lrg

htrltrtftrlh

s.t.

min

trg

lg

trg

rhg

rlg

trlhf

,

,

,

,

,,,

5

4

3

2

1Critical w.r.t. r

Critical w.r.t. h

Critical w.r.t. t

What about l? Unclear.

Page 57: Engineering Optimization

Optimizing variables out

● Critical constraints must be active:

2 2

, , ,

7 21

2

3

4

5

2 2( )

1 1.48 10 0

1 7.7 0

1 104 0

1 0.1 0

1 0150

h l r tf rt t l r t h

g r l

hg

rt

gr

g l

r tg

min

s.t.

2 2

, , ,

7 21 1

2 2

3 3

4

5

2 2( )

1 1.48 10 0 ( )

1 7.7 0 ( )

1 104 0 ( )

1 0.1 0

1 0150

min

s.t.

h l r tf rt t l r t h

g r l r l

hg h r

rt

g t rr

g l

r tg

Page 58: Engineering Optimization

2 2

, , ,

7 21

2

3

4

5

2 2( )

1 1.48 10 0

1 7.7 0

1 104 0

1 0.1 0

1 0150

min

s.t.

h l r tf rt t l r t h

g r l

hg

rt

gr

g l

r tg

rhr

hg 13.007.712

Optimizing variables out

● Critical constraints must be active:

Page 59: Engineering Optimization

01150

01.01

01041

01048.11

)(26.02

5

4

3

271

22

,,

trg

lgr

tg

lrg

rtrltrtftrl

s.t.

min

104010413

rt

r

tg

Optimizing variables out

● Critical constraints must be active:

Page 60: Engineering Optimization

01150*104

105

01.01

01048.11

104

10526.0

104

209

5

4

271

32

22,

rg

lg

lrg

rlrfrl

s.t.

min

lr

lrg

2600

01048.11 271

Optimizing variables out

● Critical constraints must be active:

Page 61: Engineering Optimization

011

150*104

2600*105

01.01

104

1052600*26.0

104

2600*209

5

4

23

2

2

lg

lg

llf

l

s.t.

min

0306

1

01.01

1065.41013

5

4

94

lg

lg

llf

l

s.t.

min

Optimizing variables out

● Critical constraints must be active:

Page 62: Engineering Optimization

Problem!

● Length not well bounded:

0306

1

01.01

1065.41013

5

4

94

lg

lg

llf

l

s.t.

min

306

10

1065.41013

5

4

94

lg

lg

lllf

l

s.t.

min

● Additional constraint from above is needed:

● Maximum plate width: 610l

Page 63: Engineering Optimization

Air tank solution

● Length constraint is critical: must be active!

● Solution:

6.13

1

105

610

h

t

r

l

t

r

h

l

● Result of Monotonicity Analysis:

● Problem found, and fixed

● Solution found without numerical optimization

Page 64: Engineering Optimization

Recognizing monotonicity

● Some useful properties:

– Sums: 3213 ffff

– Products: '''* 21213213 ffffffff

Sums of similarly monotonic functions have the same

monotonicity

Products of similarly monotonic functions have:

– same monotonicity if

– opposite monotonicity if

0,0 21 ff

0,0 21 ff

Page 65: Engineering Optimization

Recognizing monotonicity

● More properties:

– Powers:

3

313

:0

:0

f

fff

Positive powers of monotonic functions have the same

monotonicity, negative powers have opposite

monotonicity

– Composites: ''' 213213 ffffff

3

21

213

21

21

,

,

,

,f

ff

fff

ff

ff

Page 66: Engineering Optimization

Recognizing monotonicity

● Integrals:

– w.r.t. limits: dxxfbafb

a

)(),( 13

f1

x0 a b

),(0)( 31 bafbxaf

),(0)(,0)(, 3111 bafbfaff

)()( 31 yfyf

– w.r.t. integrand: b

a

dxyxfybaf ),(),,( 13 f1

x

y

ab

Page 67: Engineering Optimization

Criticality

Refined definitions:

# of variables critically bounded

by constraint i

# of constraints possibly critically

bounding variable j

0

Uncritical constraint

1 1Uniquely critical

constraint

>1 Multiple critical constraint

>1

Conditionally critical constraint

Page 68: Engineering Optimization

Air tank example

Multiple critical constraint can obscure boundedness!

Eliminate if possible

01150

01.01

01041

07.71

01048.11

)(22

5

4

3

2

271

22

,,,

trg

lgr

tg

r

hg

lrg

htrltrtftrlh

s.t.

min

trg

lg

trg

rhg

rlg

trlhf

,

,

,

,

,,,

5

4

3

2

1Critical w.r.t. r

Critical w.r.t. h

Critical w.r.t. t

Conditionally critical w.r.t. l

Multiple critical!

Page 69: Engineering Optimization

Air tank example

● Starting with eliminating r:

01150

01.01

01041

07.71

01048.11

)(22

5

4

3

2

271

22

,,,

trg

lgr

tg

r

hg

lrg

htrltrtftrlh

s.t.

min

lr

lrg

2600

01045.11 271

Page 70: Engineering Optimization

Air tank example

● New problem:

011503

52

01.01

02600

1041

02600

7.71

52002600

25200

5

4

3

2

22

,,

t

lg

lg

ltg

lhg

tl

t

lhtlltf

tlh

s.t.

min tlh ,, ?

lh ,

tl ,

l

tl ,

Critical for t

Critical for h

?

Page 71: Engineering Optimization

Air tank example

● Finally, after also eliminating h and t:

012

35

01.01

1065.4130625

5

4

2/3

9

lg

lg

lf

l

s.t.

min l

l

l

● Conclusion: multiple critical constraint

obscured ill-boundedness in l

Not well bounded!

Page 72: Engineering Optimization

Summary

● Optimization problem checking:

– Boundedness check of objective

Identify underconstrained problems

– Monotonicity analysis

Identify not properly bounded problems

Identify critical constraints

Eliminate variables

Remove inactive constraints

Page 73: Engineering Optimization

But what about …

● Equality constraints:

– Active if all constraint variables in objective

– Otherwise semi-active

● Example:

03

01

3

21

11

1, 21

xh

xg

xfxx

s.t.

min

01

3

11

1, 21

xg

xfxx

s.t.

minRelaxed problem:x1

x2 f

3

1

Page 74: Engineering Optimization

More on nonobjective variables

● Monotonicity Principle for nonobjective variables:

“In a well-constrained minimization problem every

nonobjective variable is bounded below by at least one

non-increasing semiactive constraint and above by at

least one non-decreasing semiactive constraint”

x

0gi gj

g(x)

Page 75: Engineering Optimization

Nonobjective variables (2)

● Other options:

– Equality constraint

– Single nonmonotonic constraint

x

0hi

x

0gi

● See example in book (Papalambros p. 114)

g(x)h(x)

Page 76: Engineering Optimization

Nonmonotonic functions

● Monotonicity analysis difficult!

– Sometimes regional monotonicity can be used

– Concave constraints can split feasible domain:

x

0gj gi

g(x)

Page 77: Engineering Optimization

Model preparation procedure (3.9)

● Remove dominated constraints

● Check boundedness for each design variable:

– Objective monotonic? Constraints monotonic?

– Critical constraints?

Uniquely / conditionally / multiply?

● If possible, eliminate active constraints,

and repeat steps

Spending time on model checking usually pays off!