Skip to content

Design of Experiments Workbench

LEAP's Design of Experiments (DOE) Workbench plans classical and optimal designs, previews the layout, reports alias structure and D-efficiency, and profiles multi-response desirability. It is a clean-room, GPL-3.0-or-later implementation (ADR-0006); nothing in the panel depends on any external product, library or dataset.

DOE workbench

Access

  • GUI: Engineering Workbenches → DOE (Factorial / Response Surface / D-Optimal) — (Ctrl+Alt+Shift+F) Classical Factorial, (Ctrl+Alt+Shift+R) Response Surface, (Ctrl+Alt+Shift+O) Optimal Design, and (Ctrl+Alt+Shift+P) Desirability Profiler.
  • CLI: leap doe generate ... / leap doe fit ... (see CLI parity below).

Design types

Kind UI label Code Notes
FullFactorial 2^k Full Factorial FF all \(2^k\) runs at \(\pm1\)
FractionalFactorial Fractional Factorial XF half fraction, generator \(I = F_1 F_2 \cdots F_k\)
PlackettBurman Plackett-Burman PB Sylvester Hadamard construction
CentralComposite Central Composite RSM CC full factorial + star points (\(\alpha = \sqrt{k}\))
BoxBehnken Box-Behnken BB all 2-factor pairs, one factor at 0 per row
DOptimal D-Optimal DO greedy variance-based selection from the \(2^k\) pool

Factor count (1–8), low/high bounds per factor, center points (0–8) and a seed (0–999 999) are all editable in the panel; Generate Design rebuilds the table. Run order is a deterministic xorshift64 shuffle seeded by the seed field, so a design is reproducible for a given (kind, factors, centers, seed).

Alias structure

Pairwise column correlations over the coded design are reported when \(|r| > 0.50\). For fractional factorials the alias block instead lists the defining relation:

\[F_i \sim \prod_{j \ne i} F_j, \qquad I = F_1 F_2 \cdots F_k\]

D-efficiency / I-optimality

The panel reports D-efficiency relative to a reference full factorial with the same center points and bounds. With \(X = [\mathbf{1}, C]\) the \([1,\text{coded}]\) design matrix, the objective is

\[\text{D}(X) = \det(X^\top X), \qquad \text{eff}_D = 100 \cdot \exp\!\left(\frac{\log\det(X_{\text{ref}}^\top X_{\text{ref}}) - \log\det(X^\top X)}{k+1}\right)\]

(equivalently 100 * ((a - b)/(k+1)).exp() between the reference and the design, clamped to [0, 100]). The greedy D-optimal selector picks a subset of the \(2^k\) rows — budget \(\max(4, \min(2(k+1), 2^k))\) — maximizing \(\log\det(X^\top X)\) greedily. For the optimal CLI mode the i criterion is also accepted; I-optimality minimizes the average prediction variance \(\int v(x)\,dx\) over the design region instead of maximizing \(\det(X^\top X)\).

Desirability profiler

Responses are linear models in coded units:

\[\hat y_i(x) = \beta_{0,i} + \sum_{j=1}^{k} \beta_{j,i}\, x_{j}^{\text{coded}}, \qquad x_j^{\text{coded}} = \frac{x_j - m_j}{\tfrac{1}{2}(h_j - l_j)}\]

with per-response target rule (Maximize / Minimize / Target). The Derringer–Suich desirability for response \(i\) is clamped to \([0, 1]\):

\[d_i(y) = \begin{cases} \dfrac{y - y^{\text{low}}}{y^{\text{high}} - y^{\text{low}}} & \text{maximize}\\[8pt] \dfrac{y^{\text{high}} - y}{y^{\text{high}} - y^{\text{low}}} & \text{minimize}\\[8pt] 1 - \dfrac{|y - y^{\text{target}}|}{\tfrac{1}{2}(y^{\text{high}} - y^{\text{low}})} & \text{target} \end{cases}\]

Composite desirability is the geometric mean (Nash product):

\[D = \left(\prod_{i=1}^{m} d_i\right)^{1/m}\]

A slider per factor re-evaluates predictions and \(D\) live, and Maximize Desirability runs coordinate-descent over each factor (20 steps per coordinate, 40 sweeps).

Active-table integration & Make Data Table

After Generate Design, the Make Data Table button exports the generated design as a loadable LEAP Data Table. The table has:

  • Run — Ordinal integer column 1..N
  • Pattern — Nominal text column (+ / - / 0 per coded level)
  • one Continuous column per factor at the natural (uncoded) levels
  • one Response column (Continuous, nullable, empty — ready for measurements)

The table is named DOE <label> (<n_runs>). The Run order reflects the seeded shuffle, and the preview table shows up to 40 rows (coded units).

Make Data Table

GUI / CLI parity

Open DOE via (Ctrl+Alt+Shift+F) (Classical Factorial), (Ctrl+Alt+Shift+R) (Response Surface), (Ctrl+Alt+Shift+O) (Optimal Design) or (Ctrl+Alt+Shift+P) (Desirability Profiler). Set factors, center points and seed; Generate Design previews the layout; Make Data Table loads it into the active table.

leap doe generate --type full --k 3 --replicates 2 --center-points 5 --blocks 2 --randomize --seed 42 --svg design.svg
leap doe generate --type fractional --k 4 --p 1 --center-points 3
leap doe generate --type pb --runs 12 --factors 8
leap doe generate --type ccd --k 2 --variant rotatable --center-points 6
leap doe generate --type bb --k 2 --center-points 5
leap doe generate --type optimal --k 4 --model quadratic --criterion d --runs 20 --delta 1.5 --sigma 0.3
leap doe fit data.csv --y yield_pct --x x1,x2 --center 100,5 --step 10,1 --svg rsm.svg