1 package net.sf.openrocket.optimization.general;
3 public interface OptimizationController {
6 * Control for whether to continue the optimization. This method is called after
7 * every full step taken by the optimization algorithm.
9 * @param oldPoint the old position.
10 * @param oldValue the value of the function at the old position.
11 * @param newPoint the new position.
12 * @param newValue the value of the function at the new position.
13 * @param stepSize the step length that is used to search for smaller function values when applicable, or NaN.
14 * @return <code>true</code> to continue optimization, <code>false</code> to stop.
16 public boolean stepTaken(Point oldPoint, double oldValue, Point newPoint, double newValue,