| Statistics Toolbox | ![]() |
Design of Experiments Demo
The rsmdemo utility is an interactive graphic environment that demonstrates the design of experiments and surface fitting through the simulation of a chemical reaction. The goal of the demo is to find the levels of the reactants needed to maximize the reaction rate.
Suitable designs for this experiment include the central composite designs and Box-Behnken designs, described in the previous two sections, and the D-optimal designs, described in D-Optimal Designs. This demo uses D-optimal designs.
There are two parts to the demo:
Comparing Results from Trial-and-Error Data and a Designed Experiment
This part of the experiment compares the results obtained using data gathered through trial and error and using data from a designed experiment.
rsmdemo function.
Each time you click the Run button, the levels for the reactants and results of the run are displayed in the Trial and Error Data window. You can use the Export button to write the values of the reactants and the reaction rate for each run to the base workspace.
rsmdemo produces the following plot if you select Isopentane vs. Rate.
rstool function, which you can then use to try to optimize the results. See Exploring Graphs of Multidimensional Polynomials for more information about using the rstool demo.
rsmdemo calls the cordexch function to generate a D-optimal design, and then, for each run, computes the reaction rate.
rstool to find the optimal levels of the reactants.
Comparing Results Using a Polynomial Model and a Nonlinear Model
This part of the experiment analyzes the experimental design data with a polynomial (response surface) model and a nonlinear model, and compare the results. The true model for the process, which is used to generate the data, is actually a nonlinear model. However, within the range of the data, a quadratic model approximates the true model quite well.
rsmdemo calls rstool, which fits a full quadratic model to the data. Drag the reference lines to change the levels of the reactants, and find the optimal reaction rate. Observe the width of the confidence intervals.
rsmdemo calls nlintool, which fits a Hougen-Watson model to the data. As with the quadratic model, you can drag the reference lines to change the reactant levels. Observe the reaction rate and the confidence intervals.
| Box-Behnken Designs | D-Optimal Designs | ![]() |
Learn more about the latest releases of MathWorks products: |
| © 1994-2009 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |