Top Description Fields Constructors Methods
org.apache.commons.math3.optim

public Class MaxIter

extends Object
implements OptimizationData
Class Inheritance
All Implemented Interfaces
org.apache.commons.math3.optim.OptimizationData
Imports
org.apache.commons.math3.exception.NotStrictlyPositiveException

Maximum number of iterations performed by an (iterative) algorithm.
Since
3.1

Field Summary

Modifier and TypeField and Description
private final int
maxIter

Allowed number of evalutations.

Constructor Summary

AccessConstructor and Description
public
MaxIter(int
Allowed number of iterations.
max
)

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the allowed number of evaluations.
getMaxIter
()

Gets the maximum number of evaluations.

public static MaxIter

Returns:

a new instance suitable for allowing Integer#MAX_VALUE evaluations.
unlimited
()

Factory method that creates instance of this class that represents a virtually unlimited number of iterations.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

maxIterback to summary
private final int maxIter

Allowed number of evalutations.

Constructor Detail

MaxIterback to summary
public MaxIter(int max)
Parameters
max:int

Allowed number of iterations.

Exceptions
NotStrictlyPositiveException:
if max <= 0.

Method Detail

getMaxIterback to summary
public int getMaxIter()

Gets the maximum number of evaluations.

Returns:int

the allowed number of evaluations.

unlimitedback to summary
public static MaxIter unlimited()

Factory method that creates instance of this class that represents a virtually unlimited number of iterations.

Returns:MaxIter

a new instance suitable for allowing Integer#MAX_VALUE evaluations.