introduction to design optimization - u-m personal world wide web

53
Introduction to Design Optimization James T. Allison University of Michigan, Optimal Design Laboratory [email protected], www.umich.edu/jtalliso June 23, 2005 University of Michigan Department of Mechanical Engineering

Upload: others

Post on 12-Sep-2021

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Introduction to Design Optimization - U-M Personal World Wide Web

Introduction to Design Optimization

James T. Allison

University of Michigan, Optimal Design [email protected], www.umich.edu/∼jtalliso

June 23, 2005

University of Michigan Department of Mechanical Engineering

Page 2: Introduction to Design Optimization - U-M Personal World Wide Web

Value of Analysis and Prediction Tools

• Enables testing in the virtual world

What else?

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 3: Introduction to Design Optimization - U-M Personal World Wide Web

Value of Analysis and Prediction Tools

• Enables testing in the virtual world

What else?

Without them, full-scale prototypes are required, which may:

• be to expensive to build more than one

• require substantial time for each realization

• risk human safety during testing

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 4: Introduction to Design Optimization - U-M Personal World Wide Web

Value of Analysis and Prediction Tools

Once we have a prediction of whether something will fail or not, what isthe next step?

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 5: Introduction to Design Optimization - U-M Personal World Wide Web

Value of Analysis and Prediction Tools

Once we have a prediction of whether something will fail or not, what isthe next step?

Safe prediction: Can we improve performance or reduce cost withoutrisking failure?

Failure prediction: How can we change the widget in order to preventfailure?

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 6: Introduction to Design Optimization - U-M Personal World Wide Web

Value of Analysis and Prediction Tools

Once we have a prediction of whether something will fail or not, what isthe next step?

Safe prediction: Can we improve performance or reduce cost withoutrisking failure?

Failure prediction: How can we change the widget in order to preventfailure?

⇒ Either case requires a design change

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 7: Introduction to Design Optimization - U-M Personal World Wide Web

Proposing Design Changes

How can we generate new designs that will improve upon previous designs?

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 8: Introduction to Design Optimization - U-M Personal World Wide Web

Proposing Design Changes

How can we generate new designs that will improve upon previous designs?

Trial and error methods:

• Use intuition or experience-based knowledge to propose a new design

• Change one aspect of the product at a time and see what happens

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 9: Introduction to Design Optimization - U-M Personal World Wide Web

Proposing Design Changes

How can we generate new designs that will improve upon previous designs?

Problems with trial and error methods:

• May require excessive number of tests (a problem even in the virtualworld)

• Still never know if we found the ‘best’ design

• Many products are too complex to design based on intuition

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 10: Introduction to Design Optimization - U-M Personal World Wide Web

Proposing Design Changes

How can we generate new designs that will improve upon previous designs?

Scientific approach:

Optimization, a branch of mathematics, provides the necessary toolsto move efficiently toward a design that is superior to all other alternatives.

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 11: Introduction to Design Optimization - U-M Personal World Wide Web

Example 1: Trebuchet Design

θ

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 12: Introduction to Design Optimization - U-M Personal World Wide Web

Projectile Motion

Horizontal Position x = v0 cos θt

Horizontal Velocity vx = v0 cos θ

Vertical Position y = v0 sin θt− 12gt2

Vertical Velocity vy = v0 sin θ − gt

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 13: Introduction to Design Optimization - U-M Personal World Wide Web

Trebuchet Design Objective

Distance traveled:

xmax =2gv20 sin θ cos θ

Optimization problem:

maxθ

2gv20 sin θ cos θ

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 14: Introduction to Design Optimization - U-M Personal World Wide Web

Optimal Trebuchet Design

Using calculus-based optimization techniques, it is possible to

show that the maximum launch distance is obtained when:

sin θ = cos θ

which is satisfied when:

θ = 45◦

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 15: Introduction to Design Optimization - U-M Personal World Wide Web

Other Solution Strategies?

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 16: Introduction to Design Optimization - U-M Personal World Wide Web

Other Solution Strategies?

Trial and Error Use software, like MS ExcelTM, to calculate xmax

Graphical Use software to plot the objective over the space of availabledesigns

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 17: Introduction to Design Optimization - U-M Personal World Wide Web

Other Solution Strategies?

Trial and Error Use software, like MS ExcelTM, to calculate xmax

Graphical Use software to plot the objective over the space of availabledesigns

B What if more than one or two decisions need to be made?

B What if each prediction takes hours, or even days?

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 18: Introduction to Design Optimization - U-M Personal World Wide Web

Computational Exercise:

1. Use MS ExcelTMto calculate xmax = 2gv

20 sin θ cos θ, and use

trial and error to find the optimal θ (radians). Use g = 9.81,

v0 = 15.

2. Create a plot of the trajectory that depends on the angle θ

from part 1. Use y = x tan θ − gx2/2v20 cos2 θ.

3. Plot xmax as a function of θ from 0 to π/2 radians.

4. Use MS ExcelTMSolver (may need to include the add-in) to

maximize xmax by varying θ.

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 19: Introduction to Design Optimization - U-M Personal World Wide Web

Definition of DesignOptimization?

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 20: Introduction to Design Optimization - U-M Personal World Wide Web

Effective and efficient decision making based on quantitative metrics

'Making the right decision'

'Making decisions quickly'

'What decisions should be made'

Algorithms and

Convergence

Problem Formulation

Optimality Conditions

'Quantifiably predict the outcome of a

decision'

Governing Equations

Numerical Approximations

Empirical Models

Design variables vs. parameters

Finding the best design without testing them all

Optimization:

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 21: Introduction to Design Optimization - U-M Personal World Wide Web

The Best Design Decisions

To look for the best design, we need to formallydefine what we mean by best.

• How do we obtain quantitative metrics for comparison

(modeling)?

• How do we formulate the optimization problem?

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 22: Introduction to Design Optimization - U-M Personal World Wide Web

Standard Negative Null Form

minx

f(x)

subject to g(x) ≤ 0

h(x) = 0

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 23: Introduction to Design Optimization - U-M Personal World Wide Web

Formulation Choices

We choose:

• what is the objective and what are constraints

• what items we make decisions about (design variables) and what itemsare held fixed (design parameters)

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 24: Introduction to Design Optimization - U-M Personal World Wide Web

Formulation Choices

We choose:

• what is the objective and what are constraints

• what items we make decisions about (design variables) and what itemsare held fixed (design parameters)

These choices will affect the solution to the design optimization problem.

Mathematical techniques will help find the answer, but we define thequestion

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 25: Introduction to Design Optimization - U-M Personal World Wide Web

Optimality Conditions

What do you notice about the optimal point from the exercise?(look at the xmax vs. θ plot)

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 26: Introduction to Design Optimization - U-M Personal World Wide Web

Optimality Conditions

What do you notice about the optimal point from the exercise?(look at the xmax vs. θ plot)

• The slope of the curve at the optimal design is horizontal

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 27: Introduction to Design Optimization - U-M Personal World Wide Web

Optimality Conditions

What do you notice about the optimal point from the exercise?(look at the xmax vs. θ plot)

• The slope of the curve at the optimal design is horizontal

• The slope of a curve in higher dimensions is called a gradient.

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 28: Introduction to Design Optimization - U-M Personal World Wide Web

Optimality Conditions

What do you notice about the optimal point from the exercise?(look at the xmax vs. θ plot)

• The slope of the curve at the optimal design is horizontal

• The slope of a curve in higher dimensions is called a gradient.

⇒ A necessary condition for optimality is a zero (horizontal) slope orgradient.

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 29: Introduction to Design Optimization - U-M Personal World Wide Web

Optimality Conditions

What do you notice about the optimal point from the exercise?(look at the xmax vs. θ plot)

• The slope of the curve at the optimal design is horizontal

• The slope of a curve in higher dimensions is called a gradient.

⇒ A necessary condition for optimality is a zero (horizontal) slope orgradient.

⇒ Many optimization algorithms are based on this principle.

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 30: Introduction to Design Optimization - U-M Personal World Wide Web

Optimization Examples in Nature

• Gravitational Potential Energy

– Objects seek position of minimum gravitational potential energy: V =mgh

• Surface Energy

– Bubbles seek to minimize surface area ⇒ spherical shape/fewer,largerbubbles

– Crystallization/grain growth

• Atomic Spacing

• Survival of the fittest: optimization of organisms or entire ecosystems(genetic algorithms)

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 31: Introduction to Design Optimization - U-M Personal World Wide Web

Effective and efficient decision making based on quantitative metrics

'Making the right decision'

'Making decisions quickly'

'What decisions should be made'

Algorithms and

Convergence

Problem Formulation

Optimality Conditions

'Quantifiably predict the outcome of a

decision'

Governing Equations

Numerical Approximations

Empirical Models

Design variables vs. parameters

Finding the best design without testing them all

Optimization:

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 32: Introduction to Design Optimization - U-M Personal World Wide Web

Fast Design Decisions

Optimization Analogy: finding the low point of a curve

While in a fishing boat, find the deepest point of a pond.

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 33: Introduction to Design Optimization - U-M Personal World Wide Web

Fast Design Decisions

Optimization Analogy: finding the low point of a curve

While in a fishing boat, find the deepest point of a pond.

1. Grid search (take a long time, don’t know if you found it)

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 34: Introduction to Design Optimization - U-M Personal World Wide Web

Fast Design Decisions

Optimization Analogy: finding the low point of a curve

While in a fishing boat, find the deepest point of a pond.

1. Grid search (take a long time, don’t know if you found it)

2. Steepest descent

• Take a few extra measurements around a point to get a sense of‘downhill’

• Move in the downhill direction until the bottom starts going backuphill

• Find a new direction, and repeat until there is no more downhill

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 35: Introduction to Design Optimization - U-M Personal World Wide Web

Algorithm Convergence

Convergence Existence The algorithm will converge

to a design

Convergence Rate How many iterations are

required for convergence

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 36: Introduction to Design Optimization - U-M Personal World Wide Web

Algorithm Effectiveness

An effective optimization algorithm finds the bestdesign without having to test all alternatives.

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 37: Introduction to Design Optimization - U-M Personal World Wide Web

Algorithm Categorization: by Variable Type

Optimization

Continuous Discrete

Integer

Mixed Categorical

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 38: Introduction to Design Optimization - U-M Personal World Wide Web

Algorithm Categorization: by Function Type

• linear vs. nonlinear

• noisy vs. smooth

• convex vs. non-convex

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 39: Introduction to Design Optimization - U-M Personal World Wide Web

Effective and efficient decision making based on quantitative metrics

'Making the right decision'

'Making decisions quickly'

'What decisions should be made'

Algorithms and

Convergence

Problem Formulation

Optimality Conditions

'Quantifiably predict the outcome of a

decision'

Governing Equations

Numerical Approximations

Empirical Models

Design variables vs. parameters

Finding the best design without testing them all

Optimization:

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 40: Introduction to Design Optimization - U-M Personal World Wide Web

What Decisions to Make?

• Parametric design vs. Conceptual design (CAD example)

• Design variables vs. design parameters

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 41: Introduction to Design Optimization - U-M Personal World Wide Web

What Decisions to Make?

• Parametric design vs. Conceptual design (CAD example)

• Design variables vs. design parameters

Tradeoff:

• Fewer design variables ⇒ easier to solve

• More design variables ⇒ more design options, better results

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 42: Introduction to Design Optimization - U-M Personal World Wide Web

Effective and efficient decision making based on quantitative metrics

'Making the right decision'

'Making decisions quickly'

'What decisions should be made'

Algorithms and

Convergence

Problem Formulation

Optimality Conditions

'Quantifiably predict the outcome of a

decision'

Governing Equations

Numerical Approximations

Empirical Models

Design variables vs. parameters

Finding the best design without testing them all

Optimization:

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 43: Introduction to Design Optimization - U-M Personal World Wide Web

Modeling: Quantification of Designs

• Optimization results are only as good as the model’s accuracy

• Must make a tradeoff between computation time and accuracy

• Rough models: preliminary optimization studies (find desirableconfiguration and reduced set of important design variables)

• Hi-Fidelity models: later stages of design optimization

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 44: Introduction to Design Optimization - U-M Personal World Wide Web

Example 2: Air Flow Sensor Design

v

cos k

F1/2 cos

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 45: Introduction to Design Optimization - U-M Personal World Wide Web

Sensor Calibration Problem

min`,w

(θ − θT)2

subject to F − Fmax ≤ 0

`w −A = 0

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 46: Introduction to Design Optimization - U-M Personal World Wide Web

Multidisciplinary Analysis

Aerodynamic Analysis:

F = CAfv2 = C`w cos θv2

Structural Analysis:

kθ =12F` cos θ

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 47: Introduction to Design Optimization - U-M Personal World Wide Web

System Interdependency

StructuralAnalysis

AerodynamicAnalysis

l

l,w

F

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 48: Introduction to Design Optimization - U-M Personal World Wide Web

Design Space Visualization

00.1

0.20.3

0.40.5

-0.02

0

0.02

0.04

0.06

0

0.5

1

1.5

2

2.5

l

Airflow Sensor Design Space

w

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 49: Introduction to Design Optimization - U-M Personal World Wide Web

Design Space Visualization

0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5-0.02

-0.01

0

0.01

0.02

0.03

0.04

0.05

0.06

l

w

Contour Plot of Design Space

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 50: Introduction to Design Optimization - U-M Personal World Wide Web

Summary of Basic Topics

Design Optimization has value in aiding us to find the best

designs in a small amount of time.

Limitations: The ‘optimal design’ is only optimal with respectto how the problem was formulated, to what values were chosenas design variables, and to the accuracy of the modeling used.

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 51: Introduction to Design Optimization - U-M Personal World Wide Web

Questions to Ask:

• Objective function accurately reflect what is really wanted?

• Hidden constraints or interactions?

• Is there uncertainty or variation in:

– Manufacturing processes or supplies?

– Product usage?

– Environment the product exists in?

– Modeling or analysis?

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 52: Introduction to Design Optimization - U-M Personal World Wide Web

Additional Topics for Discussion

1. Organizations and Economies as optimization processes

2. Complex system optimization

(a) Analytical Target Cascading: coordinating between system-level andcomponent-level thinking

(b) Multidisciplinary Design Optimization: integration of many differentdisciplinary analysis into an overall system optimization

(c) Software for large-scale optimization: Optimus, iSIGHT

University of Michigan Department of Mechanical Engineering June 20, 2005

Page 53: Introduction to Design Optimization - U-M Personal World Wide Web

3. Additional optimization applications

(a) Fitting models to experimental results(b) Design of experiments(c) Operations Research: military operations planning, airport problem,

diet problem, project management(d) Manufacturing: optimization of CNC tool paths, tolerance allocation

4. Multi-objective optimization

5. Product family/product platform design

6. Local vs. global optima

7. Generalized reduced gradient method (algorithm used in MS ExcelTM)

University of Michigan Department of Mechanical Engineering June 20, 2005