Package org.hipparchus.optim.univariate
Class SearchInterval
java.lang.Object
org.hipparchus.optim.univariate.SearchInterval
- All Implemented Interfaces:
OptimizationData
Search interval and (optional) start value.
Immutable class.
Immutable class.
-
Constructor Summary
ConstructorDescriptionSearchInterval
(double lo, double hi) Simple constructor.SearchInterval
(double lo, double hi, double init) Simple constructor. -
Method Summary
-
Constructor Details
-
SearchInterval
public SearchInterval(double lo, double hi, double init) Simple constructor.- Parameters:
lo
- Lower bound.hi
- Upper bound.init
- Start value.- Throws:
MathIllegalArgumentException
- iflo >= hi
.MathIllegalArgumentException
- ifinit < lo
orinit > hi
.
-
SearchInterval
public SearchInterval(double lo, double hi) Simple constructor.- Parameters:
lo
- Lower bound.hi
- Upper bound.- Throws:
MathIllegalArgumentException
- 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.
-