create changelog entry
[debian/openrocket] / core / src / net / sf / openrocket / optimization / general / OptimizationController.java
1 package net.sf.openrocket.optimization.general;
2
3 public interface OptimizationController {
4         
5         /**
6          * Control for whether to continue the optimization.  This method is called after
7          * every full step taken by the optimization algorithm.
8          * 
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.
15          */
16         public boolean stepTaken(Point oldPoint, double oldValue, Point newPoint, double newValue,
17                         double stepSize);
18         
19 }