Response optimizer: desirability functions for several responses

Updated

The response optimizer finds the factor settings that best satisfy several goals at once, using models you have already fitted. It turns each response into a desirability between 0 (unacceptable) and 1 (ideal), combines them into one composite desirability, and searches the factor space for the settings that make it largest. The method is the desirability approach of Derringer and Suich (Journal of Quality Technology, 1980).

When to use it

  • You ran a designed experiment, such as a response surface design or a factorial design, and fitted a model for each response.
  • The responses pull in different directions: higher temperature improves adhesion but makes the coating too thick.
  • You need one recommended setting, with predicted values for every response, to confirm with a few runs.
  • You want to see how much you give up on one response to gain on another.

The optimizer is only as good as the models behind it. Fit and check each one first with regression analysis.

How it works

1. A desirability for each response. You give each response a goal and limits:

  • Maximize: a lower limit L (below it, d = 0) and a target T (at or above it, d = 1).
  • Minimize: a target T (at or below it, d = 1) and an upper limit U (above it, d = 0).
  • Target: L, T and U; d rises from 0 at L to 1 at T and falls back to 0 at U.

Between the limits, d moves along a straight line or a curve. For a response to maximize:

d = ((ŷ − L) / (T − L))ʳ for L ≤ ŷ ≤ T

For a target, the left side uses ((ŷ − L)/(T − L))ʳ¹ and the right side ((U − ŷ)/(U − T))ʳ². The shape exponent r sets how strict the goal is: r = 1 is linear, r > 1 demands being close to the target before d gets high, and r < 1 is satisfied by being merely near it.

2. A composite desirability. The individual desirabilities combine as a weighted geometric mean, where the importance wᵢ says how much each response counts:

D = (d₁^w₁ · d₂^w₂ · … · dₖ^wₖ)^(1 / Σwᵢ)

Because it is a product, D is 0 whenever any one response is unacceptable. A setting cannot make up for a failed response by doing very well on another.

3. A search. The optimizer evaluates D over the region of the experiment (usually by a fine grid plus a local search) and reports the settings with the highest D.

Example

A finishing line applies a powder coating to steel brackets. An experiment varied cure temperature (160 to 200 °C) and cure time (10 to 20 min), and gave these models, in coded units where A and B run from −1 to +1 (A = (temperature − 180)/20, B = (time − 15)/5):

Thickness = 24.0 + 3.0A + 2.0B + 0.8AB − 0.5A² Adhesion = 10.5 + 1.2A + 0.6B + 0.3AB − 0.9A² − 0.4B²

The goals, with r = 1 and equal importance:

ResponseGoalLowerTargetUpper
Film thickness (µm)Target202530
Pull-off adhesion (MPa)Maximize812

A grid search over the experimental region, in steps of 0.01 coded units, finds the best compromise at A = 0.28 and B = 0.09, that is about 185.6 °C for 15.5 min:

ResponsePredictedDesirability
Thickness25.00 µm1.000
Adhesion10.82 MPa0.706
Composite D0.840

The trade-off is plain if you hold the time at 15.5 min and move the temperature:

Temperature (°C)160170180185190195200
Thickness (µm)20.6222.5424.2024.9425.6126.2326.78
Adhesion (MPa)8.439.7210.5610.8110.9510.9710.89
D0.1150.4660.7330.8330.8040.7490.682
Desirability versus cure temperature at 15.5 min0.20.40.60.81.0Desirabilityd thicknessd adhesionComposite D160170180185190195200Cure temperature (°C)
Desirability versus cure temperature at 15.5 min

The highest adhesion the model allows anywhere in the region, 11.32 MPa, comes at about 196.6 °C and 20 min, where the film is 28.8 µm thick, almost out of range. The optimizer gives up half a megapascal of adhesion to hold the thickness on target.

How to read the results

  • Read the individual desirabilities, not only D. D = 0.840 says the compromise is good overall; d = 0.706 for adhesion says that response is where you are giving ground.
  • Check how sharp the peak is. In the table, D stays above 0.73 from 180 to 190 °C, against 0.833 near the optimum. A broad peak means the process tolerates normal drift in temperature; a sharp one means you need tight control.
  • Predictions are means. At the optimum, individual brackets still scatter around 25 µm by the model's S. If the spread matters, add the standard deviation as a response to minimize, or check that the prediction interval fits inside the limits.
  • Confirm with real runs. Run a few parts at the recommended setting and compare them with the predicted values before you change the control plan.

Common mistakes

  • Optimizing outside the experimental region. The models were fitted from 160 to 200 °C; a recommendation at 215 °C is a guess.
  • Setting limits that reward the impossible. If no setting can reach the target, every d stays low and D shows little difference between settings. Base L, T and U on the specification and on what the process can do.
  • Treating D as a probability. It is a score for comparing settings, not the chance that parts meet the specification.
  • Forgetting other responses. A setting that is ideal for thickness and adhesion may double the energy cost. Put every response that matters into the optimization.
  • Using models that do not fit. A model with curvature it cannot capture will steer the optimizer to the wrong corner. Check each model's residuals first.

Frequently asked questions

What is a good composite desirability?

There is no fixed threshold. A D close to 1 means every response meets its target; a D around 0.5 to 0.8 is a reasonable compromise when goals conflict. Compare D between candidate settings rather than against a fixed number.

What is the difference between weight and importance?

The shape exponent r, sometimes called the weight, changes how fast one response's desirability rises toward its target. The importance changes how much that response counts in the composite. Here, giving adhesion twice the importance of thickness barely moves the optimum (to about 185.2 °C and 15.6 min), because thickness desirability falls quickly on either side of the target.

Can the optimizer handle categorical factors?

Yes: it evaluates D at each level of the categorical factor and keeps the best. The recommendation then names a level, such as a supplier or a nozzle type.

Why not just overlay contour plots?

You can, and for two factors a contour plot of each response is a good check. The optimizer adds a single number to rank settings and scales to more factors than you can plot.

Try it with your own data

StatLab SPC is free, open-source statistics for engineers. It runs in your browser, works offline, and never uploads your data.

Open StatLab