selecting experimental variables for response surface modeling

25
Selecting experimental variables for response surface modeling Special topics in Industrial Chemistry Seppo Karrila November 2014

Upload: skarrila

Post on 09-Jul-2015

340 views

Category:

Engineering


1 download

DESCRIPTION

Basic common sense design of experiments starts from qualitative modeling, selecting factors to eliminate, and factors to adjust/control in the experimental design. The goal is to introduce sci & tech students to this approach, and to basics of response surface methods. Not math or statistics, a soft tutorial.

TRANSCRIPT

Page 1: Selecting experimental variables for response surface modeling

Selecting experimental variables for response surface modeling

Special topics in Industrial ChemistrySeppo Karrila

November 2014

Page 2: Selecting experimental variables for response surface modeling

Executive summary

• When you are given a problem

– Try to list all possible effects

– Which effects can you eliminate?

– Which can you control?

• For “experimental optimization”

– Typically use three levels for each factor

– Use an experimental design, like Box-Behnken, and fit a “response surface model”

– Do not try to optimize one factor at a time, it is wrong

Page 3: Selecting experimental variables for response surface modeling

Our “model problem”

• What is the gas consumption of a car?

– How can you compare between different cars?

• Once you have a car, how should you drive it for best gas economy?

Page 4: Selecting experimental variables for response surface modeling

Things to note

• You do NOT HAVE a mathematical model!

– You can not use numerical optimization

• Instead you need to design experiments

– How can we do that?

Page 5: Selecting experimental variables for response surface modeling

First step, what effects do we know?

• Weight

• Route

• Speed

• Condition of car

• Weather

• Type of gasoline

Page 6: Selecting experimental variables for response surface modeling

More variables or influencing factors• Weight

– Car itself– Passengers

• Number, weight

– Cargo loading• Weight

– Gas tank full/empty• Weight of gas

• Route– Uphill, downhill, level?– Stops at lights, intersections?– Distance to drive– Type or road

• Asphalt• Unpaved dirt road• Muddy• Off-road

– You might have many alternatives…

• Speed• Condition of car

– Old or new car?– Engine runs well?– Maintenance, oil, air

filter, lubrication?– Type and condition of

tires, tire pressure?

• Weather– Rain? – Sunny

• Air conditioning on?

– Windy

• Type of gasoline– You might have many

alternatives…

Page 7: Selecting experimental variables for response surface modeling

Anything missing

• Add driving style

– Aggressive, hard acceleration, hard braking

– Other extreme: Smooth and nice

Page 8: Selecting experimental variables for response surface modeling

How can anyone determine consumption numbers?

• They “standardize” a test

– Achieve reproducible results

• A test that every time gives different numbers for the same test subject is not very useful

• Instead of driving on the road, the tests are performed in a garage

– Control of resistance at speed

• No effects from road type, wind, temperature, sun, rain, uphill, downhill, traffic lights, …

Page 9: Selecting experimental variables for response surface modeling

A car on a test bench

Page 10: Selecting experimental variables for response surface modeling

Your problem

• Maybe the numbers from standardized testing are “wrong” for your purposes

– The many effects we listed are specific to location, driver, typical use of the car, etc.

• How would you make your own test?

Page 11: Selecting experimental variables for response surface modeling

Which factors to choose?

• You want to run some experiments…

• What can you select?– Example: do test only if day is sunny, without wind

or heavy rain

– This way you can remove many variables!

• What can you adjust?– Load, speed, driving style, condition, route,…

– Still too many variables, simplify with “given assumptions”

Page 12: Selecting experimental variables for response surface modeling

For example• Fix load: 2 people + luggage for a total of 200kg, 20 L of gas

in tank• Fix distance: start with cold engine, drive to Big C and back,

around 9:30 am on Sundays• Fix weather: but only if day is sunny without heavy winds• Car well maintained, standard tires that came with the car• Use cheapest gas• ….

• Finally: two variables, tire pressure, driving style (speed)

Page 13: Selecting experimental variables for response surface modeling

Now what?• You have “standardized” test conditions• You have two variables left

– You must design experiments– Tire pressures: min < pressure < max– Driving styles: slow, normal, fast, crazy fast

• Expectations? – High pressure, hard tires, least resistance, best mileage

(hypothesis, don’t strictly believe your expectations) – Going too slow is bad, if you stand still you don’t get

anywhere but you burn gas– Going crazy fast is bad, you accelerate hard and then you

have to brake hard, but you don’t get there much faster

Page 14: Selecting experimental variables for response surface modeling

So why not always highest pressure in

the tires?

• Too hard tires: discomfort, punctured tires

– Make notes of punctures or other complaints

Page 15: Selecting experimental variables for response surface modeling

Full experimental design

• Select some levels of tire pressure: T1,T2, T3, T4

• This is called “full factorial design”

Slow Normal Fast Crazy

T1

T2

T3

T4

Page 16: Selecting experimental variables for response surface modeling

The trouble

• We “assumed” something for most factors, but kept speed and tire pressure– Still we would need 16 experiments!

– If the experiments are done only on sunny Sunday mornings, starting with a cold engine, this might take a whole year!

• This is the reason for incomplete, or reduced, or fractional experimental designs

Page 17: Selecting experimental variables for response surface modeling

Reduce number of factor levels

• It is typical to use three levels per factor

– Two levels are too little to find best value in range

– The “middle point” can be dropped out, and we now have only 8 experiments

Slow Normal Fast

T1

T2

T3

Page 18: Selecting experimental variables for response surface modeling

Why three levels?

• Fit a parabola, it will estimate the maximum or minimum:

Minimum

Max

imu

m

Page 19: Selecting experimental variables for response surface modeling

With many factors…

• A typical experimental design is Box-Behnken

• Here, three factors

• Three levels each

• 13 experiments

• A “full factorial” would have 27 experiments !

Page 20: Selecting experimental variables for response surface modeling

A good online source for help

• http://www.itl.nist.gov/div898/handbook/index.htm

Page 21: Selecting experimental variables for response surface modeling

Strategy

• Explore the factors with three levels

• When you have an estimate of what is close to optimal– You can use a three-level design again, but with

smaller steps between levels of a factor

• For example:– Tire pressure in range 20 to 35 experiments

31 is near optimal next experiments for range 29 to 33

Page 22: Selecting experimental variables for response surface modeling

Response surface models

• Two inputs

• The output level is drawn like a map

– Level curves or3D plots of the fitted surface

– Fit is with “parabola”,i.e. a second degreepolynomial

Page 23: Selecting experimental variables for response surface modeling

Common mistake

• Example: biogas production depends on pH and temperature

– First hold pH fixed, find “best” temperature

– Then find best pH at the “best” temperature

• The correct way is designed experiments and response surface.

– Why, what was wrong?

Page 24: Selecting experimental variables for response surface modeling

Path to highest point? This is the problem…

Page 25: Selecting experimental variables for response surface modeling

Summary

• Begin by listing all factors that might be important– Can you prevent some from affecting– Which ones can you control and experiment with

• Design experiments– Usually three levels per factor

• Response surfaces for approximate optimization– Often Box-Behnken design and quadratic fit

• Don’t try “optimizing one factor at a time.” It is a fundamentally flawed, wrong, incorrect, uneducated, silly approach.