Class MaxEval
- java.lang.Object
-
- org.apache.commons.math4.legacy.optim.MaxEval
-
- All Implemented Interfaces:
OptimizationData
public class MaxEval extends Object implements OptimizationData
Maximum number of evaluations of the function to be optimized.- Since:
- 3.1
-
-
Constructor Summary
Constructors Constructor Description MaxEval(int max)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMaxEval()
Gets the maximum number of evaluations.static MaxEval
unlimited()
Factory method that creates instance of this class that represents a virtually unlimited number of evaluations.
-
-
-
Constructor Detail
-
MaxEval
public MaxEval(int max)
- Parameters:
max
- Allowed number of evaluations.- Throws:
NotStrictlyPositiveException
- ifmax <= 0
.
-
-
Method Detail
-
getMaxEval
public int getMaxEval()
Gets the maximum number of evaluations.- Returns:
- the allowed number of evaluations.
-
unlimited
public static MaxEval 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.
-
-