Package Utils.Optimize
Class GoldenSection
- java.lang.Object
-
- Utils.Optimize.GoldenSection
-
public class GoldenSection extends java.lang.Object
Optimizes the input to a function of type SingleDoubleValue using the Golden Section method
-
-
Constructor Summary
Constructors Constructor Description GoldenSection(double tol, double ftol)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
optimize(SingleDoubleValue v, double min, double max)
Optimizes the input
-
-
-
Method Detail
-
optimize
public double optimize(SingleDoubleValue v, double min, double max)
Optimizes the input- Parameters:
v
- The functionmin
- The minimum allowed input valuemax
- The maximum allowed input value- Returns:
- Optimized input
-
-