Class AbstractOptimizationProblem<PAIR>

  • Type Parameters:
    PAIR - Type of the point/value pair returned by the optimization algorithm.
    All Implemented Interfaces:
    OptimizationProblem<PAIR>

    public abstract class AbstractOptimizationProblem<PAIR>
    extends java.lang.Object
    implements OptimizationProblem<PAIR>
    Base class for implementing optimization problems. It contains the boiler-plate code for counting the number of evaluations of the objective function and the number of iterations of the algorithm, and storing the convergence checker.
    Since:
    3.3
    • Constructor Detail

      • AbstractOptimizationProblem

        protected AbstractOptimizationProblem​(int maxEvaluations,
                                              int maxIterations,
                                              ConvergenceChecker<PAIR> checker)
        Create an AbstractOptimizationProblem from the given data.
        Parameters:
        maxEvaluations - the number of allowed model function evaluations.
        maxIterations - the number of allowed iterations.
        checker - the convergence checker.