Package org.ddogleg.optimization
Class UtilOptimize
java.lang.Object
org.ddogleg.optimization.UtilOptimize
Performs common optimization tasks. Such as iterating until convergence.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
process
(IterativeOptimization search, int maxSteps) Iterate until the line search converges or the maximum number of iterations has been exceeded.static boolean
step
(IterativeOptimization search) Performs a single step by iterating until the parameters are updated.
-
Constructor Details
-
UtilOptimize
public UtilOptimize()
-
-
Method Details
-
process
Iterate until the line search converges or the maximum number of iterations has been exceeded. The maximum number of steps is specified. A step is defined as the number of times the optimization parameters are changed.- Parameters:
search
- Search algorithmmaxSteps
- Maximum number of steps.- Returns:
- Value returned by
IterativeOptimization.iterate()
-
step
Performs a single step by iterating until the parameters are updated.- Parameters:
search
- Search algorithm- Returns:
- Value returned by
IterativeOptimization.iterate()
-