Espresso Extraction Time: Optimizer Example | Vose Software

ModelRisk Optimizer example · Agriculture and food

Specialty Coffee: Espresso Extraction Time

What single shot time gives the best expected cup score?

  • Complexity: ★★★★★
  • Free Excel workbook
  • Needs ModelRisk with the Optimizer

The optimisation problem

Best mean cup score

Decide
One shot time, 18 to 40 seconds
Goal
Best mean cup score
Limit
None
Engine
Brent

What the Optimizer found

Starting planOptimizer’s plan
Shot time (s)2227
Goal: Mean sensory score (0-100)89.290.0

ModelRisk Optimizer run on 13 Oct 2026: the Brent engine, with Turbo simulation, tried 234 plans, each simulated with 10,000 samples, in 3 seconds. Both plans above were then simulated again with the same 10,000 samples.

What the workbook models

A café dials in one espresso recipe. The sensory score peaks at an ideal shot time and falls off either side (a smooth concave curve) with cup-to-cup tasting noise (normal).

Decision, objective and constraint

Decision
1 continuous shot time, 18 to 40 s
Objective
Maximise the Mean sensory score
Constraints
none

The engine: Brent

A single continuous variable with a smooth Max objective and no constraints then Method=Auto routes to Brent's 1-D bracket search (≈5 evaluations).

The model

Tune the single shot time to maximise the expected sensory score (a smooth 1-D peak).

InputDecision (the Optimizer changes it)Calculated or uncertain (sampled each iteration)Objective

Shot time (s): decision22.00
Ideal time (s)27.00
Sensitivity0.03
Sensory score (0-100): objectivecalculated

Decision cells hold starting values: the workbook opens at the starting plan above, and the Optimizer finds its plan when you run it. The figures are illustrative.

Run it yourself. Open the workbook with ModelRisk, open the Optimizer from the ribbon (the saved task opens with it) and press Start.

Glossary

Extraction time
seconds the pump runs to pull the shot

Find similar models