design optimization print.pdf

46
Introduction to Design Optimization

Upload: karthipriya

Post on 31-Dec-2015

45 views

Category:

Documents


2 download

DESCRIPTION

fdfdfd

TRANSCRIPT

Page 1: Design Optimization print.pdf

Introduction to Design

Optimization

Page 2: Design Optimization print.pdf

Various Design Obj ti

Minimum Weight

Objectives

g(under Allowable

Stress)

A PEM Fuel Cell StackA PEM Fuel Cell Stack with Even Compression

over Active Area(Mi i St(Minimum Stress

Difference)

Page 3: Design Optimization print.pdf

A PEM Fuel Cell Stack Multi-Stack Multi-

Functional Panel with Ideal Stiffness – to

A d tAccommodate Thermal- and Hydro-

Expansionsp

(Minimum Difference between Ideal Stiffness and

Calculated Stiffness):Find a panel design withFind a panel design with

the ideal stiffness.

Page 4: Design Optimization print.pdf

Minimum Maximum Stress in the Structure

Optimized Groove Dimension t A id St C t tito Avoid Stress Concentration or Weakening of the Structure

Page 5: Design Optimization print.pdf

Engineering Applications of OptimizationEngineering Applications of Optimization

• Design - determining design parameters that lead to the best “performance” of a mechanical structure device or systemperformance of a mechanical structure, device, or system. “Core of engineering design, or the systematic approach to design” (Arora, 89)

• Planning– production planning - minimizing manufacturing costs– management of financial resources - obtaining maximum profitsmanagement of financial resources obtaining maximum profits– task planning (robot, traffic flow) - achieving best performances

• Control and Manufacturing - identifying the optimal control t f th b t f ( hi i t j t t )parameters for the best performance (machining, trajectory, etc.)

• Mathematical Modeling - curve and surface fitting of given data with minimum error

Commonly used tool: OPT function in FEA; MATLAB Optimization Toolbox

Page 6: Design Optimization print.pdf

What are common for an optimization problem?

• There are multiple solutions to the problem; and the• There are multiple solutions to the problem; and the optimal solution is to be identified.

• There exist one or more objectives to accomplish and a j pmeasure of how well these objectives are accomplished (measurable performance).Constraints of different forms (hard soft) are imposed• Constraints of different forms (hard, soft) are imposed.

• There are several key influencing variables. The change of their values will influence (either improve or worsen) ( p )the “measurable performance” and the degree of violation of the “constraints.”

Page 7: Design Optimization print.pdf

Solution Methods• Optimization can provide either

– a closed-form solution, ori l l ti– a numerical solution.

• Numerical optimization systematically and efficiently adjusts the influencing variables to find the solution that has the best performance satisfying given constraintsperformance, satisfying given constraints.

• Frequently, the design objective, or cost function cannot be expressed in the form of simple algebra. Computer programs have to be used to carryout the evaluation on the design y gobjective or costs. For a given design variable, α, the value of the objective function, f(α), can only be obtained using a numerical routine. In these cases, optimization can only be carried out numericallycarried out numerically.

Computer Program(no simple algebra)α f(α)

e.g. Minimize the maximum stress in a tents/tension structures using FEA.

Page 8: Design Optimization print.pdf

D fi iti f D i O ti i tiDefinition of Design Optimization

An optimization problem is a problem in which

certain parameters (design variables) needed to becertain parameters (design variables) needed to be

determined to achieve the best measurable

performance (objective function) under given

constraints.

Page 9: Design Optimization print.pdf

Classification of the Optimization Problems• Type of design variables

optimization of continuous variables

Classification of the Optimization Problems

– optimization of continuous variables– integer programming (discrete variables) (examples)

– mixed variables• Relations among design variables

– nonlinear programming – linear programming

12. . ( ) xe g f X Ae Bx−= +

( )e g f X c x c x c x= + + +linear programming• Type of optimization problems

– unconstrained optimization

1 1 2 2. . ( ) n ne g f X c x c x c x= + + +K

– constrained optimization (examples)

• Capability of the search algorithm– search for a local minimum– global optimization; multiple objectives; etc.

Page 10: Design Optimization print.pdf

Automation and IntegrationAutomation and Integration• Formulation of the optimization problems

– specifying design objective(s)– specifying design constraints– identifying design variablesidentifying design variables

• Solution of the optimization problems – selecting appropriate search algorithm

d t i i t t i t t i t i it i– determining start point, step size, stopping criteria– interpreting/verifying optimization results

• Integration with mechanical design and analysisg g y– black box analysis functions serve as objective and

constraint functions (e.g. FEA, CFD models) – incorporating optimization results into designincorporating optimization results into design

Page 11: Design Optimization print.pdf

An Example Optimization ProblemAn Example Optimization Problem

Design of a thin wall tray:g yThe tray has a specific volume, V, and a given height, H.

The design problem is to select the length, l, and width, w,f th tof the tray.

Given lwh V= h H=

A “workable design”:lw V

H=

Pick either l or w and solve for others

H

w

h

lw

Page 12: Design Optimization print.pdf

An “Optimal Design”An Optimal Design

• The design is to minimize material volume, (or weight), g ( g )where “T” is an acceptable small value for wall thickness.

Minimize V l h T l lh h( ) ( )2 2Minimize V w l h T wl lh whm bottom sides( , , ) ( )= + +2 2

lwh V= ⎫subject to h H

l=≥≥

⎬⎪⎪

⎭⎪⎪

00

constraints (functions)

Design variables: w, l, and h.

w ≥ ⎭⎪0

hg , ,

lw

Page 13: Design Optimization print.pdf

Standard Mathematical FormStandard Mathematical Form

bj ti f tii ( )T l lh h2 2 - objective function

Subject to - equality constraints

min ( ). . . , ,w r t l w h

T wl lh wh+ +2 2

lwh V− = ⎫0

- inequality constrains

lwh Vh H

=− =

⎫⎬⎭

00

- variable bounds− ≤− ≤

⎫⎬⎭

lw

00

- design vector[ ]rx l w h T= , ,

- for use of any available optimization routines

Page 14: Design Optimization print.pdf

Analytical (Closed Form) Solution• Eliminate the equality constrains, convert the original problem into a

single variable problem, then solve it.from h = H & l w H = V; solve for l: l Vfrom h = H & l w H = V; solve for l: thus

lHw

=

wmin T( )V

Hww V

HwH wH+ +2 2

wminT( ) ( )V

HVw

wH f w+ + =2 2

from

w

2 *( ) 0, ,df w V Vwe have w then the design optimum wdw H H

= = =

• Discard the negative value, since the inequality constraint is violated.- a stationary point

• The optimal value for l: l V

HwVH

w**

*= = =

hV T V

Hhw V

wM* *

*( )= + +2 2= +T V

HVH( )4

lwh

Page 15: Design Optimization print.pdf

GraphicalGraphical Solution

h

lw

Page 16: Design Optimization print.pdf

h

lw

h

lw=W

Page 17: Design Optimization print.pdf

Procedures for Solving an Eng. Optimization Problem• Formulation of the Optimization Problem

– Simplifying the physical problem– identifying the major factor(s) that determine the performance or outcome

of the physical system such as costs weight power output etc – objectiveof the physical system, such as costs, weight, power output, etc. – objective– Finding the primary parameters that determine the above major factors

- the design variables– Modeling the relations between design variables and the identified major

factor - objective function– Identifying any constraints imposed on the design variables and modeling

their relationship – constraint functions• Selecting the most suitable optimization technique or algorithm toSelecting the most suitable optimization technique or algorithm to

solve the formulated optimization problem.- requiring an in-depth know-how of various optimization techniques.

• Determining search control parameters - determining the initial points, step size, and stopping criteria of the

numerical optimization• Analyzing, interpreting, and validating the calculated results

An optimization program does not guarantee a correct answer one needs toAn optimization program does not guarantee a correct answer, one needs to– prove the result mathematically.– verify the result using check points.

Page 18: Design Optimization print.pdf

Standard Form for Using Software Tools for Optimization (e.g. MatLab Optimization Tool Box)

Use of MATLABUse of MATLAB Optimization Toolbox

Page 19: Design Optimization print.pdf

Notes

Page 20: Design Optimization print.pdf

One Dimensional Search MethodsOne Dimensional Search MethodsThe 1-D Search Problem - Basis for ND Optimization Search Techniques

C t P

Often Black-box Function

Computer Program(no simple algebra)α f(α)

(maximum stress less than allowed value)

Page 21: Design Optimization print.pdf

1 D Optimization1-D Optimization

• The Search – We don’t know the curve. Given α, we can calculate f(α).– By inspecting some points, we try to find the approximated

shape of the curve, and to find the minimum, α*numerically, using as few function evaluation as possible.numerically, using as few function evaluation as possible.

• The procedure can be divided into two parts:a) Finding the “range” or region “ known ” to contain α* .b) Calculating the value of α* as accurately as designed or as

possible within the range – narrowing down the range.

Page 22: Design Optimization print.pdf

Search MethodsSearch Methods• Typical approaches include:

– Quadratic Interpolation (Interpolation Based)– Cubic Interpolation– Newton-Raphson Scheme (Derivative Based)– Newton-Raphson Scheme (Derivative Based)– Fibonacei Search (Pattern Search Based)– Golden Section Search

• Iterative Optimization Process:– Start point αo → OPTIMIZATION → Estimated point αk

N t t i t→ New start point αk+1– Repeat this process until the stopping rules are satisfied,

then α* =αn .n

Page 23: Design Optimization print.pdf

Iterative Process for Locating the RangeIterative Process for Locating the Range

• Picking up a start point, αo, and a range;• Shrinking the range;• Doubling the range;

P i di ll h i th i• Periodically changing the sign.

T i l St i R lTypical Stooping Rules:

* * * *( ) ( )f new f last new lastα α α α**

( ) ( )

( )

f new f last new lastor

newf new

α α α αε ε

αα

− −< <

Page 24: Design Optimization print.pdf

Quadratic Interpolation H(α)pMethod

2(( )) H bf + +

( )

f(α)

2(( )) H a b cf α αα α= + +⇐

• Quadratic Interpolation uses a quadratic function H(α) toQuadratic Interpolation uses a quadratic function, H(α), to approximate the “unknown” objective function, f(α).

• Parameters of the quadratic function are determined by several points of the objective function f(α)points of the objective function, f(α).

• The known optimum of the interpolation quadratic function is used to provide an estimated optimum of the objective function th h it tithrough an iterative process.

• The estimated optimum approaches the true optimum.• The method requires proper range being found before started. q p p g g• It is relatively efficient, but sensitive to the shape of the objective

Page 25: Design Optimization print.pdf

H(α)H(α)

f(α)H(α1)= f(α1)

*αH*α1 α2 α3

αH*

Page 26: Design Optimization print.pdf

denominator - 1

numerator – 2

denominator - 1

Page 27: Design Optimization print.pdf
Page 28: Design Optimization print.pdf

Point update schemes based on the relations between the center point, α2, f(α2), and the present optimum: α*, f(α*).

13

2

1

3

*22

2

3

3*

11

32

Page 29: Design Optimization print.pdf

31

2

3

1 3*

2

1 33

21

3

*2

Page 30: Design Optimization print.pdf
Page 31: Design Optimization print.pdf
Page 32: Design Optimization print.pdf

N-Dimensional SearchN-Dimensional Search

• The Problem now has N Design Variables.• Solving the Multiple Design Variable Optimization

(Minimization) Problem Using the 1-D Search Methods Discussed PreviouslyDiscussed Previously

• This is carried out by:– To choice a direction of search

o To deal one variable each time, in sequential order - easy, but take a long time (e.g. x1, x2, …, xN)

o To introduce a new variable/direction that changes allo To introduce a new variable/direction that changes all variables simultaneously, more complex, but quicker (e.g. S)

– Then to decide how far to go in the search direction (small step = Δ or large step determining by 1D search)step ε = Δx, or large step determining α by 1D search)

Page 33: Design Optimization print.pdf

Find minimum

Page 34: Design Optimization print.pdf

Large Step 1-D SearchLarge Step 1-D Search• Two Key Questions:

– Search Direction – In what direction should we move (or search)?

– Next Point – How far we should go or where do we stopNext Point How far we should go or where do we stop along this move/search direction?

• Search along the Coordinate Direction (Univariate Search)

• Introduce a New Variable α which represents how far we should go along the selected search direction

• The value of α is determined by a 1 D optimization• The value of α is determined by a 1-D optimization problem

( )t

Min f α. .w r t α

Page 35: Design Optimization print.pdf

is a known pointk oldx x=

Find minimum

0

0⎡ ⎤⎢ ⎥⎢ ⎥

Find minimum

1

0new point: is almost defined except

0

k kx x αα+⎢ ⎥= +⎢ ⎥⎢ ⎥⎣ ⎦

now in the N-D space, there is only one variable: α⎣ ⎦

Page 36: Design Optimization print.pdf

Gradient Based N-D SearchGradient Based N-D Search

• The Problem has N Design Variables• The Problem has N Design Variables.• Solving the Multiple Design Variable Optimization

(Minimization) Problem Using the 1-D Search Methods• This is carried out by:

– To identify the search/move direction, S – the direction that has the maximum down hill slope (the direction opposite to the directive direction)

– To introduce a new variable α that represents how far do we move along the identified search/move direction

– To determine this variable α by 1-D minimization using αas the design variable.

Page 37: Design Optimization print.pdf

Find minimum

f∇

α

ff

∇∇

s

Page 38: Design Optimization print.pdf

N D Search Problem → 1D Search ProblemN-D Search Problem → 1D Search Problem on Variable α

is a known pointlo dx x=

1

is a known point

new point: is also known except

k

k kf

lo dx x

x x αα+

∇−

=

=1p p

now in the N-D space, there is only one variable:

k k f

α

+∇

p , y

Page 39: Design Optimization print.pdf

Answer to this question leads to more advanced search algorithmsAnswer to this question leads to more advanced search algorithms.

Page 40: Design Optimization print.pdf

Design OptimizationDesign Optimization

Objective: minimize the maximum stress in the structureObjective: minimize the maximum stress in the structureConstraints: maximum deformation of the L bracket

One design i blvariable

Page 41: Design Optimization print.pdf

Result of the OptimizationResult of the Optimization

Max Displacement Max Stress

Best groove size: 0.13 (with minimum Maximum Stress)

Page 42: Design Optimization print.pdf

An Different Design OptimizationAn Different Design OptimizationObjective: minimize the weight (mass) of the structureC t i t i l d d d f tiConstraints: maximum load and deformation

1. Define relations to control the model generation (two design t i th i d th th i th llparameters; one is the groove size and the other is the overall

fixture size.)Two design

i bl2. Specify ranges of variables, variables2. Specify ranges of variables, objective, and constraints

3. Perform the optimization (about 15 min ) x1(about 15 min.)

4. Results plotting and convergence check weight

1

x2

Page 43: Design Optimization print.pdf

Optimal DesignOpt a es g03 1.2

ot

52

e_niarts

0.2

sam_lato

51

02

X ygrene

8.1

9.1

s

01

300-E1

7.1

35

ssaP noitazimitpO

0 1 2 36.1

ssaP noitazimitpO

0 1 2

The Total Mass and Strain Energy Convergence Plots in the Optimization

Page 44: Design Optimization print.pdf

F l ti f Diff t D iFormulation of Different Design Optimization Problem

Best Performance Design – Lightest Coffee Mug

Minimize Mass of the mug as a function of mug dimensions (D: Diameter, H: Height, T: Thickness) -- Objective Function

Subject toSubject to

Mug Volume ≥ A Constant -- Inequality Constraint

H/D 1 65 E li C iH/D = 1.65 -- Equality Constraint

D, H, T > 0 -- Variables

Fi d D* H* d T* O iFind: D*, H*, and T* -- Optimum

Page 45: Design Optimization print.pdf

Formulation of Different Design

Lowest Cost Design – Cheapest Coffee Mug

Optimization Problem

Minimize Mfg. Cost of the Mug -- Objective Function

Lowest Cost Design Cheapest Coffee Mug

Subject to

Mug Volume ≥ Constant 1 -- Inequality Constraint

Mug Mass ≤ Constant 2

Strength ≥ Constant 3

H/D = 1.65 -- Equality Constraint

D, H, T, Material, Tolerances, etc. -- Variables

Find: D*, H*, and T* etc. -- Optimum

Page 46: Design Optimization print.pdf

Are you ready for the first quiz?Are you ready for the first quiz?