Package org.hipparchus.optim
Class MaxEval
java.lang.Object
org.hipparchus.optim.MaxEval
- All Implemented Interfaces:
OptimizationData
Maximum number of evaluations of the function to be optimized.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the maximum number of evaluations.static MaxEval
Factory method that creates instance of this class that represents a virtually unlimited number of evaluations.
-
Constructor Details
-
MaxEval
public MaxEval(int max) Simple constructor.- Parameters:
max
- Allowed number of evalutations.- Throws:
MathIllegalArgumentException
- ifmax <= 0
.
-
-
Method Details
-
getMaxEval
public int getMaxEval()Gets the maximum number of evaluations.- Returns:
- the allowed number of evaluations.
-
unlimited
Factory method that creates instance of this class that represents a virtually unlimited number of evaluations.- Returns:
- a new instance suitable for allowing
Integer.MAX_VALUE
evaluations.
-