Package org.hipparchus.optim
Class MaxIter
java.lang.Object
org.hipparchus.optim.MaxIter
- All Implemented Interfaces:
OptimizationData
Maximum number of iterations performed by an (iterative) algorithm.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the maximum number of evaluations.static MaxIter
Factory method that creates instance of this class that represents a virtually unlimited number of iterations.
-
Constructor Details
-
MaxIter
public MaxIter(int max) Simple constructor.- Parameters:
max
- Allowed number of iterations.- Throws:
MathIllegalArgumentException
- ifmax <= 0
.
-
-
Method Details
-
getMaxIter
public int getMaxIter()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 iterations.- Returns:
- a new instance suitable for allowing
Integer.MAX_VALUE
evaluations.
-