Class SearchInterval
java.lang.Object
org.apache.commons.math3.optim.univariate.SearchInterval
- All Implemented Interfaces:
OptimizationData
Search interval and (optional) start value.
Immutable class.
Immutable class.
- Since:
- 3.1
-
Constructor Summary
ConstructorsConstructorDescriptionSearchInterval
(double lo, double hi) SearchInterval
(double lo, double hi, double init) -
Method Summary
-
Constructor Details
-
SearchInterval
public SearchInterval(double lo, double hi, double init) - Parameters:
lo
- Lower bound.hi
- Upper bound.init
- Start value.- Throws:
NumberIsTooLargeException
- iflo >= hi
.OutOfRangeException
- ifinit < lo
orinit > hi
.
-
SearchInterval
public SearchInterval(double lo, double hi) - Parameters:
lo
- Lower bound.hi
- Upper bound.- Throws:
NumberIsTooLargeException
- iflo >= hi
.
-
-
Method Details
-
getMin
public double getMin()Gets the lower bound.- Returns:
- the lower bound.
-
getMax
public double getMax()Gets the upper bound.- Returns:
- the upper bound.
-
getStartValue
public double getStartValue()Gets the start value.- Returns:
- the start value.
-