Finding The Cheapest Cutting Speed With Golden-Section Search
Bracketing versus golden-section search on a Taylor tool-life cost model over 50–600 m/min — and why the golden ratio keeps shrinking the interval so evenly.
The engineering problem
A turning operation has two competing costs. Increasing the cutting speed reduces machining time, but shortens tool life: tools wear out faster, need replacing more often, and introduce additional downtime. The optimization variable is the cutting speed , bounded by m/min.
This worked example applies directional bracketing with interval refinement and golden-section search to the same production-cost function.
Model and physical parameters
Taylor’s tool-life equation is , so tool life and machining time are
The total cost per part is
Here in the definition of denotes feed per revolution; denotes the objective function.
| Symbol | Meaning | Value | Units |
|---|---|---|---|
| Cutting speed | 50–600 | m/min | |
| Workpiece diameter | 0.05 | m | |
| Length of cut | 0.20 | m | |
| Feed per revolution | 0.0002 | m/rev | |
| Cutting-path constant | m | ||
| Machine, labor, and overhead rate | 1.00 | dollars/min | |
| Tool-change time | 1.5 | min | |
| Cost per cutting edge | 3.00 | dollars | |
| Taylor tool-life exponent | 0.25 | dimensionless | |
| Speed giving one minute of tool life | 400 | m/min |
Dimensional check. The operating cost is a rate in dollars/min, not minutes. Multiplying it by machining time yields dollars. The second term multiplies the number of tool lives consumed per part by the cost of a replacement and its downtime, also yielding dollars.
Substitution gives
Bracketing and interval refinement
A bracket contains a middle point whose cost is no larger than that of its two neighboring probes. Start at the lower bound and expand the step while the cost continues to decrease.
| Parameter | Meaning | Value |
|---|---|---|
| Reference step length | 4 m/min | |
| Step scale | 0.5 | |
| Initial step | 2 m/min | |
| Expansion factor | 2 | |
| Grid divisions per refinement | 10 |
Initialization and direction
Since , the forward direction is descending. If the forward probe does not improve the cost, a reverse probe can determine the other direction, provided it lies within the admissible bounds. At the lower bound, an out-of-range reverse probe must not be used.
Expansion and termination
Keep probes within . The supplied forward sequence is
When the next probe increases the cost, the minimum is bracketed:
For this sequence, the bracket is m/min around the best probe at m/min.
Grid refinement
For a retained bracket , divide its width into ten equal parts:
Evaluate the grid points, retain the neighbors of the lowest-cost point, and repeat until the bracket meets the desired tolerance. Bracketing first discovers a useful region; refinement then spends evaluations reducing that region.
Golden-section search
Golden-section search starts with the full interval and systematically discards a portion that cannot contain the minimum of a unimodal objective.
The two interior points are
The original notes repeat the first point’s label and mix function values with interval bounds. The interval updates below correct that notation without changing the method:
One interior point survives each update, together with its cached objective value. Only one new evaluation is needed per reduction.
Reference implementation
const rho = (Math.sqrt(5) - 1) / 2;
let xl = 50, xu = 600;
const eps = 0.5;
let x1 = xu - rho * (xu - xl);
let x2 = xl + rho * (xu - xl);
let f1 = cost(x1), f2 = cost(x2);
while (xu - xl > eps) {
if (f1 < f2) {
xu = x2; x2 = x1; f2 = f1;
x1 = xu - rho * (xu - xl);
f1 = cost(x1);
} else {
xl = x1; x1 = x2; f1 = f2;
x2 = xl + rho * (xu - xl);
f2 = cost(x2);
}
}
const xstar = (xl + xu) / 2;
const minimumCost = cost(xstar);
Numerical check and stopping accuracy
Writing the cost as gives a closed-form stationary point for verification:
At this speed, the minimum cost is approximately 1.00365 dollars per part. Golden-section search with a 0.5 m/min interval tolerance returns a midpoint near 208.7 m/min; the midpoint’s distance from a bracketed minimizer is at most half the final interval width.
Thus the interval needs 15 reductions. The iteration count grows logarithmically with the initial width divided by the tolerance; the algorithm retains only a constant-sized working state.
Comparison analysis
The supplied notes leave the final comparison analysis to the author. It is not fabricated here. The worked methods, objective, stopping criterion, and numerical check are presented above; a measured comparison of function evaluations and refinement accuracy remains to be written.
Series · Numerical Optimization
Comments (2)
Demo discussion
Darlene@angrypanda812
Would that advantage hold if the Taylor tool-life model produced more than one local cost minimum?
Nevaeh@crazywolf266
Golden-section search seems well suited to narrowing a cutting-speed interval while reusing cost evaluations.